eggi-ai-db-schema-2 12.54.26 → 12.54.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +17 -18
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -47,31 +47,31 @@ All notable changes to this project will be documented in this file.
47
47
  - Makes `quota_limit` column nullable in `monitoring.mapping_job_quotas` table
48
48
  - Updates column comment to reflect that NULL means unlimited
49
49
 
50
- ## [Unreleased]
50
+ ## [12.54.26] - 2025-12-18
51
51
 
52
52
  ### Added
53
53
 
54
- - **Ghost Genius Provider Support**: Added support for Ghost Genius LinkedIn profiles alongside Forager
55
- - New module: `ghost-genius-linkedin-operations.ts` with `findLinkedInAccountByAcoa()` and `findOrCreateLinkedInAccountByAcoa()`
56
- - New function: `storeCompleteLinkedInProfileByAcoa()` for Ghost Genius profile storage
57
- - Database migration: `0031_make_forager_id_optional_for_ghost_genius.sql` makes `forager_id` nullable
58
- - Updated constraints to allow `forager_id` to be null while ensuring at least one identifier exists
59
- - Separate cache tables and operations for Forager and Ghost Genius providers
54
+ - **LLM Search Job Notifications**: Added tracking for whether a search job has been seen by the user
55
+ - New table: `monitoring.llm_search_job_notifications`
56
+ - Tracks `is_seen` flag and timestamps
57
+ - Auto-populated for existing jobs
58
+ - **Search Job Operations**: New database operations for notification management
59
+ - `markLlmSearchJobAsSeen()`: Mark a specific job as seen
60
+ - `markAllLlmSearchJobsAsSeen()`: Mark all completed/failed jobs for a user as seen
61
+ - Updated `getLlmSearchJobs()` to include `isSeen` status
62
+ - Updated `createLlmSearchJob()` to automatically create a notification entry
60
63
 
61
64
  ### Changed
62
65
 
63
- - **Database Schema**: `linkedin.accounts.forager_id` is now nullable to support Ghost Genius profiles
64
- - **LinkedIn Operations**: Separated Forager and Ghost Genius operations into distinct modules for better modularity
65
- - `forager-linkedin-operations.ts`: Forager-specific operations (uses `forager_id`)
66
- - `ghost-genius-linkedin-operations.ts`: Ghost Genius-specific operations (uses ACoA identifier)
67
- - **Type Exports**: Updated exports to include Ghost Genius operations while maintaining backward compatibility
66
+ - **LLM Search Job Lifecycle**: New jobs are now created with an initial 'unseen' notification status
67
+ - **Schema Types**: Updated `LlmSearchJob` interface with `isSeen` property and added `LlmSearchJobNotification` type
68
68
 
69
69
  ### Migration
70
70
 
71
- - **Migration File**: `0031_make_forager_id_optional_for_ghost_genius.sql`
72
- - Makes `forager_id` column nullable
73
- - Updates unique constraint to allow multiple NULL values
74
- - Updates identifier check constraint to allow `forager_id` to be NULL
71
+ - **Migration File**: `0066_add_llm_search_job_notifications.sql`
72
+ - Creates the notification table and associated triggers for `updated_at`
73
+
74
+ ## [12.54.25] - 2025-12-18
75
75
 
76
76
  ## [11.14.7] - 2025-10-20
77
77
 
@@ -703,8 +703,7 @@ The RDS schema now focuses exclusively on the main `eggi_main` database with pro
703
703
 
704
704
  - Better database connection pooling
705
705
  - Optimized query performance for large datasets
706
-
707
- - Same credentials work for both connection types
706
+ - Same credentials work for both connection types
708
707
 
709
708
  3. **Code Changes**:
710
709
  - No changes needed if using `getDatabaseUrl()` or `getCredentials()`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eggi-ai-db-schema-2",
3
- "version": "12.54.26",
3
+ "version": "12.54.27",
4
4
  "description": "Type-safe database schema with native PostgreSQL queries for Eggi.AI with direct RDS connection",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",