@a_team/prisma 2.0.13 → 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 +17 -5
- package/dist/client/index-browser.js +10 -2
- package/dist/client/index.d.ts +250 -2
- package/dist/client/index.js +21 -5
- package/dist/client/libquery_engine-darwin-arm64.dylib.node +0 -0
- package/dist/client/package.json +1 -1
- package/dist/client/schema.prisma +27 -12
- package/dist/client/wasm.js +10 -2
- package/package.json +1 -1
|
Binary file
|
package/dist/client/package.json
CHANGED
|
@@ -91,17 +91,19 @@ model Company {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
model Contract {
|
|
94
|
-
sid
|
|
95
|
-
status
|
|
96
|
-
type
|
|
97
|
-
downloadURL
|
|
98
|
-
createdAt
|
|
99
|
-
updatedAt
|
|
100
|
-
parties
|
|
101
|
-
missionId
|
|
102
|
-
mission
|
|
103
|
-
role
|
|
104
|
-
custom
|
|
94
|
+
sid String @id @default(auto()) @map("_id") @db.ObjectId
|
|
95
|
+
status ContractStatus
|
|
96
|
+
type ContractType
|
|
97
|
+
downloadURL String
|
|
98
|
+
createdAt DateTime @db.Date
|
|
99
|
+
updatedAt DateTime @updatedAt @db.Date
|
|
100
|
+
parties ContractParty[]
|
|
101
|
+
missionId String? @map("mission") @db.ObjectId
|
|
102
|
+
mission Mission? @relation(fields: [missionId], references: [mid])
|
|
103
|
+
role String? @db.ObjectId
|
|
104
|
+
custom Boolean?
|
|
105
|
+
pandadocMetadata PandadocMetadata?
|
|
106
|
+
source ContractSource?
|
|
105
107
|
|
|
106
108
|
@@index([type, missionId, role, createdAt], map: "type_1_mission_1_role_1_createdAt_-1")
|
|
107
109
|
@@index([parties.user, status, createdAt], map: "parties.user_1_status_1_createdAt_1")
|
|
@@ -116,6 +118,7 @@ enum ContractStatus {
|
|
|
116
118
|
enum ContractType {
|
|
117
119
|
TermsOfService
|
|
118
120
|
MissionAgreement
|
|
121
|
+
ClientContract
|
|
119
122
|
}
|
|
120
123
|
|
|
121
124
|
type ContractParty {
|
|
@@ -132,6 +135,18 @@ enum ContractPartyType {
|
|
|
132
135
|
MissionRole
|
|
133
136
|
}
|
|
134
137
|
|
|
138
|
+
type PandadocMetadata {
|
|
139
|
+
id String
|
|
140
|
+
hubspotDealId String?
|
|
141
|
+
hubspotCompanyId String?
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
enum ContractSource {
|
|
145
|
+
PandaDoc
|
|
146
|
+
Custom
|
|
147
|
+
ATeamGenerated
|
|
148
|
+
}
|
|
149
|
+
|
|
135
150
|
type MissionRoleAvailability {
|
|
136
151
|
date DateTime? @db.Date
|
|
137
152
|
scheduledEndDate DateTime? @db.Date
|
|
@@ -432,7 +447,7 @@ datasource db {
|
|
|
432
447
|
|
|
433
448
|
generator client {
|
|
434
449
|
provider = "prisma-client-js"
|
|
435
|
-
binaryTargets = ["native", "darwin", "windows"]
|
|
450
|
+
binaryTargets = ["native", "darwin", "darwin-arm64", "windows"]
|
|
436
451
|
previewFeatures = ["prismaSchemaFolder"]
|
|
437
452
|
output = "../../src/client"
|
|
438
453
|
}
|
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 = {
|
|
@@ -281,7 +282,14 @@ exports.ContractStatus = exports.$Enums.ContractStatus = {
|
|
|
281
282
|
|
|
282
283
|
exports.ContractType = exports.$Enums.ContractType = {
|
|
283
284
|
TermsOfService: 'TermsOfService',
|
|
284
|
-
MissionAgreement: 'MissionAgreement'
|
|
285
|
+
MissionAgreement: 'MissionAgreement',
|
|
286
|
+
ClientContract: 'ClientContract'
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
exports.ContractSource = exports.$Enums.ContractSource = {
|
|
290
|
+
PandaDoc: 'PandaDoc',
|
|
291
|
+
Custom: 'Custom',
|
|
292
|
+
ATeamGenerated: 'ATeamGenerated'
|
|
285
293
|
};
|
|
286
294
|
|
|
287
295
|
exports.MissionSpecStatus = exports.$Enums.MissionSpecStatus = {
|