@valentine-efagene/qshelter-common 2.0.48 → 2.0.49
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/generated/client/browser.d.ts +6 -6
- package/dist/generated/client/client.d.ts +6 -6
- package/dist/generated/client/internal/class.d.ts +12 -12
- package/dist/generated/client/internal/class.js +2 -2
- package/dist/generated/client/internal/prismaNamespace.d.ts +109 -109
- package/dist/generated/client/internal/prismaNamespace.js +9 -9
- package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +15 -15
- package/dist/generated/client/internal/prismaNamespaceBrowser.js +9 -9
- package/dist/generated/client/models/ContractPhase.d.ts +35 -35
- package/dist/generated/client/models/DocumentationStep.d.ts +1819 -0
- package/dist/generated/client/models/DocumentationStep.js +1 -0
- package/dist/generated/client/models/DocumentationStepApproval.d.ts +1253 -0
- package/dist/generated/client/models/DocumentationStepApproval.js +1 -0
- package/dist/generated/client/models/DocumentationStepDocument.d.ts +1052 -0
- package/dist/generated/client/models/DocumentationStepDocument.js +1 -0
- package/dist/generated/client/models/User.d.ts +214 -214
- package/dist/generated/client/models.d.ts +3 -3
- package/package.json +1 -1
- package/prisma/schema.prisma +13 -13
|
@@ -31,9 +31,9 @@ export type * from './models/PaymentMethodPhaseStep.js';
|
|
|
31
31
|
export type * from './models/PaymentMethodPhaseDocument.js';
|
|
32
32
|
export type * from './models/Contract.js';
|
|
33
33
|
export type * from './models/ContractPhase.js';
|
|
34
|
-
export type * from './models/
|
|
35
|
-
export type * from './models/
|
|
36
|
-
export type * from './models/
|
|
34
|
+
export type * from './models/DocumentationStep.js';
|
|
35
|
+
export type * from './models/DocumentationStepDocument.js';
|
|
36
|
+
export type * from './models/DocumentationStepApproval.js';
|
|
37
37
|
export type * from './models/ContractInstallment.js';
|
|
38
38
|
export type * from './models/ContractPayment.js';
|
|
39
39
|
export type * from './models/ContractDocument.js';
|
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -225,9 +225,9 @@ model User {
|
|
|
225
225
|
soldContracts Contract[] @relation("ContractSeller")
|
|
226
226
|
contractPayments ContractPayment[] @relation("ContractPayer")
|
|
227
227
|
|
|
228
|
-
//
|
|
229
|
-
assignedSteps
|
|
230
|
-
stepApprovals
|
|
228
|
+
// Documentation step assignments and approvals
|
|
229
|
+
assignedSteps DocumentationStep[] @relation("DocumentationStepAssignee")
|
|
230
|
+
stepApprovals DocumentationStepApproval[] @relation("DocumentationStepApprover")
|
|
231
231
|
uploadedDocs ContractDocument[] @relation("DocumentUploader")
|
|
232
232
|
|
|
233
233
|
// Prequalification and payment method changes
|
|
@@ -1014,7 +1014,7 @@ model ContractPhase {
|
|
|
1014
1014
|
// Relations
|
|
1015
1015
|
installments ContractInstallment[]
|
|
1016
1016
|
payments ContractPayment[]
|
|
1017
|
-
steps
|
|
1017
|
+
steps DocumentationStep[] // For DOCUMENTATION phases (FSM steps)
|
|
1018
1018
|
|
|
1019
1019
|
@@index([contractId])
|
|
1020
1020
|
@@index([paymentPlanId])
|
|
@@ -1025,7 +1025,7 @@ model ContractPhase {
|
|
|
1025
1025
|
}
|
|
1026
1026
|
|
|
1027
1027
|
// Steps within a DOCUMENTATION phase (FSM for document collection/approval)
|
|
1028
|
-
model
|
|
1028
|
+
model DocumentationStep {
|
|
1029
1029
|
id String @id @default(cuid())
|
|
1030
1030
|
phaseId String
|
|
1031
1031
|
phase ContractPhase @relation(fields: [phaseId], references: [id], onDelete: Cascade)
|
|
@@ -1042,10 +1042,10 @@ model ContractPhaseStep {
|
|
|
1042
1042
|
|
|
1043
1043
|
// Assignment
|
|
1044
1044
|
assigneeId String?
|
|
1045
|
-
assignee User? @relation("
|
|
1045
|
+
assignee User? @relation("DocumentationStepAssignee", fields: [assigneeId], references: [id])
|
|
1046
1046
|
|
|
1047
1047
|
// Required document types for UPLOAD steps (normalized)
|
|
1048
|
-
requiredDocuments
|
|
1048
|
+
requiredDocuments DocumentationStepDocument[]
|
|
1049
1049
|
|
|
1050
1050
|
// Timing
|
|
1051
1051
|
dueDate DateTime?
|
|
@@ -1054,7 +1054,7 @@ model ContractPhaseStep {
|
|
|
1054
1054
|
createdAt DateTime @default(now())
|
|
1055
1055
|
updatedAt DateTime @updatedAt
|
|
1056
1056
|
|
|
1057
|
-
approvals
|
|
1057
|
+
approvals DocumentationStepApproval[]
|
|
1058
1058
|
|
|
1059
1059
|
@@index([phaseId])
|
|
1060
1060
|
@@index([status])
|
|
@@ -1063,10 +1063,10 @@ model ContractPhaseStep {
|
|
|
1063
1063
|
}
|
|
1064
1064
|
|
|
1065
1065
|
// Required documents for a step (normalized from CSV)
|
|
1066
|
-
model
|
|
1066
|
+
model DocumentationStepDocument {
|
|
1067
1067
|
id String @id @default(cuid())
|
|
1068
1068
|
stepId String
|
|
1069
|
-
step
|
|
1069
|
+
step DocumentationStep @relation(fields: [stepId], references: [id], onDelete: Cascade)
|
|
1070
1070
|
|
|
1071
1071
|
documentType String
|
|
1072
1072
|
isRequired Boolean @default(true)
|
|
@@ -1078,12 +1078,12 @@ model ContractPhaseStepDocument {
|
|
|
1078
1078
|
}
|
|
1079
1079
|
|
|
1080
1080
|
// Approvals for documentation steps
|
|
1081
|
-
model
|
|
1081
|
+
model DocumentationStepApproval {
|
|
1082
1082
|
id String @id @default(cuid())
|
|
1083
1083
|
stepId String
|
|
1084
|
-
step
|
|
1084
|
+
step DocumentationStep @relation(fields: [stepId], references: [id], onDelete: Cascade)
|
|
1085
1085
|
approverId String?
|
|
1086
|
-
approver User? @relation("
|
|
1086
|
+
approver User? @relation("DocumentationStepApprover", fields: [approverId], references: [id])
|
|
1087
1087
|
|
|
1088
1088
|
decision ApprovalDecision
|
|
1089
1089
|
comment String? @db.Text
|