@adaptware/eagles-db 0.1.79 → 0.1.81

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-88a5287d6d2b4747b23e998603ab2b5c0065cff82858cb3475eb1ffb1d9557ec",
2
+ "name": "prisma-client-b3c805181fbbb2c8de0276b771e7216b71c0ca43032bf8d6968ea412e21a3503",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -112,35 +112,43 @@ enum ApplicationStatus {
112
112
  }
113
113
 
114
114
  model Application {
115
- id String @id @default(uuid())
116
- candidate_id String
117
- resume_id String
118
- organisation_id String
119
- job_description_id String
120
- status ApplicationStatus @default(PENDING)
121
- fit_check_score Float?
122
- fit_check_status FitCheckStatus?
123
- applied_at DateTime @default(now())
124
- evaluation_plan_id String?
125
- evaluation_plan EvaluationPlan? @relation(fields: [evaluation_plan_id], references: [id])
126
- fit_check_id String? @unique
127
- round_no Int @default(0)
115
+ id String @id @default(uuid())
116
+ candidate_id String
117
+ resume_id String
118
+ organisation_id String
119
+ job_description_id String
120
+ fit_check_score Float?
121
+ applied_at DateTime @default(now())
122
+ evaluation_plan_id String?
123
+ fit_check_id String? @unique
124
+ round_no Int @default(0)
125
+ //Screening fields
126
+ on_notice_period Boolean @default(false)
127
+ expected_joining_date DateTime?
128
+ current_ctc String?
129
+ expected_ctc String?
130
+ notice_period Int?
131
+ preferred_location String?
128
132
  // Relations
129
- candidate User @relation(fields: [candidate_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
130
- organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
131
- resume Resume @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
132
- job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
133
- fit_check FitCheck? @relation(fields: [fit_check_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
134
- interviews Interview[]
135
- assignments Assignment[]
136
- ongoing_evaluations OngoingEvaluation[]
137
- activity_logs ActivityLog[]
133
+ fit_check_status FitCheckStatus?
134
+ status ApplicationStatus @default(PENDING)
135
+ evaluation_plan EvaluationPlan? @relation(fields: [evaluation_plan_id], references: [id])
136
+ candidate User @relation(fields: [candidate_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
137
+ organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
138
+ resume Resume @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
139
+ job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
140
+ fit_check FitCheck? @relation(fields: [fit_check_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
141
+ interviews Interview[]
142
+ assignments Assignment[]
143
+ ongoing_evaluations OngoingEvaluation[]
144
+ activity_logs ActivityLog[]
145
+ notes Notes[]
138
146
  // Audit fields
139
- created_at DateTime @default(now())
140
- updated_at DateTime @updatedAt
141
- created_by String
142
- updated_by String
143
- is_active Boolean @default(true)
147
+ created_at DateTime @default(now())
148
+ updated_at DateTime @updatedAt
149
+ created_by String
150
+ updated_by String
151
+ is_active Boolean @default(true)
144
152
 
145
153
  @@unique([candidate_id, job_description_id]) // Ensures candidate applies only once per job
146
154
  @@index([candidate_id])
@@ -313,6 +321,37 @@ model AssignmentLibrary {
313
321
  @@index([job_description_id])
314
322
  }
315
323
 
324
+ enum AuthProvider {
325
+ GOOGLE
326
+ MICROSOFT
327
+ }
328
+
329
+ model AuthModule {
330
+ id String @id @default(uuid())
331
+
332
+ user_id String
333
+ user User @relation("UserAuthModule", fields: [user_id], references: [id], onDelete: Cascade)
334
+
335
+ provider AuthProvider
336
+ provider_account_id String? @db.Text
337
+
338
+ access_token String? @db.Text
339
+ refresh_token String? @db.Text
340
+ id_token String? @db.Text
341
+ expires_at DateTime?
342
+
343
+ token_type String?
344
+
345
+ scope String?
346
+ is_active Boolean @default(true)
347
+
348
+ created_at DateTime @default(now())
349
+ updated_at DateTime @updatedAt
350
+
351
+ @@unique([provider, provider_account_id])
352
+ @@index([user_id])
353
+ }
354
+
316
355
  enum JobType {
317
356
  Full_time
318
357
  Part_time
@@ -948,6 +987,26 @@ model Message {
948
987
  is_active Boolean @default(true)
949
988
  }
950
989
 
990
+ model Notes {
991
+ id String @id @default(uuid())
992
+ application_id String
993
+ user_id String
994
+ note String
995
+ pinned Boolean @default(false)
996
+ created_at DateTime @default(now())
997
+ updated_at DateTime @updatedAt
998
+ created_by String
999
+ updated_by String
1000
+ is_active Boolean @default(true)
1001
+
1002
+ // Relations
1003
+ application Application @relation(fields: [application_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
1004
+ user User @relation(fields: [user_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
1005
+
1006
+ @@index([application_id, created_at])
1007
+ @@index([user_id, created_at])
1008
+ }
1009
+
951
1010
  enum OngoingEvaluationStatus {
952
1011
  LOCKED
953
1012
  ACTION_REQUIRED
@@ -1164,12 +1223,24 @@ model Question {
1164
1223
  candidateResponse CandidateQuestionResponse[]
1165
1224
  }
1166
1225
 
1226
+ model RefreshToken {
1227
+ id String @id @default(uuid())
1228
+ user_id String
1229
+ token String @unique
1230
+ is_active Boolean @default(true)
1231
+ expires_at DateTime
1232
+ created_at DateTime @default(now())
1233
+ updated_at DateTime @updatedAt
1234
+ user User @relation("TokenRefresh", fields: [user_id], references: [id], onDelete: Cascade)
1235
+ }
1236
+
1167
1237
  model Resume {
1168
1238
  id String @id @default(uuid())
1169
1239
  user_id String?
1170
1240
  organisation_id String?
1171
1241
  job_description_id String?
1172
1242
  uploaded_resume_path String?
1243
+ file_hash String? @unique
1173
1244
  summary Json?
1174
1245
  created_at DateTime @default(now())
1175
1246
  updated_at DateTime @updatedAt
@@ -1191,6 +1262,7 @@ model Resume {
1191
1262
  yearsOfExperience Int?
1192
1263
 
1193
1264
  @@index([user_id])
1265
+ @@index([file_hash])
1194
1266
  }
1195
1267
 
1196
1268
  model ResumeData {
@@ -1327,6 +1399,9 @@ model User {
1327
1399
  fitChecks FitCheck[]
1328
1400
  created_job_profiles JobProfile[] @relation("ProfileCreator")
1329
1401
  assigned_job_profiles JobProfile[] @relation("ProfileAssignee")
1402
+ user_auth_modules AuthModule[] @relation("UserAuthModule")
1403
+ refresh_token_auth RefreshToken[] @relation("TokenRefresh")
1404
+ notes Notes[]
1330
1405
 
1331
1406
  name String?
1332
1407
  phone String?
package/client/wasm.js CHANGED
@@ -181,13 +181,19 @@ exports.Prisma.ApplicationScalarFieldEnum = {
181
181
  resume_id: 'resume_id',
182
182
  organisation_id: 'organisation_id',
183
183
  job_description_id: 'job_description_id',
184
- status: 'status',
185
184
  fit_check_score: 'fit_check_score',
186
- fit_check_status: 'fit_check_status',
187
185
  applied_at: 'applied_at',
188
186
  evaluation_plan_id: 'evaluation_plan_id',
189
187
  fit_check_id: 'fit_check_id',
190
188
  round_no: 'round_no',
189
+ on_notice_period: 'on_notice_period',
190
+ expected_joining_date: 'expected_joining_date',
191
+ current_ctc: 'current_ctc',
192
+ expected_ctc: 'expected_ctc',
193
+ notice_period: 'notice_period',
194
+ preferred_location: 'preferred_location',
195
+ fit_check_status: 'fit_check_status',
196
+ status: 'status',
191
197
  created_at: 'created_at',
192
198
  updated_at: 'updated_at',
193
199
  created_by: 'created_by',
@@ -289,6 +295,22 @@ exports.Prisma.AssignmentLibraryScalarFieldEnum = {
289
295
  is_active: 'is_active'
290
296
  };
291
297
 
298
+ exports.Prisma.AuthModuleScalarFieldEnum = {
299
+ id: 'id',
300
+ user_id: 'user_id',
301
+ provider: 'provider',
302
+ provider_account_id: 'provider_account_id',
303
+ access_token: 'access_token',
304
+ refresh_token: 'refresh_token',
305
+ id_token: 'id_token',
306
+ expires_at: 'expires_at',
307
+ token_type: 'token_type',
308
+ scope: 'scope',
309
+ is_active: 'is_active',
310
+ created_at: 'created_at',
311
+ updated_at: 'updated_at'
312
+ };
313
+
292
314
  exports.Prisma.BudgetScalarFieldEnum = {
293
315
  id: 'id',
294
316
  job_type: 'job_type',
@@ -627,6 +649,19 @@ exports.Prisma.MessageScalarFieldEnum = {
627
649
  is_active: 'is_active'
628
650
  };
629
651
 
652
+ exports.Prisma.NotesScalarFieldEnum = {
653
+ id: 'id',
654
+ application_id: 'application_id',
655
+ user_id: 'user_id',
656
+ note: 'note',
657
+ pinned: 'pinned',
658
+ created_at: 'created_at',
659
+ updated_at: 'updated_at',
660
+ created_by: 'created_by',
661
+ updated_by: 'updated_by',
662
+ is_active: 'is_active'
663
+ };
664
+
630
665
  exports.Prisma.OngoingEvaluationScalarFieldEnum = {
631
666
  id: 'id',
632
667
  application_id: 'application_id',
@@ -730,12 +765,23 @@ exports.Prisma.QuestionScalarFieldEnum = {
730
765
  is_active: 'is_active'
731
766
  };
732
767
 
768
+ exports.Prisma.RefreshTokenScalarFieldEnum = {
769
+ id: 'id',
770
+ user_id: 'user_id',
771
+ token: 'token',
772
+ is_active: 'is_active',
773
+ expires_at: 'expires_at',
774
+ created_at: 'created_at',
775
+ updated_at: 'updated_at'
776
+ };
777
+
733
778
  exports.Prisma.ResumeScalarFieldEnum = {
734
779
  id: 'id',
735
780
  user_id: 'user_id',
736
781
  organisation_id: 'organisation_id',
737
782
  job_description_id: 'job_description_id',
738
783
  uploaded_resume_path: 'uploaded_resume_path',
784
+ file_hash: 'file_hash',
739
785
  summary: 'summary',
740
786
  created_at: 'created_at',
741
787
  updated_at: 'updated_at',
@@ -886,6 +932,12 @@ exports.ActivityActorType = exports.$Enums.ActivityActorType = {
886
932
  SYSTEM: 'SYSTEM'
887
933
  };
888
934
 
935
+ exports.FitCheckStatus = exports.$Enums.FitCheckStatus = {
936
+ RECOMMENDED: 'RECOMMENDED',
937
+ TO_REVIEW: 'TO_REVIEW',
938
+ NOT_RECOMMENDED: 'NOT_RECOMMENDED'
939
+ };
940
+
889
941
  exports.ApplicationStatus = exports.$Enums.ApplicationStatus = {
890
942
  PENDING: 'PENDING',
891
943
  IN_PROGRESS: 'IN_PROGRESS',
@@ -893,12 +945,6 @@ exports.ApplicationStatus = exports.$Enums.ApplicationStatus = {
893
945
  REJECTED: 'REJECTED'
894
946
  };
895
947
 
896
- exports.FitCheckStatus = exports.$Enums.FitCheckStatus = {
897
- RECOMMENDED: 'RECOMMENDED',
898
- TO_REVIEW: 'TO_REVIEW',
899
- NOT_RECOMMENDED: 'NOT_RECOMMENDED'
900
- };
901
-
902
948
  exports.AssessmentCategory = exports.$Enums.AssessmentCategory = {
903
949
  MCQ: 'MCQ',
904
950
  COMPETENCY: 'COMPETENCY',
@@ -912,6 +958,11 @@ exports.AssignmentStatus = exports.$Enums.AssignmentStatus = {
912
958
  CANCELLED: 'CANCELLED'
913
959
  };
914
960
 
961
+ exports.AuthProvider = exports.$Enums.AuthProvider = {
962
+ GOOGLE: 'GOOGLE',
963
+ MICROSOFT: 'MICROSOFT'
964
+ };
965
+
915
966
  exports.JobType = exports.$Enums.JobType = {
916
967
  Full_time: 'Full_time',
917
968
  Part_time: 'Part_time',
@@ -1102,6 +1153,7 @@ exports.Prisma.ModelName = {
1102
1153
  AssessmentQuestion: 'AssessmentQuestion',
1103
1154
  Assignment: 'Assignment',
1104
1155
  AssignmentLibrary: 'AssignmentLibrary',
1156
+ AuthModule: 'AuthModule',
1105
1157
  Budget: 'Budget',
1106
1158
  Calendly: 'Calendly',
1107
1159
  CandidateProfile: 'CandidateProfile',
@@ -1120,11 +1172,13 @@ exports.Prisma.ModelName = {
1120
1172
  JobProfile: 'JobProfile',
1121
1173
  LiveAnalysis: 'LiveAnalysis',
1122
1174
  Message: 'Message',
1175
+ Notes: 'Notes',
1123
1176
  OngoingEvaluation: 'OngoingEvaluation',
1124
1177
  Organisation: 'Organisation',
1125
1178
  Permission: 'Permission',
1126
1179
  AsyncOperation: 'AsyncOperation',
1127
1180
  Question: 'Question',
1181
+ RefreshToken: 'RefreshToken',
1128
1182
  Resume: 'Resume',
1129
1183
  ResumeData: 'ResumeData',
1130
1184
  Suggestion: 'Suggestion',
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { PrismaClient } from "../client/index.js";
2
2
  export declare const prisma: PrismaClient<{
3
- log: ("error" | "query" | "warn")[];
4
- }, "error" | "query" | "warn", import("../client/runtime/library.js").DefaultArgs>;
3
+ log: ("error" | "warn")[];
4
+ }, "error" | "warn", import("../client/runtime/library.js").DefaultArgs>;
5
5
  export type { PrismaClient } from "../client/index.js";
6
6
  export * from "../client/index.js";
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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"}
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;;wEAKjB,CAAC;AAGH,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGvD,cAAc,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { PrismaClient } from "../client/index.js";
2
- // Create a singleton instance of PrismaClient
2
+ // Never enable Prisma `query` logging — it prints full SQL to stdout.
3
3
  export const prisma = new PrismaClient({
4
4
  log: process.env.NODE_ENV === "development"
5
- ? ["query", "error", "warn"]
5
+ ? ["error", "warn"]
6
6
  : ["error"],
7
7
  });
8
8
  // Export all Prisma types
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EA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AAO,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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptware/eagles-db",
3
- "version": "0.1.79",
3
+ "version": "0.1.81",
4
4
  "description": "A Prisma client package for Treadspace database operations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,6 +22,8 @@ model Application {
22
22
  expected_joining_date DateTime?
23
23
  current_ctc String?
24
24
  expected_ctc String?
25
+ notice_period Int?
26
+ preferred_location String?
25
27
  // Relations
26
28
  fit_check_status FitCheckStatus?
27
29
  status ApplicationStatus @default(PENDING)