@a_team/prisma 2.1.8 → 2.1.10

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-a2668516853f79aed72d345dbace54213073f6d19e067940b47f8e0bf8c2d316",
2
+ "name": "prisma-client-f707efccaa05155487464f1904e3137fe85d1bded8943ed57604c20a860cd644",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -155,7 +155,7 @@ type MissionRoleAvailability {
155
155
  }
156
156
 
157
157
  type MissionRoleCustomQuestion {
158
- id String @map("_id") @db.ObjectId
158
+ id String? @map("_id") @db.ObjectId
159
159
  createdAt DateTime? @db.Date
160
160
  isRequired Boolean?
161
161
  isVisible Boolean
@@ -215,7 +215,7 @@ type MissionRole {
215
215
  requiredSkills MissionRoleRequiredSkill[]
216
216
  setAsScheduledToEndAt DateTime? @db.Date
217
217
  showRateRangeToBuilders Boolean?
218
- status String?
218
+ status MissionRoleStatus
219
219
  updatedAt DateTime? @db.Date
220
220
  user String? @db.ObjectId
221
221
  userAssignedAt DateTime? @db.Date
@@ -297,8 +297,8 @@ model Mission {
297
297
  mainManagerUserId String?
298
298
  managers MissionsManager[]
299
299
  migrations String[]
300
- missionSpecId String @unique @db.ObjectId
301
- missionSpec MissionSpec @relation(fields: [missionSpecId], references: [id])
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,14 +309,14 @@ model Mission {
309
309
  setAsScheduledToEndAt DateTime? @db.Date
310
310
  shortCompanyDescription String?
311
311
  skipContracts Boolean?
312
- status String
312
+ status MissionStatus
313
313
  talentIndustries String[]
314
314
  testing MissionsTesting?
315
315
  title String
316
316
  updatedAt DateTime? @db.Date
317
317
  videoURL String?
318
318
  website String?
319
- startDate DateTime? @db.Date
319
+ plannedStart String?
320
320
  overlapMinutes Int?
321
321
  timezone String?
322
322
  contracts Contract[]
@@ -325,6 +325,26 @@ 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
+
340
+ enum MissionRoleStatus {
341
+ Open
342
+ Active
343
+ Canceled
344
+ ScheduledToEnd
345
+ Ended
346
+ }
347
+
328
348
  model MissionSpec {
329
349
  id String @id @default(auto()) @map("_id") @db.ObjectId
330
350
  account Account? @relation(fields: [accountId], references: [id])
@@ -198,7 +198,7 @@ exports.Prisma.MissionScalarFieldEnum = {
198
198
  updatedAt: 'updatedAt',
199
199
  videoURL: 'videoURL',
200
200
  website: 'website',
201
- startDate: 'startDate',
201
+ plannedStart: 'plannedStart',
202
202
  overlapMinutes: 'overlapMinutes',
203
203
  timezone: 'timezone'
204
204
  };
@@ -310,6 +310,18 @@ exports.ContractSource = exports.$Enums.ContractSource = {
310
310
  ATeamGenerated: 'ATeamGenerated'
311
311
  };
312
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
+
313
325
  exports.MissionSpecStatus = exports.$Enums.MissionSpecStatus = {
314
326
  spec: 'spec',
315
327
  formation: 'formation',
@@ -324,6 +336,14 @@ exports.ContractPartyType = exports.$Enums.ContractPartyType = {
324
336
  MissionRole: 'MissionRole'
325
337
  };
326
338
 
339
+ exports.MissionRoleStatus = exports.$Enums.MissionRoleStatus = {
340
+ Open: 'Open',
341
+ Active: 'Active',
342
+ Canceled: 'Canceled',
343
+ ScheduledToEnd: 'ScheduledToEnd',
344
+ Ended: 'Ended'
345
+ };
346
+
327
347
  exports.Prisma.ModelName = {
328
348
  Account: 'Account',
329
349
  ClientCompany: 'ClientCompany',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a_team/prisma",
3
- "version": "2.1.8",
3
+ "version": "2.1.10",
4
4
  "keywords": [],
5
5
  "scripts": {
6
6
  "build": "rm -rf ./dist & npm run generate & tsc",