@a_team/prisma 2.1.5 → 2.1.7
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 +30 -3
- package/dist/client/index-browser.js +27 -0
- package/dist/client/index.d.ts +2014 -226
- package/dist/client/index.js +30 -3
- package/dist/client/package.json +1 -1
- package/dist/client/schema.prisma +43 -12
- package/dist/client/wasm.js +27 -0
- package/package.json +1 -1
package/dist/client/package.json
CHANGED
|
@@ -297,8 +297,8 @@ model Mission {
|
|
|
297
297
|
mainManagerUserId String?
|
|
298
298
|
managers MissionsManager[]
|
|
299
299
|
migrations String[]
|
|
300
|
-
missionSpecId String
|
|
301
|
-
missionSpec MissionSpec
|
|
300
|
+
missionSpecId String? @unique @db.ObjectId
|
|
301
|
+
missionSpec MissionSpec? @relation(fields: [missionSpecId], references: [id])
|
|
302
302
|
owner String? @db.ObjectId
|
|
303
303
|
ownerModel User? @relation("ownerModel", fields: [owner], references: [id])
|
|
304
304
|
promotedTags String[]
|
|
@@ -309,7 +309,7 @@ model Mission {
|
|
|
309
309
|
setAsScheduledToEndAt DateTime? @db.Date
|
|
310
310
|
shortCompanyDescription String?
|
|
311
311
|
skipContracts Boolean?
|
|
312
|
-
status
|
|
312
|
+
status MissionStatus
|
|
313
313
|
talentIndustries String[]
|
|
314
314
|
testing MissionsTesting?
|
|
315
315
|
title String
|
|
@@ -325,6 +325,18 @@ model Mission {
|
|
|
325
325
|
@@map("missions")
|
|
326
326
|
}
|
|
327
327
|
|
|
328
|
+
enum MissionStatus {
|
|
329
|
+
Spec
|
|
330
|
+
Formation
|
|
331
|
+
Created
|
|
332
|
+
Published
|
|
333
|
+
Pending
|
|
334
|
+
Running
|
|
335
|
+
ScheduledToEnd
|
|
336
|
+
Ended
|
|
337
|
+
Archived
|
|
338
|
+
}
|
|
339
|
+
|
|
328
340
|
model MissionSpec {
|
|
329
341
|
id String @id @default(auto()) @map("_id") @db.ObjectId
|
|
330
342
|
account Account? @relation(fields: [accountId], references: [id])
|
|
@@ -433,6 +445,24 @@ type ClientRoleQuestion {
|
|
|
433
445
|
updatedAt DateTime? @db.Date
|
|
434
446
|
}
|
|
435
447
|
|
|
448
|
+
model MissionSpecPreFill {
|
|
449
|
+
id String @id @default(auto()) @map("_id") @db.ObjectId
|
|
450
|
+
userId String @db.ObjectId
|
|
451
|
+
missionName String?
|
|
452
|
+
plannedStart String?
|
|
453
|
+
companyDescription String?
|
|
454
|
+
missionDescription String?
|
|
455
|
+
timezone String?
|
|
456
|
+
openRoles Json?
|
|
457
|
+
status String @default("pending") // "pending", "completed", or "failed"
|
|
458
|
+
createdAt DateTime @default(now())
|
|
459
|
+
updatedAt DateTime @updatedAt
|
|
460
|
+
|
|
461
|
+
user User @relation(fields: [userId], references: [id], name: "user")
|
|
462
|
+
|
|
463
|
+
@@map("missionSpecPreFills")
|
|
464
|
+
}
|
|
465
|
+
|
|
436
466
|
model RoleCategory {
|
|
437
467
|
id String @id @default(auto()) @map("_id") @db.ObjectId
|
|
438
468
|
anchors String[]
|
|
@@ -480,22 +510,23 @@ model TalentIndustry {
|
|
|
480
510
|
}
|
|
481
511
|
|
|
482
512
|
model User {
|
|
483
|
-
id String
|
|
513
|
+
id String @id @default(auto()) @map("_id") @db.ObjectId
|
|
484
514
|
firstName String?
|
|
485
515
|
lastName String?
|
|
486
|
-
username String?
|
|
487
|
-
email String?
|
|
488
|
-
isAdmin Boolean
|
|
489
|
-
createdMissionsModels Mission[]
|
|
490
|
-
ownedMissionsModels Mission[]
|
|
516
|
+
username String? @unique(map: "username_1")
|
|
517
|
+
email String? @unique(map: "email_1")
|
|
518
|
+
isAdmin Boolean @default(false)
|
|
519
|
+
createdMissionsModels Mission[] @relation("creator")
|
|
520
|
+
ownedMissionsModels Mission[] @relation("ownerModel")
|
|
491
521
|
type String
|
|
492
522
|
pictureURL String?
|
|
493
523
|
status String
|
|
494
|
-
createdAt DateTime
|
|
524
|
+
createdAt DateTime @db.Date
|
|
495
525
|
titles String[]
|
|
496
526
|
scrubbed String?
|
|
497
|
-
authoredMissionSpecs MissionSpec[]
|
|
498
|
-
modifiedMissionSpecs MissionSpec[]
|
|
527
|
+
authoredMissionSpecs MissionSpec[] @relation("author")
|
|
528
|
+
modifiedMissionSpecs MissionSpec[] @relation("lastModifier")
|
|
529
|
+
missionSpecPreFills MissionSpecPreFill[] @relation("user")
|
|
499
530
|
|
|
500
531
|
@@map("users")
|
|
501
532
|
}
|
package/dist/client/wasm.js
CHANGED
|
@@ -227,6 +227,20 @@ exports.Prisma.MissionSpecScalarFieldEnum = {
|
|
|
227
227
|
workingHoursNumberOfMinutesOverlap: 'workingHoursNumberOfMinutesOverlap'
|
|
228
228
|
};
|
|
229
229
|
|
|
230
|
+
exports.Prisma.MissionSpecPreFillScalarFieldEnum = {
|
|
231
|
+
id: 'id',
|
|
232
|
+
userId: 'userId',
|
|
233
|
+
missionName: 'missionName',
|
|
234
|
+
plannedStart: 'plannedStart',
|
|
235
|
+
companyDescription: 'companyDescription',
|
|
236
|
+
missionDescription: 'missionDescription',
|
|
237
|
+
timezone: 'timezone',
|
|
238
|
+
openRoles: 'openRoles',
|
|
239
|
+
status: 'status',
|
|
240
|
+
createdAt: 'createdAt',
|
|
241
|
+
updatedAt: 'updatedAt'
|
|
242
|
+
};
|
|
243
|
+
|
|
230
244
|
exports.Prisma.RoleCategoryScalarFieldEnum = {
|
|
231
245
|
id: 'id',
|
|
232
246
|
anchors: 'anchors',
|
|
@@ -296,6 +310,18 @@ exports.ContractSource = exports.$Enums.ContractSource = {
|
|
|
296
310
|
ATeamGenerated: 'ATeamGenerated'
|
|
297
311
|
};
|
|
298
312
|
|
|
313
|
+
exports.MissionStatus = exports.$Enums.MissionStatus = {
|
|
314
|
+
Spec: 'Spec',
|
|
315
|
+
Formation: 'Formation',
|
|
316
|
+
Created: 'Created',
|
|
317
|
+
Published: 'Published',
|
|
318
|
+
Pending: 'Pending',
|
|
319
|
+
Running: 'Running',
|
|
320
|
+
ScheduledToEnd: 'ScheduledToEnd',
|
|
321
|
+
Ended: 'Ended',
|
|
322
|
+
Archived: 'Archived'
|
|
323
|
+
};
|
|
324
|
+
|
|
299
325
|
exports.MissionSpecStatus = exports.$Enums.MissionSpecStatus = {
|
|
300
326
|
spec: 'spec',
|
|
301
327
|
formation: 'formation',
|
|
@@ -317,6 +343,7 @@ exports.Prisma.ModelName = {
|
|
|
317
343
|
Contract: 'Contract',
|
|
318
344
|
Mission: 'Mission',
|
|
319
345
|
MissionSpec: 'MissionSpec',
|
|
346
|
+
MissionSpecPreFill: 'MissionSpecPreFill',
|
|
320
347
|
RoleCategory: 'RoleCategory',
|
|
321
348
|
TalentCategory: 'TalentCategory',
|
|
322
349
|
TalentIndustry: 'TalentIndustry',
|