@a_team/prisma 3.11.1-macos-docker-linux → 3.12.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-882f3179ae67dcca98689f5019638264b30d813c27274da25fc2230812838b08",
2
+ "name": "prisma-client-f552c7fe9e083c46307a7ea9d638052ec4593254eabc1c837409fdcfe02d6217",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -29,6 +29,7 @@ model Account {
29
29
  missionSpecs MissionSpec[]
30
30
  contracts Contract[]
31
31
  userReviews UserReview[]
32
+ clientInterviews ClientInterview[]
32
33
 
33
34
  @@map("accounts")
34
35
  }
@@ -221,6 +222,116 @@ model ClientCompany {
221
222
  @@map("clientCompanies")
222
223
  }
223
224
 
225
+ model ClientInterview {
226
+ id String @id @default(auto()) @map("_id") @db.ObjectId
227
+ createdAt DateTime @default(now())
228
+ updatedAt DateTime @updatedAt
229
+ accountId String @db.ObjectId
230
+ account Account @relation(fields: [accountId], references: [id])
231
+ type ClientInterviewType
232
+ clientId String @db.ObjectId
233
+ client User @relation("clientInterviews", fields: [clientId], references: [id])
234
+ builderId String @db.ObjectId
235
+ builder User @relation("builderInterviews", fields: [builderId], references: [id])
236
+ interviewRoleDescription String?
237
+ calComBookingId Int
238
+ calComBookingUid String
239
+ calComDailyMeetingId String?
240
+ startDate DateTime
241
+ endDate DateTime
242
+ builderTimezone String
243
+ clientMinHourlyRate Float?
244
+ clientMaxHourlyRate Float?
245
+ builderHourlyRate Float?
246
+ status ClientInterviewStatus
247
+ declineReason ClientInterviewDeclineReason?
248
+ declineOtherReasonDetails String?
249
+ cancelReasonAfterAccepted String?
250
+ canceledFromClientApp Boolean?
251
+ interviewRequestExpireAt DateTime?
252
+ slackThreadMessageId String?
253
+ transcripts ClientInterviewTranscriptData[]
254
+ proposalId String? @db.ObjectId
255
+ proposal Proposal? @relation(fields: [proposalId], references: [id])
256
+ feedback ClientInterviewFeedback?
257
+ rescheduledBy ClientInterviewRescheduledByData?
258
+
259
+ @@map("clientInterviews")
260
+ }
261
+
262
+ type ClientInterviewTranscriptData {
263
+ jobId String?
264
+ recordingId String?
265
+ recordingLinkData ClientInterviewRecordingLinkData?
266
+ metadata ClientInterviewTranscriptMetadata?
267
+ }
268
+
269
+ type ClientInterviewRecordingLinkData {
270
+ download_link String
271
+ expires Int
272
+ error String?
273
+ }
274
+
275
+ type ClientInterviewTranscriptMetadata {
276
+ jobId String?
277
+ callbackRef String?
278
+ inputUrl String?
279
+ inputKey String?
280
+ inputBucket String?
281
+ inputRegion String?
282
+ transcriptKey String?
283
+ mediaKey String?
284
+ outputBucket String?
285
+ outputRegion String?
286
+ }
287
+
288
+ type ClientInterviewFeedback {
289
+ action ClientInterviewFeedbackAction
290
+ note String?
291
+ authorId String? @db.ObjectId
292
+ at DateTime @default(now())
293
+ followUp ClientInterviewFeedbackFollowUp?
294
+ }
295
+
296
+ type ClientInterviewFeedbackFollowUp {
297
+ interviewerEmail String?
298
+ interviewerName String?
299
+ roleTitle String?
300
+ }
301
+
302
+ type ClientInterviewRescheduledByData {
303
+ userId String? @db.ObjectId
304
+ email String
305
+ }
306
+
307
+ enum ClientInterviewStatus {
308
+ InterviewRequested
309
+ InterviewAccepted
310
+ InterviewRejected
311
+ InterviewCancelled
312
+ InterviewExpired
313
+ }
314
+
315
+ enum ClientInterviewDeclineReason {
316
+ NotEnoughAvailability
317
+ RoleNotRelevant
318
+ NotInterested
319
+ RateTooLow
320
+ Other
321
+ }
322
+
323
+ enum ClientInterviewType {
324
+ Discover
325
+ Proposal
326
+ }
327
+
328
+ enum ClientInterviewFeedbackAction {
329
+ Hire
330
+ BookFollowUpInterview @map("Book a follow up interview")
331
+ NeedMoreTime @map("I need more time")
332
+ NoHire @map("No hire")
333
+ }
334
+
224
335
  type LocalHourRange {
225
336
  endTime Int?
226
337
  startTime Int?
@@ -930,39 +1041,40 @@ type ClientRoleQuestion {
930
1041
  }
931
1042
 
932
1043
  model Proposal {
933
- id String @id @default(auto()) @map("_id") @db.ObjectId
934
- createdById String? @db.ObjectId
935
- createdBy User? @relation(fields: [createdById], references: [id], name: "createdBy")
936
- missionId String? @db.ObjectId
937
- mission Mission? @relation(fields: [missionId], references: [mid])
938
- createdAt DateTime? @default(now()) @db.Date
939
- updatedAt DateTime? @updatedAt @db.Date
940
- expiresAt DateTime? @db.Date
941
- clientName String?
942
- projectName String?
943
- webflowId String?
944
- publicURL String?
945
- isShared Boolean?
946
- sharedById String? @db.ObjectId
947
- sharedBy User? @relation(fields: [sharedById], references: [id], name: "sharedBy")
948
- sharedAt DateTime? @db.Date
949
- archivedURL String?
950
- schemaVersion ProposalSchemaVersion @default(v1)
951
- templateMap ProposalTemplateMap?
952
- template ProposalTemplate?
953
- version Int?
954
- publicUntil DateTime? @db.Date
955
- missionSpecId String? @db.ObjectId
956
- missionSpec MissionSpec? @relation(fields: [missionSpecId], references: [id])
957
- applications String[] @db.ObjectId
958
- adminReview ProposalReview?
959
- candidates ProposalCandidate[]
960
- currency String?
961
- teamProposal Boolean?
962
- rolesData ProposalRoleData[]
963
- name String?
964
- slug String?
965
- teamBlurb String?
1044
+ id String @id @default(auto()) @map("_id") @db.ObjectId
1045
+ createdById String? @db.ObjectId
1046
+ createdBy User? @relation(fields: [createdById], references: [id], name: "createdBy")
1047
+ missionId String? @db.ObjectId
1048
+ mission Mission? @relation(fields: [missionId], references: [mid])
1049
+ createdAt DateTime? @default(now()) @db.Date
1050
+ updatedAt DateTime? @updatedAt @db.Date
1051
+ expiresAt DateTime? @db.Date
1052
+ clientName String?
1053
+ projectName String?
1054
+ webflowId String?
1055
+ publicURL String?
1056
+ isShared Boolean?
1057
+ sharedById String? @db.ObjectId
1058
+ sharedBy User? @relation(fields: [sharedById], references: [id], name: "sharedBy")
1059
+ sharedAt DateTime? @db.Date
1060
+ archivedURL String?
1061
+ schemaVersion ProposalSchemaVersion @default(v1)
1062
+ templateMap ProposalTemplateMap?
1063
+ template ProposalTemplate?
1064
+ version Int?
1065
+ publicUntil DateTime? @db.Date
1066
+ missionSpecId String? @db.ObjectId
1067
+ missionSpec MissionSpec? @relation(fields: [missionSpecId], references: [id])
1068
+ applications String[] @db.ObjectId
1069
+ adminReview ProposalReview?
1070
+ candidates ProposalCandidate[]
1071
+ currency String?
1072
+ teamProposal Boolean?
1073
+ rolesData ProposalRoleData[]
1074
+ name String?
1075
+ slug String?
1076
+ teamBlurb String?
1077
+ clientInterviews ClientInterview[]
966
1078
 
967
1079
  @@map("proposals")
968
1080
  }
@@ -1297,6 +1409,8 @@ model User {
1297
1409
  calendarAvailability CalendarAvailability[] @relation("userCalendarAvailability")
1298
1410
  preferences UserPreference? @relation("userPreferences")
1299
1411
  rescheduledInterviews CalendarEvent[] @relation("reschedulingUser")
1412
+ clientInterviews ClientInterview[] @relation("clientInterviews")
1413
+ builderInterviews ClientInterview[] @relation("builderInterviews")
1300
1414
 
1301
1415
  @@map("users")
1302
1416
  }
@@ -199,6 +199,34 @@ exports.Prisma.ClientCompanyScalarFieldEnum = {
199
199
  logo: 'logo'
200
200
  };
201
201
 
202
+ exports.Prisma.ClientInterviewScalarFieldEnum = {
203
+ id: 'id',
204
+ createdAt: 'createdAt',
205
+ updatedAt: 'updatedAt',
206
+ accountId: 'accountId',
207
+ type: 'type',
208
+ clientId: 'clientId',
209
+ builderId: 'builderId',
210
+ interviewRoleDescription: 'interviewRoleDescription',
211
+ calComBookingId: 'calComBookingId',
212
+ calComBookingUid: 'calComBookingUid',
213
+ calComDailyMeetingId: 'calComDailyMeetingId',
214
+ startDate: 'startDate',
215
+ endDate: 'endDate',
216
+ builderTimezone: 'builderTimezone',
217
+ clientMinHourlyRate: 'clientMinHourlyRate',
218
+ clientMaxHourlyRate: 'clientMaxHourlyRate',
219
+ builderHourlyRate: 'builderHourlyRate',
220
+ status: 'status',
221
+ declineReason: 'declineReason',
222
+ declineOtherReasonDetails: 'declineOtherReasonDetails',
223
+ cancelReasonAfterAccepted: 'cancelReasonAfterAccepted',
224
+ canceledFromClientApp: 'canceledFromClientApp',
225
+ interviewRequestExpireAt: 'interviewRequestExpireAt',
226
+ slackThreadMessageId: 'slackThreadMessageId',
227
+ proposalId: 'proposalId'
228
+ };
229
+
202
230
  exports.Prisma.CompanyScalarFieldEnum = {
203
231
  id: 'id',
204
232
  name: 'name',
@@ -496,6 +524,27 @@ exports.EventType = exports.$Enums.EventType = {
496
524
  evaluation: 'evaluation'
497
525
  };
498
526
 
527
+ exports.ClientInterviewType = exports.$Enums.ClientInterviewType = {
528
+ Discover: 'Discover',
529
+ Proposal: 'Proposal'
530
+ };
531
+
532
+ exports.ClientInterviewStatus = exports.$Enums.ClientInterviewStatus = {
533
+ InterviewRequested: 'InterviewRequested',
534
+ InterviewAccepted: 'InterviewAccepted',
535
+ InterviewRejected: 'InterviewRejected',
536
+ InterviewCancelled: 'InterviewCancelled',
537
+ InterviewExpired: 'InterviewExpired'
538
+ };
539
+
540
+ exports.ClientInterviewDeclineReason = exports.$Enums.ClientInterviewDeclineReason = {
541
+ NotEnoughAvailability: 'NotEnoughAvailability',
542
+ RoleNotRelevant: 'RoleNotRelevant',
543
+ NotInterested: 'NotInterested',
544
+ RateTooLow: 'RateTooLow',
545
+ Other: 'Other'
546
+ };
547
+
499
548
  exports.ContractStatus = exports.$Enums.ContractStatus = {
500
549
  Created: 'Created',
501
550
  Completed: 'Completed'
@@ -627,6 +676,13 @@ exports.BillingPaymentDue = exports.$Enums.BillingPaymentDue = {
627
676
  Net120: 'Net120'
628
677
  };
629
678
 
679
+ exports.ClientInterviewFeedbackAction = exports.$Enums.ClientInterviewFeedbackAction = {
680
+ Hire: 'Hire',
681
+ BookFollowUpInterview: 'BookFollowUpInterview',
682
+ NeedMoreTime: 'NeedMoreTime',
683
+ NoHire: 'NoHire'
684
+ };
685
+
630
686
  exports.ContractPartyType = exports.$Enums.ContractPartyType = {
631
687
  BillingCustomer: 'BillingCustomer',
632
688
  MissionRole: 'MissionRole',
@@ -719,6 +775,7 @@ exports.Prisma.ModelName = {
719
775
  CalendarEvent: 'CalendarEvent',
720
776
  CalendarEventType: 'CalendarEventType',
721
777
  ClientCompany: 'ClientCompany',
778
+ ClientInterview: 'ClientInterview',
722
779
  Company: 'Company',
723
780
  Contract: 'Contract',
724
781
  Experience: 'Experience',
package/package.json CHANGED
@@ -1,9 +1,14 @@
1
1
  {
2
2
  "name": "@a_team/prisma",
3
- "version": "3.11.1-macos-docker-linux",
4
- "os": [],
3
+ "version": "3.12.0-linux",
4
+ "os": [
5
+ "linux"
6
+ ],
5
7
  "cpu": [],
6
8
  "keywords": [],
9
+ "prisma": {
10
+ "schema": "prisma/schema"
11
+ },
7
12
  "scripts": {
8
13
  "build": "rm -rf ./dist && yarn run generate",
9
14
  "postbuild": "sleep 5 && tsc && cp -R ./src/client ./dist/client && cp -R ./node_modules/@prisma/instrumentation dist/",