@valentine-efagene/qshelter-common 2.0.138 → 2.0.139

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.
Files changed (33) hide show
  1. package/dist/generated/client/browser.d.ts +20 -0
  2. package/dist/generated/client/client.d.ts +20 -0
  3. package/dist/generated/client/commonInputTypes.d.ts +120 -30
  4. package/dist/generated/client/enums.d.ts +23 -0
  5. package/dist/generated/client/enums.js +21 -1
  6. package/dist/generated/client/internal/class.d.ts +44 -0
  7. package/dist/generated/client/internal/class.js +2 -2
  8. package/dist/generated/client/internal/prismaNamespace.d.ts +401 -5
  9. package/dist/generated/client/internal/prismaNamespace.js +108 -0
  10. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +116 -0
  11. package/dist/generated/client/internal/prismaNamespaceBrowser.js +108 -0
  12. package/dist/generated/client/models/ApplicationDocument.d.ts +290 -1
  13. package/dist/generated/client/models/ApprovalStage.d.ts +1605 -0
  14. package/dist/generated/client/models/ApprovalStage.js +1 -0
  15. package/dist/generated/client/models/ApprovalStageProgress.d.ts +2329 -0
  16. package/dist/generated/client/models/ApprovalStageProgress.js +1 -0
  17. package/dist/generated/client/models/DocumentApproval.d.ts +1611 -0
  18. package/dist/generated/client/models/DocumentApproval.js +1 -0
  19. package/dist/generated/client/models/DocumentDefinition.d.ts +1475 -0
  20. package/dist/generated/client/models/DocumentDefinition.js +1 -0
  21. package/dist/generated/client/models/DocumentReview.d.ts +0 -3
  22. package/dist/generated/client/models/DocumentationPhase.d.ts +167 -0
  23. package/dist/generated/client/models/DocumentationPlan.d.ts +270 -0
  24. package/dist/generated/client/models/Tenant.d.ts +1281 -131
  25. package/dist/generated/client/models/User.d.ts +824 -0
  26. package/dist/generated/client/models/index.d.ts +4 -0
  27. package/dist/generated/client/models/index.js +4 -0
  28. package/dist/generated/client/models.d.ts +4 -0
  29. package/dist/src/utils/documentation-enums.d.ts +10 -1
  30. package/dist/src/utils/documentation-enums.js +8 -0
  31. package/package.json +1 -1
  32. package/prisma/migrations/20260119190336_add_document_approval_workflow/migration.sql +134 -0
  33. package/prisma/schema.prisma +244 -5
@@ -0,0 +1 @@
1
+ export {};
@@ -713,9 +713,6 @@ export type DocumentReviewUncheckedCreateNestedManyWithoutParentReviewInput = {
713
713
  createMany?: Prisma.DocumentReviewCreateManyParentReviewInputEnvelope;
714
714
  connect?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
715
715
  };
716
- export type EnumReviewPartyFieldUpdateOperationsInput = {
717
- set?: $Enums.ReviewParty;
718
- };
719
716
  export type EnumReviewDecisionFieldUpdateOperationsInput = {
720
717
  set?: $Enums.ReviewDecision;
721
718
  };
@@ -271,6 +271,7 @@ export type DocumentationPhaseWhereInput = {
271
271
  sourceQuestionnairePhase?: Prisma.XOR<Prisma.QuestionnairePhaseNullableScalarRelationFilter, Prisma.QuestionnairePhaseWhereInput> | null;
272
272
  currentStep?: Prisma.XOR<Prisma.DocumentationStepNullableScalarRelationFilter, Prisma.DocumentationStepWhereInput> | null;
273
273
  steps?: Prisma.DocumentationStepListRelationFilter;
274
+ stageProgress?: Prisma.ApprovalStageProgressListRelationFilter;
274
275
  };
275
276
  export type DocumentationPhaseOrderByWithRelationInput = {
276
277
  id?: Prisma.SortOrder;
@@ -295,6 +296,7 @@ export type DocumentationPhaseOrderByWithRelationInput = {
295
296
  sourceQuestionnairePhase?: Prisma.QuestionnairePhaseOrderByWithRelationInput;
296
297
  currentStep?: Prisma.DocumentationStepOrderByWithRelationInput;
297
298
  steps?: Prisma.DocumentationStepOrderByRelationAggregateInput;
299
+ stageProgress?: Prisma.ApprovalStageProgressOrderByRelationAggregateInput;
298
300
  _relevance?: Prisma.DocumentationPhaseOrderByRelevanceInput;
299
301
  };
300
302
  export type DocumentationPhaseWhereUniqueInput = Prisma.AtLeast<{
@@ -323,6 +325,7 @@ export type DocumentationPhaseWhereUniqueInput = Prisma.AtLeast<{
323
325
  sourceQuestionnairePhase?: Prisma.XOR<Prisma.QuestionnairePhaseNullableScalarRelationFilter, Prisma.QuestionnairePhaseWhereInput> | null;
324
326
  currentStep?: Prisma.XOR<Prisma.DocumentationStepNullableScalarRelationFilter, Prisma.DocumentationStepWhereInput> | null;
325
327
  steps?: Prisma.DocumentationStepListRelationFilter;
328
+ stageProgress?: Prisma.ApprovalStageProgressListRelationFilter;
326
329
  }, "id" | "phaseId">;
327
330
  export type DocumentationPhaseOrderByWithAggregationInput = {
328
331
  id?: Prisma.SortOrder;
@@ -386,6 +389,7 @@ export type DocumentationPhaseCreateInput = {
386
389
  sourceQuestionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutDependentDocumentationPhasesInput;
387
390
  currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
388
391
  steps?: Prisma.DocumentationStepCreateNestedManyWithoutDocumentationPhaseInput;
392
+ stageProgress?: Prisma.ApprovalStageProgressCreateNestedManyWithoutDocumentationPhaseInput;
389
393
  };
390
394
  export type DocumentationPhaseUncheckedCreateInput = {
391
395
  id?: string;
@@ -405,6 +409,7 @@ export type DocumentationPhaseUncheckedCreateInput = {
405
409
  createdAt?: Date | string;
406
410
  updatedAt?: Date | string;
407
411
  steps?: Prisma.DocumentationStepUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
412
+ stageProgress?: Prisma.ApprovalStageProgressUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
408
413
  };
409
414
  export type DocumentationPhaseUpdateInput = {
410
415
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -424,6 +429,7 @@ export type DocumentationPhaseUpdateInput = {
424
429
  sourceQuestionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutDependentDocumentationPhasesNestedInput;
425
430
  currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
426
431
  steps?: Prisma.DocumentationStepUpdateManyWithoutDocumentationPhaseNestedInput;
432
+ stageProgress?: Prisma.ApprovalStageProgressUpdateManyWithoutDocumentationPhaseNestedInput;
427
433
  };
428
434
  export type DocumentationPhaseUncheckedUpdateInput = {
429
435
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -443,6 +449,7 @@ export type DocumentationPhaseUncheckedUpdateInput = {
443
449
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
444
450
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
445
451
  steps?: Prisma.DocumentationStepUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
452
+ stageProgress?: Prisma.ApprovalStageProgressUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
446
453
  };
447
454
  export type DocumentationPhaseCreateManyInput = {
448
455
  id?: string;
@@ -770,6 +777,18 @@ export type DocumentationPhaseUncheckedUpdateManyWithoutCurrentStepNestedInput =
770
777
  updateMany?: Prisma.DocumentationPhaseUpdateManyWithWhereWithoutCurrentStepInput | Prisma.DocumentationPhaseUpdateManyWithWhereWithoutCurrentStepInput[];
771
778
  deleteMany?: Prisma.DocumentationPhaseScalarWhereInput | Prisma.DocumentationPhaseScalarWhereInput[];
772
779
  };
780
+ export type DocumentationPhaseCreateNestedOneWithoutStageProgressInput = {
781
+ create?: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutStageProgressInput, Prisma.DocumentationPhaseUncheckedCreateWithoutStageProgressInput>;
782
+ connectOrCreate?: Prisma.DocumentationPhaseCreateOrConnectWithoutStageProgressInput;
783
+ connect?: Prisma.DocumentationPhaseWhereUniqueInput;
784
+ };
785
+ export type DocumentationPhaseUpdateOneRequiredWithoutStageProgressNestedInput = {
786
+ create?: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutStageProgressInput, Prisma.DocumentationPhaseUncheckedCreateWithoutStageProgressInput>;
787
+ connectOrCreate?: Prisma.DocumentationPhaseCreateOrConnectWithoutStageProgressInput;
788
+ upsert?: Prisma.DocumentationPhaseUpsertWithoutStageProgressInput;
789
+ connect?: Prisma.DocumentationPhaseWhereUniqueInput;
790
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DocumentationPhaseUpdateToOneWithWhereWithoutStageProgressInput, Prisma.DocumentationPhaseUpdateWithoutStageProgressInput>, Prisma.DocumentationPhaseUncheckedUpdateWithoutStageProgressInput>;
791
+ };
773
792
  export type DocumentationPhaseCreateWithoutTenantInput = {
774
793
  id?: string;
775
794
  approvedDocumentsCount?: number;
@@ -787,6 +806,7 @@ export type DocumentationPhaseCreateWithoutTenantInput = {
787
806
  sourceQuestionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutDependentDocumentationPhasesInput;
788
807
  currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
789
808
  steps?: Prisma.DocumentationStepCreateNestedManyWithoutDocumentationPhaseInput;
809
+ stageProgress?: Prisma.ApprovalStageProgressCreateNestedManyWithoutDocumentationPhaseInput;
790
810
  };
791
811
  export type DocumentationPhaseUncheckedCreateWithoutTenantInput = {
792
812
  id?: string;
@@ -805,6 +825,7 @@ export type DocumentationPhaseUncheckedCreateWithoutTenantInput = {
805
825
  createdAt?: Date | string;
806
826
  updatedAt?: Date | string;
807
827
  steps?: Prisma.DocumentationStepUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
828
+ stageProgress?: Prisma.ApprovalStageProgressUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
808
829
  };
809
830
  export type DocumentationPhaseCreateOrConnectWithoutTenantInput = {
810
831
  where: Prisma.DocumentationPhaseWhereUniqueInput;
@@ -865,6 +886,7 @@ export type DocumentationPhaseCreateWithoutDocumentationPlanInput = {
865
886
  sourceQuestionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutDependentDocumentationPhasesInput;
866
887
  currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
867
888
  steps?: Prisma.DocumentationStepCreateNestedManyWithoutDocumentationPhaseInput;
889
+ stageProgress?: Prisma.ApprovalStageProgressCreateNestedManyWithoutDocumentationPhaseInput;
868
890
  };
869
891
  export type DocumentationPhaseUncheckedCreateWithoutDocumentationPlanInput = {
870
892
  id?: string;
@@ -883,6 +905,7 @@ export type DocumentationPhaseUncheckedCreateWithoutDocumentationPlanInput = {
883
905
  createdAt?: Date | string;
884
906
  updatedAt?: Date | string;
885
907
  steps?: Prisma.DocumentationStepUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
908
+ stageProgress?: Prisma.ApprovalStageProgressUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
886
909
  };
887
910
  export type DocumentationPhaseCreateOrConnectWithoutDocumentationPlanInput = {
888
911
  where: Prisma.DocumentationPhaseWhereUniqueInput;
@@ -922,6 +945,7 @@ export type DocumentationPhaseCreateWithoutPhaseInput = {
922
945
  sourceQuestionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutDependentDocumentationPhasesInput;
923
946
  currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
924
947
  steps?: Prisma.DocumentationStepCreateNestedManyWithoutDocumentationPhaseInput;
948
+ stageProgress?: Prisma.ApprovalStageProgressCreateNestedManyWithoutDocumentationPhaseInput;
925
949
  };
926
950
  export type DocumentationPhaseUncheckedCreateWithoutPhaseInput = {
927
951
  id?: string;
@@ -940,6 +964,7 @@ export type DocumentationPhaseUncheckedCreateWithoutPhaseInput = {
940
964
  createdAt?: Date | string;
941
965
  updatedAt?: Date | string;
942
966
  steps?: Prisma.DocumentationStepUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
967
+ stageProgress?: Prisma.ApprovalStageProgressUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
943
968
  };
944
969
  export type DocumentationPhaseCreateOrConnectWithoutPhaseInput = {
945
970
  where: Prisma.DocumentationPhaseWhereUniqueInput;
@@ -971,6 +996,7 @@ export type DocumentationPhaseUpdateWithoutPhaseInput = {
971
996
  sourceQuestionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutDependentDocumentationPhasesNestedInput;
972
997
  currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
973
998
  steps?: Prisma.DocumentationStepUpdateManyWithoutDocumentationPhaseNestedInput;
999
+ stageProgress?: Prisma.ApprovalStageProgressUpdateManyWithoutDocumentationPhaseNestedInput;
974
1000
  };
975
1001
  export type DocumentationPhaseUncheckedUpdateWithoutPhaseInput = {
976
1002
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -989,6 +1015,7 @@ export type DocumentationPhaseUncheckedUpdateWithoutPhaseInput = {
989
1015
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
990
1016
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
991
1017
  steps?: Prisma.DocumentationStepUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
1018
+ stageProgress?: Prisma.ApprovalStageProgressUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
992
1019
  };
993
1020
  export type DocumentationPhaseCreateWithoutSourceQuestionnairePhaseInput = {
994
1021
  id?: string;
@@ -1007,6 +1034,7 @@ export type DocumentationPhaseCreateWithoutSourceQuestionnairePhaseInput = {
1007
1034
  documentationPlan?: Prisma.DocumentationPlanCreateNestedOneWithoutDocumentationPhasesInput;
1008
1035
  currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
1009
1036
  steps?: Prisma.DocumentationStepCreateNestedManyWithoutDocumentationPhaseInput;
1037
+ stageProgress?: Prisma.ApprovalStageProgressCreateNestedManyWithoutDocumentationPhaseInput;
1010
1038
  };
1011
1039
  export type DocumentationPhaseUncheckedCreateWithoutSourceQuestionnairePhaseInput = {
1012
1040
  id?: string;
@@ -1025,6 +1053,7 @@ export type DocumentationPhaseUncheckedCreateWithoutSourceQuestionnairePhaseInpu
1025
1053
  createdAt?: Date | string;
1026
1054
  updatedAt?: Date | string;
1027
1055
  steps?: Prisma.DocumentationStepUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
1056
+ stageProgress?: Prisma.ApprovalStageProgressUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
1028
1057
  };
1029
1058
  export type DocumentationPhaseCreateOrConnectWithoutSourceQuestionnairePhaseInput = {
1030
1059
  where: Prisma.DocumentationPhaseWhereUniqueInput;
@@ -1064,6 +1093,7 @@ export type DocumentationPhaseCreateWithoutStepsInput = {
1064
1093
  documentationPlan?: Prisma.DocumentationPlanCreateNestedOneWithoutDocumentationPhasesInput;
1065
1094
  sourceQuestionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutDependentDocumentationPhasesInput;
1066
1095
  currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
1096
+ stageProgress?: Prisma.ApprovalStageProgressCreateNestedManyWithoutDocumentationPhaseInput;
1067
1097
  };
1068
1098
  export type DocumentationPhaseUncheckedCreateWithoutStepsInput = {
1069
1099
  id?: string;
@@ -1082,6 +1112,7 @@ export type DocumentationPhaseUncheckedCreateWithoutStepsInput = {
1082
1112
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1083
1113
  createdAt?: Date | string;
1084
1114
  updatedAt?: Date | string;
1115
+ stageProgress?: Prisma.ApprovalStageProgressUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
1085
1116
  };
1086
1117
  export type DocumentationPhaseCreateOrConnectWithoutStepsInput = {
1087
1118
  where: Prisma.DocumentationPhaseWhereUniqueInput;
@@ -1104,6 +1135,7 @@ export type DocumentationPhaseCreateWithoutCurrentStepInput = {
1104
1135
  documentationPlan?: Prisma.DocumentationPlanCreateNestedOneWithoutDocumentationPhasesInput;
1105
1136
  sourceQuestionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutDependentDocumentationPhasesInput;
1106
1137
  steps?: Prisma.DocumentationStepCreateNestedManyWithoutDocumentationPhaseInput;
1138
+ stageProgress?: Prisma.ApprovalStageProgressCreateNestedManyWithoutDocumentationPhaseInput;
1107
1139
  };
1108
1140
  export type DocumentationPhaseUncheckedCreateWithoutCurrentStepInput = {
1109
1141
  id?: string;
@@ -1122,6 +1154,7 @@ export type DocumentationPhaseUncheckedCreateWithoutCurrentStepInput = {
1122
1154
  createdAt?: Date | string;
1123
1155
  updatedAt?: Date | string;
1124
1156
  steps?: Prisma.DocumentationStepUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
1157
+ stageProgress?: Prisma.ApprovalStageProgressUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
1125
1158
  };
1126
1159
  export type DocumentationPhaseCreateOrConnectWithoutCurrentStepInput = {
1127
1160
  where: Prisma.DocumentationPhaseWhereUniqueInput;
@@ -1157,6 +1190,7 @@ export type DocumentationPhaseUpdateWithoutStepsInput = {
1157
1190
  documentationPlan?: Prisma.DocumentationPlanUpdateOneWithoutDocumentationPhasesNestedInput;
1158
1191
  sourceQuestionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutDependentDocumentationPhasesNestedInput;
1159
1192
  currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
1193
+ stageProgress?: Prisma.ApprovalStageProgressUpdateManyWithoutDocumentationPhaseNestedInput;
1160
1194
  };
1161
1195
  export type DocumentationPhaseUncheckedUpdateWithoutStepsInput = {
1162
1196
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1175,6 +1209,7 @@ export type DocumentationPhaseUncheckedUpdateWithoutStepsInput = {
1175
1209
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1176
1210
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1177
1211
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1212
+ stageProgress?: Prisma.ApprovalStageProgressUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
1178
1213
  };
1179
1214
  export type DocumentationPhaseUpsertWithWhereUniqueWithoutCurrentStepInput = {
1180
1215
  where: Prisma.DocumentationPhaseWhereUniqueInput;
@@ -1189,6 +1224,95 @@ export type DocumentationPhaseUpdateManyWithWhereWithoutCurrentStepInput = {
1189
1224
  where: Prisma.DocumentationPhaseScalarWhereInput;
1190
1225
  data: Prisma.XOR<Prisma.DocumentationPhaseUpdateManyMutationInput, Prisma.DocumentationPhaseUncheckedUpdateManyWithoutCurrentStepInput>;
1191
1226
  };
1227
+ export type DocumentationPhaseCreateWithoutStageProgressInput = {
1228
+ id?: string;
1229
+ approvedDocumentsCount?: number;
1230
+ requiredDocumentsCount?: number;
1231
+ completedStepsCount?: number;
1232
+ totalStepsCount?: number;
1233
+ minimumCompletionPercentage?: number | null;
1234
+ completionCriterion?: $Enums.CompletionCriterion | null;
1235
+ stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1236
+ requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1237
+ createdAt?: Date | string;
1238
+ updatedAt?: Date | string;
1239
+ tenant: Prisma.TenantCreateNestedOneWithoutDocumentationPhasesInput;
1240
+ phase: Prisma.ApplicationPhaseCreateNestedOneWithoutDocumentationPhaseInput;
1241
+ documentationPlan?: Prisma.DocumentationPlanCreateNestedOneWithoutDocumentationPhasesInput;
1242
+ sourceQuestionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutDependentDocumentationPhasesInput;
1243
+ currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
1244
+ steps?: Prisma.DocumentationStepCreateNestedManyWithoutDocumentationPhaseInput;
1245
+ };
1246
+ export type DocumentationPhaseUncheckedCreateWithoutStageProgressInput = {
1247
+ id?: string;
1248
+ tenantId: string;
1249
+ phaseId: string;
1250
+ documentationPlanId?: string | null;
1251
+ sourceQuestionnairePhaseId?: string | null;
1252
+ currentStepId?: string | null;
1253
+ approvedDocumentsCount?: number;
1254
+ requiredDocumentsCount?: number;
1255
+ completedStepsCount?: number;
1256
+ totalStepsCount?: number;
1257
+ minimumCompletionPercentage?: number | null;
1258
+ completionCriterion?: $Enums.CompletionCriterion | null;
1259
+ stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1260
+ requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1261
+ createdAt?: Date | string;
1262
+ updatedAt?: Date | string;
1263
+ steps?: Prisma.DocumentationStepUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
1264
+ };
1265
+ export type DocumentationPhaseCreateOrConnectWithoutStageProgressInput = {
1266
+ where: Prisma.DocumentationPhaseWhereUniqueInput;
1267
+ create: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutStageProgressInput, Prisma.DocumentationPhaseUncheckedCreateWithoutStageProgressInput>;
1268
+ };
1269
+ export type DocumentationPhaseUpsertWithoutStageProgressInput = {
1270
+ update: Prisma.XOR<Prisma.DocumentationPhaseUpdateWithoutStageProgressInput, Prisma.DocumentationPhaseUncheckedUpdateWithoutStageProgressInput>;
1271
+ create: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutStageProgressInput, Prisma.DocumentationPhaseUncheckedCreateWithoutStageProgressInput>;
1272
+ where?: Prisma.DocumentationPhaseWhereInput;
1273
+ };
1274
+ export type DocumentationPhaseUpdateToOneWithWhereWithoutStageProgressInput = {
1275
+ where?: Prisma.DocumentationPhaseWhereInput;
1276
+ data: Prisma.XOR<Prisma.DocumentationPhaseUpdateWithoutStageProgressInput, Prisma.DocumentationPhaseUncheckedUpdateWithoutStageProgressInput>;
1277
+ };
1278
+ export type DocumentationPhaseUpdateWithoutStageProgressInput = {
1279
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1280
+ approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1281
+ requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1282
+ completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1283
+ totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1284
+ minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1285
+ completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1286
+ stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1287
+ requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1288
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1289
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1290
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentationPhasesNestedInput;
1291
+ phase?: Prisma.ApplicationPhaseUpdateOneRequiredWithoutDocumentationPhaseNestedInput;
1292
+ documentationPlan?: Prisma.DocumentationPlanUpdateOneWithoutDocumentationPhasesNestedInput;
1293
+ sourceQuestionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutDependentDocumentationPhasesNestedInput;
1294
+ currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
1295
+ steps?: Prisma.DocumentationStepUpdateManyWithoutDocumentationPhaseNestedInput;
1296
+ };
1297
+ export type DocumentationPhaseUncheckedUpdateWithoutStageProgressInput = {
1298
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1299
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1300
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
1301
+ documentationPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1302
+ sourceQuestionnairePhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1303
+ currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1304
+ approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1305
+ requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1306
+ completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1307
+ totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1308
+ minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1309
+ completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1310
+ stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1311
+ requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1312
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1313
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1314
+ steps?: Prisma.DocumentationStepUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
1315
+ };
1192
1316
  export type DocumentationPhaseCreateManyTenantInput = {
1193
1317
  id?: string;
1194
1318
  phaseId: string;
@@ -1223,6 +1347,7 @@ export type DocumentationPhaseUpdateWithoutTenantInput = {
1223
1347
  sourceQuestionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutDependentDocumentationPhasesNestedInput;
1224
1348
  currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
1225
1349
  steps?: Prisma.DocumentationStepUpdateManyWithoutDocumentationPhaseNestedInput;
1350
+ stageProgress?: Prisma.ApprovalStageProgressUpdateManyWithoutDocumentationPhaseNestedInput;
1226
1351
  };
1227
1352
  export type DocumentationPhaseUncheckedUpdateWithoutTenantInput = {
1228
1353
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1241,6 +1366,7 @@ export type DocumentationPhaseUncheckedUpdateWithoutTenantInput = {
1241
1366
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1242
1367
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1243
1368
  steps?: Prisma.DocumentationStepUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
1369
+ stageProgress?: Prisma.ApprovalStageProgressUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
1244
1370
  };
1245
1371
  export type DocumentationPhaseUncheckedUpdateManyWithoutTenantInput = {
1246
1372
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1293,6 +1419,7 @@ export type DocumentationPhaseUpdateWithoutDocumentationPlanInput = {
1293
1419
  sourceQuestionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutDependentDocumentationPhasesNestedInput;
1294
1420
  currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
1295
1421
  steps?: Prisma.DocumentationStepUpdateManyWithoutDocumentationPhaseNestedInput;
1422
+ stageProgress?: Prisma.ApprovalStageProgressUpdateManyWithoutDocumentationPhaseNestedInput;
1296
1423
  };
1297
1424
  export type DocumentationPhaseUncheckedUpdateWithoutDocumentationPlanInput = {
1298
1425
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1311,6 +1438,7 @@ export type DocumentationPhaseUncheckedUpdateWithoutDocumentationPlanInput = {
1311
1438
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1312
1439
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1313
1440
  steps?: Prisma.DocumentationStepUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
1441
+ stageProgress?: Prisma.ApprovalStageProgressUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
1314
1442
  };
1315
1443
  export type DocumentationPhaseUncheckedUpdateManyWithoutDocumentationPlanInput = {
1316
1444
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1363,6 +1491,7 @@ export type DocumentationPhaseUpdateWithoutSourceQuestionnairePhaseInput = {
1363
1491
  documentationPlan?: Prisma.DocumentationPlanUpdateOneWithoutDocumentationPhasesNestedInput;
1364
1492
  currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
1365
1493
  steps?: Prisma.DocumentationStepUpdateManyWithoutDocumentationPhaseNestedInput;
1494
+ stageProgress?: Prisma.ApprovalStageProgressUpdateManyWithoutDocumentationPhaseNestedInput;
1366
1495
  };
1367
1496
  export type DocumentationPhaseUncheckedUpdateWithoutSourceQuestionnairePhaseInput = {
1368
1497
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1381,6 +1510,7 @@ export type DocumentationPhaseUncheckedUpdateWithoutSourceQuestionnairePhaseInpu
1381
1510
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1382
1511
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1383
1512
  steps?: Prisma.DocumentationStepUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
1513
+ stageProgress?: Prisma.ApprovalStageProgressUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
1384
1514
  };
1385
1515
  export type DocumentationPhaseUncheckedUpdateManyWithoutSourceQuestionnairePhaseInput = {
1386
1516
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1433,6 +1563,7 @@ export type DocumentationPhaseUpdateWithoutCurrentStepInput = {
1433
1563
  documentationPlan?: Prisma.DocumentationPlanUpdateOneWithoutDocumentationPhasesNestedInput;
1434
1564
  sourceQuestionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutDependentDocumentationPhasesNestedInput;
1435
1565
  steps?: Prisma.DocumentationStepUpdateManyWithoutDocumentationPhaseNestedInput;
1566
+ stageProgress?: Prisma.ApprovalStageProgressUpdateManyWithoutDocumentationPhaseNestedInput;
1436
1567
  };
1437
1568
  export type DocumentationPhaseUncheckedUpdateWithoutCurrentStepInput = {
1438
1569
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1451,6 +1582,7 @@ export type DocumentationPhaseUncheckedUpdateWithoutCurrentStepInput = {
1451
1582
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1452
1583
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1453
1584
  steps?: Prisma.DocumentationStepUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
1585
+ stageProgress?: Prisma.ApprovalStageProgressUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
1454
1586
  };
1455
1587
  export type DocumentationPhaseUncheckedUpdateManyWithoutCurrentStepInput = {
1456
1588
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1474,9 +1606,11 @@ export type DocumentationPhaseUncheckedUpdateManyWithoutCurrentStepInput = {
1474
1606
  */
1475
1607
  export type DocumentationPhaseCountOutputType = {
1476
1608
  steps: number;
1609
+ stageProgress: number;
1477
1610
  };
1478
1611
  export type DocumentationPhaseCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1479
1612
  steps?: boolean | DocumentationPhaseCountOutputTypeCountStepsArgs;
1613
+ stageProgress?: boolean | DocumentationPhaseCountOutputTypeCountStageProgressArgs;
1480
1614
  };
1481
1615
  /**
1482
1616
  * DocumentationPhaseCountOutputType without action
@@ -1493,6 +1627,12 @@ export type DocumentationPhaseCountOutputTypeDefaultArgs<ExtArgs extends runtime
1493
1627
  export type DocumentationPhaseCountOutputTypeCountStepsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1494
1628
  where?: Prisma.DocumentationStepWhereInput;
1495
1629
  };
1630
+ /**
1631
+ * DocumentationPhaseCountOutputType without action
1632
+ */
1633
+ export type DocumentationPhaseCountOutputTypeCountStageProgressArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1634
+ where?: Prisma.ApprovalStageProgressWhereInput;
1635
+ };
1496
1636
  export type DocumentationPhaseSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1497
1637
  id?: boolean;
1498
1638
  tenantId?: boolean;
@@ -1516,6 +1656,7 @@ export type DocumentationPhaseSelect<ExtArgs extends runtime.Types.Extensions.In
1516
1656
  sourceQuestionnairePhase?: boolean | Prisma.DocumentationPhase$sourceQuestionnairePhaseArgs<ExtArgs>;
1517
1657
  currentStep?: boolean | Prisma.DocumentationPhase$currentStepArgs<ExtArgs>;
1518
1658
  steps?: boolean | Prisma.DocumentationPhase$stepsArgs<ExtArgs>;
1659
+ stageProgress?: boolean | Prisma.DocumentationPhase$stageProgressArgs<ExtArgs>;
1519
1660
  _count?: boolean | Prisma.DocumentationPhaseCountOutputTypeDefaultArgs<ExtArgs>;
1520
1661
  }, ExtArgs["result"]["documentationPhase"]>;
1521
1662
  export type DocumentationPhaseSelectScalar = {
@@ -1544,6 +1685,7 @@ export type DocumentationPhaseInclude<ExtArgs extends runtime.Types.Extensions.I
1544
1685
  sourceQuestionnairePhase?: boolean | Prisma.DocumentationPhase$sourceQuestionnairePhaseArgs<ExtArgs>;
1545
1686
  currentStep?: boolean | Prisma.DocumentationPhase$currentStepArgs<ExtArgs>;
1546
1687
  steps?: boolean | Prisma.DocumentationPhase$stepsArgs<ExtArgs>;
1688
+ stageProgress?: boolean | Prisma.DocumentationPhase$stageProgressArgs<ExtArgs>;
1547
1689
  _count?: boolean | Prisma.DocumentationPhaseCountOutputTypeDefaultArgs<ExtArgs>;
1548
1690
  };
1549
1691
  export type $DocumentationPhasePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -1555,6 +1697,7 @@ export type $DocumentationPhasePayload<ExtArgs extends runtime.Types.Extensions.
1555
1697
  sourceQuestionnairePhase: Prisma.$QuestionnairePhasePayload<ExtArgs> | null;
1556
1698
  currentStep: Prisma.$DocumentationStepPayload<ExtArgs> | null;
1557
1699
  steps: Prisma.$DocumentationStepPayload<ExtArgs>[];
1700
+ stageProgress: Prisma.$ApprovalStageProgressPayload<ExtArgs>[];
1558
1701
  };
1559
1702
  scalars: runtime.Types.Extensions.GetPayloadResult<{
1560
1703
  id: string;
@@ -1856,6 +1999,7 @@ export interface Prisma__DocumentationPhaseClient<T, Null = never, ExtArgs exten
1856
1999
  sourceQuestionnairePhase<T extends Prisma.DocumentationPhase$sourceQuestionnairePhaseArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentationPhase$sourceQuestionnairePhaseArgs<ExtArgs>>): Prisma.Prisma__QuestionnairePhaseClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePhasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1857
2000
  currentStep<T extends Prisma.DocumentationPhase$currentStepArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentationPhase$currentStepArgs<ExtArgs>>): Prisma.Prisma__DocumentationStepClient<runtime.Types.Result.GetResult<Prisma.$DocumentationStepPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1858
2001
  steps<T extends Prisma.DocumentationPhase$stepsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentationPhase$stepsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DocumentationStepPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2002
+ stageProgress<T extends Prisma.DocumentationPhase$stageProgressArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentationPhase$stageProgressArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApprovalStageProgressPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1859
2003
  /**
1860
2004
  * Attaches callbacks for the resolution and/or rejection of the Promise.
1861
2005
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -2301,6 +2445,29 @@ export type DocumentationPhase$stepsArgs<ExtArgs extends runtime.Types.Extension
2301
2445
  skip?: number;
2302
2446
  distinct?: Prisma.DocumentationStepScalarFieldEnum | Prisma.DocumentationStepScalarFieldEnum[];
2303
2447
  };
2448
+ /**
2449
+ * DocumentationPhase.stageProgress
2450
+ */
2451
+ export type DocumentationPhase$stageProgressArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2452
+ /**
2453
+ * Select specific fields to fetch from the ApprovalStageProgress
2454
+ */
2455
+ select?: Prisma.ApprovalStageProgressSelect<ExtArgs> | null;
2456
+ /**
2457
+ * Omit specific fields from the ApprovalStageProgress
2458
+ */
2459
+ omit?: Prisma.ApprovalStageProgressOmit<ExtArgs> | null;
2460
+ /**
2461
+ * Choose, which related nodes to fetch as well
2462
+ */
2463
+ include?: Prisma.ApprovalStageProgressInclude<ExtArgs> | null;
2464
+ where?: Prisma.ApprovalStageProgressWhereInput;
2465
+ orderBy?: Prisma.ApprovalStageProgressOrderByWithRelationInput | Prisma.ApprovalStageProgressOrderByWithRelationInput[];
2466
+ cursor?: Prisma.ApprovalStageProgressWhereUniqueInput;
2467
+ take?: number;
2468
+ skip?: number;
2469
+ distinct?: Prisma.ApprovalStageProgressScalarFieldEnum | Prisma.ApprovalStageProgressScalarFieldEnum[];
2470
+ };
2304
2471
  /**
2305
2472
  * DocumentationPhase without action
2306
2473
  */