@adaptware/eagles-db 0.5.36 → 0.5.37

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 (44) hide show
  1. package/client/edge.js +231 -11
  2. package/client/index-browser.js +225 -4
  3. package/client/index.d.ts +107098 -86713
  4. package/client/index.js +231 -11
  5. package/client/libquery_engine-darwin.dylib.node +0 -0
  6. package/client/package.json +1 -1
  7. package/client/schema.prisma +467 -118
  8. package/client/wasm.js +231 -11
  9. package/package.json +1 -1
  10. package/prisma/.DS_Store +0 -0
  11. package/prisma/migrations/20260519120000_migrate_shortlisted_to_selected/migration.sql +2 -0
  12. package/prisma/schema/.DS_Store +0 -0
  13. package/prisma/schema/applications.prisma +29 -34
  14. package/prisma/schema/department.prisma +3 -2
  15. package/prisma/schema/document.prisma +0 -1
  16. package/prisma/schema/jobDescription.prisma +1 -0
  17. package/prisma/schema/licensing/aiCostLedger.prisma +34 -0
  18. package/prisma/schema/licensing/assignmentHistory.prisma +19 -0
  19. package/prisma/schema/licensing/licensePackageCatalog.prisma +62 -0
  20. package/prisma/schema/licensing/licensingEnums.prisma +80 -0
  21. package/prisma/schema/licensing/licensingLedger.prisma +32 -0
  22. package/prisma/schema/licensing/purchasedLicense.prisma +74 -0
  23. package/prisma/schema/licensing/purchasedTopUp.prisma +39 -0
  24. package/prisma/schema/migrations/20260519120000_add_analytics_schema/migration.sql +84 -0
  25. package/prisma/schema/migrations/20260625120000_add_interviewer_analytics/migration.sql +26 -0
  26. package/prisma/schema/migrations/20260629120000_add_user_lifecycle_activity_events/migration.sql +13 -0
  27. package/prisma/schema/migrations/20260629140000_drop_organisation_org_code/migration.sql +2 -0
  28. package/prisma/schema/migrations/20260629160000_employee_codes_dual_interviewer_analytics/migration.sql +87 -0
  29. package/prisma/schema/migrations/20260630120000_add_application_sources/migration.sql +38 -0
  30. package/prisma/schema/migrations/20260701120000_add_source_effectiveness_analytics/migration.sql +40 -0
  31. package/prisma/schema/migrations/20260702120000_add_analytics_daily_tables/migration.sql +232 -0
  32. package/prisma/schema/migrations/20260716120000_evaluation_category_four_values/migration.sql +204 -0
  33. package/prisma/schema/migrations/20260716130000_application_withdrawn_analytics/migration.sql +31 -0
  34. package/prisma/schema/migrations/20260804120000_contact_us_optional_website_subject/migration.sql +3 -0
  35. package/prisma/schema/migrations/20260810120000_add_licensing_schema/migration.sql +237 -0
  36. package/prisma/schema/migrations/20260814153000_add_licensing_ledger/migration.sql +236 -0
  37. package/prisma/schema/migrations/20260828120000_license_package_orgs_cost_price_ai_cost_ledger/migration.sql +74 -0
  38. package/prisma/schema/migrations/20260831120000_ai_cost_ledger_purchase_reason/migration.sql +2 -0
  39. package/prisma/schema/migrations/20260831140000_ai_cost_ledger_nullable_hiring_unit/migration.sql +3 -0
  40. package/prisma/schema/organisation.prisma +6 -0
  41. package/prisma/schema/schema.prisma +1 -1
  42. package/prisma/schema/migrations/.DS_Store +0 -0
  43. package/prisma/schema/migrations/20260826160000_add_application_fit_check_report_document/.DS_Store +0 -0
  44. 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 = {
@@ -1433,6 +1430,159 @@ exports.Prisma.JobRoundAnalyticsDailyScalarFieldEnum = {
1433
1430
  avg_completion_minutes: 'avg_completion_minutes'
1434
1431
  };
1435
1432
 
1433
+ exports.Prisma.AiCostLedgerEntryScalarFieldEnum = {
1434
+ id: 'id',
1435
+ organisation_id: 'organisation_id',
1436
+ purchased_hiring_unit_id: 'purchased_hiring_unit_id',
1437
+ workflow_name: 'workflow_name',
1438
+ direction: 'direction',
1439
+ amount: 'amount',
1440
+ reason: 'reason',
1441
+ occurred_at: 'occurred_at',
1442
+ source_type: 'source_type',
1443
+ source_id: 'source_id',
1444
+ description: 'description',
1445
+ idempotency_key: 'idempotency_key',
1446
+ created_at: 'created_at',
1447
+ updated_at: 'updated_at',
1448
+ created_by: 'created_by',
1449
+ updated_by: 'updated_by',
1450
+ is_active: 'is_active'
1451
+ };
1452
+
1453
+ exports.Prisma.PurchasedHiringUnitAssignmentEventScalarFieldEnum = {
1454
+ id: 'id',
1455
+ purchased_hiring_unit_id: 'purchased_hiring_unit_id',
1456
+ event_kind: 'event_kind',
1457
+ previous_department_id: 'previous_department_id',
1458
+ new_department_id: 'new_department_id',
1459
+ previous_job_description_id: 'previous_job_description_id',
1460
+ new_job_description_id: 'new_job_description_id',
1461
+ effective_at: 'effective_at',
1462
+ created_by: 'created_by'
1463
+ };
1464
+
1465
+ exports.Prisma.LicensePackageScalarFieldEnum = {
1466
+ id: 'id',
1467
+ code: 'code',
1468
+ version: 'version',
1469
+ name: 'name',
1470
+ description: 'description',
1471
+ price: 'price',
1472
+ cost_price: 'cost_price',
1473
+ currency: 'currency',
1474
+ status: 'status',
1475
+ units_per_purchase: 'units_per_purchase',
1476
+ interview_ai_assisted_hours: 'interview_ai_assisted_hours',
1477
+ interview_full_ai_hours: 'interview_full_ai_hours',
1478
+ interview_non_ai_hours: 'interview_non_ai_hours',
1479
+ assignment_count: 'assignment_count',
1480
+ test_count: 'test_count',
1481
+ resume_count: 'resume_count',
1482
+ credits: 'credits',
1483
+ created_at: 'created_at',
1484
+ updated_at: 'updated_at',
1485
+ created_by: 'created_by',
1486
+ updated_by: 'updated_by',
1487
+ is_active: 'is_active'
1488
+ };
1489
+
1490
+ exports.Prisma.LicensePackageOrganisationScalarFieldEnum = {
1491
+ id: 'id',
1492
+ license_package_id: 'license_package_id',
1493
+ organisation_id: 'organisation_id',
1494
+ created_at: 'created_at',
1495
+ updated_at: 'updated_at',
1496
+ created_by: 'created_by',
1497
+ updated_by: 'updated_by',
1498
+ is_active: 'is_active'
1499
+ };
1500
+
1501
+ exports.Prisma.LicensingLedgerEntryScalarFieldEnum = {
1502
+ id: 'id',
1503
+ organisation_id: 'organisation_id',
1504
+ purchased_hiring_unit_id: 'purchased_hiring_unit_id',
1505
+ entitlement_type: 'entitlement_type',
1506
+ direction: 'direction',
1507
+ amount: 'amount',
1508
+ reason: 'reason',
1509
+ occurred_at: 'occurred_at',
1510
+ source_type: 'source_type',
1511
+ source_id: 'source_id',
1512
+ description: 'description',
1513
+ idempotency_key: 'idempotency_key',
1514
+ created_at: 'created_at',
1515
+ updated_at: 'updated_at',
1516
+ created_by: 'created_by',
1517
+ updated_by: 'updated_by',
1518
+ is_active: 'is_active'
1519
+ };
1520
+
1521
+ exports.Prisma.PurchasedLicensePackageScalarFieldEnum = {
1522
+ id: 'id',
1523
+ organisation_id: 'organisation_id',
1524
+ license_package_id: 'license_package_id',
1525
+ package_code: 'package_code',
1526
+ package_version: 'package_version',
1527
+ package_name: 'package_name',
1528
+ price: 'price',
1529
+ currency: 'currency',
1530
+ units_per_purchase: 'units_per_purchase',
1531
+ package_quantity: 'package_quantity',
1532
+ purchased_at: 'purchased_at',
1533
+ status: 'status',
1534
+ created_at: 'created_at',
1535
+ updated_at: 'updated_at',
1536
+ created_by: 'created_by',
1537
+ updated_by: 'updated_by',
1538
+ is_active: 'is_active'
1539
+ };
1540
+
1541
+ exports.Prisma.PurchasedHiringUnitScalarFieldEnum = {
1542
+ id: 'id',
1543
+ organisation_id: 'organisation_id',
1544
+ purchased_license_package_id: 'purchased_license_package_id',
1545
+ status: 'status',
1546
+ department_id: 'department_id',
1547
+ first_assigned_at: 'first_assigned_at',
1548
+ expiry_at: 'expiry_at',
1549
+ job_description_id: 'job_description_id',
1550
+ created_at: 'created_at',
1551
+ updated_at: 'updated_at',
1552
+ created_by: 'created_by',
1553
+ updated_by: 'updated_by',
1554
+ is_active: 'is_active'
1555
+ };
1556
+
1557
+ exports.Prisma.PurchasedTopUpScalarFieldEnum = {
1558
+ id: 'id',
1559
+ organisation_id: 'organisation_id',
1560
+ purchased_at: 'purchased_at',
1561
+ status: 'status',
1562
+ total_price: 'total_price',
1563
+ currency: 'currency',
1564
+ description: 'description',
1565
+ interview_ai_assisted_hours_purchased: 'interview_ai_assisted_hours_purchased',
1566
+ interview_full_ai_hours_purchased: 'interview_full_ai_hours_purchased',
1567
+ interview_non_ai_hours_purchased: 'interview_non_ai_hours_purchased',
1568
+ assignment_count_purchased: 'assignment_count_purchased',
1569
+ test_count_purchased: 'test_count_purchased',
1570
+ resume_count_purchased: 'resume_count_purchased',
1571
+ credits_purchased: 'credits_purchased',
1572
+ interview_ai_assisted_hours_remaining: 'interview_ai_assisted_hours_remaining',
1573
+ interview_full_ai_hours_remaining: 'interview_full_ai_hours_remaining',
1574
+ interview_non_ai_hours_remaining: 'interview_non_ai_hours_remaining',
1575
+ assignment_count_remaining: 'assignment_count_remaining',
1576
+ test_count_remaining: 'test_count_remaining',
1577
+ resume_count_remaining: 'resume_count_remaining',
1578
+ credits_remaining: 'credits_remaining',
1579
+ created_at: 'created_at',
1580
+ updated_at: 'updated_at',
1581
+ created_by: 'created_by',
1582
+ updated_by: 'updated_by',
1583
+ is_active: 'is_active'
1584
+ };
1585
+
1436
1586
  exports.Prisma.LiveAnalysisScalarFieldEnum = {
1437
1587
  id: 'id',
1438
1588
  interview_id: 'interview_id',
@@ -2598,6 +2748,69 @@ exports.JobProfileStatus = exports.$Enums.JobProfileStatus = {
2598
2748
  COMPLETE: 'COMPLETE'
2599
2749
  };
2600
2750
 
2751
+ exports.LicensingLedgerDirection = exports.$Enums.LicensingLedgerDirection = {
2752
+ CREDIT: 'CREDIT',
2753
+ DEBIT: 'DEBIT'
2754
+ };
2755
+
2756
+ exports.AiCostLedgerReason = exports.$Enums.AiCostLedgerReason = {
2757
+ PURCHASE: 'PURCHASE',
2758
+ USAGE: 'USAGE',
2759
+ ADJUSTMENT: 'ADJUSTMENT',
2760
+ REFUND: 'REFUND'
2761
+ };
2762
+
2763
+ exports.PurchasedHiringUnitAssignmentEventKind = exports.$Enums.PurchasedHiringUnitAssignmentEventKind = {
2764
+ DEPARTMENT_ASSIGNED: 'DEPARTMENT_ASSIGNED',
2765
+ DEPARTMENT_UNASSIGNED: 'DEPARTMENT_UNASSIGNED',
2766
+ JOB_LINKED: 'JOB_LINKED',
2767
+ JOB_UNLINKED: 'JOB_UNLINKED'
2768
+ };
2769
+
2770
+ exports.LicensePackageStatus = exports.$Enums.LicensePackageStatus = {
2771
+ DRAFT: 'DRAFT',
2772
+ ACTIVE: 'ACTIVE',
2773
+ ARCHIVED: 'ARCHIVED'
2774
+ };
2775
+
2776
+ exports.LicensingLedgerEntitlementType = exports.$Enums.LicensingLedgerEntitlementType = {
2777
+ INTERVIEW_AI_ASSISTED_HOURS: 'INTERVIEW_AI_ASSISTED_HOURS',
2778
+ INTERVIEW_FULL_AI_HOURS: 'INTERVIEW_FULL_AI_HOURS',
2779
+ INTERVIEW_NON_AI_HOURS: 'INTERVIEW_NON_AI_HOURS',
2780
+ ASSIGNMENT_COUNT: 'ASSIGNMENT_COUNT',
2781
+ TEST_COUNT: 'TEST_COUNT',
2782
+ RESUME_COUNT: 'RESUME_COUNT',
2783
+ CREDITS: 'CREDITS'
2784
+ };
2785
+
2786
+ exports.LicensingLedgerReason = exports.$Enums.LicensingLedgerReason = {
2787
+ PURCHASE: 'PURCHASE',
2788
+ TOP_UP: 'TOP_UP',
2789
+ USAGE: 'USAGE',
2790
+ ADJUSTMENT: 'ADJUSTMENT',
2791
+ REFUND: 'REFUND',
2792
+ EXPIRY: 'EXPIRY'
2793
+ };
2794
+
2795
+ exports.PurchasedLicensePackageStatus = exports.$Enums.PurchasedLicensePackageStatus = {
2796
+ ACTIVE: 'ACTIVE',
2797
+ EXPIRED: 'EXPIRED',
2798
+ CANCELLED: 'CANCELLED'
2799
+ };
2800
+
2801
+ exports.PurchasedHiringUnitStatus = exports.$Enums.PurchasedHiringUnitStatus = {
2802
+ AVAILABLE: 'AVAILABLE',
2803
+ ASSIGNED: 'ASSIGNED',
2804
+ ACTIVE: 'ACTIVE',
2805
+ EXPIRED: 'EXPIRED'
2806
+ };
2807
+
2808
+ exports.PurchasedTopUpStatus = exports.$Enums.PurchasedTopUpStatus = {
2809
+ ACTIVE: 'ACTIVE',
2810
+ DEPLETED: 'DEPLETED',
2811
+ CANCELLED: 'CANCELLED'
2812
+ };
2813
+
2601
2814
  exports.OfferLetterTemplateScope = exports.$Enums.OfferLetterTemplateScope = {
2602
2815
  ORGANIZATION: 'ORGANIZATION',
2603
2816
  JOB: 'JOB'
@@ -2766,6 +2979,14 @@ exports.Prisma.ModelName = {
2766
2979
  JobProfile: 'JobProfile',
2767
2980
  JobRoundAnalytics: 'JobRoundAnalytics',
2768
2981
  JobRoundAnalyticsDaily: 'JobRoundAnalyticsDaily',
2982
+ AiCostLedgerEntry: 'AiCostLedgerEntry',
2983
+ PurchasedHiringUnitAssignmentEvent: 'PurchasedHiringUnitAssignmentEvent',
2984
+ LicensePackage: 'LicensePackage',
2985
+ LicensePackageOrganisation: 'LicensePackageOrganisation',
2986
+ LicensingLedgerEntry: 'LicensingLedgerEntry',
2987
+ PurchasedLicensePackage: 'PurchasedLicensePackage',
2988
+ PurchasedHiringUnit: 'PurchasedHiringUnit',
2989
+ PurchasedTopUp: 'PurchasedTopUp',
2769
2990
  LiveAnalysis: 'LiveAnalysis',
2770
2991
  Message: 'Message',
2771
2992
  Notes: 'Notes',