@a_team/prisma 2.0.14 → 2.1.0
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 +11 -4
- package/dist/client/index-browser.js +8 -1
- package/dist/client/index.d.ts +157 -28
- package/dist/client/index.js +11 -4
- package/dist/client/package.json +1 -1
- package/dist/client/schema.prisma +17 -8
- package/dist/client/wasm.js +8 -1
- package/package.json +1 -1
package/dist/client/package.json
CHANGED
|
@@ -91,18 +91,19 @@ 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?
|
|
106
107
|
|
|
107
108
|
@@index([type, missionId, role, createdAt], map: "type_1_mission_1_role_1_createdAt_-1")
|
|
108
109
|
@@index([parties.user, status, createdAt], map: "parties.user_1_status_1_createdAt_1")
|
|
@@ -135,7 +136,15 @@ enum ContractPartyType {
|
|
|
135
136
|
}
|
|
136
137
|
|
|
137
138
|
type PandadocMetadata {
|
|
138
|
-
id
|
|
139
|
+
id String
|
|
140
|
+
hubspotDealId String?
|
|
141
|
+
hubspotCompanyId String?
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
enum ContractSource {
|
|
145
|
+
PandaDoc
|
|
146
|
+
Custom
|
|
147
|
+
ATeamGenerated
|
|
139
148
|
}
|
|
140
149
|
|
|
141
150
|
type MissionRoleAvailability {
|
package/dist/client/wasm.js
CHANGED
|
@@ -155,7 +155,8 @@ exports.Prisma.ContractScalarFieldEnum = {
|
|
|
155
155
|
updatedAt: 'updatedAt',
|
|
156
156
|
missionId: 'missionId',
|
|
157
157
|
role: 'role',
|
|
158
|
-
custom: 'custom'
|
|
158
|
+
custom: 'custom',
|
|
159
|
+
source: 'source'
|
|
159
160
|
};
|
|
160
161
|
|
|
161
162
|
exports.Prisma.MissionScalarFieldEnum = {
|
|
@@ -285,6 +286,12 @@ exports.ContractType = exports.$Enums.ContractType = {
|
|
|
285
286
|
ClientContract: 'ClientContract'
|
|
286
287
|
};
|
|
287
288
|
|
|
289
|
+
exports.ContractSource = exports.$Enums.ContractSource = {
|
|
290
|
+
PandaDoc: 'PandaDoc',
|
|
291
|
+
Custom: 'Custom',
|
|
292
|
+
ATeamGenerated: 'ATeamGenerated'
|
|
293
|
+
};
|
|
294
|
+
|
|
288
295
|
exports.MissionSpecStatus = exports.$Enums.MissionSpecStatus = {
|
|
289
296
|
spec: 'spec',
|
|
290
297
|
formation: 'formation',
|