BusBuddy Backend
Development Changelog
Wednesday, August 27, 2025
10 commits
feat: add user approval data to Firestore on user creation
ea96667
feat: adjust memory allocation for BusBuddy and graphqlServer functions
0f14288
feat: export massenger service and update notification priority to max
fcea15c
feat: update ad retrieval endpoint to use '/api/ad' path
e02b203
feat: update notification priority to max in LostAndFoundService
7a5e3c6
feat: implement user permission granting functionality
bb32c2f
feat: update adServe response to include static image links
8a261e3
feat: enhance adServe to return valid file links with download tokens
e46757b
feat: enhance adServe response with additional metadata fields
9206cc5
feat: reset delay and timeAfter values to zero in adServe response
6fbe2c2
Saturday, August 23, 2025
2 commits
feat: secure ad retrieval endpoint with authentication middleware
c49d1bf
feat: enhance scrapeNotice function with memory and timeout settings
4a6d984
Wednesday, August 20, 2025
2 commits
feat: refine query instructions for improved clarity and relevance
6acdb1a
feat: update CORS origin list to include localhost for development
6cb337c
Tuesday, August 19, 2025
1 commit
feat: add endpoint to retrieve filled feedback form content
b578a62
Saturday, August 16, 2025
3 commits
feat: enhance email templates and user personalization in broadcast emails
cdb823a
feat: update welcome email template with improved styling and content
f0abfd0
feat: enhance vector reliability evaluation and refine university query process
6c98d72
Friday, August 15, 2025
7 commits
feat: implement SES webhook handler with enhanced payload processing and email notification
f4b7441
Add mailparser and its TypeScript types as dependencies'
b01da22
feat: add Amazon SES webhook token to environment variables in production workflow
86b8af9
feat: enhance SES webhook handler and update complaints model with status fields
ad2ad70
added mail parser
08e5c8b
feat: enhance complaints service response structure and update status handling
b5bab49
feat: add new locations and coordinates for Sonai, Silchar Bypass, and NIT point
2a2a8d1
Thursday, August 14, 2025
2 commits
fix: update Google email credentials variable names in production workflow
5c0f454
feat: update AI assistant description for clarity and context; enhance email configuration handling
72ff3b8
Wednesday, August 13, 2025
4 commits
feat: implement email notification system using nodemailer and update related services
f067c3b
feat: enhance university information handling with iterative refinement and web crawl fallback
cdb8ac3
fix: improve intent classification description formatting for better readability
7f80486
fix: update intent classification for specific person queries to use 'university_info'
1dc1b7e
Friday, August 8, 2025
1 commit
feat: add Google email credentials to .env file in production workflow
b456f2e
Tuesday, August 5, 2025
10 commits
fix: increase memory allocation for graphqlServer from 256MiB to 1GiB
cc84f54
feat: implement AUExamScraper for scraping exam schedules from CBCS and NEP formats
4239a3f
feat: integrate ExecuteImportantDateScraper for enhanced notice scraping and logging
34e4bb0
fix: update email source and subject format in EmailService for clarity in summaries
23c399a
feat: extend getMappedNotice to include importentDates in the returned notice structure
c03d319
Merge pull request #58 from nginH/fix-detached
3cc9bf7
feat: implement AUExamScraper for scraping exam schedules from specified URL
afa6715
fix: remove unused Logger import from scraper.ts
ef07a0d
fix: correct spelling of 'importantDates' in getMappedNotice method
9835706
fix: remove commented-out notification code in scraper.ts
f0f1cbb
Wednesday, July 30, 2025
18 commits
feat: add .nvmrc file and update package.json to remove unused dependencies
99c3621
feat: refactor broadcast email handling to support bulk sending and improve error handling
22a3149
chore: comment out analytics service and handler code for future reference
86468e2
feat: add getRateLimiterStatus method to fetch and return rate limiter status
c4e1b92
feat: refactor email service to use AWS SES and implement rate limiting for email sending
72305f0
chore: remove unused Google Analytics client initialization code
e98bac8
feat: update email service integration to use sendIndividual method and configure email clients with specific addresses
4e323b0
fix: correct AWS SMTP password output path in production.yml and specify emailClient type in LostAndFoundService
874d84a
Merge pull request #55 from nginH/fix-detached
fefb6a3
fix: update confirmation URL in generateConfirmationUrl method
98fd237
fix: update firebase-functions version to 6.4.0 in package.json and package-lock.json
b873001
refactor: replace console logs with logger in various files for improved logging consistency
ff94a73
fix: update CORS origin to include dynamic URL for development and production environments
a6262a7
feat: enhance memory management in CoreChatBotHandlerForAdmin with improved getMemory and setMemory methods
db0a6c1
refactor: replace console logs with logger in BusDeleterScheduler for improved logging consistency
719193b
Merge pull request #56 from nginH/fix-detached
994e0fb
fix: update email source format in EmailService to include sender name
1d5668f
Merge pull request #57 from nginH/fix-detached
a8eb2b4
Tuesday, July 29, 2025
1 commit
fix: add AWS SMTP credentials and EMAIL_FROM to environment variables in production workflow
6534ce5
Monday, July 28, 2025
4 commits
feat: enhance email broadcasting system with pagination, retry logic, and new endpoints for stats and estimates
ccfb1af
fix: add WEBHOOK_VERIFY_TOKEN and META_WEBHOOK_SECRET to environment variables in production workflow
9f84b74
fix: correct route prefix for webhook handler from 'v2/' to '/v2'
fc19934
feat: Implement admin notification handling and cleanup
7c235fd
Sunday, July 27, 2025
11 commits
Refactor code structure for improved readability and maintainability
0632390
feat: implement submitFeedback method to handle feedback submissions
0e6da3c
fix: correct formatting in constructor for consistency
94912ba
feat: Implement WhatsApp integration with LLM services
c5b01b0
feat: Add additional environment variables to production workflow
65c7e62
fix: correct echo command for GOOGLE_CLOUD_PROJECT in production workflow
44ed56f
fix: remove GOOGLE_CLOUD_PROJECT from environment variable setup in production workflow
91329b5
fix: update CORS policy to allow feedback subdomain
8255fb0
fix: update CORS configuration to include OPTIONS method and additional headers
0af5246
fix: remove GOOGLE_CLOUD_PROJECT dependency and use hardcoded project path in reCAPTCHA middleware
0163427
fix: update CORS policy to include admin subdomain and additional headers
3490cc3
Thursday, July 17, 2025
1 commit
fix: update email sender format to include sender's name in EmailService
5da2fe1
Monday, June 16, 2025
1 commit
refactor: upgrade to firebase-functions v2 and standardize memory settings for BusBuddy and graphqlServer
6b02833
Sunday, June 15, 2025
3 commits
refactor: update BusBuddy export to include memory and timeout settings
c19c39d
chore: update package.json to include TypeScript and Prettier as devDependencies
ed8aa61
refactor: update graphqlServer export to include memory and timeout settings
6d04f22
Tuesday, June 10, 2025
1 commit
fix: update date comparison logic in filter to use only date components
6e9dab9
Monday, June 9, 2025
3 commits
fix: add guideline to respond in the same language as the user's query in chatbot prompts
ec4bc5b
Formatted using pretter
ded6145
feat: implement date-based filtering for buses in getAllBusesForAPP and add isEnable property to Bus model
8d985ea
Saturday, June 7, 2025
1 commit
fix: adjust OPENAI_TEMPERATURE in toolHandlerConfig to improve response variability
3655aed
Friday, June 6, 2025
7 commits
refactor: improve error handling in HealthCare API by specifying missing fields in bad request responses and enhance HTML email template for BusBuddy 6.0.0 release with new design and features
3fde745
refactor: improve request validation in HealthCare API by ensuring body presence and enhancing error responses for missing fields
f59d7ae
refactor: streamline doctor update logic in HealthCare API by allowing ID retrieval from both request parameters and body
8ad9388
refactor: enhance doctor management in HealthCare API by improving data handling during creation and updates, including validation for update requests
48268f1
fix: update privacy policy links in email templates and server headers to reflect new domain for BusBuddy
6564d6d
feat: add account deletion functionality with user list retrieval and final cleanup process, including new email template for deletion confirmation
ec571ca
chore: update dependencies in package.json and package-lock.json, improve HTML email template by removing emoji, and modify axios usage in scraper functions for consistency
dbaa3f2
Tuesday, June 3, 2025
1 commit
refactor: replace EnhancedToolHandler with ToolHandler for improved modularity and maintainability in chatbot functionality
e6d2321
Monday, June 2, 2025
1 commit
refactor: simplify health check status messages in EnhancedToolHandler for clarity
d47e1ca
Sunday, June 1, 2025
6 commits
feat: enhance chatbot functionality with current time integration and improved conversation context handling
4ed9c34
chore: update AI initial description in appConfig for clarity and conciseness
ed3e6bc
refactor: update intent classification logic in IntentClassifierService to utilize RAG system for university_info and improve health_care and transportation_info responses
29f73ac
chore: signed commit test
d654f40
fix: enhance error messaging and system prompts in EnhancedToolHandler for improved user guidance
19b59d3
refactor: update HealthCareFinalPrompt to streamline healthcare data handling and improve response formatting
7b6c839
Saturday, May 31, 2025
6 commits
feat: implement getFeedbackForms method in FeedBackHandler for fetching feedback forms and update routes for better API structure
8de8238
fix: correct SSE response formatting in ChatBot to ensure proper data transmission
2244b71
Update toolHandlerConfig.ts
abffe4e
Update appConfig.ts
67d4cef
Update appConfig.ts
1cc2567
Update appConfig.ts
e25bef1
Thursday, May 29, 2025
1 commit
feat: add initial AI description to appConfig for enhanced user interaction guidance
3b6f946
Wednesday, May 28, 2025
6 commits
fix: update OpenAI model name to gpt-3.5-turbo and simplify intent logging in EnhancedToolHandler
1bf8760
refactor: enhance conversation management by implementing conditional saving logic in ConversationManager and improving intent classification with structured output handling in IntentClassifierService
75c3a64
fix: update intent classification description to clarify context related to Assam University
d57cbe6
fix: update OpenAI model name to gpt-4.1-mini for enhanced performance
af04bce
fix: revert OpenAI model name to gpt-3.5-turbo for compatibility
fa10531
refactor: enhance greeting and other request handling in EnhancedToolHandler with detailed prompts for improved user interaction
64e804f
Tuesday, May 27, 2025
10 commits
feat: add feedback form handling with GraphQL resolvers and service integration
faab0be
chore: remove jsonrepair dependency from package.json and package-lock.json, and add it to functions package.json and package-lock.json; delete unused xml parser file
22bcae8
feat: add health check endpoint to ChatBot for monitoring service status
abb97a7
refactor: clean up toolHandler.ts by removing commented-out code and improving message serialization logic
83c7a96
feat: add CORS headers to GraphQL server responses for improved cross-origin resource sharing
3bc7df4
fix: update email signature in HTML templates to reflect the correct sender name
7a50d7a
refactor: replace console logging with logger for improved logging consistency across services
491a43d
refactor: remove unnecessary console logs and replace with logger for improved logging consistency
2c1bea1
added string similarity
5b6e44d
refactor: restructure tool handling by introducing EnhancedToolHandler and IntentClassifierService for improved modularity and maintainability
fd20dc3
Saturday, May 24, 2025
9 commits
chore: add ESLint configuration files for TypeScript support and enforce consistent code style across the project
bcceaed
feat: enhance ServerlessCacheMiddleware with improved cache initialization, validation, and new methods for cache management
dfd30ca
refactor: remove AuthMiddleware from app routes and apply cache middleware to bus routes for improved performance
f8fad6e
feat: add AnalyticsReport interface and related metrics models for comprehensive analytics tracking
11baa0e
feat: reintroduce AuthMiddleware to app routes for enhanced security and access control
dc934f1
refactor: streamline analytic service by importing models and enhancing error handling for metrics retrieval
ea99d93
refactor: update LogMessage interface to require message property and simplify logging format
58f7f67
feat: enhance analytics service with additional metrics for real-time data, including top countries and device breakdown
d6e124f
feat: integrate GoogleAuth for enhanced authentication in analytics data client
31d59b5
Friday, May 23, 2025
7 commits
chore: update dependencies in package.json and package-lock.json to include new Google Cloud and Apollo packages, enhancing functionality and performance
508f2e3
feat: implement GraphQL API for cafes and buses with resolvers and schema definitions
05610ac
feat: add GraphQL server endpoint for enhanced API functionality
53c2712
feat: add cafe routes to the API for managing cafes, including CRUD operations
5289d72
feat: implement comprehensive analytics service with user, server, demographics, performance, and real-time metrics retrieval
a26db9a
feat: implement CafeService for managing cafes with CRUD operations in Firestore
a92844f
chore: update package dependencies to include Google Cloud logging and monitoring, and remove unused packages from package.json and package-lock.json
cfd6803
Monday, May 12, 2025
1 commit
refactor: remove unused AIMessage handling and streamline chat history processing in ChatbotCore
863f290
Sunday, May 11, 2025
11 commits
chore: add XML format compliance notes to chatbot response guidelines for improved clarity
89472f7
refactor: simplify session message update logic and enhance chat history handling in ChatbotCore
da114a3
chore: update dependencies in package.json to include langchain and remove outdated packages
b541e2a
refactor: enhance GoogleAIService and OpenAIService to improve prompt handling and response structure
5ce4ec8
chore: update TypeScript configuration to target ES2022 and adjust library settings
400b97f
chore: refine TypeScript configuration and adjust import paths for better module resolution
acfdef5
chore: update author information in package.json and modify dependencies in package-lock.json
8c5151b
refactor: enhance ChatbotCore to improve message handling and ensure proper order of system and user messages
90cee96
refactor: improve intent classification and response handling in ChatbotCore, enhancing message processing and XML parsing
2712504
refactor: streamline intent classification process in ChatbotCore and clarify response guidelines for XML format compliance
44c9e64
refactor: update intent classification prompt to include user query for improved context in ChatbotCore
ebc46cc
Saturday, May 10, 2025
3 commits
refactor: improve error handling and session update logic in ChatbotCore and SessionService
7f32e20
chore: specify region for Firebase Functions artifacts cleanup policy in production workflow
d9fca6c
chore: remove redundant cleanup policy step from Firebase Functions deployment in production workflow
0907289
Friday, May 9, 2025
32 commits
chore: update package dependencies across main and functions directories, adding new libraries for image processing, PDF parsing, and AI platform integration
9f98db8
chore: update TypeScript configuration to target ES2018 and enhance strictness with additional compiler options
389b368
refactor: improve ad service response handling and logging
4ac1b99
refactor: remove unused request parameter from multiple API handler methods
86650f6
feat: implement ChatBot class with OpenAI and Gemini LLM services for handling chat and session management
3889a14
feat: add ChatbotCore class for enhanced chat handling and session management with intent classification and bus information retrieval
646a187
feat: implement XMLParserV2 class for parsing intent classification, bus filter, and bus response XML data
53e1f9d
feat: add intent classification and bus query prompts for chatbot functionality
37b8edc
feat: implement SessionService for managing chatbot sessions, including creation, deletion, and updates
710de45
feat: implement VectorSearch class for querying and embedding content using OpenAI and Pinecone
45b8a04
feat: add caching functionality for web scraping results with Firestore integration
0477347
feat: implement web crawler for dynamic content extraction, supporting HTML, PDF, and image processing
ed7eadd
feat: add TypeScript definitions for web scraping modules including tldextract, image-downloader, and tesseract.js
0de03df
refactor: remove unused parameters from event handlers and improve logging in scraper functions
8b7338e
feat: add LLMService and RetryHandler classes for enhanced language model interaction and error handling
9d833b2
feat: introduce LLMFactory for dynamic language model service creation and response generation
153365b
feat: implement GoogleAIService for interaction with Google Generative AI, including response generation and template handling
5e4db6a
feat: implement OpenAIService for interaction with OpenAI API, including response generation and template handling
c23e376
feat: add Bus2 interface to models for enhanced bus data representation
77a1798
refactor: update import statements to ES6 syntax and enhance route handling with ChatBot integration
43332de
refactor: update import syntax to ES6 and modify BusService methods for improved parameter handling and bus filtering logic
837a5ee
fix: apply AuthMiddleware to /app route for improved security and access control
e118355
feat: add environment variable configurations for Pinecone and Google API keys in production workflow
52af3e6
refactor: enhance bus response generation prompt with clearer instructions and formatting for improved user interaction
fcfadbc
feat: implement UniversityInfoPrompt and XML parsing for enhanced university-related query responses
325f49f
refactor: update XML response format and instructions for chatbot categories to enhance user engagement and clarity
7a471aa
refactor: update chatbot core logic to include AIMessage handling and improve session message updates for user interactions
2966b6e
chore: update production workflow to correct typo in .env file step and add cleanup policy for Firebase Functions artifacts
122a482
chore: update production workflow to enforce cleanup policy for Firebase Functions artifacts
ca8b005
feat: integrate HealthCareService for healthcare-related queries and enhance token tracking in ChatbotCore
3c54521
feat: add DoctorAmbulanceXML method for parsing university info from XML responses
37ad2f5
refactor: streamline intent classification prompts and enhance XML response format for bus and healthcare queries
6500d6c
Thursday, May 1, 2025
1 commit
refactor: ensure user fetching is ordered by creation date
ce19ce4
Tuesday, April 29, 2025
1 commit
refactor: update coordinate handling in BusService to use new internal map structure
8f49b04
Friday, April 25, 2025
2 commits
Update HTMLTemplate.ts
1be70cb
Update HTMLTemplate.ts
429c3fb
Thursday, April 24, 2025
3 commits
feat: add lost-and-found routes for item management in web interface
50b7b24
feat: add deleteLostAndFound method to handle item deletion in LostAndFoundHandler
9928c35
feat: implement deleteLostAndFound method for item deletion in LostAndFoundService
5f3c237
Monday, April 7, 2025
2 commits
fix: improve error handling and validation messages in HealthCare API methods
1b6498f
fix: update Firebase deployment command to include --force option for improved deployment reliability
5cfad8d
Monday, February 17, 2025
2 commits
feat: update sendNotification2 method to use 'type' and 'email' parameters for improved clarity
fe178c2
fix: update collection references in NotificationsService and BroadcastServices for correct data retrieval
e6fd78d
Sunday, February 16, 2025
12 commits
feat: add CRUD operations for email templates in BroadcastHandler
cc13008
feat: add rbacauthorization to VSCode settings for improved middleware management
6850cdd
fix: rename isTemp to isTemporary for consistency in BusHandler
6cd6be1
feat: add updateConfig method to ConfigHandler for updating configuration settings
1d16e50
feat: extend Express Request interface to include accessPayload for enhanced request handling
9d604f1
feat: update Admin interface to include optional fields and add AccessLevel for enhanced RBAC support
4938df7
feat: implement RBAC middleware for enhanced access control in Express application
b56e549
feat: enhance JWT generation and decoding to include access level and improve expiry time handling
e8b7607
feat: refactor routes to streamline middleware usage and enhance config handling
2f42f26
feat: remove unnecessary blank line in RegisterRoute for cleaner code
1bb19ae
feat: implement CRUD operations for email templates in BroadcastServices
9e217b0
feat: add updateAdConfig method to ConfigService for dynamic ad configuration management
025a67d
Sunday, February 9, 2025
2 commits
fix: add AuthMiddleware to /web route for improved security
4b7c6fd
feat: add updateComplaints method for handling complaint updates with status management
353a7dc
Saturday, February 8, 2025
3 commits
fix: enhance deleteComplaints method with logging and error handling
e2ac283
refactor: update BroadcastService to BroadcastServices_v1 with improved email and notification handling
0a5dfbf
yo broadcast added
bc8d4da
Sunday, February 2, 2025
3 commits
rollback
1876f31
fixed rollback
f25b4f3
rename: change workflow from dev to production
14320c0
Monday, January 20, 2025
7 commits
add: define map parameters for routes coordinates
fec13b7
add: include route coordinates for internal map configuration
1d98e01
refactor: rename legal files and update email handling logic
a480b72
fix: update privacy policy links in email templates
22a585c
fix: add authentication middleware to app route
029b5e6
fix: update root route to handle suspicious activity with a 403 response
7ff298a
add: include Bio-Tech coordinates in internal map configuration
e1d5124
Saturday, January 11, 2025
1 commit
changed: color of the email template for deletion
466c057
Tuesday, January 7, 2025
3 commits
remover fcm token deletion on faild
76d8ee2
emailing to found items
08c97af
fixed subject of the mail
85a0260
Saturday, December 28, 2024
4 commits
changed route for delete
eea180a
changed name to first name to consider and change color
e5504aa
fixed name usages
daa86a4
fix email responce
5ceb94e
Tuesday, December 24, 2024
3 commits
fixed multicast
2e37bba
updated env
dd22a90
removed console
5adfbdc
Wednesday, December 11, 2024
1 commit
fixed template
bfb83f7
Tuesday, December 10, 2024
3 commits
fixed configration and added notification listner
df66ecf
fixed broadcast
fcbf03c
fixed recall time
55176cf
Monday, December 9, 2024
4 commits
fixed routes
6790029
removed logging
a29f9d1
added notification for testing
5432ae0
fix fcm token
cb7177d
Wednesday, December 4, 2024
1 commit
fix caching issues
621f150
Tuesday, December 3, 2024
4 commits
added file level of caching machanisam
453304d
initilize event trigger
d187dac
ensure file creation in for cache
5c6bbbf
ensure file creation in for cache
836fe34
Saturday, November 30, 2024
3 commits
added delete route
64628d4
added fixed update
ea336e6
updated cors
8e4c8dc
Friday, November 29, 2024
1 commit
added email service
4a868b5
Tuesday, November 26, 2024
2 commits
refactar and added middleware for auth
4aa11b7
refactor
e886d67
Monday, November 25, 2024
4 commits
added filter in user route
a921974
added role modification
3421501
refactor complaint
0171db0
fixed crash report
292ea21
Tuesday, November 19, 2024
4 commits
added emailing service
389c448
added email into env via github secrets
0f9c52f
fixed complaint
63e693f
added middleware for web
efea944
Sunday, November 17, 2024
1 commit
added route for bueses
9d921fb
Saturday, November 16, 2024
1 commit
fixed driver timing
3788d4a
Saturday, November 9, 2024
3 commits
added student role in Auth claim
b4eb84f
added watchlist of buses for student
b94543c
fixed responce in watch bus
2e65d01
Friday, November 8, 2024
1 commit
fixed deploy on merge issue
749d1f3
Thursday, November 7, 2024
2 commits
modified scrapper for aus and ausexamination has been added
5c8d123
refactor: removed unused code
31ebd09
Wednesday, November 6, 2024
7 commits
scrapper and and crossponding route added
01e4847
Merge pull request #10 from nginH/analytic
da3e799
fixed deployment
232f51b
fixed deployment
25b11cb
custom scheduler added
ccb5120
custom scheduler added
941282e
removed route for force scheduler to run
9c37976
Friday, November 1, 2024
5 commits
added found feature
675d393
Merge pull request #8 from nginH/noti
f1b0cfd
Create dev.yml
11b6f3c
analytic route added
ed68667
Merge pull request #9 from nginH/analytic
2e5d787
Monday, October 28, 2024
2 commits
refactor: re-written healthcare
8247679
refactor: re-written whole healthcare service
89ef0d7
Friday, October 25, 2024
3 commits
middlewere routes added
5f83f76
Resolved merge conflict in routes.ts and middleware
00d1c7c
refactors
2cdd4b4
Thursday, October 24, 2024
10 commits
deployed to firestore
58f7183
fixme: health care servces
adf9bf8
refactor: loging of request
64a9671
added: middeleware for loggin request and responce
5d3d199
Middlewere added for admin routes auth, doc-id changed , getUser routes implemented
1d2585c
changes
e55f1de
added get-users
fa67187
get-users-route added
363f002
chnages
8c760a2
ad route fix
8f6f36c
Wednesday, October 23, 2024
9 commits
added event listener for authancation
6b38928
complain routes added
ca5ecfe
Merge pull request #2 from nginH/Complainst_routes
bbb54fe
added caching for journey routes
e673dfb
refactor : complaint service
c461e2d
Merge branch 'master'
e6f9391
changes
ae96633
restructure
6ebb2a0
formatted
d79c5dd
Tuesday, October 22, 2024
7 commits
Initial commit
ccb92df
initial setup
0a66889
init commit
bdd91a9
package added
0c33108
folder structure changed
dc519ef
init route for bus
89ab402
Merge pull request #1 from nginH/bus_setup
624b06a
Built with ❤️ for Assam University • Last updated: August 2025