@adaptware/eagles-db 0.5.8 → 0.5.9

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 (49) hide show
  1. package/client/edge.js +74 -41
  2. package/client/index-browser.js +78 -44
  3. package/client/index.d.ts +14441 -7888
  4. package/client/index.js +74 -41
  5. package/client/libquery_engine-darwin.dylib.node +0 -0
  6. package/client/package.json +1 -1
  7. package/client/schema.prisma +138 -92
  8. package/client/wasm.js +74 -41
  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 +0 -2
  14. package/prisma/schema/assessmentRoundAnalytics.prisma +0 -2
  15. package/prisma/schema/assignmentRoundAnalytics.prisma +0 -2
  16. package/prisma/schema/evaluationPlan.prisma +0 -32
  17. package/prisma/schema/interview.prisma +32 -44
  18. package/prisma/schema/interviewRoundAnalytics.prisma +35 -37
  19. package/prisma/schema/migrations/20260519120000_add_analytics_schema/migration.sql +84 -0
  20. package/prisma/schema/migrations/20260625120000_add_interviewer_analytics/migration.sql +26 -0
  21. package/prisma/schema/migrations/20260629120000_add_user_lifecycle_activity_events/migration.sql +13 -0
  22. package/prisma/schema/migrations/20260629140000_drop_organisation_org_code/migration.sql +2 -0
  23. package/prisma/schema/migrations/20260629160000_employee_codes_dual_interviewer_analytics/migration.sql +87 -0
  24. package/prisma/schema/migrations/20260630120000_add_application_sources/migration.sql +38 -0
  25. package/prisma/schema/migrations/20260701120000_add_source_effectiveness_analytics/migration.sql +40 -0
  26. package/prisma/schema/migrations/20260702120000_add_analytics_daily_tables/migration.sql +232 -0
  27. package/prisma/schema/migrations/20260716120000_evaluation_category_four_values/migration.sql +204 -0
  28. package/prisma/schema/migrations/20260716130000_application_withdrawn_analytics/migration.sql +31 -0
  29. package/prisma/schema/ongoingEvaluation.prisma +0 -1
  30. package/prisma/schema/organisation.prisma +2 -0
  31. package/prisma/schema/schema.prisma +1 -1
  32. package/prisma/schema/usage.prisma +96 -0
  33. package/prisma/schema/migrations/20260522120000_ongoing_evaluation_record_kind/migration.sql +0 -25
  34. package/prisma/schema/migrations/20260523120000_replace_record_kind_with_is_committed/migration.sql +0 -24
  35. package/prisma/schema/migrations/20260528120000_drop_job_description_recommendation_config/migration.sql +0 -2
  36. package/prisma/schema/migrations/20260710120000_add_resume_rendered_export_fields/migration.sql +0 -9
  37. package/prisma/schema/migrations/20260714120000_add_job_description_display_html_document/migration.sql +0 -8
  38. package/prisma/schema/migrations/20260716120000_add_offer_letters/migration.sql +0 -183
  39. package/prisma/schema/migrations/20260716140000_offer_schema_refinements/migration.sql +0 -13
  40. package/prisma/schema/migrations/20260716160000_offer_schema_hardening/migration.sql +0 -95
  41. package/prisma/schema/migrations/20260716180000_offer_letter_template_config/migration.sql +0 -2
  42. package/prisma/schema/migrations/20260716190000_add_evaluation_focus_areas/migration.sql +0 -6
  43. package/prisma/schema/migrations/20260717120000_offer_workflow_approval/migration.sql +0 -30
  44. package/prisma/schema/migrations/20260720120000_offer_letter_template_is_draft/migration.sql +0 -5
  45. package/prisma/schema/migrations/20260720140000_offer_status_split/migration.sql +0 -51
  46. package/prisma/schema/migrations/20260720140001_offer_status_split_backfill/migration.sql +0 -37
  47. package/prisma/schema/migrations/20260722120000_offer_draft_edited_html/migration.sql +0 -13
  48. package/prisma/schema/migrations/20260723150000_offer_withdraw_actor_no_show_reason/migration.sql +0 -10
  49. package/prisma/schema/migrations/20260724120000_open_job_offer_accepted_declined_counts/migration.sql +0 -7
@@ -277,7 +277,6 @@ exports.Prisma.ApplicationScalarFieldEnum = {
277
277
  fit_check_status: 'fit_check_status',
278
278
  status: 'status',
279
279
  offer_status: 'offer_status',
280
- offer_substatus: 'offer_substatus',
281
280
  created_at: 'created_at',
282
281
  updated_at: 'updated_at',
283
282
  created_by: 'created_by',
@@ -358,7 +357,6 @@ exports.Prisma.AssessmentRoundAnalyticsScalarFieldEnum = {
358
357
  round_name: 'round_name',
359
358
  evaluation_category: 'evaluation_category',
360
359
  round_type: 'round_type',
361
- round_format: 'round_format',
362
360
  plan_order_no: 'plan_order_no',
363
361
  plan_type: 'plan_type',
364
362
  is_custom: 'is_custom',
@@ -398,7 +396,6 @@ exports.Prisma.AssessmentRoundAnalyticsDailyScalarFieldEnum = {
398
396
  round_name: 'round_name',
399
397
  evaluation_category: 'evaluation_category',
400
398
  round_type: 'round_type',
401
- round_format: 'round_format',
402
399
  plan_order_no: 'plan_order_no',
403
400
  plan_type: 'plan_type',
404
401
  is_custom: 'is_custom',
@@ -476,7 +473,6 @@ exports.Prisma.AssignmentRoundAnalyticsScalarFieldEnum = {
476
473
  round_name: 'round_name',
477
474
  evaluation_category: 'evaluation_category',
478
475
  round_type: 'round_type',
479
- round_format: 'round_format',
480
476
  plan_order_no: 'plan_order_no',
481
477
  plan_type: 'plan_type',
482
478
  is_custom: 'is_custom',
@@ -516,7 +512,6 @@ exports.Prisma.AssignmentRoundAnalyticsDailyScalarFieldEnum = {
516
512
  round_name: 'round_name',
517
513
  evaluation_category: 'evaluation_category',
518
514
  round_type: 'round_type',
519
- round_format: 'round_format',
520
515
  plan_order_no: 'plan_order_no',
521
516
  plan_type: 'plan_type',
522
517
  is_custom: 'is_custom',
@@ -781,7 +776,6 @@ exports.Prisma.EvaluationPlanScalarFieldEnum = {
781
776
  assignment_library_id: 'assignment_library_id',
782
777
  title: 'title',
783
778
  description: 'description',
784
- format: 'format',
785
779
  focus_areas: 'focus_areas',
786
780
  topics: 'topics',
787
781
  assignee: 'assignee',
@@ -1025,13 +1019,9 @@ exports.Prisma.InterviewScalarFieldEnum = {
1025
1019
  ai_assistance_mode: 'ai_assistance_mode',
1026
1020
  interview_status: 'interview_status',
1027
1021
  interview_platform: 'interview_platform',
1028
- ai_interview_feedback: 'ai_interview_feedback',
1029
- interview_feedback: 'interview_feedback',
1030
1022
  overall_feedback: 'overall_feedback',
1031
- interview_rating: 'interview_rating',
1032
1023
  ai_feedback: 'ai_feedback',
1033
1024
  human_feedback: 'human_feedback',
1034
- interviewer_feedback: 'interviewer_feedback',
1035
1025
  section_feedback: 'section_feedback',
1036
1026
  interview_preparation: 'interview_preparation',
1037
1027
  final_feedback: 'final_feedback',
@@ -1082,7 +1072,6 @@ exports.Prisma.InterviewRoundAnalyticsScalarFieldEnum = {
1082
1072
  round_name: 'round_name',
1083
1073
  evaluation_category: 'evaluation_category',
1084
1074
  round_type: 'round_type',
1085
- round_format: 'round_format',
1086
1075
  plan_order_no: 'plan_order_no',
1087
1076
  plan_type: 'plan_type',
1088
1077
  is_custom: 'is_custom',
@@ -1131,7 +1120,6 @@ exports.Prisma.InterviewRoundAnalyticsDailyScalarFieldEnum = {
1131
1120
  round_name: 'round_name',
1132
1121
  evaluation_category: 'evaluation_category',
1133
1122
  round_type: 'round_type',
1134
- round_format: 'round_format',
1135
1123
  plan_order_no: 'plan_order_no',
1136
1124
  plan_type: 'plan_type',
1137
1125
  is_custom: 'is_custom',
@@ -1577,7 +1565,6 @@ exports.Prisma.OngoingEvaluationScalarFieldEnum = {
1577
1565
  title: 'title',
1578
1566
  description: 'description',
1579
1567
  order_no: 'order_no',
1580
- format: 'format',
1581
1568
  round_purpose: 'round_purpose',
1582
1569
  focus_areas: 'focus_areas',
1583
1570
  topics: 'topics',
@@ -2008,6 +1995,51 @@ exports.Prisma.TranscriptScalarFieldEnum = {
2008
1995
  is_active: 'is_active'
2009
1996
  };
2010
1997
 
1998
+ exports.Prisma.UsageMetricDefinitionScalarFieldEnum = {
1999
+ id: 'id',
2000
+ key: 'key',
2001
+ name: 'name',
2002
+ unit: 'unit',
2003
+ aggregation_type: 'aggregation_type',
2004
+ metadata: 'metadata',
2005
+ created_at: 'created_at',
2006
+ updated_at: 'updated_at'
2007
+ };
2008
+
2009
+ exports.Prisma.UsageLedgerEntryScalarFieldEnum = {
2010
+ id: 'id',
2011
+ organisation_id: 'organisation_id',
2012
+ metric_key: 'metric_key',
2013
+ quantity: 'quantity',
2014
+ occurred_at: 'occurred_at',
2015
+ dimensions: 'dimensions',
2016
+ idempotency_key: 'idempotency_key',
2017
+ source_type: 'source_type',
2018
+ source_id: 'source_id',
2019
+ resource_type: 'resource_type',
2020
+ resource_id: 'resource_id',
2021
+ created_at: 'created_at'
2022
+ };
2023
+
2024
+ exports.Prisma.UsageAggregateScalarFieldEnum = {
2025
+ id: 'id',
2026
+ organisation_id: 'organisation_id',
2027
+ metric_key: 'metric_key',
2028
+ dimension_hash: 'dimension_hash',
2029
+ dimensions: 'dimensions',
2030
+ total_quantity: 'total_quantity',
2031
+ period_start: 'period_start',
2032
+ period_end: 'period_end',
2033
+ updated_at: 'updated_at'
2034
+ };
2035
+
2036
+ exports.Prisma.LicenseIncludedWorkflowScalarFieldEnum = {
2037
+ id: 'id',
2038
+ workflow_name: 'workflow_name',
2039
+ created_at: 'created_at',
2040
+ updated_at: 'updated_at'
2041
+ };
2042
+
2011
2043
  exports.Prisma.UserScalarFieldEnum = {
2012
2044
  id: 'id',
2013
2045
  email: 'email',
@@ -2282,16 +2314,6 @@ exports.OfferStatus = exports.$Enums.OfferStatus = {
2282
2314
  NO_SHOW: 'NO_SHOW'
2283
2315
  };
2284
2316
 
2285
- exports.OfferSubstatus = exports.$Enums.OfferSubstatus = {
2286
- OFFER_CREATED: 'OFFER_CREATED',
2287
- PENDING_APPROVAL: 'PENDING_APPROVAL',
2288
- OFFER_SENT: 'OFFER_SENT',
2289
- VIEWED: 'VIEWED',
2290
- CHANGE_REQUESTED: 'CHANGE_REQUESTED',
2291
- CHANGE_UNDER_REVIEW: 'CHANGE_UNDER_REVIEW',
2292
- COUNTER_OFFER_SENT: 'COUNTER_OFFER_SENT'
2293
- };
2294
-
2295
2317
  exports.EvaluationCategory = exports.$Enums.EvaluationCategory = {
2296
2318
  SCREENING: 'SCREENING',
2297
2319
  BUSINESS_SCREENING: 'BUSINESS_SCREENING',
@@ -2306,20 +2328,6 @@ exports.RoundType = exports.$Enums.RoundType = {
2306
2328
  SCREENING: 'SCREENING'
2307
2329
  };
2308
2330
 
2309
- exports.EvaluationRoundFormat = exports.$Enums.EvaluationRoundFormat = {
2310
- PHONE_CALL: 'PHONE_CALL',
2311
- VIDEO_CALL_AI_ASSISTED: 'VIDEO_CALL_AI_ASSISTED',
2312
- VIDEO_CALL_UNASSISTED: 'VIDEO_CALL_UNASSISTED',
2313
- AI_GENERATED_TEST: 'AI_GENERATED_TEST',
2314
- UPLOADED_TEST: 'UPLOADED_TEST',
2315
- EXTERNAL_PLATFORM: 'EXTERNAL_PLATFORM',
2316
- AI_GENERATED_ASSIGNMENT: 'AI_GENERATED_ASSIGNMENT',
2317
- UPLOADED_ASSIGNMENT: 'UPLOADED_ASSIGNMENT',
2318
- TREADSPACE_AI_ASSISTED: 'TREADSPACE_AI_ASSISTED',
2319
- EXTERNAL_VIDEO_AI_ASSISTED: 'EXTERNAL_VIDEO_AI_ASSISTED',
2320
- EXTERNAL_VIDEO_UNASSISTED: 'EXTERNAL_VIDEO_UNASSISTED'
2321
- };
2322
-
2323
2331
  exports.EvaluationPlanType = exports.$Enums.EvaluationPlanType = {
2324
2332
  CUSTOM: 'CUSTOM',
2325
2333
  GENERIC: 'GENERIC',
@@ -2526,13 +2534,6 @@ exports.InterviewPlatform = exports.$Enums.InterviewPlatform = {
2526
2534
  ZOOM: 'ZOOM'
2527
2535
  };
2528
2536
 
2529
- exports.InterviewFeedback = exports.$Enums.InterviewFeedback = {
2530
- STRONG_HIRE: 'STRONG_HIRE',
2531
- HIRE: 'HIRE',
2532
- NO_HIRE: 'NO_HIRE',
2533
- STRONG_NO_HIRE: 'STRONG_NO_HIRE'
2534
- };
2535
-
2536
2537
  exports.InterviewRecommendation = exports.$Enums.InterviewRecommendation = {
2537
2538
  ACCEPTED: 'ACCEPTED',
2538
2539
  REJECTED: 'REJECTED',
@@ -2574,6 +2575,16 @@ exports.OfferLetterTemplateScope = exports.$Enums.OfferLetterTemplateScope = {
2574
2575
  JOB: 'JOB'
2575
2576
  };
2576
2577
 
2578
+ exports.OfferSubstatus = exports.$Enums.OfferSubstatus = {
2579
+ OFFER_CREATED: 'OFFER_CREATED',
2580
+ PENDING_APPROVAL: 'PENDING_APPROVAL',
2581
+ OFFER_SENT: 'OFFER_SENT',
2582
+ VIEWED: 'VIEWED',
2583
+ CHANGE_REQUESTED: 'CHANGE_REQUESTED',
2584
+ CHANGE_UNDER_REVIEW: 'CHANGE_UNDER_REVIEW',
2585
+ COUNTER_OFFER_SENT: 'COUNTER_OFFER_SENT'
2586
+ };
2587
+
2577
2588
  exports.OfferWithdrawReason = exports.$Enums.OfferWithdrawReason = {
2578
2589
  ROLE_CLOSED: 'ROLE_CLOSED',
2579
2590
  CANDIDATE_ACCEPTED_ELSEWHERE: 'CANDIDATE_ACCEPTED_ELSEWHERE',
@@ -2667,6 +2678,25 @@ exports.Difficulty = exports.$Enums.Difficulty = {
2667
2678
  HARD: 'HARD'
2668
2679
  };
2669
2680
 
2681
+ exports.UsageUnit = exports.$Enums.UsageUnit = {
2682
+ COUNT: 'COUNT',
2683
+ BYTES: 'BYTES',
2684
+ SECONDS: 'SECONDS',
2685
+ TOKENS: 'TOKENS',
2686
+ COST: 'COST'
2687
+ };
2688
+
2689
+ exports.UsageAggregationType = exports.$Enums.UsageAggregationType = {
2690
+ SUM: 'SUM',
2691
+ GAUGE: 'GAUGE'
2692
+ };
2693
+
2694
+ exports.UsageSourceType = exports.$Enums.UsageSourceType = {
2695
+ activity_event: 'activity_event',
2696
+ usage_publisher: 'usage_publisher',
2697
+ reconcile: 'reconcile'
2698
+ };
2699
+
2670
2700
  exports.UserInvitationStatus = exports.$Enums.UserInvitationStatus = {
2671
2701
  INVITED: 'INVITED',
2672
2702
  ACCEPTED: 'ACCEPTED',
@@ -2772,6 +2802,10 @@ exports.Prisma.ModelName = {
2772
2802
  SourceEffectivenessAnalyticsDaily: 'SourceEffectivenessAnalyticsDaily',
2773
2803
  Suggestion: 'Suggestion',
2774
2804
  Transcript: 'Transcript',
2805
+ UsageMetricDefinition: 'UsageMetricDefinition',
2806
+ UsageLedgerEntry: 'UsageLedgerEntry',
2807
+ UsageAggregate: 'UsageAggregate',
2808
+ LicenseIncludedWorkflow: 'LicenseIncludedWorkflow',
2775
2809
  User: 'User',
2776
2810
  UserProfile: 'UserProfile',
2777
2811
  ZoomMeeting: 'ZoomMeeting',