@adaptware/eagles-db 0.5.15 → 0.5.16
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 +3 -4
- package/client/index.js +3 -4
- package/client/libquery_engine-darwin.dylib.node +0 -0
- package/client/wasm.js +3 -4
- package/package.json +1 -1
- package/prisma/.DS_Store +0 -0
- package/prisma/migrations/20260519120000_migrate_shortlisted_to_selected/migration.sql +2 -0
- package/prisma/schema/.DS_Store +0 -0
- package/prisma/schema/migrations/20260519120000_add_analytics_schema/migration.sql +84 -0
- package/prisma/schema/migrations/20260625120000_add_interviewer_analytics/migration.sql +26 -0
- package/prisma/schema/migrations/20260629120000_add_user_lifecycle_activity_events/migration.sql +13 -0
- package/prisma/schema/migrations/20260629140000_drop_organisation_org_code/migration.sql +2 -0
- package/prisma/schema/migrations/20260629160000_employee_codes_dual_interviewer_analytics/migration.sql +87 -0
- package/prisma/schema/migrations/20260630120000_add_application_sources/migration.sql +38 -0
- package/prisma/schema/migrations/20260701120000_add_source_effectiveness_analytics/migration.sql +40 -0
- package/prisma/schema/migrations/20260702120000_add_analytics_daily_tables/migration.sql +232 -0
- package/prisma/schema/migrations/20260716120000_evaluation_category_four_values/migration.sql +204 -0
- package/prisma/schema/migrations/20260716130000_application_withdrawn_analytics/migration.sql +31 -0
- package/prisma/schema/migrations/20260522120000_ongoing_evaluation_record_kind/migration.sql +0 -25
- package/prisma/schema/migrations/20260523120000_replace_record_kind_with_is_committed/migration.sql +0 -24
- package/prisma/schema/migrations/20260528120000_drop_job_description_recommendation_config/migration.sql +0 -2
- package/prisma/schema/migrations/20260710120000_add_resume_rendered_export_fields/migration.sql +0 -9
- package/prisma/schema/migrations/20260714120000_add_job_description_display_html_document/migration.sql +0 -8
- package/prisma/schema/migrations/20260716120000_add_offer_letters/migration.sql +0 -183
- package/prisma/schema/migrations/20260716140000_offer_schema_refinements/migration.sql +0 -13
- package/prisma/schema/migrations/20260716160000_offer_schema_hardening/migration.sql +0 -95
- package/prisma/schema/migrations/20260716180000_offer_letter_template_config/migration.sql +0 -2
- package/prisma/schema/migrations/20260716190000_add_evaluation_focus_areas/migration.sql +0 -6
- package/prisma/schema/migrations/20260717120000_offer_workflow_approval/migration.sql +0 -30
- package/prisma/schema/migrations/20260720120000_offer_letter_template_is_draft/migration.sql +0 -5
- package/prisma/schema/migrations/20260720140000_offer_status_split/migration.sql +0 -51
- package/prisma/schema/migrations/20260720140001_offer_status_split_backfill/migration.sql +0 -37
- package/prisma/schema/migrations/20260722120000_offer_draft_edited_html/migration.sql +0 -13
- package/prisma/schema/migrations/20260723150000_offer_withdraw_actor_no_show_reason/migration.sql +0 -10
- package/prisma/schema/migrations/20260724120000_open_job_offer_accepted_declined_counts/migration.sql +0 -7
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
-- CreateEnum
|
|
2
|
-
CREATE TYPE "OfferStatus" AS ENUM ('OPEN', 'ACCEPTED', 'DECLINED', 'EXPIRED', 'WITHDRAWN', 'JOINED', 'NO_SHOW');
|
|
3
|
-
|
|
4
|
-
-- AlterEnum: ApplicationStatus — offer pipeline stages
|
|
5
|
-
-- Must be committed before OFFER/HIRED are used in UPDATE (see next migration).
|
|
6
|
-
ALTER TYPE "ApplicationStatus" ADD VALUE 'OFFER';
|
|
7
|
-
ALTER TYPE "ApplicationStatus" ADD VALUE 'HIRED';
|
|
8
|
-
|
|
9
|
-
-- AlterTable: Offer — status + no-show
|
|
10
|
-
ALTER TABLE "Offer" ADD COLUMN "status" "OfferStatus" NOT NULL DEFAULT 'OPEN',
|
|
11
|
-
ADD COLUMN "no_show_at" TIMESTAMP(3);
|
|
12
|
-
|
|
13
|
-
-- Backfill Offer.status from legacy substatus outcomes
|
|
14
|
-
UPDATE "Offer"
|
|
15
|
-
SET "status" = CASE
|
|
16
|
-
WHEN "substatus" IN (
|
|
17
|
-
'OFFER_CREATED',
|
|
18
|
-
'PENDING_APPROVAL',
|
|
19
|
-
'OFFER_SENT',
|
|
20
|
-
'VIEWED',
|
|
21
|
-
'CHANGE_REQUESTED',
|
|
22
|
-
'CHANGE_UNDER_REVIEW',
|
|
23
|
-
'COUNTER_OFFER_SENT'
|
|
24
|
-
) THEN 'OPEN'::"OfferStatus"
|
|
25
|
-
WHEN "substatus" = 'ACCEPTED' THEN 'ACCEPTED'::"OfferStatus"
|
|
26
|
-
WHEN "substatus" = 'DECLINED' THEN 'DECLINED'::"OfferStatus"
|
|
27
|
-
WHEN "substatus" = 'EXPIRED' THEN 'EXPIRED'::"OfferStatus"
|
|
28
|
-
WHEN "substatus" = 'WITHDRAWN' THEN 'WITHDRAWN'::"OfferStatus"
|
|
29
|
-
WHEN "substatus" = 'JOINED' THEN 'JOINED'::"OfferStatus"
|
|
30
|
-
ELSE 'OPEN'::"OfferStatus"
|
|
31
|
-
END;
|
|
32
|
-
|
|
33
|
-
-- Clear substatus for terminal outcomes
|
|
34
|
-
UPDATE "Offer"
|
|
35
|
-
SET "substatus" = NULL
|
|
36
|
-
WHERE "status" IN ('ACCEPTED', 'DECLINED', 'EXPIRED', 'WITHDRAWN', 'JOINED');
|
|
37
|
-
|
|
38
|
-
ALTER TABLE "Offer" ALTER COLUMN "substatus" DROP DEFAULT;
|
|
39
|
-
ALTER TABLE "Offer" ALTER COLUMN "substatus" DROP NOT NULL;
|
|
40
|
-
|
|
41
|
-
-- AlterTable: Application — offer_status mirror
|
|
42
|
-
ALTER TABLE "Application" ADD COLUMN "offer_status" "OfferStatus";
|
|
43
|
-
|
|
44
|
-
-- Backfill Application offer mirrors from active offers
|
|
45
|
-
UPDATE "Application" a
|
|
46
|
-
SET
|
|
47
|
-
"offer_status" = o."status",
|
|
48
|
-
"offer_substatus" = o."substatus"
|
|
49
|
-
FROM "Offer" o
|
|
50
|
-
WHERE o."application_id" = a."id"
|
|
51
|
-
AND o."is_active" = true;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
-- ApplicationStatus OFFER/HIRED were added in the prior migration; safe to use after commit.
|
|
2
|
-
|
|
3
|
-
-- Backfill Application pipeline stage
|
|
4
|
-
UPDATE "Application"
|
|
5
|
-
SET "status" = 'HIRED'::"ApplicationStatus"
|
|
6
|
-
WHERE "offer_status" = 'JOINED'::"OfferStatus";
|
|
7
|
-
|
|
8
|
-
UPDATE "Application"
|
|
9
|
-
SET "status" = 'OFFER'::"ApplicationStatus"
|
|
10
|
-
WHERE "offer_status" IS NOT NULL
|
|
11
|
-
AND "offer_status" <> 'JOINED'::"OfferStatus";
|
|
12
|
-
|
|
13
|
-
-- Slim OfferSubstatus: remove terminal values
|
|
14
|
-
CREATE TYPE "OfferSubstatus_new" AS ENUM (
|
|
15
|
-
'OFFER_CREATED',
|
|
16
|
-
'PENDING_APPROVAL',
|
|
17
|
-
'OFFER_SENT',
|
|
18
|
-
'VIEWED',
|
|
19
|
-
'CHANGE_REQUESTED',
|
|
20
|
-
'CHANGE_UNDER_REVIEW',
|
|
21
|
-
'COUNTER_OFFER_SENT'
|
|
22
|
-
);
|
|
23
|
-
|
|
24
|
-
ALTER TABLE "Offer"
|
|
25
|
-
ALTER COLUMN "substatus" TYPE "OfferSubstatus_new"
|
|
26
|
-
USING ("substatus"::text::"OfferSubstatus_new");
|
|
27
|
-
|
|
28
|
-
ALTER TABLE "Application"
|
|
29
|
-
ALTER COLUMN "offer_substatus" TYPE "OfferSubstatus_new"
|
|
30
|
-
USING ("offer_substatus"::text::"OfferSubstatus_new");
|
|
31
|
-
|
|
32
|
-
DROP TYPE "OfferSubstatus";
|
|
33
|
-
ALTER TYPE "OfferSubstatus_new" RENAME TO "OfferSubstatus";
|
|
34
|
-
|
|
35
|
-
-- CreateIndex
|
|
36
|
-
CREATE INDEX "Offer_organisation_id_status_idx" ON "Offer"("organisation_id", "status");
|
|
37
|
-
CREATE INDEX "Offer_status_idx" ON "Offer"("status");
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
-- Offer-scoped draft letter HTML (never mutates OfferLetterTemplate).
|
|
2
|
-
ALTER TABLE "public"."Offer"
|
|
3
|
-
ADD COLUMN "draft_edited_html_document_id" TEXT;
|
|
4
|
-
|
|
5
|
-
CREATE INDEX "Offer_draft_edited_html_document_id_idx"
|
|
6
|
-
ON "public"."Offer"("draft_edited_html_document_id");
|
|
7
|
-
|
|
8
|
-
ALTER TABLE "public"."Offer"
|
|
9
|
-
ADD CONSTRAINT "Offer_draft_edited_html_document_id_fkey"
|
|
10
|
-
FOREIGN KEY ("draft_edited_html_document_id")
|
|
11
|
-
REFERENCES "public"."Document"("id")
|
|
12
|
-
ON DELETE SET NULL
|
|
13
|
-
ON UPDATE CASCADE;
|
package/prisma/schema/migrations/20260723150000_offer_withdraw_actor_no_show_reason/migration.sql
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
-- CreateEnum
|
|
2
|
-
CREATE TYPE "public"."OfferWithdrawActor" AS ENUM ('CANDIDATE', 'ORGANISATION');
|
|
3
|
-
|
|
4
|
-
-- CreateEnum
|
|
5
|
-
CREATE TYPE "public"."OfferNoShowReason" AS ENUM ('ACCEPTED_ELSEWHERE', 'OTHER');
|
|
6
|
-
|
|
7
|
-
-- AlterTable
|
|
8
|
-
ALTER TABLE "public"."Offer"
|
|
9
|
-
ADD COLUMN "withdraw_actor" "public"."OfferWithdrawActor",
|
|
10
|
-
ADD COLUMN "no_show_reason" "public"."OfferNoShowReason";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
ALTER TABLE analytics.open_job_analytics
|
|
2
|
-
ADD COLUMN IF NOT EXISTS offer_accepted_count INT NOT NULL DEFAULT 0,
|
|
3
|
-
ADD COLUMN IF NOT EXISTS offer_declined_count INT NOT NULL DEFAULT 0;
|
|
4
|
-
|
|
5
|
-
ALTER TABLE analytics.open_job_analytics_daily
|
|
6
|
-
ADD COLUMN IF NOT EXISTS offer_accepted_count INT NOT NULL DEFAULT 0,
|
|
7
|
-
ADD COLUMN IF NOT EXISTS offer_declined_count INT NOT NULL DEFAULT 0;
|