@a_team/prisma 2.0.14 → 2.1.1

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-7b9f9d840cbf33c5255ae705dbd012183be9416a29db1640eee5c7e672318129",
2
+ "name": "prisma-client-3bcdcd8b14255dc50a2e56dff427acba362297a7156c41e54b3bc027405080c6",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -91,18 +91,20 @@ model Company {
91
91
  }
92
92
 
93
93
  model Contract {
94
- sid String @id @default(auto()) @map("_id") @db.ObjectId
94
+ sid String @id @default(auto()) @map("_id") @db.ObjectId
95
95
  status ContractStatus
96
96
  type ContractType
97
97
  downloadURL String
98
- createdAt DateTime @db.Date
99
- updatedAt DateTime @updatedAt @db.Date
98
+ createdAt DateTime @db.Date
99
+ updatedAt DateTime @updatedAt @db.Date
100
100
  parties ContractParty[]
101
- missionId String? @map("mission") @db.ObjectId
102
- mission Mission? @relation(fields: [missionId], references: [mid])
103
- role String? @db.ObjectId
101
+ missionId String? @map("mission") @db.ObjectId
102
+ mission Mission? @relation(fields: [missionId], references: [mid])
103
+ role String? @db.ObjectId
104
104
  custom Boolean?
105
- pandadocMetadata PandadocMetadata
105
+ pandadocMetadata PandadocMetadata?
106
+ source ContractSource?
107
+ documentTitle String?
106
108
 
107
109
  @@index([type, missionId, role, createdAt], map: "type_1_mission_1_role_1_createdAt_-1")
108
110
  @@index([parties.user, status, createdAt], map: "parties.user_1_status_1_createdAt_1")
@@ -135,7 +137,15 @@ enum ContractPartyType {
135
137
  }
136
138
 
137
139
  type PandadocMetadata {
138
- id String
140
+ id String
141
+ hubspotDealId String?
142
+ hubspotCompanyId String?
143
+ }
144
+
145
+ enum ContractSource {
146
+ PandaDoc
147
+ Custom
148
+ ATeamGenerated
139
149
  }
140
150
 
141
151
  type MissionRoleAvailability {
@@ -155,7 +155,9 @@ exports.Prisma.ContractScalarFieldEnum = {
155
155
  updatedAt: 'updatedAt',
156
156
  missionId: 'missionId',
157
157
  role: 'role',
158
- custom: 'custom'
158
+ custom: 'custom',
159
+ source: 'source',
160
+ documentTitle: 'documentTitle'
159
161
  };
160
162
 
161
163
  exports.Prisma.MissionScalarFieldEnum = {
@@ -285,6 +287,12 @@ exports.ContractType = exports.$Enums.ContractType = {
285
287
  ClientContract: 'ClientContract'
286
288
  };
287
289
 
290
+ exports.ContractSource = exports.$Enums.ContractSource = {
291
+ PandaDoc: 'PandaDoc',
292
+ Custom: 'Custom',
293
+ ATeamGenerated: 'ATeamGenerated'
294
+ };
295
+
288
296
  exports.MissionSpecStatus = exports.$Enums.MissionSpecStatus = {
289
297
  spec: 'spec',
290
298
  formation: 'formation',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a_team/prisma",
3
- "version": "2.0.14",
3
+ "version": "2.1.1",
4
4
  "keywords": [],
5
5
  "scripts": {
6
6
  "build": "rm -rf ./dist & npm run generate & tsc",