@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.
- package/dist/client/edge.js +37 -5
- package/dist/client/index-browser.js +33 -1
- package/dist/client/index.d.ts +3235 -301
- package/dist/client/index.js +39 -7
- package/dist/client/{query_engine-windows.dll.node → libquery_engine-linux-musl-openssl-3.0.x.so.node} +0 -0
- package/dist/client/package.json +1 -1
- package/dist/client/schema.prisma +153 -87
- package/dist/client/wasm.js +33 -1
- package/package.json +2 -2
|
Binary file
|
package/dist/client/package.json
CHANGED
|
@@ -2144,79 +2144,83 @@ type AdminNotesObject {
|
|
|
2144
2144
|
}
|
|
2145
2145
|
|
|
2146
2146
|
model User {
|
|
2147
|
-
id
|
|
2148
|
-
firstName
|
|
2149
|
-
lastName
|
|
2150
|
-
username
|
|
2151
|
-
email
|
|
2152
|
-
displayEmail
|
|
2153
|
-
isAdmin
|
|
2154
|
-
createdMissionsModels
|
|
2155
|
-
ownedMissionsModels
|
|
2156
|
-
type
|
|
2157
|
-
pictureURL
|
|
2158
|
-
status
|
|
2159
|
-
createdAt
|
|
2160
|
-
titles
|
|
2161
|
-
scrubbed
|
|
2162
|
-
tokenVersion
|
|
2163
|
-
clientRegistration
|
|
2164
|
-
authoredMissionSpecs
|
|
2165
|
-
modifiedMissionSpecs
|
|
2166
|
-
missionPrefills
|
|
2167
|
-
aboutMe
|
|
2168
|
-
profileCompleteness
|
|
2169
|
-
cvURL
|
|
2170
|
-
linkedin
|
|
2171
|
-
rateRange
|
|
2172
|
-
talentProfile
|
|
2173
|
-
onboardingStage
|
|
2174
|
-
missionPreferences
|
|
2175
|
-
availability
|
|
2176
|
-
missionApplication
|
|
2177
|
-
github
|
|
2178
|
-
dribbble
|
|
2179
|
-
yearsExperience
|
|
2180
|
-
websites
|
|
2181
|
-
location
|
|
2182
|
-
exclusiveApplication
|
|
2183
|
-
defaultRates
|
|
2184
|
-
platformExperience
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
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
|
|
2219
|
-
perWeek
|
|
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
|
|
2345
|
+
id String @id @default(auto()) @map("_id") @db.ObjectId
|
|
2342
2346
|
/// The user being vetted (nullable for legacy data compatibility)
|
|
2343
|
-
userId
|
|
2344
|
-
user
|
|
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
|
|
2347
|
-
vetter
|
|
2348
|
-
status
|
|
2349
|
-
vettingType
|
|
2350
|
-
preVettingFormNonce
|
|
2351
|
-
automationReason
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
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?
|
|
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?
|
|
2380
|
+
calendarEventId String? @db.ObjectId
|
|
2375
2381
|
/// Internal field for tracking data migrations applied to this record
|
|
2376
2382
|
migrations String[]
|
|
2377
|
-
createdAt DateTime?
|
|
2378
|
-
updatedAt DateTime?
|
|
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
|
+
}
|
package/dist/client/wasm.js
CHANGED
|
@@ -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
|
/**
|