@adaptware/eagles-db 0.1.76 → 0.1.78

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-3b13e70ea4eaaf9ad3ef0aef2e0077511335a6aca18eb9e9c60a5b8404f34c2b",
2
+ "name": "prisma-client-88a5287d6d2b4747b23e998603ab2b5c0065cff82858cb3475eb1ffb1d9557ec",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -313,37 +313,6 @@ model AssignmentLibrary {
313
313
  @@index([job_description_id])
314
314
  }
315
315
 
316
- enum AuthProvider {
317
- GOOGLE
318
- MICROSOFT
319
- }
320
-
321
- model AuthModule {
322
- id String @id @default(uuid())
323
-
324
- user_id String
325
- user User @relation("UserAuthModule", fields: [user_id], references: [id], onDelete: Cascade)
326
-
327
- provider AuthProvider
328
- provider_account_id String? @db.Text
329
-
330
- access_token String? @db.Text
331
- refresh_token String? @db.Text
332
- id_token String? @db.Text
333
- expires_at DateTime?
334
-
335
- token_type String?
336
-
337
- scope String?
338
- is_active Boolean @default(true)
339
-
340
- created_at DateTime @default(now())
341
- updated_at DateTime @updatedAt
342
-
343
- @@unique([provider, provider_account_id])
344
- @@index([user_id])
345
- }
346
-
347
316
  enum JobType {
348
317
  Full_time
349
318
  Part_time
@@ -1195,24 +1164,12 @@ model Question {
1195
1164
  candidateResponse CandidateQuestionResponse[]
1196
1165
  }
1197
1166
 
1198
- model RefreshToken {
1199
- id String @id @default(uuid())
1200
- user_id String
1201
- token String @unique
1202
- is_active Boolean @default(true)
1203
- expires_at DateTime
1204
- created_at DateTime @default(now())
1205
- updated_at DateTime @updatedAt
1206
- user User @relation("TokenRefresh", fields: [user_id], references: [id], onDelete: Cascade)
1207
- }
1208
-
1209
1167
  model Resume {
1210
1168
  id String @id @default(uuid())
1211
1169
  user_id String?
1212
1170
  organisation_id String?
1213
1171
  job_description_id String?
1214
1172
  uploaded_resume_path String?
1215
- file_hash String? @unique
1216
1173
  summary Json?
1217
1174
  created_at DateTime @default(now())
1218
1175
  updated_at DateTime @updatedAt
@@ -1234,7 +1191,6 @@ model Resume {
1234
1191
  yearsOfExperience Int?
1235
1192
 
1236
1193
  @@index([user_id])
1237
- @@index([file_hash])
1238
1194
  }
1239
1195
 
1240
1196
  model ResumeData {
@@ -1371,8 +1327,6 @@ model User {
1371
1327
  fitChecks FitCheck[]
1372
1328
  created_job_profiles JobProfile[] @relation("ProfileCreator")
1373
1329
  assigned_job_profiles JobProfile[] @relation("ProfileAssignee")
1374
- user_auth_modules AuthModule[] @relation("UserAuthModule")
1375
- refresh_token_auth RefreshToken[] @relation("TokenRefresh")
1376
1330
 
1377
1331
  name String?
1378
1332
  phone String?
package/client/wasm.js CHANGED
@@ -289,22 +289,6 @@ exports.Prisma.AssignmentLibraryScalarFieldEnum = {
289
289
  is_active: 'is_active'
290
290
  };
291
291
 
292
- exports.Prisma.AuthModuleScalarFieldEnum = {
293
- id: 'id',
294
- user_id: 'user_id',
295
- provider: 'provider',
296
- provider_account_id: 'provider_account_id',
297
- access_token: 'access_token',
298
- refresh_token: 'refresh_token',
299
- id_token: 'id_token',
300
- expires_at: 'expires_at',
301
- token_type: 'token_type',
302
- scope: 'scope',
303
- is_active: 'is_active',
304
- created_at: 'created_at',
305
- updated_at: 'updated_at'
306
- };
307
-
308
292
  exports.Prisma.BudgetScalarFieldEnum = {
309
293
  id: 'id',
310
294
  job_type: 'job_type',
@@ -746,23 +730,12 @@ exports.Prisma.QuestionScalarFieldEnum = {
746
730
  is_active: 'is_active'
747
731
  };
748
732
 
749
- exports.Prisma.RefreshTokenScalarFieldEnum = {
750
- id: 'id',
751
- user_id: 'user_id',
752
- token: 'token',
753
- is_active: 'is_active',
754
- expires_at: 'expires_at',
755
- created_at: 'created_at',
756
- updated_at: 'updated_at'
757
- };
758
-
759
733
  exports.Prisma.ResumeScalarFieldEnum = {
760
734
  id: 'id',
761
735
  user_id: 'user_id',
762
736
  organisation_id: 'organisation_id',
763
737
  job_description_id: 'job_description_id',
764
738
  uploaded_resume_path: 'uploaded_resume_path',
765
- file_hash: 'file_hash',
766
739
  summary: 'summary',
767
740
  created_at: 'created_at',
768
741
  updated_at: 'updated_at',
@@ -939,11 +912,6 @@ exports.AssignmentStatus = exports.$Enums.AssignmentStatus = {
939
912
  CANCELLED: 'CANCELLED'
940
913
  };
941
914
 
942
- exports.AuthProvider = exports.$Enums.AuthProvider = {
943
- GOOGLE: 'GOOGLE',
944
- MICROSOFT: 'MICROSOFT'
945
- };
946
-
947
915
  exports.JobType = exports.$Enums.JobType = {
948
916
  Full_time: 'Full_time',
949
917
  Part_time: 'Part_time',
@@ -1134,7 +1102,6 @@ exports.Prisma.ModelName = {
1134
1102
  AssessmentQuestion: 'AssessmentQuestion',
1135
1103
  Assignment: 'Assignment',
1136
1104
  AssignmentLibrary: 'AssignmentLibrary',
1137
- AuthModule: 'AuthModule',
1138
1105
  Budget: 'Budget',
1139
1106
  Calendly: 'Calendly',
1140
1107
  CandidateProfile: 'CandidateProfile',
@@ -1158,7 +1125,6 @@ exports.Prisma.ModelName = {
1158
1125
  Permission: 'Permission',
1159
1126
  AsyncOperation: 'AsyncOperation',
1160
1127
  Question: 'Question',
1161
- RefreshToken: 'RefreshToken',
1162
1128
  Resume: 'Resume',
1163
1129
  ResumeData: 'ResumeData',
1164
1130
  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" | "warn")[];
4
- }, "error" | "warn", import("../client/runtime/library.js").DefaultArgs>;
3
+ log: ("error" | "query" | "warn")[];
4
+ }, "error" | "query" | "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;;wEAKjB,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;;kFAKjB,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
- // Never enable Prisma `query` logging — it prints full SQL to stdout.
2
+ // Create a singleton instance of PrismaClient
3
3
  export const prisma = new PrismaClient({
4
4
  log: process.env.NODE_ENV === "development"
5
- ? ["error", "warn"]
5
+ ? ["query", "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,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,sEAAsE;AACtE,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC;IACrC,GAAG,EACD,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa;QACpC,CAAC,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC;QACnB,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,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AAE,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.76",
3
+ "version": "0.1.78",
4
4
  "description": "A Prisma client package for Treadspace database operations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -34,7 +34,6 @@
34
34
  "author": "",
35
35
  "license": "MIT",
36
36
  "dependencies": {
37
- "@adaptware/eagles-db": "/Users/ayushchakraborty/Project/eagles-db/adaptware-eagles-db-v0.1.74.tgz",
38
37
  "@prisma/client": "6.15.0",
39
38
  "prisma": "6.15.0",
40
39
  "zod": "^4.1.5"
@@ -12,15 +12,20 @@ model Application {
12
12
  resume_id String
13
13
  organisation_id String
14
14
  job_description_id String
15
- status ApplicationStatus @default(PENDING)
16
15
  fit_check_score Float?
17
- fit_check_status FitCheckStatus?
18
16
  applied_at DateTime @default(now())
19
17
  evaluation_plan_id String?
20
- evaluation_plan EvaluationPlan? @relation(fields: [evaluation_plan_id], references: [id])
21
18
  fit_check_id String? @unique
22
19
  round_no Int @default(0)
20
+ //Screening fields
21
+ on_notice_period Boolean @default(false)
22
+ expected_joining_date DateTime?
23
+ current_ctc String?
24
+ notes Json?
23
25
  // Relations
26
+ fit_check_status FitCheckStatus?
27
+ status ApplicationStatus @default(PENDING)
28
+ evaluation_plan EvaluationPlan? @relation(fields: [evaluation_plan_id], references: [id])
24
29
  candidate User @relation(fields: [candidate_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
25
30
  organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
26
31
  resume Resume @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)