@adaptware/eagles-db 0.5.39 → 0.5.41
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 +243 -11
- package/client/index-browser.js +236 -5
- package/client/index.d.ts +107488 -86871
- package/client/index.js +248 -16
- package/client/package.json +1 -1
- package/client/schema.prisma +491 -118
- package/client/wasm.js +243 -11
- package/package.json +1 -1
- package/prisma/schema/applications.prisma +29 -34
- package/prisma/schema/assessmentLibrary.prisma +2 -0
- package/prisma/schema/document.prisma +0 -1
- package/prisma/schema/evaluationPlan.prisma +9 -0
- package/prisma/schema/migrations/20260522120000_ongoing_evaluation_record_kind/migration.sql +25 -0
- package/prisma/schema/migrations/20260523120000_replace_record_kind_with_is_committed/migration.sql +24 -0
- package/prisma/schema/migrations/20260528120000_drop_job_description_recommendation_config/migration.sql +2 -0
- package/prisma/schema/migrations/20260710120000_add_resume_rendered_export_fields/migration.sql +9 -0
- package/prisma/schema/migrations/20260714120000_add_job_description_display_html_document/migration.sql +8 -0
- package/prisma/schema/migrations/20260716120000_add_offer_letters/migration.sql +183 -0
- package/prisma/schema/migrations/20260716140000_offer_schema_refinements/migration.sql +13 -0
- package/prisma/schema/migrations/20260716160000_offer_schema_hardening/migration.sql +95 -0
- package/prisma/schema/migrations/20260716180000_offer_letter_template_config/migration.sql +2 -0
- package/prisma/schema/migrations/20260716190000_add_evaluation_focus_areas/migration.sql +6 -0
- package/prisma/schema/migrations/20260717120000_offer_workflow_approval/migration.sql +30 -0
- package/prisma/schema/migrations/20260720120000_offer_letter_template_is_draft/migration.sql +5 -0
- package/prisma/schema/migrations/20260720140000_offer_status_split/migration.sql +51 -0
- package/prisma/schema/migrations/20260720140001_offer_status_split_backfill/migration.sql +37 -0
- package/prisma/schema/migrations/20260722120000_offer_draft_edited_html/migration.sql +13 -0
- package/prisma/schema/migrations/20260723150000_offer_withdraw_actor_no_show_reason/migration.sql +10 -0
- package/prisma/schema/migrations/20260724120000_open_job_offer_accepted_declined_counts/migration.sql +7 -0
- package/prisma/schema/migrations/20260811120000_add_integration_provider_razorpay/migration.sql +6 -0
- package/prisma/schema/migrations/20260812120000_add_billing_transactions/migration.sql +49 -0
- package/prisma/schema/migrations/20260812130000_drop_billing_transaction_gst_snapshots/migration.sql +3 -0
- package/prisma/schema/migrations/20260812180000_billing_transaction_invoice_number/migration.sql +5 -0
- package/prisma/schema/migrations/20260813120000_payment_webhooks_gst_refunds/migration.sql +79 -0
- package/prisma/schema/migrations/20260813140000_platform_gst_profiles/migration.sql +49 -0
- package/prisma/schema/migrations/20260813150000_rename_gst_profiles/migration.sql +53 -0
- package/prisma/schema/migrations/20260813160000_remove_gst_billing/migration.sql +16 -0
- package/prisma/schema/migrations/20260813170000_billing_licensing_unrecoverable/migration.sql +2 -0
- package/prisma/schema/migrations/20260813180000_billing_transaction_payment_method/migration.sql +2 -0
- package/prisma/schema/migrations/20260814090000_billing_transaction_purchaser_email/migration.sql +2 -0
- package/prisma/schema/migrations/20260816100000_billing_product_organisations/migration.sql +35 -0
- package/prisma/schema/migrations/20260816120000_merge_billing_product_organisations/migration.sql +25 -0
- package/prisma/schema/migrations/20260817120000_billing_payment_mismatch/migration.sql +7 -0
- package/prisma/schema/migrations/20260819120000_billing_product_prices/migration.sql +62 -0
- package/prisma/schema/migrations/20260819140000_billing_exchange_rates/migration.sql +25 -0
- package/prisma/schema/migrations/20260820120000_billing_transaction_failure_category/migration.sql +31 -0
- package/prisma/schema/migrations/20260820130000_backfill_billing_transaction_failure_details/migration.sql +23 -0
- package/prisma/schema/migrations/20260820140000_drop_billing_product_price_overrides/migration.sql +2 -0
- package/prisma/schema/migrations/20260821120000_drop_billing_product_and_mock_licensing/migration.sql +38 -0
- package/prisma/schema/migrations/20260824120000_billing_transaction_purchase_display_name/migration.sql +2 -0
- package/prisma/schema/migrations/20260831120000_user_communication_email/migration.sql +6 -0
- package/prisma/schema/migrations/20260901143000_assessment_question_bank_state/migration.sql +15 -0
- package/prisma/schema/migrations/20260902120000_question_category_two_values/migration.sql +16 -0
- package/prisma/schema/migrations/20260902143000_question_bank_item_key/migration.sql +17 -0
- package/prisma/schema/migrations/20260903120000_split_round_type_assessment/migration.sql +9 -0
- package/prisma/schema/migrations/20260904110000_restore_round_type_assessment_enum/migration.sql +5 -0
- package/prisma/schema/migrations/20260904120000_revert_wrong_split_assessment_round_types/migration.sql +42 -0
- package/prisma/schema/questions.prisma +13 -0
- package/prisma/.DS_Store +0 -0
- package/prisma/schema/.DS_Store +0 -0
- package/prisma/schema/migrations/.DS_Store +0 -0
- package/prisma/schema/migrations/20260826160000_add_application_fit_check_report_document/.DS_Store +0 -0
- package/prisma/schema/migrations/20260826160000_add_application_fit_check_report_document/migration.sql +0 -13
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
-- Revert evaluation plans that were incorrectly stored as split MCQ round types
|
|
2
|
+
-- back to legacy ASSESSMENT.
|
|
3
|
+
--
|
|
4
|
+
-- Does NOT change rows already on ASSESSMENT.
|
|
5
|
+
-- Keeps intentional new GENERAL_APTITUDE_ASSESSMENT / DOMAIN_KNOWLEDGE_ASSESSMENT
|
|
6
|
+
-- rounds when title or details show an explicit split-type configuration.
|
|
7
|
+
--
|
|
8
|
+
-- Requires 20260904110000_restore_round_type_assessment_enum to run first so
|
|
9
|
+
-- RoundType.ASSESSMENT exists (some DBs lost it during an earlier bad enum swap).
|
|
10
|
+
|
|
11
|
+
UPDATE "EvaluationPlan"
|
|
12
|
+
SET type_of_round = 'ASSESSMENT'
|
|
13
|
+
WHERE is_active = true
|
|
14
|
+
AND type_of_round IN ('GENERAL_APTITUDE_ASSESSMENT', 'DOMAIN_KNOWLEDGE_ASSESSMENT')
|
|
15
|
+
AND (
|
|
16
|
+
(
|
|
17
|
+
COALESCE((details #>> '{question_category_distribution,GENERAL_APTITUDE}')::int, 0) > 0
|
|
18
|
+
AND COALESCE((details #>> '{question_category_distribution,DOMAIN_KNOWLEDGE}')::int, 0) > 0
|
|
19
|
+
)
|
|
20
|
+
OR (
|
|
21
|
+
upper(COALESCE(details->>'primary_question_category', '')) = 'GENERAL_APTITUDE'
|
|
22
|
+
AND type_of_round = 'DOMAIN_KNOWLEDGE_ASSESSMENT'
|
|
23
|
+
)
|
|
24
|
+
OR (
|
|
25
|
+
upper(COALESCE(details->>'primary_question_category', '')) = 'DOMAIN_KNOWLEDGE'
|
|
26
|
+
AND type_of_round = 'GENERAL_APTITUDE_ASSESSMENT'
|
|
27
|
+
)
|
|
28
|
+
OR (
|
|
29
|
+
type_of_round = 'DOMAIN_KNOWLEDGE_ASSESSMENT'
|
|
30
|
+
AND lower(title) !~* '(domain knowledge|domain test|backend domain|frontend domain|\mdomain\M)'
|
|
31
|
+
AND COALESCE((details #>> '{question_category_distribution,GENERAL_APTITUDE}')::int, 0) = 0
|
|
32
|
+
AND COALESCE((details #>> '{question_category_distribution,DOMAIN_KNOWLEDGE}')::int, 0) = 0
|
|
33
|
+
AND NULLIF(trim(COALESCE(details->>'primary_question_category', '')), '') IS NULL
|
|
34
|
+
)
|
|
35
|
+
OR (
|
|
36
|
+
type_of_round = 'GENERAL_APTITUDE_ASSESSMENT'
|
|
37
|
+
AND lower(title) !~* '(aptitude|general aptitude|numerical|verbal reasoning|logical reasoning)'
|
|
38
|
+
AND COALESCE((details #>> '{question_category_distribution,GENERAL_APTITUDE}')::int, 0) = 0
|
|
39
|
+
AND COALESCE((details #>> '{question_category_distribution,DOMAIN_KNOWLEDGE}')::int, 0) = 0
|
|
40
|
+
AND NULLIF(trim(COALESCE(details->>'primary_question_category', '')), '') IS NULL
|
|
41
|
+
)
|
|
42
|
+
);
|
|
@@ -6,12 +6,24 @@ enum Difficulty {
|
|
|
6
6
|
@@schema("public")
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
enum QuestionCategory {
|
|
10
|
+
/// Aptitude, logical reasoning, numerical, verbal — non-domain general tests.
|
|
11
|
+
GENERAL_APTITUDE
|
|
12
|
+
/// Role/domain/technical knowledge (skills from JD and competencies).
|
|
13
|
+
DOMAIN_KNOWLEDGE
|
|
14
|
+
|
|
15
|
+
@@schema("public")
|
|
16
|
+
}
|
|
17
|
+
|
|
9
18
|
model Question {
|
|
10
19
|
id String @id @default(uuid())
|
|
11
20
|
assessment_library_id String?
|
|
12
21
|
evaluation_plan_id String?
|
|
13
22
|
candidate_id String?
|
|
14
23
|
skill String?
|
|
24
|
+
category QuestionCategory?
|
|
25
|
+
/// Stable idempotency key for reusable bank rows: `{generationSeed}:{planSlot}`.
|
|
26
|
+
bank_item_key String?
|
|
15
27
|
question String
|
|
16
28
|
answer String
|
|
17
29
|
options String[] // For MCQ's
|
|
@@ -28,5 +40,6 @@ model Question {
|
|
|
28
40
|
evaluationPlan EvaluationPlan? @relation(fields: [evaluation_plan_id], references: [id], onDelete: SetNull)
|
|
29
41
|
candidateResponse CandidateQuestionResponse[]
|
|
30
42
|
|
|
43
|
+
@@unique([assessment_library_id, bank_item_key])
|
|
31
44
|
@@schema("public")
|
|
32
45
|
}
|
package/prisma/.DS_Store
DELETED
|
Binary file
|
package/prisma/schema/.DS_Store
DELETED
|
Binary file
|
|
Binary file
|
package/prisma/schema/migrations/20260826160000_add_application_fit_check_report_document/.DS_Store
DELETED
|
Binary file
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
ALTER TABLE "Application"
|
|
2
|
-
ADD COLUMN IF NOT EXISTS "fit_check_report_document_id" TEXT,
|
|
3
|
-
ADD COLUMN IF NOT EXISTS "fit_check_report_updated_flag" BOOLEAN NOT NULL DEFAULT FALSE;
|
|
4
|
-
|
|
5
|
-
CREATE UNIQUE INDEX IF NOT EXISTS "Application_fit_check_report_document_id_key"
|
|
6
|
-
ON "Application"("fit_check_report_document_id");
|
|
7
|
-
|
|
8
|
-
ALTER TABLE "Application"
|
|
9
|
-
DROP CONSTRAINT IF EXISTS "Application_fit_check_report_document_id_fkey",
|
|
10
|
-
ADD CONSTRAINT "Application_fit_check_report_document_id_fkey"
|
|
11
|
-
FOREIGN KEY ("fit_check_report_document_id")
|
|
12
|
-
REFERENCES "Document"("id")
|
|
13
|
-
ON DELETE SET NULL ON UPDATE CASCADE;
|