@a_team/prisma 3.9.5-win → 3.10.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 +60 -5
- package/dist/client/index-browser.js +56 -1
- package/dist/client/index.d.ts +10707 -4954
- package/dist/client/index.js +62 -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 +144 -39
- package/dist/client/wasm.js +56 -1
- package/package.json +2 -2
|
Binary file
|
package/dist/client/package.json
CHANGED
|
@@ -28,6 +28,7 @@ model Account {
|
|
|
28
28
|
missions Mission[]
|
|
29
29
|
missionSpecs MissionSpec[]
|
|
30
30
|
contracts Contract[]
|
|
31
|
+
userReviews UserReview[]
|
|
31
32
|
|
|
32
33
|
@@map("accounts")
|
|
33
34
|
}
|
|
@@ -265,6 +266,43 @@ model Experience {
|
|
|
265
266
|
@@map("experiences")
|
|
266
267
|
}
|
|
267
268
|
|
|
269
|
+
model LinkedInRecommendation {
|
|
270
|
+
id String @id @default(auto()) @map("_id") @db.ObjectId
|
|
271
|
+
userId String @db.ObjectId
|
|
272
|
+
user User @relation(fields: [userId], references: [id])
|
|
273
|
+
text String
|
|
274
|
+
createdAt DateTime @default(now()) @db.Date
|
|
275
|
+
updatedAt DateTime? @updatedAt @db.Date
|
|
276
|
+
deletedAt DateTime? @db.Date
|
|
277
|
+
visibility LinkedInRecommendationVisibility
|
|
278
|
+
relationship String
|
|
279
|
+
recommender LinkedInRecommender
|
|
280
|
+
|
|
281
|
+
@@unique([userId, recommender.username]) // Compound unique index
|
|
282
|
+
@@index([userId])
|
|
283
|
+
@@index([createdAt(sort: Desc)])
|
|
284
|
+
@@map("linkedInRecommendations")
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
type LinkedInRecommendationVisibility {
|
|
288
|
+
visible Boolean
|
|
289
|
+
updatedAt DateTime? @default(now()) @db.Date
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
type LinkedInRecommender {
|
|
293
|
+
firstName String
|
|
294
|
+
lastName String
|
|
295
|
+
occupation String?
|
|
296
|
+
username String
|
|
297
|
+
position LinkedInRecommenderPosition?
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
type LinkedInRecommenderPosition {
|
|
301
|
+
companyName String
|
|
302
|
+
title String
|
|
303
|
+
companyLogo String?
|
|
304
|
+
}
|
|
305
|
+
|
|
268
306
|
type MissionRoleAvailability {
|
|
269
307
|
date DateTime? @db.Date
|
|
270
308
|
scheduledEndDate DateTime? @db.Date
|
|
@@ -455,6 +493,7 @@ model Mission {
|
|
|
455
493
|
timezone String?
|
|
456
494
|
contracts Contract[]
|
|
457
495
|
proposals Proposal[]
|
|
496
|
+
userReviews UserReview[]
|
|
458
497
|
|
|
459
498
|
@@unique([roles.id], map: "roles._id_1")
|
|
460
499
|
@@map("missions")
|
|
@@ -854,8 +893,6 @@ type ProposalCandidate {
|
|
|
854
893
|
cvUrl String?
|
|
855
894
|
portfolioUrl String?
|
|
856
895
|
portfolioPassword String?
|
|
857
|
-
gptUsageLogId String?
|
|
858
|
-
linkedInRecommendations String[]
|
|
859
896
|
slug String?
|
|
860
897
|
}
|
|
861
898
|
|
|
@@ -1081,43 +1118,111 @@ type PlatformExperience {
|
|
|
1081
1118
|
}
|
|
1082
1119
|
|
|
1083
1120
|
model User {
|
|
1084
|
-
id
|
|
1085
|
-
firstName
|
|
1086
|
-
lastName
|
|
1087
|
-
username
|
|
1088
|
-
email
|
|
1089
|
-
isAdmin
|
|
1090
|
-
createdMissionsModels
|
|
1091
|
-
ownedMissionsModels
|
|
1092
|
-
type
|
|
1093
|
-
pictureURL
|
|
1094
|
-
status
|
|
1095
|
-
createdAt
|
|
1096
|
-
titles
|
|
1097
|
-
scrubbed
|
|
1098
|
-
tokenVersion
|
|
1099
|
-
clientRegistration
|
|
1100
|
-
authoredMissionSpecs
|
|
1101
|
-
modifiedMissionSpecs
|
|
1102
|
-
missionPrefills
|
|
1103
|
-
aboutMe
|
|
1104
|
-
profileCompleteness
|
|
1105
|
-
cvURL
|
|
1106
|
-
linkedin
|
|
1107
|
-
rateRange
|
|
1108
|
-
talentProfile
|
|
1109
|
-
onboardingStage
|
|
1110
|
-
missionPreferences
|
|
1111
|
-
availability
|
|
1112
|
-
missionApplication
|
|
1113
|
-
github
|
|
1114
|
-
dribbble
|
|
1115
|
-
yearsExperience
|
|
1116
|
-
websites
|
|
1117
|
-
location
|
|
1118
|
-
platformExperience
|
|
1119
|
-
authoredProposals
|
|
1120
|
-
sharedProposals
|
|
1121
|
+
id String @id @default(auto()) @map("_id") @db.ObjectId
|
|
1122
|
+
firstName String?
|
|
1123
|
+
lastName String?
|
|
1124
|
+
username String? @unique(map: "username_1")
|
|
1125
|
+
email String @unique(map: "email_1")
|
|
1126
|
+
isAdmin Boolean @default(false)
|
|
1127
|
+
createdMissionsModels Mission[] @relation("creator")
|
|
1128
|
+
ownedMissionsModels Mission[] @relation("ownerModel")
|
|
1129
|
+
type String
|
|
1130
|
+
pictureURL String?
|
|
1131
|
+
status UserStatus
|
|
1132
|
+
createdAt DateTime @default(now()) @db.Date
|
|
1133
|
+
titles String[]
|
|
1134
|
+
scrubbed String?
|
|
1135
|
+
tokenVersion Int
|
|
1136
|
+
clientRegistration ClientRegistration?
|
|
1137
|
+
authoredMissionSpecs MissionSpec[] @relation("author")
|
|
1138
|
+
modifiedMissionSpecs MissionSpec[] @relation("lastModifier")
|
|
1139
|
+
missionPrefills MissionPrefill[] @relation("user")
|
|
1140
|
+
aboutMe String?
|
|
1141
|
+
profileCompleteness ProfileCompletenessObject?
|
|
1142
|
+
cvURL String?
|
|
1143
|
+
linkedin LinkedInObject?
|
|
1144
|
+
rateRange RateRange?
|
|
1145
|
+
talentProfile TalentProfile?
|
|
1146
|
+
onboardingStage InternalOnboardingStage?
|
|
1147
|
+
missionPreferences MissionPreferences?
|
|
1148
|
+
availability Availability?
|
|
1149
|
+
missionApplication MissionApplication[]
|
|
1150
|
+
github GitHubData?
|
|
1151
|
+
dribbble DribbbleData?
|
|
1152
|
+
yearsExperience Float?
|
|
1153
|
+
websites String[]
|
|
1154
|
+
location Location?
|
|
1155
|
+
platformExperience PlatformExperience?
|
|
1156
|
+
authoredProposals Proposal[] @relation("createdBy")
|
|
1157
|
+
sharedProposals Proposal[] @relation("sharedBy")
|
|
1158
|
+
linkedInRecommendations LinkedInRecommendation[]
|
|
1159
|
+
givenReviews UserReview[] @relation("fromUser")
|
|
1160
|
+
receivedReviews UserReview[] @relation("toUser")
|
|
1121
1161
|
|
|
1122
1162
|
@@map("users")
|
|
1123
1163
|
}
|
|
1164
|
+
|
|
1165
|
+
model UserReview {
|
|
1166
|
+
id String @id @default(auto()) @map("_id") @db.ObjectId
|
|
1167
|
+
status UserReviewStatus
|
|
1168
|
+
starRating Int?
|
|
1169
|
+
privateFeedback String?
|
|
1170
|
+
publicFeedback String?
|
|
1171
|
+
account String @db.ObjectId
|
|
1172
|
+
accountModel Account @relation(fields: [account], references: [id])
|
|
1173
|
+
fromUser String? @db.ObjectId
|
|
1174
|
+
fromUserModel User? @relation("fromUser", fields: [fromUser], references: [id])
|
|
1175
|
+
toUser String @db.ObjectId
|
|
1176
|
+
toUserModel User @relation("toUser", fields: [toUser], references: [id])
|
|
1177
|
+
mission String @db.ObjectId
|
|
1178
|
+
missionModel Mission @relation(fields: [mission], references: [mid])
|
|
1179
|
+
rid String @db.ObjectId
|
|
1180
|
+
createdAt DateTime @default(now())
|
|
1181
|
+
updatedAt DateTime @updatedAt
|
|
1182
|
+
canReviewUntil DateTime?
|
|
1183
|
+
completedAt DateTime?
|
|
1184
|
+
visibility UserReviewVisibility?
|
|
1185
|
+
deletedAt DateTime?
|
|
1186
|
+
reviewEmailStatus UserReviewEmailStatus?
|
|
1187
|
+
wouldRecommend Boolean?
|
|
1188
|
+
endedRoleReasons UserReviewRoleEndedReason[]
|
|
1189
|
+
|
|
1190
|
+
@@index([toUser, createdAt(sort: Desc)])
|
|
1191
|
+
@@index([mission])
|
|
1192
|
+
@@index([account])
|
|
1193
|
+
@@map("userReviews")
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
enum UserReviewStatus {
|
|
1197
|
+
pending
|
|
1198
|
+
completed
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
type UserReviewEmailStatus {
|
|
1202
|
+
initial DateTime?
|
|
1203
|
+
friendly DateTime?
|
|
1204
|
+
lastChance DateTime?
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
enum UserReviewRoleEndedReason {
|
|
1208
|
+
WorkCompleted
|
|
1209
|
+
RoleFit
|
|
1210
|
+
TeamFit
|
|
1211
|
+
Budget
|
|
1212
|
+
Expensive
|
|
1213
|
+
Quality
|
|
1214
|
+
Communication
|
|
1215
|
+
Phase
|
|
1216
|
+
Talent
|
|
1217
|
+
Closing
|
|
1218
|
+
FullTime
|
|
1219
|
+
OtherTalent
|
|
1220
|
+
Freeze
|
|
1221
|
+
Trial
|
|
1222
|
+
Builder
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
type UserReviewVisibility {
|
|
1226
|
+
visible Boolean
|
|
1227
|
+
updatedAt DateTime?
|
|
1228
|
+
}
|
package/dist/client/wasm.js
CHANGED
|
@@ -195,6 +195,16 @@ exports.Prisma.ExperienceScalarFieldEnum = {
|
|
|
195
195
|
skills: 'skills'
|
|
196
196
|
};
|
|
197
197
|
|
|
198
|
+
exports.Prisma.LinkedInRecommendationScalarFieldEnum = {
|
|
199
|
+
id: 'id',
|
|
200
|
+
userId: 'userId',
|
|
201
|
+
text: 'text',
|
|
202
|
+
createdAt: 'createdAt',
|
|
203
|
+
updatedAt: 'updatedAt',
|
|
204
|
+
deletedAt: 'deletedAt',
|
|
205
|
+
relationship: 'relationship'
|
|
206
|
+
};
|
|
207
|
+
|
|
198
208
|
exports.Prisma.MissionScalarFieldEnum = {
|
|
199
209
|
mid: 'mid',
|
|
200
210
|
accountId: 'accountId',
|
|
@@ -376,6 +386,26 @@ exports.Prisma.UserScalarFieldEnum = {
|
|
|
376
386
|
websites: 'websites'
|
|
377
387
|
};
|
|
378
388
|
|
|
389
|
+
exports.Prisma.UserReviewScalarFieldEnum = {
|
|
390
|
+
id: 'id',
|
|
391
|
+
status: 'status',
|
|
392
|
+
starRating: 'starRating',
|
|
393
|
+
privateFeedback: 'privateFeedback',
|
|
394
|
+
publicFeedback: 'publicFeedback',
|
|
395
|
+
account: 'account',
|
|
396
|
+
fromUser: 'fromUser',
|
|
397
|
+
toUser: 'toUser',
|
|
398
|
+
mission: 'mission',
|
|
399
|
+
rid: 'rid',
|
|
400
|
+
createdAt: 'createdAt',
|
|
401
|
+
updatedAt: 'updatedAt',
|
|
402
|
+
canReviewUntil: 'canReviewUntil',
|
|
403
|
+
completedAt: 'completedAt',
|
|
404
|
+
deletedAt: 'deletedAt',
|
|
405
|
+
wouldRecommend: 'wouldRecommend',
|
|
406
|
+
endedRoleReasons: 'endedRoleReasons'
|
|
407
|
+
};
|
|
408
|
+
|
|
379
409
|
exports.Prisma.SortOrder = {
|
|
380
410
|
asc: 'asc',
|
|
381
411
|
desc: 'desc'
|
|
@@ -483,6 +513,29 @@ exports.InternalOnboardingStage = exports.$Enums.InternalOnboardingStage = {
|
|
|
483
513
|
ProfileCompleteWithPendingApplication: 'ProfileCompleteWithPendingApplication'
|
|
484
514
|
};
|
|
485
515
|
|
|
516
|
+
exports.UserReviewStatus = exports.$Enums.UserReviewStatus = {
|
|
517
|
+
pending: 'pending',
|
|
518
|
+
completed: 'completed'
|
|
519
|
+
};
|
|
520
|
+
|
|
521
|
+
exports.UserReviewRoleEndedReason = exports.$Enums.UserReviewRoleEndedReason = {
|
|
522
|
+
WorkCompleted: 'WorkCompleted',
|
|
523
|
+
RoleFit: 'RoleFit',
|
|
524
|
+
TeamFit: 'TeamFit',
|
|
525
|
+
Budget: 'Budget',
|
|
526
|
+
Expensive: 'Expensive',
|
|
527
|
+
Quality: 'Quality',
|
|
528
|
+
Communication: 'Communication',
|
|
529
|
+
Phase: 'Phase',
|
|
530
|
+
Talent: 'Talent',
|
|
531
|
+
Closing: 'Closing',
|
|
532
|
+
FullTime: 'FullTime',
|
|
533
|
+
OtherTalent: 'OtherTalent',
|
|
534
|
+
Freeze: 'Freeze',
|
|
535
|
+
Trial: 'Trial',
|
|
536
|
+
Builder: 'Builder'
|
|
537
|
+
};
|
|
538
|
+
|
|
486
539
|
exports.BillingPaymentDue = exports.$Enums.BillingPaymentDue = {
|
|
487
540
|
Net0: 'Net0',
|
|
488
541
|
Net15: 'Net15',
|
|
@@ -584,6 +637,7 @@ exports.Prisma.ModelName = {
|
|
|
584
637
|
Company: 'Company',
|
|
585
638
|
Contract: 'Contract',
|
|
586
639
|
Experience: 'Experience',
|
|
640
|
+
LinkedInRecommendation: 'LinkedInRecommendation',
|
|
587
641
|
Mission: 'Mission',
|
|
588
642
|
MissionApplication: 'MissionApplication',
|
|
589
643
|
MissionPrefill: 'MissionPrefill',
|
|
@@ -593,7 +647,8 @@ exports.Prisma.ModelName = {
|
|
|
593
647
|
Solution: 'Solution',
|
|
594
648
|
TalentCategory: 'TalentCategory',
|
|
595
649
|
TalentIndustry: 'TalentIndustry',
|
|
596
|
-
User: 'User'
|
|
650
|
+
User: 'User',
|
|
651
|
+
UserReview: 'UserReview'
|
|
597
652
|
};
|
|
598
653
|
|
|
599
654
|
/**
|