@adaptware/eagles-db 0.5.35 → 0.5.36

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 (47) hide show
  1. package/client/edge.js +12 -311
  2. package/client/index-browser.js +5 -305
  3. package/client/index.d.ts +87573 -113130
  4. package/client/index.js +12 -311
  5. package/client/package.json +1 -1
  6. package/client/schema.prisma +118 -583
  7. package/client/wasm.js +12 -311
  8. package/package.json +1 -1
  9. package/prisma/.DS_Store +0 -0
  10. package/prisma/schema/.DS_Store +0 -0
  11. package/prisma/schema/applications.prisma +34 -29
  12. package/prisma/schema/department.prisma +2 -3
  13. package/prisma/schema/document.prisma +1 -0
  14. package/prisma/schema/integration.prisma +0 -1
  15. package/prisma/schema/jobDescription.prisma +0 -1
  16. package/prisma/schema/migrations/.DS_Store +0 -0
  17. package/prisma/schema/migrations/20260826160000_add_application_fit_check_report_document/.DS_Store +0 -0
  18. package/prisma/schema/migrations/20260826160000_add_application_fit_check_report_document/migration.sql +13 -0
  19. package/prisma/schema/organisation.prisma +58 -66
  20. package/prisma/schema/schema.prisma +1 -1
  21. package/client/libquery_engine-darwin.dylib.node +0 -0
  22. package/prisma/migrations/20260519120000_migrate_shortlisted_to_selected/migration.sql +0 -2
  23. package/prisma/schema/licensing/aiCostLedger.prisma +0 -34
  24. package/prisma/schema/licensing/assignmentHistory.prisma +0 -19
  25. package/prisma/schema/licensing/licensePackageCatalog.prisma +0 -62
  26. package/prisma/schema/licensing/licensingEnums.prisma +0 -80
  27. package/prisma/schema/licensing/licensingLedger.prisma +0 -32
  28. package/prisma/schema/licensing/purchasedLicense.prisma +0 -74
  29. package/prisma/schema/licensing/purchasedTopUp.prisma +0 -39
  30. package/prisma/schema/migrations/20260519120000_add_analytics_schema/migration.sql +0 -84
  31. package/prisma/schema/migrations/20260625120000_add_interviewer_analytics/migration.sql +0 -26
  32. package/prisma/schema/migrations/20260629120000_add_user_lifecycle_activity_events/migration.sql +0 -13
  33. package/prisma/schema/migrations/20260629140000_drop_organisation_org_code/migration.sql +0 -2
  34. package/prisma/schema/migrations/20260629160000_employee_codes_dual_interviewer_analytics/migration.sql +0 -87
  35. package/prisma/schema/migrations/20260630120000_add_application_sources/migration.sql +0 -38
  36. package/prisma/schema/migrations/20260701120000_add_source_effectiveness_analytics/migration.sql +0 -40
  37. package/prisma/schema/migrations/20260702120000_add_analytics_daily_tables/migration.sql +0 -232
  38. package/prisma/schema/migrations/20260716120000_evaluation_category_four_values/migration.sql +0 -204
  39. package/prisma/schema/migrations/20260716130000_application_withdrawn_analytics/migration.sql +0 -31
  40. package/prisma/schema/migrations/20260804120000_contact_us_optional_website_subject/migration.sql +0 -3
  41. package/prisma/schema/migrations/20260810120000_add_licensing_schema/migration.sql +0 -237
  42. package/prisma/schema/migrations/20260814153000_add_licensing_ledger/migration.sql +0 -236
  43. package/prisma/schema/migrations/20260828120000_license_package_orgs_cost_price_ai_cost_ledger/migration.sql +0 -74
  44. package/prisma/schema/migrations/20260831120000_ai_cost_ledger_purchase_reason/migration.sql +0 -2
  45. package/prisma/schema/migrations/20260831140000_ai_cost_ledger_nullable_hiring_unit/migration.sql +0 -3
  46. package/prisma/schema/payment/billingTransaction.prisma +0 -83
  47. package/prisma/schema/payment/paymentWebhookEvent.prisma +0 -28
@@ -281,7 +281,10 @@ 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'
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'
285
288
  };
286
289
 
287
290
  exports.Prisma.ApprovalScalarFieldEnum = {
@@ -1430,159 +1433,6 @@ exports.Prisma.JobRoundAnalyticsDailyScalarFieldEnum = {
1430
1433
  avg_completion_minutes: 'avg_completion_minutes'
1431
1434
  };
1432
1435
 
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
-
1586
1436
  exports.Prisma.LiveAnalysisScalarFieldEnum = {
1587
1437
  id: 'id',
1588
1438
  interview_id: 'interview_id',
@@ -1825,46 +1675,6 @@ exports.Prisma.OrganisationConfigScalarFieldEnum = {
1825
1675
  updated_at: 'updated_at'
1826
1676
  };
1827
1677
 
1828
- exports.Prisma.BillingTransactionScalarFieldEnum = {
1829
- id: 'id',
1830
- organisation_id: 'organisation_id',
1831
- purchase_reference: 'purchase_reference',
1832
- purchase_display_name: 'purchase_display_name',
1833
- transaction_type: 'transaction_type',
1834
- status: 'status',
1835
- failure_category: 'failure_category',
1836
- failure_reason: 'failure_reason',
1837
- amount: 'amount',
1838
- currency: 'currency',
1839
- razorpay_order_id: 'razorpay_order_id',
1840
- razorpay_payment_id: 'razorpay_payment_id',
1841
- payment_method: 'payment_method',
1842
- razorpay_subscription_id: 'razorpay_subscription_id',
1843
- razorpay_refund_id: 'razorpay_refund_id',
1844
- refund_reason: 'refund_reason',
1845
- refund_amount: 'refund_amount',
1846
- idempotency_key: 'idempotency_key',
1847
- invoice_number: 'invoice_number',
1848
- purchaser_email: 'purchaser_email',
1849
- payment_mismatch_status: 'payment_mismatch_status',
1850
- payment_mismatch_fulfilled_by_id: 'payment_mismatch_fulfilled_by_id',
1851
- created_at: 'created_at',
1852
- updated_at: 'updated_at'
1853
- };
1854
-
1855
- exports.Prisma.PaymentWebhookEventScalarFieldEnum = {
1856
- id: 'id',
1857
- organisation_id: 'organisation_id',
1858
- provider: 'provider',
1859
- provider_event_id: 'provider_event_id',
1860
- event_type: 'event_type',
1861
- status: 'status',
1862
- billing_transaction_id: 'billing_transaction_id',
1863
- error_message: 'error_message',
1864
- processed_at: 'processed_at',
1865
- created_at: 'created_at'
1866
- };
1867
-
1868
1678
  exports.Prisma.PermissionScalarFieldEnum = {
1869
1679
  id: 'id',
1870
1680
  permissions: 'permissions',
@@ -2704,8 +2514,7 @@ exports.IntegrationProvider = exports.$Enums.IntegrationProvider = {
2704
2514
  GOOGLE: 'GOOGLE',
2705
2515
  MICROSOFT: 'MICROSOFT',
2706
2516
  ZOOM: 'ZOOM',
2707
- CALENDLY: 'CALENDLY',
2708
- RAZORPAY: 'RAZORPAY'
2517
+ CALENDLY: 'CALENDLY'
2709
2518
  };
2710
2519
 
2711
2520
  exports.IntegrationAuthType = exports.$Enums.IntegrationAuthType = {
@@ -2789,69 +2598,6 @@ exports.JobProfileStatus = exports.$Enums.JobProfileStatus = {
2789
2598
  COMPLETE: 'COMPLETE'
2790
2599
  };
2791
2600
 
2792
- exports.LicensingLedgerDirection = exports.$Enums.LicensingLedgerDirection = {
2793
- CREDIT: 'CREDIT',
2794
- DEBIT: 'DEBIT'
2795
- };
2796
-
2797
- exports.AiCostLedgerReason = exports.$Enums.AiCostLedgerReason = {
2798
- PURCHASE: 'PURCHASE',
2799
- USAGE: 'USAGE',
2800
- ADJUSTMENT: 'ADJUSTMENT',
2801
- REFUND: 'REFUND'
2802
- };
2803
-
2804
- exports.PurchasedHiringUnitAssignmentEventKind = exports.$Enums.PurchasedHiringUnitAssignmentEventKind = {
2805
- DEPARTMENT_ASSIGNED: 'DEPARTMENT_ASSIGNED',
2806
- DEPARTMENT_UNASSIGNED: 'DEPARTMENT_UNASSIGNED',
2807
- JOB_LINKED: 'JOB_LINKED',
2808
- JOB_UNLINKED: 'JOB_UNLINKED'
2809
- };
2810
-
2811
- exports.LicensePackageStatus = exports.$Enums.LicensePackageStatus = {
2812
- DRAFT: 'DRAFT',
2813
- ACTIVE: 'ACTIVE',
2814
- ARCHIVED: 'ARCHIVED'
2815
- };
2816
-
2817
- exports.LicensingLedgerEntitlementType = exports.$Enums.LicensingLedgerEntitlementType = {
2818
- INTERVIEW_AI_ASSISTED_HOURS: 'INTERVIEW_AI_ASSISTED_HOURS',
2819
- INTERVIEW_FULL_AI_HOURS: 'INTERVIEW_FULL_AI_HOURS',
2820
- INTERVIEW_NON_AI_HOURS: 'INTERVIEW_NON_AI_HOURS',
2821
- ASSIGNMENT_COUNT: 'ASSIGNMENT_COUNT',
2822
- TEST_COUNT: 'TEST_COUNT',
2823
- RESUME_COUNT: 'RESUME_COUNT',
2824
- CREDITS: 'CREDITS'
2825
- };
2826
-
2827
- exports.LicensingLedgerReason = exports.$Enums.LicensingLedgerReason = {
2828
- PURCHASE: 'PURCHASE',
2829
- TOP_UP: 'TOP_UP',
2830
- USAGE: 'USAGE',
2831
- ADJUSTMENT: 'ADJUSTMENT',
2832
- REFUND: 'REFUND',
2833
- EXPIRY: 'EXPIRY'
2834
- };
2835
-
2836
- exports.PurchasedLicensePackageStatus = exports.$Enums.PurchasedLicensePackageStatus = {
2837
- ACTIVE: 'ACTIVE',
2838
- EXPIRED: 'EXPIRED',
2839
- CANCELLED: 'CANCELLED'
2840
- };
2841
-
2842
- exports.PurchasedHiringUnitStatus = exports.$Enums.PurchasedHiringUnitStatus = {
2843
- AVAILABLE: 'AVAILABLE',
2844
- ASSIGNED: 'ASSIGNED',
2845
- ACTIVE: 'ACTIVE',
2846
- EXPIRED: 'EXPIRED'
2847
- };
2848
-
2849
- exports.PurchasedTopUpStatus = exports.$Enums.PurchasedTopUpStatus = {
2850
- ACTIVE: 'ACTIVE',
2851
- DEPLETED: 'DEPLETED',
2852
- CANCELLED: 'CANCELLED'
2853
- };
2854
-
2855
2601
  exports.OfferLetterTemplateScope = exports.$Enums.OfferLetterTemplateScope = {
2856
2602
  ORGANIZATION: 'ORGANIZATION',
2857
2603
  JOB: 'JOB'
@@ -2910,42 +2656,6 @@ exports.OrganisationSize = exports.$Enums.OrganisationSize = {
2910
2656
  FIVE_HUNDRED_PLUS: 'FIVE_HUNDRED_PLUS'
2911
2657
  };
2912
2658
 
2913
- exports.BillingTransactionType = exports.$Enums.BillingTransactionType = {
2914
- PURCHASE: 'PURCHASE',
2915
- TOP_UP: 'TOP_UP',
2916
- REFUND: 'REFUND'
2917
- };
2918
-
2919
- exports.BillingTransactionStatus = exports.$Enums.BillingTransactionStatus = {
2920
- INITIATED: 'INITIATED',
2921
- ORDER_CREATED: 'ORDER_CREATED',
2922
- PAYMENT_PENDING: 'PAYMENT_PENDING',
2923
- SUCCESS: 'SUCCESS',
2924
- FAILED: 'FAILED',
2925
- CANCELLED: 'CANCELLED',
2926
- REFUND_PENDING: 'REFUND_PENDING',
2927
- REFUND_FAILED: 'REFUND_FAILED',
2928
- REFUNDED: 'REFUNDED'
2929
- };
2930
-
2931
- exports.BillingTransactionFailureCategory = exports.$Enums.BillingTransactionFailureCategory = {
2932
- RAZORPAY_ORDER: 'RAZORPAY_ORDER',
2933
- RAZORPAY_PAYMENT: 'RAZORPAY_PAYMENT',
2934
- REFUND: 'REFUND',
2935
- INTERNAL: 'INTERNAL'
2936
- };
2937
-
2938
- exports.BillingPaymentMismatchStatus = exports.$Enums.BillingPaymentMismatchStatus = {
2939
- DETECTED: 'DETECTED',
2940
- UNFULFILLED: 'UNFULFILLED'
2941
- };
2942
-
2943
- exports.PaymentWebhookEventStatus = exports.$Enums.PaymentWebhookEventStatus = {
2944
- RECEIVED: 'RECEIVED',
2945
- PROCESSED: 'PROCESSED',
2946
- FAILED: 'FAILED'
2947
- };
2948
-
2949
2659
  exports.AsyncOperationStatus = exports.$Enums.AsyncOperationStatus = {
2950
2660
  PENDING: 'PENDING',
2951
2661
  IN_PROGRESS: 'IN_PROGRESS',
@@ -3056,14 +2766,6 @@ exports.Prisma.ModelName = {
3056
2766
  JobProfile: 'JobProfile',
3057
2767
  JobRoundAnalytics: 'JobRoundAnalytics',
3058
2768
  JobRoundAnalyticsDaily: 'JobRoundAnalyticsDaily',
3059
- AiCostLedgerEntry: 'AiCostLedgerEntry',
3060
- PurchasedHiringUnitAssignmentEvent: 'PurchasedHiringUnitAssignmentEvent',
3061
- LicensePackage: 'LicensePackage',
3062
- LicensePackageOrganisation: 'LicensePackageOrganisation',
3063
- LicensingLedgerEntry: 'LicensingLedgerEntry',
3064
- PurchasedLicensePackage: 'PurchasedLicensePackage',
3065
- PurchasedHiringUnit: 'PurchasedHiringUnit',
3066
- PurchasedTopUp: 'PurchasedTopUp',
3067
2769
  LiveAnalysis: 'LiveAnalysis',
3068
2770
  Message: 'Message',
3069
2771
  Notes: 'Notes',
@@ -3075,8 +2777,6 @@ exports.Prisma.ModelName = {
3075
2777
  OpenJobAnalyticsDaily: 'OpenJobAnalyticsDaily',
3076
2778
  Organisation: 'Organisation',
3077
2779
  OrganisationConfig: 'OrganisationConfig',
3078
- BillingTransaction: 'BillingTransaction',
3079
- PaymentWebhookEvent: 'PaymentWebhookEvent',
3080
2780
  Permission: 'Permission',
3081
2781
  PipelineDistributionAnalytics: 'PipelineDistributionAnalytics',
3082
2782
  PipelineDistributionAnalyticsDaily: 'PipelineDistributionAnalyticsDaily',