@adaptware/eagles-db 0.1.84 → 0.1.85
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.
- package/client/edge.js +41 -20
- package/client/index-browser.js +36 -15
- package/client/index.d.ts +1434 -1100
- package/client/index.js +41 -20
- package/client/libquery_engine-darwin.dylib.node +0 -0
- package/client/package.json +1 -1
- package/client/schema.prisma +62 -44
- package/client/wasm.js +36 -15
- package/package.json +1 -1
- package/prisma/schema/assessmentLibrary.prisma +26 -15
- package/prisma/schema/authModule.prisma +1 -0
- package/prisma/schema/evaluationPlan.prisma +2 -1
- package/prisma/schema/interview.prisma +21 -20
- package/prisma/schema/ongoingEvaluation.prisma +30 -26
- package/prisma/schema/user.prisma +2 -1
- package/prisma/.DS_Store +0 -0
- package/prisma/migrations/20260415120000_remove_job_profile_current_phase/migration.sql +0 -2
- package/prisma/migrations/20260422120000_add_integration_provider_zoom/migration.sql +0 -2
- package/prisma/migrations/20260422140000_add_zoom_meeting_tables/migration.sql +0 -57
- package/prisma/migrations/20260422180000_add_zoom_webhook_event/migration.sql +0 -18
- package/prisma/migrations/20260423140000_add_interview_platform/migration.sql +0 -6
- package/prisma/migrations/20260423150000_remove_interview_zoom_topic/migration.sql +0 -2
- package/prisma/migrations/20260423160000_zoom_meeting_uuid/migration.sql +0 -4
- package/prisma/migrations/20260424120000_auth_module_user_provider_unique/migration.sql +0 -5
- package/prisma/migrations/20260424130000_zoom_meeting_zoom_host_user_id/migration.sql +0 -6
- package/prisma/migrations/20260425100000_zoom_participant_user_enum/migration.sql +0 -22
- package/prisma/migrations/20260425110000_zoom_participant_zoom_id_required/migration.sql +0 -13
- package/prisma/migrations/20260425120000_zoom_participant_id_nullable/migration.sql +0 -4
- package/prisma/migrations/20260429140000_drop_evaluation_plan_job_order_unique/migration.sql +0 -5
- package/prisma/migrations/20260429180000_eval_plan_timeline_optional_ongoing_duration/migration.sql +0 -15
- package/prisma/migrations/20260430120000_drop_assessment_library_metadata_fields/migration.sql +0 -8
- package/prisma/migrations/migration_lock.toml +0 -3
|
@@ -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,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,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;
|
package/prisma/migrations/20260429140000_drop_evaluation_plan_job_order_unique/migration.sql
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
-- DropUnique: allows reorder/swap without a two-phase order_no dance; ordering is enforced in app logic.
|
|
2
|
-
ALTER TABLE "EvaluationPlan" DROP CONSTRAINT IF EXISTS "EvaluationPlan_job_description_id_order_no_key";
|
|
3
|
-
|
|
4
|
-
-- Non-unique index for lookups by job + order (e.g. swap).
|
|
5
|
-
CREATE INDEX "EvaluationPlan_job_description_id_order_no_idx" ON "EvaluationPlan"("job_description_id", "order_no");
|
package/prisma/migrations/20260429180000_eval_plan_timeline_optional_ongoing_duration/migration.sql
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
-- EvaluationPlan.timeline optional (legacy column; app uses duration/deadline/duration_unit).
|
|
2
|
-
ALTER TABLE "EvaluationPlan" ALTER COLUMN "timeline" DROP NOT NULL;
|
|
3
|
-
|
|
4
|
-
-- OngoingEvaluation: denormalized duration fields; migrate legacy timeline into duration (minutes) then drop timeline.
|
|
5
|
-
ALTER TABLE "OngoingEvaluation" ADD COLUMN "duration" INTEGER;
|
|
6
|
-
ALTER TABLE "OngoingEvaluation" ADD COLUMN "deadline" INTEGER;
|
|
7
|
-
ALTER TABLE "OngoingEvaluation" ADD COLUMN "duration_unit" "DurationUnit";
|
|
8
|
-
|
|
9
|
-
UPDATE "OngoingEvaluation"
|
|
10
|
-
SET
|
|
11
|
-
"duration" = "timeline",
|
|
12
|
-
"duration_unit" = 'MINUTES'::"DurationUnit"
|
|
13
|
-
WHERE "timeline" IS NOT NULL AND "duration" IS NULL;
|
|
14
|
-
|
|
15
|
-
ALTER TABLE "OngoingEvaluation" DROP COLUMN IF EXISTS "timeline";
|
package/prisma/migrations/20260430120000_drop_assessment_library_metadata_fields/migration.sql
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
-- Remove unused AssessmentLibrary metadata columns.
|
|
2
|
-
ALTER TABLE "AssessmentLibrary" DROP COLUMN IF EXISTS "assessment_type";
|
|
3
|
-
ALTER TABLE "AssessmentLibrary" DROP COLUMN IF EXISTS "description";
|
|
4
|
-
ALTER TABLE "AssessmentLibrary" DROP COLUMN IF EXISTS "assessment_category";
|
|
5
|
-
ALTER TABLE "AssessmentLibrary" DROP COLUMN IF EXISTS "created_by_ai";
|
|
6
|
-
|
|
7
|
-
-- Enum only referenced by dropped column.
|
|
8
|
-
DROP TYPE IF EXISTS "AssessmentCategory";
|