@a_team/prisma 3.23.7-macos-docker-linux → 3.24.0-linux

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-47a2c0321023e3a8de5a40fd7cce2acddf28504ee484cab0e2bf9a6ca0ad7d30",
2
+ "name": "prisma-client-7fbd37507499da02842a17217bb3db581c5652d155e0e6232de3a81ee16cd851",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -1293,6 +1293,44 @@ type ClientRoleQuestion {
1293
1293
  updatedAt DateTime? @db.Date
1294
1294
  }
1295
1295
 
1296
+ /// Mission success calls - scheduled calls for active missions
1297
+ model MissionSuccessCall {
1298
+ id String @id @default(auto()) @map("_id") @db.ObjectId
1299
+ type String
1300
+ /// The organizer of the call
1301
+ organizer MissionSuccessCallOrganizer
1302
+ /// Users participating in the call
1303
+ users MissionSuccessCallUser[]
1304
+ /// Mission details (nullable for legacy data compatibility)
1305
+ mission MissionSuccessCallMission?
1306
+ /// The CalCom meeting id (Daily room name) - used to link transcripts
1307
+ calComDailyMeetingId String?
1308
+ /// Transcript job IDs from core-platform transcripts service
1309
+ transcriptJobIds String[]
1310
+ /// Stored as ISO string in legacy data
1311
+ createdAt String
1312
+
1313
+ @@map("missionSuccessCalls")
1314
+ }
1315
+
1316
+ type MissionSuccessCallOrganizer {
1317
+ uid String @db.ObjectId
1318
+ username String
1319
+ fullName String
1320
+ email String
1321
+ }
1322
+
1323
+ type MissionSuccessCallUser {
1324
+ uid String @db.ObjectId
1325
+ username String
1326
+ }
1327
+
1328
+ type MissionSuccessCallMission {
1329
+ mid String @db.ObjectId
1330
+ title String
1331
+ status String
1332
+ }
1333
+
1296
1334
  type PdfConfig {
1297
1335
  Transcoder String
1298
1336
  Meta Json
@@ -1773,6 +1811,8 @@ model Transcript {
1773
1811
  shortDuration Boolean?
1774
1812
  mtgSessionId String?
1775
1813
  error String?
1814
+ /// @private - Internal field for tracking data migrations applied to this record
1815
+ migrations String[]
1776
1816
  createdAt DateTime @default(now()) @db.Date
1777
1817
  updatedAt DateTime @updatedAt @db.Date
1778
1818
 
@@ -1994,6 +2034,8 @@ model User {
1994
2034
  portfolio UserPortfolio?
1995
2035
  builderContracts Contract[] @relation("builder")
1996
2036
  builderWebsitesData BuilderWebsitesData[]
2037
+ userVettingProcesses VettingProcess[] @relation("userVettingProcesses")
2038
+ vetterVettingProcesses VettingProcess[] @relation("vetterVettingProcesses")
1997
2039
 
1998
2040
  @@map("users")
1999
2041
  }
@@ -2093,3 +2135,52 @@ type UserReviewVisibility {
2093
2135
  visible Boolean
2094
2136
  updatedAt DateTime?
2095
2137
  }
2138
+
2139
+ /// Vetting process for builder evaluations
2140
+ /// Note: This is a partial model - the legacy api-service has many additional fields
2141
+ /// that are managed there. This model exposes only the fields needed by core-platform.
2142
+ model VettingProcess {
2143
+ id String @id @default(auto()) @map("_id") @db.ObjectId
2144
+ /// The user being vetted (nullable for legacy data compatibility)
2145
+ userId String? @db.ObjectId
2146
+ user User? @relation("userVettingProcesses", fields: [userId], references: [id])
2147
+ /// The vetter/interviewer (optional, assigned later)
2148
+ vetterId String? @db.ObjectId
2149
+ vetter User? @relation("vetterVettingProcesses", fields: [vetterId], references: [id])
2150
+ status VettingProcessStatus
2151
+ vettingType VettingType
2152
+ /// The CalCom meeting id (Daily room name) - used to link transcripts
2153
+ calComDailyMeetingId String?
2154
+ /// Transcript job IDs from core-platform transcripts service
2155
+ transcriptJobIds String[]
2156
+ /// Interview date
2157
+ interviewDate DateTime? @db.Date
2158
+ /// CalCom booking UID
2159
+ calComBookingUid String?
2160
+ /// CalCom booking ID
2161
+ calComBookingId Int?
2162
+ /// Interview scheduler calendar event ID
2163
+ calendarEventId String? @db.ObjectId
2164
+ /// Internal field for tracking data migrations applied to this record
2165
+ migrations String[]
2166
+ createdAt DateTime? @db.Date
2167
+ updatedAt DateTime? @updatedAt @db.Date
2168
+
2169
+ @@map("vetting-processes")
2170
+ }
2171
+
2172
+ enum VettingProcessStatus {
2173
+ onHold
2174
+ pendingPreVettingForm
2175
+ pendingVetterAssignment
2176
+ pendingVetterApproval
2177
+ pendingBuilderInterviewSchedule
2178
+ pendingFeedback
2179
+ completed
2180
+ }
2181
+
2182
+ enum VettingType {
2183
+ selectionTeam
2184
+ internalNonTechnical
2185
+ internalTechnical
2186
+ }
@@ -444,6 +444,14 @@ exports.Prisma.MissionSpecScalarFieldEnum = {
444
444
  workingHoursNumberOfMinutesOverlap: 'workingHoursNumberOfMinutesOverlap'
445
445
  };
446
446
 
447
+ exports.Prisma.MissionSuccessCallScalarFieldEnum = {
448
+ id: 'id',
449
+ type: 'type',
450
+ calComDailyMeetingId: 'calComDailyMeetingId',
451
+ transcriptJobIds: 'transcriptJobIds',
452
+ createdAt: 'createdAt'
453
+ };
454
+
447
455
  exports.Prisma.ParsedResumeScalarFieldEnum = {
448
456
  id: 'id',
449
457
  url: 'url',
@@ -593,6 +601,7 @@ exports.Prisma.TranscriptScalarFieldEnum = {
593
601
  shortDuration: 'shortDuration',
594
602
  mtgSessionId: 'mtgSessionId',
595
603
  error: 'error',
604
+ migrations: 'migrations',
596
605
  createdAt: 'createdAt',
597
606
  updatedAt: 'updatedAt'
598
607
  };
@@ -646,6 +655,23 @@ exports.Prisma.UserReviewScalarFieldEnum = {
646
655
  endedRoleReasons: 'endedRoleReasons'
647
656
  };
648
657
 
658
+ exports.Prisma.VettingProcessScalarFieldEnum = {
659
+ id: 'id',
660
+ userId: 'userId',
661
+ vetterId: 'vetterId',
662
+ status: 'status',
663
+ vettingType: 'vettingType',
664
+ calComDailyMeetingId: 'calComDailyMeetingId',
665
+ transcriptJobIds: 'transcriptJobIds',
666
+ interviewDate: 'interviewDate',
667
+ calComBookingUid: 'calComBookingUid',
668
+ calComBookingId: 'calComBookingId',
669
+ calendarEventId: 'calendarEventId',
670
+ migrations: 'migrations',
671
+ createdAt: 'createdAt',
672
+ updatedAt: 'updatedAt'
673
+ };
674
+
649
675
  exports.Prisma.SortOrder = {
650
676
  asc: 'asc',
651
677
  desc: 'desc'
@@ -885,6 +911,22 @@ exports.UserReviewRoleEndedReason = exports.$Enums.UserReviewRoleEndedReason = {
885
911
  Builder: 'Builder'
886
912
  };
887
913
 
914
+ exports.VettingProcessStatus = exports.$Enums.VettingProcessStatus = {
915
+ onHold: 'onHold',
916
+ pendingPreVettingForm: 'pendingPreVettingForm',
917
+ pendingVetterAssignment: 'pendingVetterAssignment',
918
+ pendingVetterApproval: 'pendingVetterApproval',
919
+ pendingBuilderInterviewSchedule: 'pendingBuilderInterviewSchedule',
920
+ pendingFeedback: 'pendingFeedback',
921
+ completed: 'completed'
922
+ };
923
+
924
+ exports.VettingType = exports.$Enums.VettingType = {
925
+ selectionTeam: 'selectionTeam',
926
+ internalNonTechnical: 'internalNonTechnical',
927
+ internalTechnical: 'internalTechnical'
928
+ };
929
+
888
930
  exports.BillingPaymentDue = exports.$Enums.BillingPaymentDue = {
889
931
  Net0: 'Net0',
890
932
  Net15: 'Net15',
@@ -1041,6 +1083,7 @@ exports.Prisma.ModelName = {
1041
1083
  MissionApplication: 'MissionApplication',
1042
1084
  MissionPrefill: 'MissionPrefill',
1043
1085
  MissionSpec: 'MissionSpec',
1086
+ MissionSuccessCall: 'MissionSuccessCall',
1044
1087
  ParsedResume: 'ParsedResume',
1045
1088
  PaymentCycle: 'PaymentCycle',
1046
1089
  Proposal: 'Proposal',
@@ -1054,7 +1097,8 @@ exports.Prisma.ModelName = {
1054
1097
  Transcript: 'Transcript',
1055
1098
  User: 'User',
1056
1099
  UserPreference: 'UserPreference',
1057
- UserReview: 'UserReview'
1100
+ UserReview: 'UserReview',
1101
+ VettingProcess: 'VettingProcess'
1058
1102
  };
1059
1103
 
1060
1104
  /**
package/package.json CHANGED
@@ -1,7 +1,9 @@
1
1
  {
2
2
  "name": "@a_team/prisma",
3
- "version": "3.23.7-macos-docker-linux",
4
- "os": [],
3
+ "version": "3.24.0-linux",
4
+ "os": [
5
+ "linux"
6
+ ],
5
7
  "cpu": [],
6
8
  "keywords": [],
7
9
  "prisma": {
@@ -11,7 +13,8 @@
11
13
  "build": "rm -rf ./dist && yarn run generate",
12
14
  "postbuild": "sleep 5 && tsc && cp -R ./src/client ./dist/client && cp -R ./node_modules/@prisma/instrumentation dist/",
13
15
  "generate": "prisma generate",
14
- "format": "prisma format"
16
+ "format": "prisma format",
17
+ "prepare": "husky"
15
18
  },
16
19
  "repository": {
17
20
  "type": "git",
@@ -31,6 +34,7 @@
31
34
  },
32
35
  "devDependencies": {
33
36
  "@types/node": "^22.8.5",
37
+ "husky": "^9.1.7",
34
38
  "ts-node": "^10.9.2",
35
39
  "typescript": "^5.5.4"
36
40
  },