@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.
Files changed (63) hide show
  1. package/client/edge.js +243 -11
  2. package/client/index-browser.js +236 -5
  3. package/client/index.d.ts +107488 -86871
  4. package/client/index.js +248 -16
  5. package/client/package.json +1 -1
  6. package/client/schema.prisma +491 -118
  7. package/client/wasm.js +243 -11
  8. package/package.json +1 -1
  9. package/prisma/schema/applications.prisma +29 -34
  10. package/prisma/schema/assessmentLibrary.prisma +2 -0
  11. package/prisma/schema/document.prisma +0 -1
  12. package/prisma/schema/evaluationPlan.prisma +9 -0
  13. package/prisma/schema/migrations/20260522120000_ongoing_evaluation_record_kind/migration.sql +25 -0
  14. package/prisma/schema/migrations/20260523120000_replace_record_kind_with_is_committed/migration.sql +24 -0
  15. package/prisma/schema/migrations/20260528120000_drop_job_description_recommendation_config/migration.sql +2 -0
  16. package/prisma/schema/migrations/20260710120000_add_resume_rendered_export_fields/migration.sql +9 -0
  17. package/prisma/schema/migrations/20260714120000_add_job_description_display_html_document/migration.sql +8 -0
  18. package/prisma/schema/migrations/20260716120000_add_offer_letters/migration.sql +183 -0
  19. package/prisma/schema/migrations/20260716140000_offer_schema_refinements/migration.sql +13 -0
  20. package/prisma/schema/migrations/20260716160000_offer_schema_hardening/migration.sql +95 -0
  21. package/prisma/schema/migrations/20260716180000_offer_letter_template_config/migration.sql +2 -0
  22. package/prisma/schema/migrations/20260716190000_add_evaluation_focus_areas/migration.sql +6 -0
  23. package/prisma/schema/migrations/20260717120000_offer_workflow_approval/migration.sql +30 -0
  24. package/prisma/schema/migrations/20260720120000_offer_letter_template_is_draft/migration.sql +5 -0
  25. package/prisma/schema/migrations/20260720140000_offer_status_split/migration.sql +51 -0
  26. package/prisma/schema/migrations/20260720140001_offer_status_split_backfill/migration.sql +37 -0
  27. package/prisma/schema/migrations/20260722120000_offer_draft_edited_html/migration.sql +13 -0
  28. package/prisma/schema/migrations/20260723150000_offer_withdraw_actor_no_show_reason/migration.sql +10 -0
  29. package/prisma/schema/migrations/20260724120000_open_job_offer_accepted_declined_counts/migration.sql +7 -0
  30. package/prisma/schema/migrations/20260811120000_add_integration_provider_razorpay/migration.sql +6 -0
  31. package/prisma/schema/migrations/20260812120000_add_billing_transactions/migration.sql +49 -0
  32. package/prisma/schema/migrations/20260812130000_drop_billing_transaction_gst_snapshots/migration.sql +3 -0
  33. package/prisma/schema/migrations/20260812180000_billing_transaction_invoice_number/migration.sql +5 -0
  34. package/prisma/schema/migrations/20260813120000_payment_webhooks_gst_refunds/migration.sql +79 -0
  35. package/prisma/schema/migrations/20260813140000_platform_gst_profiles/migration.sql +49 -0
  36. package/prisma/schema/migrations/20260813150000_rename_gst_profiles/migration.sql +53 -0
  37. package/prisma/schema/migrations/20260813160000_remove_gst_billing/migration.sql +16 -0
  38. package/prisma/schema/migrations/20260813170000_billing_licensing_unrecoverable/migration.sql +2 -0
  39. package/prisma/schema/migrations/20260813180000_billing_transaction_payment_method/migration.sql +2 -0
  40. package/prisma/schema/migrations/20260814090000_billing_transaction_purchaser_email/migration.sql +2 -0
  41. package/prisma/schema/migrations/20260816100000_billing_product_organisations/migration.sql +35 -0
  42. package/prisma/schema/migrations/20260816120000_merge_billing_product_organisations/migration.sql +25 -0
  43. package/prisma/schema/migrations/20260817120000_billing_payment_mismatch/migration.sql +7 -0
  44. package/prisma/schema/migrations/20260819120000_billing_product_prices/migration.sql +62 -0
  45. package/prisma/schema/migrations/20260819140000_billing_exchange_rates/migration.sql +25 -0
  46. package/prisma/schema/migrations/20260820120000_billing_transaction_failure_category/migration.sql +31 -0
  47. package/prisma/schema/migrations/20260820130000_backfill_billing_transaction_failure_details/migration.sql +23 -0
  48. package/prisma/schema/migrations/20260820140000_drop_billing_product_price_overrides/migration.sql +2 -0
  49. package/prisma/schema/migrations/20260821120000_drop_billing_product_and_mock_licensing/migration.sql +38 -0
  50. package/prisma/schema/migrations/20260824120000_billing_transaction_purchase_display_name/migration.sql +2 -0
  51. package/prisma/schema/migrations/20260831120000_user_communication_email/migration.sql +6 -0
  52. package/prisma/schema/migrations/20260901143000_assessment_question_bank_state/migration.sql +15 -0
  53. package/prisma/schema/migrations/20260902120000_question_category_two_values/migration.sql +16 -0
  54. package/prisma/schema/migrations/20260902143000_question_bank_item_key/migration.sql +17 -0
  55. package/prisma/schema/migrations/20260903120000_split_round_type_assessment/migration.sql +9 -0
  56. package/prisma/schema/migrations/20260904110000_restore_round_type_assessment_enum/migration.sql +5 -0
  57. package/prisma/schema/migrations/20260904120000_revert_wrong_split_assessment_round_types/migration.sql +42 -0
  58. package/prisma/schema/questions.prisma +13 -0
  59. package/prisma/.DS_Store +0 -0
  60. package/prisma/schema/.DS_Store +0 -0
  61. package/prisma/schema/migrations/.DS_Store +0 -0
  62. package/prisma/schema/migrations/20260826160000_add_application_fit_check_report_document/.DS_Store +0 -0
  63. package/prisma/schema/migrations/20260826160000_add_application_fit_check_report_document/migration.sql +0 -13
@@ -281,10 +281,7 @@ exports.Prisma.ApplicationScalarFieldEnum = {
281
281
  updated_at: 'updated_at',
282
282
  created_by: 'created_by',
283
283
  updated_by: 'updated_by',
284
- is_active: 'is_active',
285
- fit_check_report_document_id: 'fit_check_report_document_id',
286
- fit_check_report_updated_flag: 'fit_check_report_updated_flag',
287
- fit_check_report_data: 'fit_check_report_data'
284
+ is_active: 'is_active'
288
285
  };
289
286
 
290
287
  exports.Prisma.ApprovalScalarFieldEnum = {
@@ -332,7 +329,8 @@ exports.Prisma.AssessmentLibraryScalarFieldEnum = {
332
329
  updated_at: 'updated_at',
333
330
  created_by: 'created_by',
334
331
  updated_by: 'updated_by',
335
- is_active: 'is_active'
332
+ is_active: 'is_active',
333
+ generation_state: 'generation_state'
336
334
  };
337
335
 
338
336
  exports.Prisma.AssessmentQuestionScalarFieldEnum = {
@@ -1433,6 +1431,159 @@ exports.Prisma.JobRoundAnalyticsDailyScalarFieldEnum = {
1433
1431
  avg_completion_minutes: 'avg_completion_minutes'
1434
1432
  };
1435
1433
 
1434
+ exports.Prisma.AiCostLedgerEntryScalarFieldEnum = {
1435
+ id: 'id',
1436
+ organisation_id: 'organisation_id',
1437
+ purchased_hiring_unit_id: 'purchased_hiring_unit_id',
1438
+ workflow_name: 'workflow_name',
1439
+ direction: 'direction',
1440
+ amount: 'amount',
1441
+ reason: 'reason',
1442
+ occurred_at: 'occurred_at',
1443
+ source_type: 'source_type',
1444
+ source_id: 'source_id',
1445
+ description: 'description',
1446
+ idempotency_key: 'idempotency_key',
1447
+ created_at: 'created_at',
1448
+ updated_at: 'updated_at',
1449
+ created_by: 'created_by',
1450
+ updated_by: 'updated_by',
1451
+ is_active: 'is_active'
1452
+ };
1453
+
1454
+ exports.Prisma.PurchasedHiringUnitAssignmentEventScalarFieldEnum = {
1455
+ id: 'id',
1456
+ purchased_hiring_unit_id: 'purchased_hiring_unit_id',
1457
+ event_kind: 'event_kind',
1458
+ previous_department_id: 'previous_department_id',
1459
+ new_department_id: 'new_department_id',
1460
+ previous_job_description_id: 'previous_job_description_id',
1461
+ new_job_description_id: 'new_job_description_id',
1462
+ effective_at: 'effective_at',
1463
+ created_by: 'created_by'
1464
+ };
1465
+
1466
+ exports.Prisma.LicensePackageScalarFieldEnum = {
1467
+ id: 'id',
1468
+ code: 'code',
1469
+ version: 'version',
1470
+ name: 'name',
1471
+ description: 'description',
1472
+ price: 'price',
1473
+ cost_price: 'cost_price',
1474
+ currency: 'currency',
1475
+ status: 'status',
1476
+ units_per_purchase: 'units_per_purchase',
1477
+ interview_ai_assisted_hours: 'interview_ai_assisted_hours',
1478
+ interview_full_ai_hours: 'interview_full_ai_hours',
1479
+ interview_non_ai_hours: 'interview_non_ai_hours',
1480
+ assignment_count: 'assignment_count',
1481
+ test_count: 'test_count',
1482
+ resume_count: 'resume_count',
1483
+ credits: 'credits',
1484
+ created_at: 'created_at',
1485
+ updated_at: 'updated_at',
1486
+ created_by: 'created_by',
1487
+ updated_by: 'updated_by',
1488
+ is_active: 'is_active'
1489
+ };
1490
+
1491
+ exports.Prisma.LicensePackageOrganisationScalarFieldEnum = {
1492
+ id: 'id',
1493
+ license_package_id: 'license_package_id',
1494
+ organisation_id: 'organisation_id',
1495
+ created_at: 'created_at',
1496
+ updated_at: 'updated_at',
1497
+ created_by: 'created_by',
1498
+ updated_by: 'updated_by',
1499
+ is_active: 'is_active'
1500
+ };
1501
+
1502
+ exports.Prisma.LicensingLedgerEntryScalarFieldEnum = {
1503
+ id: 'id',
1504
+ organisation_id: 'organisation_id',
1505
+ purchased_hiring_unit_id: 'purchased_hiring_unit_id',
1506
+ entitlement_type: 'entitlement_type',
1507
+ direction: 'direction',
1508
+ amount: 'amount',
1509
+ reason: 'reason',
1510
+ occurred_at: 'occurred_at',
1511
+ source_type: 'source_type',
1512
+ source_id: 'source_id',
1513
+ description: 'description',
1514
+ idempotency_key: 'idempotency_key',
1515
+ created_at: 'created_at',
1516
+ updated_at: 'updated_at',
1517
+ created_by: 'created_by',
1518
+ updated_by: 'updated_by',
1519
+ is_active: 'is_active'
1520
+ };
1521
+
1522
+ exports.Prisma.PurchasedLicensePackageScalarFieldEnum = {
1523
+ id: 'id',
1524
+ organisation_id: 'organisation_id',
1525
+ license_package_id: 'license_package_id',
1526
+ package_code: 'package_code',
1527
+ package_version: 'package_version',
1528
+ package_name: 'package_name',
1529
+ price: 'price',
1530
+ currency: 'currency',
1531
+ units_per_purchase: 'units_per_purchase',
1532
+ package_quantity: 'package_quantity',
1533
+ purchased_at: 'purchased_at',
1534
+ status: 'status',
1535
+ created_at: 'created_at',
1536
+ updated_at: 'updated_at',
1537
+ created_by: 'created_by',
1538
+ updated_by: 'updated_by',
1539
+ is_active: 'is_active'
1540
+ };
1541
+
1542
+ exports.Prisma.PurchasedHiringUnitScalarFieldEnum = {
1543
+ id: 'id',
1544
+ organisation_id: 'organisation_id',
1545
+ purchased_license_package_id: 'purchased_license_package_id',
1546
+ status: 'status',
1547
+ department_id: 'department_id',
1548
+ first_assigned_at: 'first_assigned_at',
1549
+ expiry_at: 'expiry_at',
1550
+ job_description_id: 'job_description_id',
1551
+ created_at: 'created_at',
1552
+ updated_at: 'updated_at',
1553
+ created_by: 'created_by',
1554
+ updated_by: 'updated_by',
1555
+ is_active: 'is_active'
1556
+ };
1557
+
1558
+ exports.Prisma.PurchasedTopUpScalarFieldEnum = {
1559
+ id: 'id',
1560
+ organisation_id: 'organisation_id',
1561
+ purchased_at: 'purchased_at',
1562
+ status: 'status',
1563
+ total_price: 'total_price',
1564
+ currency: 'currency',
1565
+ description: 'description',
1566
+ interview_ai_assisted_hours_purchased: 'interview_ai_assisted_hours_purchased',
1567
+ interview_full_ai_hours_purchased: 'interview_full_ai_hours_purchased',
1568
+ interview_non_ai_hours_purchased: 'interview_non_ai_hours_purchased',
1569
+ assignment_count_purchased: 'assignment_count_purchased',
1570
+ test_count_purchased: 'test_count_purchased',
1571
+ resume_count_purchased: 'resume_count_purchased',
1572
+ credits_purchased: 'credits_purchased',
1573
+ interview_ai_assisted_hours_remaining: 'interview_ai_assisted_hours_remaining',
1574
+ interview_full_ai_hours_remaining: 'interview_full_ai_hours_remaining',
1575
+ interview_non_ai_hours_remaining: 'interview_non_ai_hours_remaining',
1576
+ assignment_count_remaining: 'assignment_count_remaining',
1577
+ test_count_remaining: 'test_count_remaining',
1578
+ resume_count_remaining: 'resume_count_remaining',
1579
+ credits_remaining: 'credits_remaining',
1580
+ created_at: 'created_at',
1581
+ updated_at: 'updated_at',
1582
+ created_by: 'created_by',
1583
+ updated_by: 'updated_by',
1584
+ is_active: 'is_active'
1585
+ };
1586
+
1436
1587
  exports.Prisma.LiveAnalysisScalarFieldEnum = {
1437
1588
  id: 'id',
1438
1589
  interview_id: 'interview_id',
@@ -1757,6 +1908,8 @@ exports.Prisma.QuestionScalarFieldEnum = {
1757
1908
  evaluation_plan_id: 'evaluation_plan_id',
1758
1909
  candidate_id: 'candidate_id',
1759
1910
  skill: 'skill',
1911
+ category: 'category',
1912
+ bank_item_key: 'bank_item_key',
1760
1913
  question: 'question',
1761
1914
  answer: 'answer',
1762
1915
  options: 'options',
@@ -2343,6 +2496,8 @@ exports.EvaluationCategory = exports.$Enums.EvaluationCategory = {
2343
2496
 
2344
2497
  exports.RoundType = exports.$Enums.RoundType = {
2345
2498
  ASSESSMENT: 'ASSESSMENT',
2499
+ GENERAL_APTITUDE_ASSESSMENT: 'GENERAL_APTITUDE_ASSESSMENT',
2500
+ DOMAIN_KNOWLEDGE_ASSESSMENT: 'DOMAIN_KNOWLEDGE_ASSESSMENT',
2346
2501
  INTERVIEW: 'INTERVIEW',
2347
2502
  ASSIGNMENT: 'ASSIGNMENT',
2348
2503
  SCREENING: 'SCREENING'
@@ -2598,6 +2753,69 @@ exports.JobProfileStatus = exports.$Enums.JobProfileStatus = {
2598
2753
  COMPLETE: 'COMPLETE'
2599
2754
  };
2600
2755
 
2756
+ exports.LicensingLedgerDirection = exports.$Enums.LicensingLedgerDirection = {
2757
+ CREDIT: 'CREDIT',
2758
+ DEBIT: 'DEBIT'
2759
+ };
2760
+
2761
+ exports.AiCostLedgerReason = exports.$Enums.AiCostLedgerReason = {
2762
+ PURCHASE: 'PURCHASE',
2763
+ USAGE: 'USAGE',
2764
+ ADJUSTMENT: 'ADJUSTMENT',
2765
+ REFUND: 'REFUND'
2766
+ };
2767
+
2768
+ exports.PurchasedHiringUnitAssignmentEventKind = exports.$Enums.PurchasedHiringUnitAssignmentEventKind = {
2769
+ DEPARTMENT_ASSIGNED: 'DEPARTMENT_ASSIGNED',
2770
+ DEPARTMENT_UNASSIGNED: 'DEPARTMENT_UNASSIGNED',
2771
+ JOB_LINKED: 'JOB_LINKED',
2772
+ JOB_UNLINKED: 'JOB_UNLINKED'
2773
+ };
2774
+
2775
+ exports.LicensePackageStatus = exports.$Enums.LicensePackageStatus = {
2776
+ DRAFT: 'DRAFT',
2777
+ ACTIVE: 'ACTIVE',
2778
+ ARCHIVED: 'ARCHIVED'
2779
+ };
2780
+
2781
+ exports.LicensingLedgerEntitlementType = exports.$Enums.LicensingLedgerEntitlementType = {
2782
+ INTERVIEW_AI_ASSISTED_HOURS: 'INTERVIEW_AI_ASSISTED_HOURS',
2783
+ INTERVIEW_FULL_AI_HOURS: 'INTERVIEW_FULL_AI_HOURS',
2784
+ INTERVIEW_NON_AI_HOURS: 'INTERVIEW_NON_AI_HOURS',
2785
+ ASSIGNMENT_COUNT: 'ASSIGNMENT_COUNT',
2786
+ TEST_COUNT: 'TEST_COUNT',
2787
+ RESUME_COUNT: 'RESUME_COUNT',
2788
+ CREDITS: 'CREDITS'
2789
+ };
2790
+
2791
+ exports.LicensingLedgerReason = exports.$Enums.LicensingLedgerReason = {
2792
+ PURCHASE: 'PURCHASE',
2793
+ TOP_UP: 'TOP_UP',
2794
+ USAGE: 'USAGE',
2795
+ ADJUSTMENT: 'ADJUSTMENT',
2796
+ REFUND: 'REFUND',
2797
+ EXPIRY: 'EXPIRY'
2798
+ };
2799
+
2800
+ exports.PurchasedLicensePackageStatus = exports.$Enums.PurchasedLicensePackageStatus = {
2801
+ ACTIVE: 'ACTIVE',
2802
+ EXPIRED: 'EXPIRED',
2803
+ CANCELLED: 'CANCELLED'
2804
+ };
2805
+
2806
+ exports.PurchasedHiringUnitStatus = exports.$Enums.PurchasedHiringUnitStatus = {
2807
+ AVAILABLE: 'AVAILABLE',
2808
+ ASSIGNED: 'ASSIGNED',
2809
+ ACTIVE: 'ACTIVE',
2810
+ EXPIRED: 'EXPIRED'
2811
+ };
2812
+
2813
+ exports.PurchasedTopUpStatus = exports.$Enums.PurchasedTopUpStatus = {
2814
+ ACTIVE: 'ACTIVE',
2815
+ DEPLETED: 'DEPLETED',
2816
+ CANCELLED: 'CANCELLED'
2817
+ };
2818
+
2601
2819
  exports.OfferLetterTemplateScope = exports.$Enums.OfferLetterTemplateScope = {
2602
2820
  ORGANIZATION: 'ORGANIZATION',
2603
2821
  JOB: 'JOB'
@@ -2665,6 +2883,11 @@ exports.AsyncOperationStatus = exports.$Enums.AsyncOperationStatus = {
2665
2883
  CANCELLED: 'CANCELLED'
2666
2884
  };
2667
2885
 
2886
+ exports.QuestionCategory = exports.$Enums.QuestionCategory = {
2887
+ GENERAL_APTITUDE: 'GENERAL_APTITUDE',
2888
+ DOMAIN_KNOWLEDGE: 'DOMAIN_KNOWLEDGE'
2889
+ };
2890
+
2668
2891
  exports.Difficulty = exports.$Enums.Difficulty = {
2669
2892
  EASY: 'EASY',
2670
2893
  MEDIUM: 'MEDIUM',
@@ -2766,6 +2989,14 @@ exports.Prisma.ModelName = {
2766
2989
  JobProfile: 'JobProfile',
2767
2990
  JobRoundAnalytics: 'JobRoundAnalytics',
2768
2991
  JobRoundAnalyticsDaily: 'JobRoundAnalyticsDaily',
2992
+ AiCostLedgerEntry: 'AiCostLedgerEntry',
2993
+ PurchasedHiringUnitAssignmentEvent: 'PurchasedHiringUnitAssignmentEvent',
2994
+ LicensePackage: 'LicensePackage',
2995
+ LicensePackageOrganisation: 'LicensePackageOrganisation',
2996
+ LicensingLedgerEntry: 'LicensingLedgerEntry',
2997
+ PurchasedLicensePackage: 'PurchasedLicensePackage',
2998
+ PurchasedHiringUnit: 'PurchasedHiringUnit',
2999
+ PurchasedTopUp: 'PurchasedTopUp',
2769
3000
  LiveAnalysis: 'LiveAnalysis',
2770
3001
  Message: 'Message',
2771
3002
  Notes: 'Notes',