@adaptware/eagles-db 0.1.30 → 0.1.31

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "prisma-client-7cb9df967323f5dd6c09c7bfa61ee7c650b0dbae8224f03ff4335b410678a16b",
2
+ "name": "prisma-client-fea6de6cf6f7afdb8ba6d74b47dde52ae47cd5a41df339c317a9148acf3c08dd",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -356,6 +356,13 @@ enum RoundType {
356
356
  SCREENING
357
357
  }
358
358
 
359
+ // Old
360
+ enum WeightageLevel {
361
+ LOW
362
+ MEDIUM
363
+ HIGH
364
+ }
365
+
359
366
  enum EvaluationRoundFormat {
360
367
  // ────────────────
361
368
  // Screening formats
@@ -386,18 +393,16 @@ enum EvaluationRoundFormat {
386
393
  }
387
394
 
388
395
  enum EvaluationType {
396
+ // Old
397
+ HUMAN_AI // Combination of human and AI evaluation
398
+ AI // Fully automated AI evaluation
399
+ HUMAN // Fully human-driven evaluation
389
400
  // New (In active use now)
390
401
  TREADSPACE_AI_ASSISTED
391
402
  EXTERNAL_AI_ASSISTED
392
403
  NON_AI_ASSISTED
393
404
  }
394
405
 
395
- enum EvaluationPlanType {
396
- CUSTOM
397
- GENERIC
398
- DELETED
399
- }
400
-
401
406
  model EvaluationPlan {
402
407
  id String @id @default(uuid())
403
408
  job_description_id String
@@ -406,15 +411,16 @@ model EvaluationPlan {
406
411
  title String
407
412
  description String?
408
413
  format EvaluationRoundFormat?
414
+ weightage WeightageLevel?
409
415
  topics String[]
410
416
  assignee String?
411
417
  elimination_round Boolean @default(false)
412
418
  evaluation_type EvaluationType
413
419
  type_of_round RoundType
414
420
  timeline Int
415
- order_no Int?
421
+ order_no Int
416
422
  details Json?
417
- plan_type EvaluationPlanType @default(GENERIC)
423
+ lock_weight Boolean?
418
424
  created_by String
419
425
  updated_by String
420
426
  created_at DateTime @default(now())
@@ -426,7 +432,7 @@ model EvaluationPlan {
426
432
  panelists Panelist[]
427
433
  interviews Interview[]
428
434
  applications Application[]
429
- // New optional one-to-one relation with AssessmentLibrary
435
+ // 👇 New optional one-to-one relation with AssessmentLibrary
430
436
  assessment AssessmentLibrary? @relation(fields: [assessment_id], references: [id], onDelete: SetNull)
431
437
  assignment_library AssignmentLibrary? @relation(fields: [assignment_library_id], references: [id], onDelete: SetNull)
432
438
  ongoing_evaluations OngoingEvaluation[]
@@ -673,24 +679,22 @@ enum JobDescriptionStatus {
673
679
 
674
680
  model JobDescription {
675
681
  id String @id @default(uuid())
676
- organisation_id String
677
682
  hiring_manager_id String?
678
683
  status JobDescriptionStatus @default(DRAFT)
684
+ organisation_id String
679
685
  screeningQuestions String[]
680
686
  recommendedQuestions Json[]
681
- uploaded_job_description_path String?
682
- is_plan_locked Boolean? @default(false)
683
- is_plan_published Boolean @default(false)
684
- is_posted Boolean @default(false)
685
- ai_insight Json?
686
- // Audit fields
687
687
  created_at DateTime @default(now())
688
688
  updated_at DateTime @updatedAt
689
689
  created_by String
690
690
  updated_by String
691
+ uploaded_job_description_path String?
691
692
  is_active Boolean @default(true)
693
+ is_plan_locked Boolean @default(false)
694
+ is_posted Boolean @default(false)
692
695
  openings Int @default(1)
693
696
  organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
697
+ ai_insight Json?
694
698
  applications Application[]
695
699
  interviews Interview[]
696
700
  fit_check FitCheck[] // one-to-many link
@@ -796,18 +800,6 @@ model OngoingEvaluation {
796
800
  updated_by String
797
801
  is_active Boolean @default(true)
798
802
  is_current Boolean @default(false)
799
- // Evaluation Plan Details Will be stored only when candidate starts for the evaluation round
800
- title String?
801
- description String?
802
- round_no Int?
803
- format EvaluationRoundFormat?
804
- topics String[]
805
- assignee String?
806
- elimination_round Boolean? @default(false)
807
- evaluation_type EvaluationType?
808
- type_of_round RoundType?
809
- timeline Int?
810
- details Json?
811
803
 
812
804
  @@unique([application_id, evaluation_plan_id])
813
805
  @@index([application_id])
@@ -1129,20 +1121,22 @@ model User {
1129
1121
  calendly Calendly?
1130
1122
  google Google?
1131
1123
 
1132
- name String?
1133
- phone String?
1134
- description String?
1135
- date_of_birth DateTime?
1136
- designation String?
1137
- location String?
1138
- salary String?
1139
- work_experience Json?
1140
- education Json?
1141
- notice_period String?
1142
- gender String?
1143
- ethnicity String?
1144
- veteran_status String?
1145
- disability_status String?
1124
+ name String?
1125
+ phone String?
1126
+ description String?
1127
+ date_of_birth DateTime?
1128
+ designation String?
1129
+ location String?
1130
+ salary String?
1131
+ work_experience Json?
1132
+ education Json?
1133
+ skills Json?
1134
+ notice_period String?
1135
+ preferred_work_mode String?
1136
+ gender String?
1137
+ ethnicity String?
1138
+ veteran_status String?
1139
+ disability_status String?
1146
1140
 
1147
1141
  @@index([role_id])
1148
1142
  @@index([permission_id])
package/client/wasm.js CHANGED
@@ -332,6 +332,7 @@ exports.Prisma.EvaluationPlanScalarFieldEnum = {
332
332
  title: 'title',
333
333
  description: 'description',
334
334
  format: 'format',
335
+ weightage: 'weightage',
335
336
  topics: 'topics',
336
337
  assignee: 'assignee',
337
338
  elimination_round: 'elimination_round',
@@ -340,7 +341,7 @@ exports.Prisma.EvaluationPlanScalarFieldEnum = {
340
341
  timeline: 'timeline',
341
342
  order_no: 'order_no',
342
343
  details: 'details',
343
- plan_type: 'plan_type',
344
+ lock_weight: 'lock_weight',
344
345
  created_by: 'created_by',
345
346
  updated_by: 'updated_by',
346
347
  created_at: 'created_at',
@@ -477,22 +478,21 @@ exports.Prisma.InterviewNotesScalarFieldEnum = {
477
478
 
478
479
  exports.Prisma.JobDescriptionScalarFieldEnum = {
479
480
  id: 'id',
480
- organisation_id: 'organisation_id',
481
481
  hiring_manager_id: 'hiring_manager_id',
482
482
  status: 'status',
483
+ organisation_id: 'organisation_id',
483
484
  screeningQuestions: 'screeningQuestions',
484
485
  recommendedQuestions: 'recommendedQuestions',
485
- uploaded_job_description_path: 'uploaded_job_description_path',
486
- is_plan_locked: 'is_plan_locked',
487
- is_plan_published: 'is_plan_published',
488
- is_posted: 'is_posted',
489
- ai_insight: 'ai_insight',
490
486
  created_at: 'created_at',
491
487
  updated_at: 'updated_at',
492
488
  created_by: 'created_by',
493
489
  updated_by: 'updated_by',
490
+ uploaded_job_description_path: 'uploaded_job_description_path',
494
491
  is_active: 'is_active',
495
- openings: 'openings'
492
+ is_plan_locked: 'is_plan_locked',
493
+ is_posted: 'is_posted',
494
+ openings: 'openings',
495
+ ai_insight: 'ai_insight'
496
496
  };
497
497
 
498
498
  exports.Prisma.JobDescriptionDataScalarFieldEnum = {
@@ -537,18 +537,7 @@ exports.Prisma.OngoingEvaluationScalarFieldEnum = {
537
537
  created_by: 'created_by',
538
538
  updated_by: 'updated_by',
539
539
  is_active: 'is_active',
540
- is_current: 'is_current',
541
- title: 'title',
542
- description: 'description',
543
- round_no: 'round_no',
544
- format: 'format',
545
- topics: 'topics',
546
- assignee: 'assignee',
547
- elimination_round: 'elimination_round',
548
- evaluation_type: 'evaluation_type',
549
- type_of_round: 'type_of_round',
550
- timeline: 'timeline',
551
- details: 'details'
540
+ is_current: 'is_current'
552
541
  };
553
542
 
554
543
  exports.Prisma.OrganisationScalarFieldEnum = {
@@ -716,7 +705,9 @@ exports.Prisma.UserScalarFieldEnum = {
716
705
  salary: 'salary',
717
706
  work_experience: 'work_experience',
718
707
  education: 'education',
708
+ skills: 'skills',
719
709
  notice_period: 'notice_period',
710
+ preferred_work_mode: 'preferred_work_mode',
720
711
  gender: 'gender',
721
712
  ethnicity: 'ethnicity',
722
713
  veteran_status: 'veteran_status',
@@ -838,7 +829,16 @@ exports.EvaluationRoundFormat = exports.$Enums.EvaluationRoundFormat = {
838
829
  EXTERNAL_VIDEO_UNASSISTED: 'EXTERNAL_VIDEO_UNASSISTED'
839
830
  };
840
831
 
832
+ exports.WeightageLevel = exports.$Enums.WeightageLevel = {
833
+ LOW: 'LOW',
834
+ MEDIUM: 'MEDIUM',
835
+ HIGH: 'HIGH'
836
+ };
837
+
841
838
  exports.EvaluationType = exports.$Enums.EvaluationType = {
839
+ HUMAN_AI: 'HUMAN_AI',
840
+ AI: 'AI',
841
+ HUMAN: 'HUMAN',
842
842
  TREADSPACE_AI_ASSISTED: 'TREADSPACE_AI_ASSISTED',
843
843
  EXTERNAL_AI_ASSISTED: 'EXTERNAL_AI_ASSISTED',
844
844
  NON_AI_ASSISTED: 'NON_AI_ASSISTED'
@@ -851,12 +851,6 @@ exports.RoundType = exports.$Enums.RoundType = {
851
851
  SCREENING: 'SCREENING'
852
852
  };
853
853
 
854
- exports.EvaluationPlanType = exports.$Enums.EvaluationPlanType = {
855
- CUSTOM: 'CUSTOM',
856
- GENERIC: 'GENERIC',
857
- DELETED: 'DELETED'
858
- };
859
-
860
854
  exports.InterviewFeedback = exports.$Enums.InterviewFeedback = {
861
855
  STRONG_HIRE: 'STRONG_HIRE',
862
856
  HIRE: 'HIRE',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptware/eagles-db",
3
- "version": "0.1.30",
3
+ "version": "0.1.31",
4
4
  "description": "A Prisma client package for Treadspace database operations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -56,7 +56,9 @@ model User {
56
56
  salary String?
57
57
  work_experience Json?
58
58
  education Json?
59
+ skills Json?
59
60
  notice_period String?
61
+ preferred_work_mode String?
60
62
  gender String?
61
63
  ethnicity String?
62
64
  veteran_status String?
package/dist/env.d.ts DELETED
@@ -1,18 +0,0 @@
1
- /**
2
- * Centralized, type-safe environment parsing for the DB package.
3
- * Consumers must provide DATABASE_URL in their environment.
4
- */
5
- import { z } from "zod";
6
- declare const EnvSchema: z.ZodObject<{
7
- DATABASE_URL: z.ZodString;
8
- PRISMA_LOG_LEVEL: z.ZodOptional<z.ZodEnum<{
9
- error: "error";
10
- query: "query";
11
- info: "info";
12
- warn: "warn";
13
- }>>;
14
- }, z.core.$strip>;
15
- export type Env = z.infer<typeof EnvSchema>;
16
- export declare function loadEnv(): Env;
17
- export {};
18
- //# sourceMappingURL=env.d.ts.map
package/dist/env.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,QAAA,MAAM,SAAS;;;;;;;;iBAMb,CAAC;AAEH,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAI5C,wBAAgB,OAAO,IAAI,GAAG,CAgB7B"}
package/dist/env.js DELETED
@@ -1,30 +0,0 @@
1
- // src/env.ts
2
- /**
3
- * Centralized, type-safe environment parsing for the DB package.
4
- * Consumers must provide DATABASE_URL in their environment.
5
- */
6
- import { z } from "zod";
7
- const EnvSchema = z.object({
8
- DATABASE_URL: z.string().url("DATABASE_URL must be a valid URL"),
9
- // Optional tuning knobs with defaults.
10
- PRISMA_LOG_LEVEL: z
11
- .enum(["query", "info", "warn", "error"])
12
- .optional(),
13
- });
14
- let cached = null;
15
- export function loadEnv() {
16
- if (cached)
17
- return cached;
18
- const parsed = EnvSchema.safeParse({
19
- DATABASE_URL: process.env.DATABASE_URL,
20
- PRISMA_LOG_LEVEL: process.env.PRISMA_LOG_LEVEL
21
- });
22
- if (!parsed.success) {
23
- // Surface a crisp error early.
24
- const issues = parsed.error.issues.map(i => `${i.path.join(".")}: ${i.message}`).join("; ");
25
- throw new Error(`[db] Invalid environment: ${issues}`);
26
- }
27
- cached = parsed.data;
28
- return cached;
29
- }
30
- //# sourceMappingURL=env.js.map
package/dist/env.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"env.js","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAAA,aAAa;AACb;;;GAGG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IACzB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,kCAAkC,CAAC;IAChE,uCAAuC;IACvC,gBAAgB,EAAE,CAAC;SAChB,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;SACxC,QAAQ,EAAE;CACd,CAAC,CAAC;AAIH,IAAI,MAAM,GAAe,IAAI,CAAC;AAE9B,MAAM,UAAU,OAAO;IACrB,IAAI,MAAM;QAAE,OAAO,MAAM,CAAC;IAE1B,MAAM,MAAM,GAAG,SAAS,CAAC,SAAS,CAAC;QACjC,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY;QACtC,gBAAgB,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAuB;KACtD,CAAC,CAAC;IAEH,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,+BAA+B;QAC/B,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC5F,MAAM,IAAI,KAAK,CAAC,6BAA6B,MAAM,EAAE,CAAC,CAAC;IACzD,CAAC;IAED,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC;IACrB,OAAO,MAAM,CAAC;AAChB,CAAC"}
package/dist/index.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import { PrismaClient } from "../client/index.js";
2
- export declare const prisma: PrismaClient<{
3
- log: ("error" | "query" | "warn")[];
4
- }, "error" | "query" | "warn", import("../client/runtime/library.js").DefaultArgs>;
5
- export type { PrismaClient } from "../client/index.js";
6
- export * from "../client/index.js";
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,eAAO,MAAM,MAAM;;kFAKjB,CAAC;AAGH,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGvD,cAAc,oBAAoB,CAAC"}
package/dist/index.js DELETED
@@ -1,22 +0,0 @@
1
- import { PrismaClient } from "../client/index.js";
2
- // Create a singleton instance of PrismaClient
3
- export const prisma = new PrismaClient({
4
- log: process.env.NODE_ENV === "development"
5
- ? ["query", "error", "warn"]
6
- : ["error"],
7
- });
8
- // Export all Prisma types
9
- export * from "../client/index.js";
10
- // Graceful shutdown
11
- process.on("beforeExit", async () => {
12
- await prisma.$disconnect();
13
- });
14
- process.on("SIGINT", async () => {
15
- await prisma.$disconnect();
16
- process.exit(0);
17
- });
18
- process.on("SIGTERM", async () => {
19
- await prisma.$disconnect();
20
- process.exit(0);
21
- });
22
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,8CAA8C;AAC9C,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC;IACrC,GAAG,EACD,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa;QACpC,CAAC,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC;QAC5B,CAAC,CAAC,CAAC,OAAO,CAAC;CAChB,CAAC,CAAC;AAKH,0BAA0B;AAC1B,cAAc,oBAAoB,CAAC;AAEnC,oBAAoB;AACpB,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,KAAK,IAAI,EAAE;IAClC,MAAM,MAAM,CAAC,WAAW,EAAE,CAAC;AAC7B,CAAC,CAAC,CAAC;AAEH,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;IAC9B,MAAM,MAAM,CAAC,WAAW,EAAE,CAAC;IAC3B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC;AAEH,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;IAC/B,MAAM,MAAM,CAAC,WAAW,EAAE,CAAC;IAC3B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
package/prisma/.DS_Store DELETED
Binary file