@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.
- package/dist/client/edge.js +12 -4
- package/dist/client/index-browser.js +9 -1
- package/dist/client/index.d.ts +191 -28
- package/dist/client/index.js +12 -4
- package/dist/client/package.json +1 -1
- package/dist/client/schema.prisma +18 -8
- package/dist/client/wasm.js +9 -1
- package/package.json +1 -1
package/dist/client/package.json
CHANGED
|
@@ -91,18 +91,20 @@ model Company {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
model Contract {
|
|
94
|
-
sid String
|
|
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
|
|
99
|
-
updatedAt DateTime
|
|
98
|
+
createdAt DateTime @db.Date
|
|
99
|
+
updatedAt DateTime @updatedAt @db.Date
|
|
100
100
|
parties ContractParty[]
|
|
101
|
-
missionId String?
|
|
102
|
-
mission Mission?
|
|
103
|
-
role String?
|
|
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
|
|
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 {
|
package/dist/client/wasm.js
CHANGED
|
@@ -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',
|