@adaptware/eagles-db 0.1.82 → 0.1.83

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 (24) hide show
  1. package/client/edge.js +6 -6
  2. package/client/index-browser.js +1 -1
  3. package/client/index.d.ts +101 -101
  4. package/client/index.js +6 -6
  5. package/client/libquery_engine-darwin.dylib.node +0 -0
  6. package/client/package.json +1 -1
  7. package/client/schema.prisma +1 -1
  8. package/client/wasm.js +1 -1
  9. package/package.json +1 -1
  10. package/prisma/schema/interview.prisma +21 -20
  11. package/prisma/.DS_Store +0 -0
  12. package/prisma/migrations/20260415120000_remove_job_profile_current_phase/migration.sql +0 -2
  13. package/prisma/migrations/20260422120000_add_integration_provider_zoom/migration.sql +0 -2
  14. package/prisma/migrations/20260422140000_add_zoom_meeting_tables/migration.sql +0 -57
  15. package/prisma/migrations/20260422180000_add_zoom_webhook_event/migration.sql +0 -18
  16. package/prisma/migrations/20260423140000_add_interview_platform/migration.sql +0 -6
  17. package/prisma/migrations/20260423150000_remove_interview_zoom_topic/migration.sql +0 -2
  18. package/prisma/migrations/20260423160000_zoom_meeting_uuid/migration.sql +0 -4
  19. package/prisma/migrations/20260424120000_auth_module_user_provider_unique/migration.sql +0 -5
  20. package/prisma/migrations/20260424130000_zoom_meeting_zoom_host_user_id/migration.sql +0 -6
  21. package/prisma/migrations/20260425100000_zoom_participant_user_enum/migration.sql +0 -22
  22. package/prisma/migrations/20260425110000_zoom_participant_zoom_id_required/migration.sql +0 -13
  23. package/prisma/migrations/20260425120000_zoom_participant_id_nullable/migration.sql +0 -4
  24. package/prisma/migrations/migration_lock.toml +0 -3
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "prisma-client-8998d26d2f1ef17bbd9d1b29add72c8f38339c98ed1cca6f9bbd1425c1e16bb0",
2
+ "name": "prisma-client-ae719f3b3d43a9f1b3944236fd3132e83186e01c020356d95ee70d90332c232a",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -774,6 +774,7 @@ model Interview {
774
774
  application_id String?
775
775
  resume_id String
776
776
  job_description_id String
777
+ calendar_event_id String?
777
778
  /// Data
778
779
  room_name String?
779
780
  interview_summary String[]
@@ -784,7 +785,6 @@ model Interview {
784
785
  recording_url String?
785
786
  interview_status InterviewStatus @default(SCHEDULED)
786
787
  interview_platform InterviewPlatform @default(TREADSPACE)
787
- google_event_id String?
788
788
  /// Old Feedback fields will be deprecated soon
789
789
  ai_interview_feedback InterviewFeedback?
790
790
  interview_feedback InterviewFeedback?
package/client/wasm.js CHANGED
@@ -526,6 +526,7 @@ exports.Prisma.InterviewScalarFieldEnum = {
526
526
  application_id: 'application_id',
527
527
  resume_id: 'resume_id',
528
528
  job_description_id: 'job_description_id',
529
+ calendar_event_id: 'calendar_event_id',
529
530
  room_name: 'room_name',
530
531
  interview_summary: 'interview_summary',
531
532
  scheduled_start_time: 'scheduled_start_time',
@@ -535,7 +536,6 @@ exports.Prisma.InterviewScalarFieldEnum = {
535
536
  recording_url: 'recording_url',
536
537
  interview_status: 'interview_status',
537
538
  interview_platform: 'interview_platform',
538
- google_event_id: 'google_event_id',
539
539
  ai_interview_feedback: 'ai_interview_feedback',
540
540
  interview_feedback: 'interview_feedback',
541
541
  overall_feedback: 'overall_feedback',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptware/eagles-db",
3
- "version": "0.1.82",
3
+ "version": "0.1.83",
4
4
  "description": "A Prisma client package for Treadspace database operations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -30,6 +30,7 @@ model Interview {
30
30
  application_id String?
31
31
  resume_id String
32
32
  job_description_id String
33
+ calendar_event_id String?
33
34
  /// Data
34
35
  room_name String?
35
36
  interview_summary String[]
@@ -40,7 +41,6 @@ model Interview {
40
41
  recording_url String?
41
42
  interview_status InterviewStatus @default(SCHEDULED)
42
43
  interview_platform InterviewPlatform @default(TREADSPACE)
43
- google_event_id String?
44
44
  /// Old Feedback fields will be deprecated soon
45
45
  ai_interview_feedback InterviewFeedback?
46
46
  interview_feedback InterviewFeedback?
@@ -55,26 +55,27 @@ model Interview {
55
55
  final_feedback Json?
56
56
 
57
57
  /// Audit fields
58
- created_at DateTime @default(now())
59
- updated_at DateTime @updatedAt
60
- created_by String
61
- updated_by String
62
- is_active Boolean @default(true)
58
+ created_at DateTime @default(now())
59
+ updated_at DateTime @updatedAt
60
+ created_by String
61
+ updated_by String
62
+ is_active Boolean @default(true)
63
63
  // Relations
64
- candidate User? @relation("CandidateInterviews", fields: [candidate_id], references: [id], onDelete: SetNull)
65
- interviewer User? @relation("InterviewerInterviews", fields: [interviewer_id], references: [id], onDelete: SetNull)
66
- organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
67
- job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
68
- resume Resume @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
69
- evaluation_plan EvaluationPlan? @relation(fields: [evaluation_plan_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
70
- application Application? @relation(fields: [application_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
71
- ongoing_evaluation OngoingEvaluation?
72
- transcripts Transcript[]
73
- suggestions Suggestion[]
74
- feedback Feedback[]
75
- interviewNotes InterviewNotes[]
76
- liveAnalysis LiveAnalysis[]
77
- zoom_meeting ZoomMeeting?
64
+ candidate User? @relation("CandidateInterviews", fields: [candidate_id], references: [id], onDelete: SetNull)
65
+ interviewer User? @relation("InterviewerInterviews", fields: [interviewer_id], references: [id], onDelete: SetNull)
66
+ organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
67
+ job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
68
+ resume Resume @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
69
+ evaluation_plan EvaluationPlan? @relation(fields: [evaluation_plan_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
70
+ application Application? @relation(fields: [application_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
71
+ ongoing_evaluation OngoingEvaluation?
72
+ transcripts Transcript[]
73
+ suggestions Suggestion[]
74
+ feedback Feedback[]
75
+ interviewNotes InterviewNotes[]
76
+ liveAnalysis LiveAnalysis[]
77
+ zoom_meeting ZoomMeeting?
78
+
78
79
  @@unique([interviewer_id, candidate_id, evaluation_plan_id])
79
80
  @@index([candidate_id])
80
81
  @@index([interviewer_id])
package/prisma/.DS_Store DELETED
Binary file
@@ -1,2 +0,0 @@
1
- -- AlterTable
2
- ALTER TABLE "JobProfile" DROP COLUMN IF EXISTS "current_phase";
@@ -1,2 +0,0 @@
1
- -- AlterEnum (re-run safe only if your PG version supports IF NOT EXISTS; otherwise apply once)
2
- ALTER TYPE "IntegrationProvider" ADD VALUE 'ZOOM';
@@ -1,57 +0,0 @@
1
- -- CreateTable
2
- CREATE TABLE "ZoomMeeting" (
3
- "id" TEXT NOT NULL,
4
- "interview_id" TEXT NOT NULL,
5
- "zoom_meeting_id" TEXT NOT NULL,
6
- "meeting_number" TEXT NOT NULL,
7
- "join_url" TEXT NOT NULL,
8
- "start_url" TEXT,
9
- "password" TEXT,
10
- "topic" TEXT,
11
- "scheduled_start_time" TIMESTAMP(3),
12
- "scheduled_end_time" TIMESTAMP(3),
13
- "is_active" BOOLEAN NOT NULL DEFAULT true,
14
- "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
15
- "updated_at" TIMESTAMP(3) NOT NULL,
16
- "created_by" TEXT NOT NULL,
17
- "updated_by" TEXT NOT NULL,
18
-
19
- CONSTRAINT "ZoomMeeting_pkey" PRIMARY KEY ("id")
20
- );
21
-
22
- -- CreateTable
23
- CREATE TABLE "ZoomMeetingParticipant" (
24
- "id" TEXT NOT NULL,
25
- "zoom_meeting_row_id" TEXT NOT NULL,
26
- "zoom_participant_id" TEXT,
27
- "user_name" TEXT,
28
- "user_email" TEXT,
29
- "role" TEXT,
30
- "join_time" TIMESTAMP(3),
31
- "leave_time" TIMESTAMP(3),
32
- "is_active" BOOLEAN NOT NULL DEFAULT true,
33
- "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
34
- "updated_at" TIMESTAMP(3) NOT NULL,
35
- "created_by" TEXT NOT NULL,
36
- "updated_by" TEXT NOT NULL,
37
-
38
- CONSTRAINT "ZoomMeetingParticipant_pkey" PRIMARY KEY ("id")
39
- );
40
-
41
- -- CreateIndex
42
- CREATE UNIQUE INDEX "ZoomMeeting_interview_id_key" ON "ZoomMeeting"("interview_id");
43
-
44
- -- CreateIndex
45
- CREATE INDEX "ZoomMeeting_interview_id_idx" ON "ZoomMeeting"("interview_id");
46
-
47
- -- CreateIndex
48
- CREATE INDEX "ZoomMeeting_zoom_meeting_id_idx" ON "ZoomMeeting"("zoom_meeting_id");
49
-
50
- -- CreateIndex
51
- CREATE INDEX "ZoomMeetingParticipant_zoom_meeting_row_id_idx" ON "ZoomMeetingParticipant"("zoom_meeting_row_id");
52
-
53
- -- AddForeignKey
54
- ALTER TABLE "ZoomMeeting" ADD CONSTRAINT "ZoomMeeting_interview_id_fkey" FOREIGN KEY ("interview_id") REFERENCES "Interview"("id") ON DELETE CASCADE ON UPDATE CASCADE;
55
-
56
- -- AddForeignKey
57
- ALTER TABLE "ZoomMeetingParticipant" ADD CONSTRAINT "ZoomMeetingParticipant_zoom_meeting_row_id_fkey" FOREIGN KEY ("zoom_meeting_row_id") REFERENCES "ZoomMeeting"("id") ON DELETE CASCADE ON UPDATE CASCADE;
@@ -1,18 +0,0 @@
1
- -- CreateTable
2
- CREATE TABLE "ZoomWebhookEvent" (
3
- "id" TEXT NOT NULL,
4
- "dedupe_key" TEXT NOT NULL,
5
- "event" TEXT NOT NULL,
6
- "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
7
-
8
- CONSTRAINT "ZoomWebhookEvent_pkey" PRIMARY KEY ("id")
9
- );
10
-
11
- -- CreateIndex
12
- CREATE UNIQUE INDEX "ZoomWebhookEvent_dedupe_key_key" ON "ZoomWebhookEvent"("dedupe_key");
13
-
14
- -- CreateIndex
15
- CREATE INDEX "ZoomWebhookEvent_event_idx" ON "ZoomWebhookEvent"("event");
16
-
17
- -- CreateIndex
18
- CREATE INDEX "ZoomWebhookEvent_created_at_idx" ON "ZoomWebhookEvent"("created_at");
@@ -1,6 +0,0 @@
1
- -- CreateEnum
2
- CREATE TYPE "InterviewPlatform" AS ENUM ('TREADSPACE', 'ZOOM');
3
-
4
- -- AlterTable
5
- ALTER TABLE "Interview" ADD COLUMN "interview_platform" "InterviewPlatform" NOT NULL DEFAULT 'TREADSPACE';
6
- ALTER TABLE "Interview" ADD COLUMN "zoom_topic" TEXT;
@@ -1,2 +0,0 @@
1
- -- AlterTable
2
- ALTER TABLE "Interview" DROP COLUMN IF EXISTS "zoom_topic";
@@ -1,4 +0,0 @@
1
- -- Zoom meeting instance UUID for RTMS `meeting.rtms_started` correlation (webhook `meeting_uuid`).
2
- ALTER TABLE "ZoomMeeting" ADD COLUMN IF NOT EXISTS "zoom_meeting_uuid" TEXT;
3
-
4
- CREATE INDEX IF NOT EXISTS "ZoomMeeting_zoom_meeting_uuid_idx" ON "ZoomMeeting"("zoom_meeting_uuid");
@@ -1,5 +0,0 @@
1
- -- AlterTable
2
- ALTER TABLE "AuthModule" ADD COLUMN "metadata" JSONB NOT NULL DEFAULT '{}';
3
-
4
- -- CreateIndex
5
- CREATE UNIQUE INDEX "AuthModule_user_id_provider_key" ON "AuthModule"("user_id", "provider");
@@ -1,6 +0,0 @@
1
- -- AlterTable
2
- ALTER TABLE "ZoomMeeting" ADD COLUMN "zoom_host_user_id" TEXT;
3
-
4
- UPDATE "ZoomMeeting" SET "zoom_host_user_id" = "created_by";
5
-
6
- ALTER TABLE "ZoomMeeting" ALTER COLUMN "zoom_host_user_id" SET NOT NULL;
@@ -1,22 +0,0 @@
1
- -- CreateEnum
2
- CREATE TYPE "ZoomMeetingParticipantRole" AS ENUM ('CANDIDATE', 'INTERVIEWER');
3
-
4
- -- Participant rows are re-derived on the next Zoom meeting upsert; old webhook denormalized rows are dropped.
5
- TRUNCATE TABLE "ZoomMeetingParticipant";
6
-
7
- -- AlterTable
8
- ALTER TABLE "ZoomMeetingParticipant" DROP COLUMN "zoom_participant_id",
9
- DROP COLUMN "user_name",
10
- DROP COLUMN "user_email",
11
- DROP COLUMN "join_time",
12
- DROP COLUMN "leave_time",
13
- DROP COLUMN "role";
14
-
15
- ALTER TABLE "ZoomMeetingParticipant" ADD COLUMN "role" "ZoomMeetingParticipantRole" NOT NULL;
16
- ALTER TABLE "ZoomMeetingParticipant" ADD COLUMN "user_id" TEXT NOT NULL;
17
-
18
- -- AddForeignKey
19
- ALTER TABLE "ZoomMeetingParticipant" ADD CONSTRAINT "ZoomMeetingParticipant_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
20
-
21
- -- CreateIndex
22
- CREATE INDEX "ZoomMeetingParticipant_user_id_idx" ON "ZoomMeetingParticipant"("user_id");
@@ -1,13 +0,0 @@
1
- -- AlterTable
2
- ALTER TABLE "ZoomMeetingParticipant" ADD COLUMN "zoom_participant_id" TEXT NOT NULL DEFAULT '';
3
-
4
- UPDATE "ZoomMeetingParticipant" zmp
5
- SET "zoom_participant_id" = COALESCE(NULLIF(TRIM(am."provider_account_id"), ''), '')
6
- FROM "AuthModule" am
7
- WHERE am."user_id" = zmp."user_id"
8
- AND am."provider"::text = 'ZOOM'
9
- AND am."is_active" = true;
10
-
11
- ALTER TABLE "ZoomMeetingParticipant" ALTER COLUMN "zoom_participant_id" DROP DEFAULT;
12
-
13
- CREATE INDEX "ZoomMeetingParticipant_zoom_participant_id_idx" ON "ZoomMeetingParticipant"("zoom_participant_id");
@@ -1,4 +0,0 @@
1
- -- Optional: only present when that User has Zoom OAuth linked (typically interviewer; often unknown for candidate).
2
- UPDATE "ZoomMeetingParticipant" SET "zoom_participant_id" = NULL WHERE "zoom_participant_id" = '';
3
-
4
- ALTER TABLE "ZoomMeetingParticipant" ALTER COLUMN "zoom_participant_id" DROP NOT NULL;
@@ -1,3 +0,0 @@
1
- # Please do not edit this file manually
2
- # It should be added in your version-control system (e.g. Git)
3
- provider = "postgresql"