@a_team/prisma 3.30.2-win → 3.31.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-d6ca9559a236336cf8457f39eed8f0d836bfebe345f5f774c99e833920a59383",
2
+ "name": "prisma-client-522ad717071b9b31ed2bc6b1b2841481a8ba2f524bfd2cf76f6b7d4dd9ebf97d",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -2144,79 +2144,83 @@ type AdminNotesObject {
2144
2144
  }
2145
2145
 
2146
2146
  model User {
2147
- id String @id @default(auto()) @map("_id") @db.ObjectId
2148
- firstName String?
2149
- lastName String?
2150
- username String? @unique(map: "username_1")
2151
- email String @unique(map: "email_1")
2152
- displayEmail String?
2153
- isAdmin Boolean @default(false)
2154
- createdMissionsModels Mission[] @relation("creator")
2155
- ownedMissionsModels Mission[] @relation("ownerModel")
2156
- type String
2157
- pictureURL String?
2158
- status UserStatus
2159
- createdAt DateTime @default(now()) @db.Date
2160
- titles String[]
2161
- scrubbed String?
2162
- tokenVersion Int
2163
- clientRegistration ClientRegistration?
2164
- authoredMissionSpecs MissionSpec[] @relation("author")
2165
- modifiedMissionSpecs MissionSpec[] @relation("lastModifier")
2166
- missionPrefills MissionPrefill[] @relation("user")
2167
- aboutMe String?
2168
- profileCompleteness ProfileCompletenessObject?
2169
- cvURL String?
2170
- linkedin LinkedInObject?
2171
- rateRange RateRange?
2172
- talentProfile TalentProfile?
2173
- onboardingStage InternalOnboardingStage?
2174
- missionPreferences MissionPreferences?
2175
- availability Availability?
2176
- missionApplication MissionApplication[]
2177
- github GitHubData?
2178
- dribbble DribbbleData?
2179
- yearsExperience Float?
2180
- websites String[]
2181
- location Location?
2182
- exclusiveApplication UserExclusiveApplication?
2183
- defaultRates DefaultRates?
2184
- platformExperience PlatformExperience?
2185
- authoredProposals Proposal[] @relation("createdByModel")
2186
- sharedProposals Proposal[] @relation("sharedByModel")
2187
- linkedInRecommendations LinkedInRecommendation[]
2188
- givenReviews UserReview[] @relation("fromUser")
2189
- receivedReviews UserReview[] @relation("toUser")
2190
- calendar Calendar? @relation("calendarUser")
2191
- interviews CalendarEvent[] @relation("eventOwner")
2192
- calendarAvailability CalendarAvailability[] @relation("userCalendarAvailability")
2193
- preferences UserPreference? @relation("userPreferences")
2194
- rescheduledInterviews CalendarEvent[] @relation("reschedulingUser")
2195
- clientInterviews ClientInterview[] @relation("clientInterviews")
2196
- builderInterviews ClientInterview[] @relation("builderInterviews")
2197
- proposalsAsTeamAdvisor Proposal[] @relation("teamAdvisor")
2198
- isUsingSharedCalendar Boolean @default(false)
2199
- timezone TimezoneObject?
2200
- workingHours WorkingHours?
2201
- acceptTOS AcceptTOS?
2202
- acceptTOSHistory AcceptTOS[]
2203
- portfolio UserPortfolio?
2204
- builderContracts Contract[] @relation("builder")
2205
- builderWebsitesData BuilderWebsitesData[]
2206
- userVettingProcesses VettingProcess[] @relation("userVettingProcesses")
2207
- vetterVettingProcesses VettingProcess[] @relation("vetterVettingProcesses")
2208
- adminNotes AdminNotesObject?
2209
- evaluatorEvaluationProcesses EvaluationProcess[] @relation("evaluatorEvaluationProcesses")
2210
- userEvaluationProcesses EvaluationProcess[] @relation("userEvaluationProcesses")
2211
- vetters Vetter[] @relation("vetter")
2212
- contactOwnerVettingProcesses VettingProcess[] @relation("contactOwnerVettingProcesses")
2147
+ id String @id @default(auto()) @map("_id") @db.ObjectId
2148
+ firstName String?
2149
+ lastName String?
2150
+ username String? @unique(map: "username_1")
2151
+ email String @unique(map: "email_1")
2152
+ displayEmail String?
2153
+ isAdmin Boolean @default(false)
2154
+ createdMissionsModels Mission[] @relation("creator")
2155
+ ownedMissionsModels Mission[] @relation("ownerModel")
2156
+ type String
2157
+ pictureURL String?
2158
+ status UserStatus
2159
+ createdAt DateTime @default(now()) @db.Date
2160
+ titles String[]
2161
+ scrubbed String?
2162
+ tokenVersion Int
2163
+ clientRegistration ClientRegistration?
2164
+ authoredMissionSpecs MissionSpec[] @relation("author")
2165
+ modifiedMissionSpecs MissionSpec[] @relation("lastModifier")
2166
+ missionPrefills MissionPrefill[] @relation("user")
2167
+ aboutMe String?
2168
+ profileCompleteness ProfileCompletenessObject?
2169
+ cvURL String?
2170
+ linkedin LinkedInObject?
2171
+ rateRange RateRange?
2172
+ talentProfile TalentProfile?
2173
+ onboardingStage InternalOnboardingStage?
2174
+ missionPreferences MissionPreferences?
2175
+ availability Availability?
2176
+ missionApplication MissionApplication[]
2177
+ github GitHubData?
2178
+ dribbble DribbbleData?
2179
+ yearsExperience Float?
2180
+ websites String[]
2181
+ location Location?
2182
+ exclusiveApplication UserExclusiveApplication?
2183
+ defaultRates DefaultRates?
2184
+ platformExperience PlatformExperience?
2185
+ lastScheduledVettingInterviewDate DateTime? @db.Date
2186
+ authoredProposals Proposal[] @relation("createdByModel")
2187
+ sharedProposals Proposal[] @relation("sharedByModel")
2188
+ linkedInRecommendations LinkedInRecommendation[]
2189
+ givenReviews UserReview[] @relation("fromUser")
2190
+ receivedReviews UserReview[] @relation("toUser")
2191
+ calendar Calendar? @relation("calendarUser")
2192
+ interviews CalendarEvent[] @relation("eventOwner")
2193
+ calendarAvailability CalendarAvailability[] @relation("userCalendarAvailability")
2194
+ preferences UserPreference? @relation("userPreferences")
2195
+ rescheduledInterviews CalendarEvent[] @relation("reschedulingUser")
2196
+ clientInterviews ClientInterview[] @relation("clientInterviews")
2197
+ builderInterviews ClientInterview[] @relation("builderInterviews")
2198
+ proposalsAsTeamAdvisor Proposal[] @relation("teamAdvisor")
2199
+ isUsingSharedCalendar Boolean @default(false)
2200
+ timezone TimezoneObject?
2201
+ workingHours WorkingHours?
2202
+ acceptTOS AcceptTOS?
2203
+ acceptTOSHistory AcceptTOS[]
2204
+ portfolio UserPortfolio?
2205
+ builderContracts Contract[] @relation("builder")
2206
+ builderWebsitesData BuilderWebsitesData[]
2207
+ userVettingProcesses VettingProcess[] @relation("userVettingProcesses")
2208
+ vetterVettingProcesses VettingProcess[] @relation("vetterVettingProcesses")
2209
+ adminNotes AdminNotesObject?
2210
+ evaluatorEvaluationProcesses EvaluationProcess[] @relation("evaluatorEvaluationProcesses")
2211
+ userEvaluationProcesses EvaluationProcess[] @relation("userEvaluationProcesses")
2212
+ vetters Vetter[] @relation("vetter")
2213
+ contactOwnerVettingProcesses VettingProcess[] @relation("contactOwnerVettingProcesses")
2214
+ vettingProcessAudits VettingProcessAudit[]
2213
2215
 
2214
2216
  @@map("users")
2215
2217
  }
2216
2218
 
2217
2219
  type BookingFrequency {
2218
- perDay Int
2219
- perWeek Int
2220
+ perDay Int?
2221
+ perWeek Int?
2222
+ calComPerDay Int?
2223
+ calComPerWeek Int?
2220
2224
  }
2221
2225
 
2222
2226
  type UserEventType {
@@ -2338,23 +2342,25 @@ model Vetter {
2338
2342
  /// Note: This is a partial model - the legacy api-service has many additional fields
2339
2343
  /// that are managed there. This model exposes only the fields needed by core-platform.
2340
2344
  model VettingProcess {
2341
- id String @id @default(auto()) @map("_id") @db.ObjectId
2345
+ id String @id @default(auto()) @map("_id") @db.ObjectId
2342
2346
  /// The user being vetted (nullable for legacy data compatibility)
2343
- userId String? @map("user") @db.ObjectId
2344
- user User? @relation("userVettingProcesses", fields: [userId], references: [id])
2347
+ userId String? @map("user") @db.ObjectId
2348
+ user User? @relation("userVettingProcesses", fields: [userId], references: [id])
2345
2349
  /// The vetter/interviewer (optional, assigned later)
2346
- vetterId String? @map("vetter") @db.ObjectId
2347
- vetter User? @relation("vetterVettingProcesses", fields: [vetterId], references: [id])
2348
- status VettingProcessStatus
2349
- vettingType VettingType
2350
- preVettingFormNonce String?
2351
- automationReason VettingProcessAutomationReason?
2352
- categoryId String? @map("category") @db.ObjectId
2353
- category TalentCategory? @relation("categoryVettingProcesses", fields: [categoryId], references: [id])
2354
- primaryRoleCategoryId String? @db.ObjectId // this was named with Id suffix
2355
- primaryRoleCategory RoleCategory? @relation("primaryRoleCategoryVettingProcesses", fields: [primaryRoleCategoryId], references: [id])
2356
- contactOwnerId String? @map("contactOwner") @db.ObjectId
2357
- contactOwner User? @relation("contactOwnerVettingProcesses", fields: [contactOwnerId], references: [id])
2350
+ vetterId String? @map("vetter") @db.ObjectId
2351
+ vetter User? @relation("vetterVettingProcesses", fields: [vetterId], references: [id])
2352
+ status VettingProcessStatus
2353
+ vettingType VettingType
2354
+ preVettingFormNonce String?
2355
+ automationReason VettingProcessAutomationReason?
2356
+ markedAsStaleAt String?
2357
+
2358
+ categoryId String? @map("category") @db.ObjectId
2359
+ category TalentCategory? @relation("categoryVettingProcesses", fields: [categoryId], references: [id])
2360
+ primaryRoleCategoryId String? @db.ObjectId // this was named with Id suffix
2361
+ primaryRoleCategory RoleCategory? @relation("primaryRoleCategoryVettingProcesses", fields: [primaryRoleCategoryId], references: [id])
2362
+ contactOwnerId String? @map("contactOwner") @db.ObjectId
2363
+ contactOwner User? @relation("contactOwnerVettingProcesses", fields: [contactOwnerId], references: [id])
2358
2364
 
2359
2365
  // new fields for the new evaluation process
2360
2366
  publicId String? // used for the url access, similar to pre vetting form nonce
@@ -2365,17 +2371,21 @@ model VettingProcess {
2365
2371
  /// Transcript job IDs from core-platform transcripts service
2366
2372
  transcriptJobIds String[]
2367
2373
  /// Interview date
2368
- interviewDate DateTime? @db.Date
2374
+ interviewDate DateTime? @db.Date
2369
2375
  /// CalCom booking UID
2370
2376
  calComBookingUid String?
2371
2377
  /// CalCom booking ID
2372
2378
  calComBookingId Int?
2373
2379
  /// Interview scheduler calendar event ID
2374
- calendarEventId String? @db.ObjectId
2380
+ calendarEventId String? @db.ObjectId
2375
2381
  /// Internal field for tracking data migrations applied to this record
2376
2382
  migrations String[]
2377
- createdAt DateTime? @default(now()) @db.Date
2378
- updatedAt DateTime? @updatedAt @db.Date
2383
+ createdAt DateTime? @default(now()) @db.Date
2384
+ updatedAt DateTime? @updatedAt @db.Date
2385
+ cancellationHistory VettingProcessCancellationHistory[]
2386
+ noShowHistory VettingProcessNoShowHistory[]
2387
+
2388
+ audits VettingProcessAudit[] @relation("vettingProcessAudits")
2379
2389
 
2380
2390
  @@map("vetting-processes")
2381
2391
  }
@@ -2404,3 +2414,59 @@ enum VettingProcessAutomationReason {
2404
2414
  OnboardingUserRequested
2405
2415
  Exceptional
2406
2416
  }
2417
+
2418
+ type VettingProcessCancellationHistory {
2419
+ vetter String @db.ObjectId
2420
+ interviewDate DateTime @db.Date
2421
+ calComBookingId Int?
2422
+ calComDailyMeetingId String?
2423
+ calendarEventId String? @db.ObjectId
2424
+ isBuilderCancelled Boolean
2425
+ reason String
2426
+ createdAt DateTime @default(now()) @db.Date
2427
+ createdBy String? @db.ObjectId
2428
+ }
2429
+
2430
+ type VettingProcessNoShowHistory {
2431
+ vetter String @db.ObjectId
2432
+ interviewDate DateTime @db.Date
2433
+ calComBookingId Int?
2434
+ calComDailyMeetingId String?
2435
+ isBuilderNoShow Boolean
2436
+ createdAt DateTime @default(now()) @db.Date
2437
+ }
2438
+
2439
+ enum VettingProcessAuditType {
2440
+ ProcessStarted
2441
+ PreVettingFormSubmission
2442
+ NotifyInterviewerOnProcess
2443
+ ProcessAcceptedByInterviewer
2444
+ ProcessDeclinedByInterviewer
2445
+ InterviewDateSet
2446
+ FeedbackFormSubmission
2447
+ FeedbackFormEdited
2448
+ BuilderOptedOutOfVetting
2449
+ ProcessRemoved
2450
+ EvaluationInviteEmail
2451
+ BuilderNoShow
2452
+ VetterNoShow
2453
+ BuilderCanceled
2454
+ VetterCanceled
2455
+ }
2456
+
2457
+ model VettingProcessAudit {
2458
+ id String @id @default(auto()) @map("_id") @db.ObjectId
2459
+ date DateTime
2460
+ auditType VettingProcessAuditType
2461
+ payload Json?
2462
+ vettingProcessId String @map("vettingProcess")
2463
+ userId String @map("user")
2464
+
2465
+ vettingProcess VettingProcess @relation("vettingProcessAudits", fields: [vettingProcessId], references: [id])
2466
+ user User @relation(fields: [userId], references: [id])
2467
+
2468
+ createdAt DateTime? @default(now()) @db.Date
2469
+ updatedAt DateTime? @updatedAt @db.Date
2470
+
2471
+ @@map("vetting-processes-audit")
2472
+ }
@@ -656,6 +656,7 @@ exports.Prisma.UserScalarFieldEnum = {
656
656
  onboardingStage: 'onboardingStage',
657
657
  yearsExperience: 'yearsExperience',
658
658
  websites: 'websites',
659
+ lastScheduledVettingInterviewDate: 'lastScheduledVettingInterviewDate',
659
660
  isUsingSharedCalendar: 'isUsingSharedCalendar'
660
661
  };
661
662
 
@@ -706,6 +707,7 @@ exports.Prisma.VettingProcessScalarFieldEnum = {
706
707
  vettingType: 'vettingType',
707
708
  preVettingFormNonce: 'preVettingFormNonce',
708
709
  automationReason: 'automationReason',
710
+ markedAsStaleAt: 'markedAsStaleAt',
709
711
  categoryId: 'categoryId',
710
712
  primaryRoleCategoryId: 'primaryRoleCategoryId',
711
713
  contactOwnerId: 'contactOwnerId',
@@ -722,6 +724,17 @@ exports.Prisma.VettingProcessScalarFieldEnum = {
722
724
  updatedAt: 'updatedAt'
723
725
  };
724
726
 
727
+ exports.Prisma.VettingProcessAuditScalarFieldEnum = {
728
+ id: 'id',
729
+ date: 'date',
730
+ auditType: 'auditType',
731
+ payload: 'payload',
732
+ vettingProcessId: 'vettingProcessId',
733
+ userId: 'userId',
734
+ createdAt: 'createdAt',
735
+ updatedAt: 'updatedAt'
736
+ };
737
+
725
738
  exports.Prisma.SortOrder = {
726
739
  asc: 'asc',
727
740
  desc: 'desc'
@@ -999,6 +1012,24 @@ exports.VettingProcessAutomationReason = exports.$Enums.VettingProcessAutomation
999
1012
  Exceptional: 'Exceptional'
1000
1013
  };
1001
1014
 
1015
+ exports.VettingProcessAuditType = exports.$Enums.VettingProcessAuditType = {
1016
+ ProcessStarted: 'ProcessStarted',
1017
+ PreVettingFormSubmission: 'PreVettingFormSubmission',
1018
+ NotifyInterviewerOnProcess: 'NotifyInterviewerOnProcess',
1019
+ ProcessAcceptedByInterviewer: 'ProcessAcceptedByInterviewer',
1020
+ ProcessDeclinedByInterviewer: 'ProcessDeclinedByInterviewer',
1021
+ InterviewDateSet: 'InterviewDateSet',
1022
+ FeedbackFormSubmission: 'FeedbackFormSubmission',
1023
+ FeedbackFormEdited: 'FeedbackFormEdited',
1024
+ BuilderOptedOutOfVetting: 'BuilderOptedOutOfVetting',
1025
+ ProcessRemoved: 'ProcessRemoved',
1026
+ EvaluationInviteEmail: 'EvaluationInviteEmail',
1027
+ BuilderNoShow: 'BuilderNoShow',
1028
+ VetterNoShow: 'VetterNoShow',
1029
+ BuilderCanceled: 'BuilderCanceled',
1030
+ VetterCanceled: 'VetterCanceled'
1031
+ };
1032
+
1002
1033
  exports.BillingPaymentDue = exports.$Enums.BillingPaymentDue = {
1003
1034
  Net0: 'Net0',
1004
1035
  Net15: 'Net15',
@@ -1188,7 +1219,8 @@ exports.Prisma.ModelName = {
1188
1219
  UserPreference: 'UserPreference',
1189
1220
  UserReview: 'UserReview',
1190
1221
  Vetter: 'Vetter',
1191
- VettingProcess: 'VettingProcess'
1222
+ VettingProcess: 'VettingProcess',
1223
+ VettingProcessAudit: 'VettingProcessAudit'
1192
1224
  };
1193
1225
 
1194
1226
  /**
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@a_team/prisma",
3
- "version": "3.30.2-win",
3
+ "version": "3.31.0-linux",
4
4
  "os": [
5
- "win32"
5
+ "linux"
6
6
  ],
7
7
  "cpu": [],
8
8
  "keywords": [],