@valentine-efagene/qshelter-common 2.0.120 → 2.0.121

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 (34) hide show
  1. package/dist/generated/client/browser.d.ts +11 -0
  2. package/dist/generated/client/client.d.ts +11 -0
  3. package/dist/generated/client/commonInputTypes.d.ts +170 -0
  4. package/dist/generated/client/enums.d.ts +58 -0
  5. package/dist/generated/client/enums.js +52 -0
  6. package/dist/generated/client/internal/class.d.ts +22 -0
  7. package/dist/generated/client/internal/class.js +2 -2
  8. package/dist/generated/client/internal/prismaNamespace.d.ts +240 -2
  9. package/dist/generated/client/internal/prismaNamespace.js +82 -2
  10. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +85 -1
  11. package/dist/generated/client/internal/prismaNamespaceBrowser.js +82 -2
  12. package/dist/generated/client/models/DocumentationPhase.d.ts +243 -1
  13. package/dist/generated/client/models/DocumentationStep.d.ts +121 -1
  14. package/dist/generated/client/models/Organization.d.ts +1930 -0
  15. package/dist/generated/client/models/Organization.js +1 -0
  16. package/dist/generated/client/models/OrganizationMember.d.ts +1598 -0
  17. package/dist/generated/client/models/OrganizationMember.js +1 -0
  18. package/dist/generated/client/models/QuestionnairePhase.d.ts +165 -0
  19. package/dist/generated/client/models/QuestionnairePlanQuestion.d.ts +25 -22
  20. package/dist/generated/client/models/Tenant.d.ts +555 -0
  21. package/dist/generated/client/models/User.d.ts +391 -0
  22. package/dist/generated/client/models.d.ts +2 -0
  23. package/dist/src/middleware/auth-context.d.ts +30 -1
  24. package/dist/src/middleware/auth-context.js +34 -1
  25. package/dist/src/prisma/tenant.js +2 -0
  26. package/dist/src/utils/condition-operators.d.ts +5 -23
  27. package/dist/src/utils/condition-operators.js +6 -19
  28. package/dist/src/utils/documentation-enums.d.ts +6 -0
  29. package/dist/src/utils/documentation-enums.js +6 -0
  30. package/package.json +1 -1
  31. package/prisma/migrations/20260115123703_add_organizations/migration.sql +69 -0
  32. package/prisma/migrations/20260115125519_add_requires_manual_review_to_step/migration.sql +2 -0
  33. package/prisma/migrations/20260115134106_add_conditional_step_support/migration.sql +11 -0
  34. package/prisma/schema.prisma +191 -1
@@ -32,6 +32,7 @@ export type DocumentationPhaseMinAggregateOutputType = {
32
32
  tenantId: string | null;
33
33
  phaseId: string | null;
34
34
  documentationPlanId: string | null;
35
+ sourceQuestionnairePhaseId: string | null;
35
36
  currentStepId: string | null;
36
37
  approvedDocumentsCount: number | null;
37
38
  requiredDocumentsCount: number | null;
@@ -47,6 +48,7 @@ export type DocumentationPhaseMaxAggregateOutputType = {
47
48
  tenantId: string | null;
48
49
  phaseId: string | null;
49
50
  documentationPlanId: string | null;
51
+ sourceQuestionnairePhaseId: string | null;
50
52
  currentStepId: string | null;
51
53
  approvedDocumentsCount: number | null;
52
54
  requiredDocumentsCount: number | null;
@@ -62,6 +64,7 @@ export type DocumentationPhaseCountAggregateOutputType = {
62
64
  tenantId: number;
63
65
  phaseId: number;
64
66
  documentationPlanId: number;
67
+ sourceQuestionnairePhaseId: number;
65
68
  currentStepId: number;
66
69
  approvedDocumentsCount: number;
67
70
  requiredDocumentsCount: number;
@@ -94,6 +97,7 @@ export type DocumentationPhaseMinAggregateInputType = {
94
97
  tenantId?: true;
95
98
  phaseId?: true;
96
99
  documentationPlanId?: true;
100
+ sourceQuestionnairePhaseId?: true;
97
101
  currentStepId?: true;
98
102
  approvedDocumentsCount?: true;
99
103
  requiredDocumentsCount?: true;
@@ -109,6 +113,7 @@ export type DocumentationPhaseMaxAggregateInputType = {
109
113
  tenantId?: true;
110
114
  phaseId?: true;
111
115
  documentationPlanId?: true;
116
+ sourceQuestionnairePhaseId?: true;
112
117
  currentStepId?: true;
113
118
  approvedDocumentsCount?: true;
114
119
  requiredDocumentsCount?: true;
@@ -124,6 +129,7 @@ export type DocumentationPhaseCountAggregateInputType = {
124
129
  tenantId?: true;
125
130
  phaseId?: true;
126
131
  documentationPlanId?: true;
132
+ sourceQuestionnairePhaseId?: true;
127
133
  currentStepId?: true;
128
134
  approvedDocumentsCount?: true;
129
135
  requiredDocumentsCount?: true;
@@ -218,6 +224,7 @@ export type DocumentationPhaseGroupByOutputType = {
218
224
  tenantId: string;
219
225
  phaseId: string;
220
226
  documentationPlanId: string | null;
227
+ sourceQuestionnairePhaseId: string | null;
221
228
  currentStepId: string | null;
222
229
  approvedDocumentsCount: number;
223
230
  requiredDocumentsCount: number;
@@ -246,6 +253,7 @@ export type DocumentationPhaseWhereInput = {
246
253
  tenantId?: Prisma.StringFilter<"DocumentationPhase"> | string;
247
254
  phaseId?: Prisma.StringFilter<"DocumentationPhase"> | string;
248
255
  documentationPlanId?: Prisma.StringNullableFilter<"DocumentationPhase"> | string | null;
256
+ sourceQuestionnairePhaseId?: Prisma.StringNullableFilter<"DocumentationPhase"> | string | null;
249
257
  currentStepId?: Prisma.StringNullableFilter<"DocumentationPhase"> | string | null;
250
258
  approvedDocumentsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
251
259
  requiredDocumentsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
@@ -260,6 +268,7 @@ export type DocumentationPhaseWhereInput = {
260
268
  tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
261
269
  phase?: Prisma.XOR<Prisma.ApplicationPhaseScalarRelationFilter, Prisma.ApplicationPhaseWhereInput>;
262
270
  documentationPlan?: Prisma.XOR<Prisma.DocumentationPlanNullableScalarRelationFilter, Prisma.DocumentationPlanWhereInput> | null;
271
+ sourceQuestionnairePhase?: Prisma.XOR<Prisma.QuestionnairePhaseNullableScalarRelationFilter, Prisma.QuestionnairePhaseWhereInput> | null;
263
272
  currentStep?: Prisma.XOR<Prisma.DocumentationStepNullableScalarRelationFilter, Prisma.DocumentationStepWhereInput> | null;
264
273
  steps?: Prisma.DocumentationStepListRelationFilter;
265
274
  };
@@ -268,6 +277,7 @@ export type DocumentationPhaseOrderByWithRelationInput = {
268
277
  tenantId?: Prisma.SortOrder;
269
278
  phaseId?: Prisma.SortOrder;
270
279
  documentationPlanId?: Prisma.SortOrderInput | Prisma.SortOrder;
280
+ sourceQuestionnairePhaseId?: Prisma.SortOrderInput | Prisma.SortOrder;
271
281
  currentStepId?: Prisma.SortOrderInput | Prisma.SortOrder;
272
282
  approvedDocumentsCount?: Prisma.SortOrder;
273
283
  requiredDocumentsCount?: Prisma.SortOrder;
@@ -282,6 +292,7 @@ export type DocumentationPhaseOrderByWithRelationInput = {
282
292
  tenant?: Prisma.TenantOrderByWithRelationInput;
283
293
  phase?: Prisma.ApplicationPhaseOrderByWithRelationInput;
284
294
  documentationPlan?: Prisma.DocumentationPlanOrderByWithRelationInput;
295
+ sourceQuestionnairePhase?: Prisma.QuestionnairePhaseOrderByWithRelationInput;
285
296
  currentStep?: Prisma.DocumentationStepOrderByWithRelationInput;
286
297
  steps?: Prisma.DocumentationStepOrderByRelationAggregateInput;
287
298
  _relevance?: Prisma.DocumentationPhaseOrderByRelevanceInput;
@@ -294,6 +305,7 @@ export type DocumentationPhaseWhereUniqueInput = Prisma.AtLeast<{
294
305
  NOT?: Prisma.DocumentationPhaseWhereInput | Prisma.DocumentationPhaseWhereInput[];
295
306
  tenantId?: Prisma.StringFilter<"DocumentationPhase"> | string;
296
307
  documentationPlanId?: Prisma.StringNullableFilter<"DocumentationPhase"> | string | null;
308
+ sourceQuestionnairePhaseId?: Prisma.StringNullableFilter<"DocumentationPhase"> | string | null;
297
309
  currentStepId?: Prisma.StringNullableFilter<"DocumentationPhase"> | string | null;
298
310
  approvedDocumentsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
299
311
  requiredDocumentsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
@@ -308,6 +320,7 @@ export type DocumentationPhaseWhereUniqueInput = Prisma.AtLeast<{
308
320
  tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
309
321
  phase?: Prisma.XOR<Prisma.ApplicationPhaseScalarRelationFilter, Prisma.ApplicationPhaseWhereInput>;
310
322
  documentationPlan?: Prisma.XOR<Prisma.DocumentationPlanNullableScalarRelationFilter, Prisma.DocumentationPlanWhereInput> | null;
323
+ sourceQuestionnairePhase?: Prisma.XOR<Prisma.QuestionnairePhaseNullableScalarRelationFilter, Prisma.QuestionnairePhaseWhereInput> | null;
311
324
  currentStep?: Prisma.XOR<Prisma.DocumentationStepNullableScalarRelationFilter, Prisma.DocumentationStepWhereInput> | null;
312
325
  steps?: Prisma.DocumentationStepListRelationFilter;
313
326
  }, "id" | "phaseId">;
@@ -316,6 +329,7 @@ export type DocumentationPhaseOrderByWithAggregationInput = {
316
329
  tenantId?: Prisma.SortOrder;
317
330
  phaseId?: Prisma.SortOrder;
318
331
  documentationPlanId?: Prisma.SortOrderInput | Prisma.SortOrder;
332
+ sourceQuestionnairePhaseId?: Prisma.SortOrderInput | Prisma.SortOrder;
319
333
  currentStepId?: Prisma.SortOrderInput | Prisma.SortOrder;
320
334
  approvedDocumentsCount?: Prisma.SortOrder;
321
335
  requiredDocumentsCount?: Prisma.SortOrder;
@@ -341,6 +355,7 @@ export type DocumentationPhaseScalarWhereWithAggregatesInput = {
341
355
  tenantId?: Prisma.StringWithAggregatesFilter<"DocumentationPhase"> | string;
342
356
  phaseId?: Prisma.StringWithAggregatesFilter<"DocumentationPhase"> | string;
343
357
  documentationPlanId?: Prisma.StringNullableWithAggregatesFilter<"DocumentationPhase"> | string | null;
358
+ sourceQuestionnairePhaseId?: Prisma.StringNullableWithAggregatesFilter<"DocumentationPhase"> | string | null;
344
359
  currentStepId?: Prisma.StringNullableWithAggregatesFilter<"DocumentationPhase"> | string | null;
345
360
  approvedDocumentsCount?: Prisma.IntWithAggregatesFilter<"DocumentationPhase"> | number;
346
361
  requiredDocumentsCount?: Prisma.IntWithAggregatesFilter<"DocumentationPhase"> | number;
@@ -368,6 +383,7 @@ export type DocumentationPhaseCreateInput = {
368
383
  tenant: Prisma.TenantCreateNestedOneWithoutDocumentationPhasesInput;
369
384
  phase: Prisma.ApplicationPhaseCreateNestedOneWithoutDocumentationPhaseInput;
370
385
  documentationPlan?: Prisma.DocumentationPlanCreateNestedOneWithoutDocumentationPhasesInput;
386
+ sourceQuestionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutDependentDocumentationPhasesInput;
371
387
  currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
372
388
  steps?: Prisma.DocumentationStepCreateNestedManyWithoutDocumentationPhaseInput;
373
389
  };
@@ -376,6 +392,7 @@ export type DocumentationPhaseUncheckedCreateInput = {
376
392
  tenantId: string;
377
393
  phaseId: string;
378
394
  documentationPlanId?: string | null;
395
+ sourceQuestionnairePhaseId?: string | null;
379
396
  currentStepId?: string | null;
380
397
  approvedDocumentsCount?: number;
381
398
  requiredDocumentsCount?: number;
@@ -404,6 +421,7 @@ export type DocumentationPhaseUpdateInput = {
404
421
  tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentationPhasesNestedInput;
405
422
  phase?: Prisma.ApplicationPhaseUpdateOneRequiredWithoutDocumentationPhaseNestedInput;
406
423
  documentationPlan?: Prisma.DocumentationPlanUpdateOneWithoutDocumentationPhasesNestedInput;
424
+ sourceQuestionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutDependentDocumentationPhasesNestedInput;
407
425
  currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
408
426
  steps?: Prisma.DocumentationStepUpdateManyWithoutDocumentationPhaseNestedInput;
409
427
  };
@@ -412,6 +430,7 @@ export type DocumentationPhaseUncheckedUpdateInput = {
412
430
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
413
431
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
414
432
  documentationPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
433
+ sourceQuestionnairePhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
415
434
  currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
416
435
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
417
436
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
@@ -430,6 +449,7 @@ export type DocumentationPhaseCreateManyInput = {
430
449
  tenantId: string;
431
450
  phaseId: string;
432
451
  documentationPlanId?: string | null;
452
+ sourceQuestionnairePhaseId?: string | null;
433
453
  currentStepId?: string | null;
434
454
  approvedDocumentsCount?: number;
435
455
  requiredDocumentsCount?: number;
@@ -460,6 +480,7 @@ export type DocumentationPhaseUncheckedUpdateManyInput = {
460
480
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
461
481
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
462
482
  documentationPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
483
+ sourceQuestionnairePhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
463
484
  currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
464
485
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
465
486
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
@@ -494,6 +515,7 @@ export type DocumentationPhaseCountOrderByAggregateInput = {
494
515
  tenantId?: Prisma.SortOrder;
495
516
  phaseId?: Prisma.SortOrder;
496
517
  documentationPlanId?: Prisma.SortOrder;
518
+ sourceQuestionnairePhaseId?: Prisma.SortOrder;
497
519
  currentStepId?: Prisma.SortOrder;
498
520
  approvedDocumentsCount?: Prisma.SortOrder;
499
521
  requiredDocumentsCount?: Prisma.SortOrder;
@@ -518,6 +540,7 @@ export type DocumentationPhaseMaxOrderByAggregateInput = {
518
540
  tenantId?: Prisma.SortOrder;
519
541
  phaseId?: Prisma.SortOrder;
520
542
  documentationPlanId?: Prisma.SortOrder;
543
+ sourceQuestionnairePhaseId?: Prisma.SortOrder;
521
544
  currentStepId?: Prisma.SortOrder;
522
545
  approvedDocumentsCount?: Prisma.SortOrder;
523
546
  requiredDocumentsCount?: Prisma.SortOrder;
@@ -533,6 +556,7 @@ export type DocumentationPhaseMinOrderByAggregateInput = {
533
556
  tenantId?: Prisma.SortOrder;
534
557
  phaseId?: Prisma.SortOrder;
535
558
  documentationPlanId?: Prisma.SortOrder;
559
+ sourceQuestionnairePhaseId?: Prisma.SortOrder;
536
560
  currentStepId?: Prisma.SortOrder;
537
561
  approvedDocumentsCount?: Prisma.SortOrder;
538
562
  requiredDocumentsCount?: Prisma.SortOrder;
@@ -658,6 +682,44 @@ export type DocumentationPhaseUncheckedUpdateOneWithoutPhaseNestedInput = {
658
682
  connect?: Prisma.DocumentationPhaseWhereUniqueInput;
659
683
  update?: Prisma.XOR<Prisma.XOR<Prisma.DocumentationPhaseUpdateToOneWithWhereWithoutPhaseInput, Prisma.DocumentationPhaseUpdateWithoutPhaseInput>, Prisma.DocumentationPhaseUncheckedUpdateWithoutPhaseInput>;
660
684
  };
685
+ export type DocumentationPhaseCreateNestedManyWithoutSourceQuestionnairePhaseInput = {
686
+ create?: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutSourceQuestionnairePhaseInput, Prisma.DocumentationPhaseUncheckedCreateWithoutSourceQuestionnairePhaseInput> | Prisma.DocumentationPhaseCreateWithoutSourceQuestionnairePhaseInput[] | Prisma.DocumentationPhaseUncheckedCreateWithoutSourceQuestionnairePhaseInput[];
687
+ connectOrCreate?: Prisma.DocumentationPhaseCreateOrConnectWithoutSourceQuestionnairePhaseInput | Prisma.DocumentationPhaseCreateOrConnectWithoutSourceQuestionnairePhaseInput[];
688
+ createMany?: Prisma.DocumentationPhaseCreateManySourceQuestionnairePhaseInputEnvelope;
689
+ connect?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
690
+ };
691
+ export type DocumentationPhaseUncheckedCreateNestedManyWithoutSourceQuestionnairePhaseInput = {
692
+ create?: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutSourceQuestionnairePhaseInput, Prisma.DocumentationPhaseUncheckedCreateWithoutSourceQuestionnairePhaseInput> | Prisma.DocumentationPhaseCreateWithoutSourceQuestionnairePhaseInput[] | Prisma.DocumentationPhaseUncheckedCreateWithoutSourceQuestionnairePhaseInput[];
693
+ connectOrCreate?: Prisma.DocumentationPhaseCreateOrConnectWithoutSourceQuestionnairePhaseInput | Prisma.DocumentationPhaseCreateOrConnectWithoutSourceQuestionnairePhaseInput[];
694
+ createMany?: Prisma.DocumentationPhaseCreateManySourceQuestionnairePhaseInputEnvelope;
695
+ connect?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
696
+ };
697
+ export type DocumentationPhaseUpdateManyWithoutSourceQuestionnairePhaseNestedInput = {
698
+ create?: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutSourceQuestionnairePhaseInput, Prisma.DocumentationPhaseUncheckedCreateWithoutSourceQuestionnairePhaseInput> | Prisma.DocumentationPhaseCreateWithoutSourceQuestionnairePhaseInput[] | Prisma.DocumentationPhaseUncheckedCreateWithoutSourceQuestionnairePhaseInput[];
699
+ connectOrCreate?: Prisma.DocumentationPhaseCreateOrConnectWithoutSourceQuestionnairePhaseInput | Prisma.DocumentationPhaseCreateOrConnectWithoutSourceQuestionnairePhaseInput[];
700
+ upsert?: Prisma.DocumentationPhaseUpsertWithWhereUniqueWithoutSourceQuestionnairePhaseInput | Prisma.DocumentationPhaseUpsertWithWhereUniqueWithoutSourceQuestionnairePhaseInput[];
701
+ createMany?: Prisma.DocumentationPhaseCreateManySourceQuestionnairePhaseInputEnvelope;
702
+ set?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
703
+ disconnect?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
704
+ delete?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
705
+ connect?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
706
+ update?: Prisma.DocumentationPhaseUpdateWithWhereUniqueWithoutSourceQuestionnairePhaseInput | Prisma.DocumentationPhaseUpdateWithWhereUniqueWithoutSourceQuestionnairePhaseInput[];
707
+ updateMany?: Prisma.DocumentationPhaseUpdateManyWithWhereWithoutSourceQuestionnairePhaseInput | Prisma.DocumentationPhaseUpdateManyWithWhereWithoutSourceQuestionnairePhaseInput[];
708
+ deleteMany?: Prisma.DocumentationPhaseScalarWhereInput | Prisma.DocumentationPhaseScalarWhereInput[];
709
+ };
710
+ export type DocumentationPhaseUncheckedUpdateManyWithoutSourceQuestionnairePhaseNestedInput = {
711
+ create?: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutSourceQuestionnairePhaseInput, Prisma.DocumentationPhaseUncheckedCreateWithoutSourceQuestionnairePhaseInput> | Prisma.DocumentationPhaseCreateWithoutSourceQuestionnairePhaseInput[] | Prisma.DocumentationPhaseUncheckedCreateWithoutSourceQuestionnairePhaseInput[];
712
+ connectOrCreate?: Prisma.DocumentationPhaseCreateOrConnectWithoutSourceQuestionnairePhaseInput | Prisma.DocumentationPhaseCreateOrConnectWithoutSourceQuestionnairePhaseInput[];
713
+ upsert?: Prisma.DocumentationPhaseUpsertWithWhereUniqueWithoutSourceQuestionnairePhaseInput | Prisma.DocumentationPhaseUpsertWithWhereUniqueWithoutSourceQuestionnairePhaseInput[];
714
+ createMany?: Prisma.DocumentationPhaseCreateManySourceQuestionnairePhaseInputEnvelope;
715
+ set?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
716
+ disconnect?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
717
+ delete?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
718
+ connect?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
719
+ update?: Prisma.DocumentationPhaseUpdateWithWhereUniqueWithoutSourceQuestionnairePhaseInput | Prisma.DocumentationPhaseUpdateWithWhereUniqueWithoutSourceQuestionnairePhaseInput[];
720
+ updateMany?: Prisma.DocumentationPhaseUpdateManyWithWhereWithoutSourceQuestionnairePhaseInput | Prisma.DocumentationPhaseUpdateManyWithWhereWithoutSourceQuestionnairePhaseInput[];
721
+ deleteMany?: Prisma.DocumentationPhaseScalarWhereInput | Prisma.DocumentationPhaseScalarWhereInput[];
722
+ };
661
723
  export type DocumentationPhaseCreateNestedOneWithoutStepsInput = {
662
724
  create?: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutStepsInput, Prisma.DocumentationPhaseUncheckedCreateWithoutStepsInput>;
663
725
  connectOrCreate?: Prisma.DocumentationPhaseCreateOrConnectWithoutStepsInput;
@@ -722,6 +784,7 @@ export type DocumentationPhaseCreateWithoutTenantInput = {
722
784
  updatedAt?: Date | string;
723
785
  phase: Prisma.ApplicationPhaseCreateNestedOneWithoutDocumentationPhaseInput;
724
786
  documentationPlan?: Prisma.DocumentationPlanCreateNestedOneWithoutDocumentationPhasesInput;
787
+ sourceQuestionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutDependentDocumentationPhasesInput;
725
788
  currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
726
789
  steps?: Prisma.DocumentationStepCreateNestedManyWithoutDocumentationPhaseInput;
727
790
  };
@@ -729,6 +792,7 @@ export type DocumentationPhaseUncheckedCreateWithoutTenantInput = {
729
792
  id?: string;
730
793
  phaseId: string;
731
794
  documentationPlanId?: string | null;
795
+ sourceQuestionnairePhaseId?: string | null;
732
796
  currentStepId?: string | null;
733
797
  approvedDocumentsCount?: number;
734
798
  requiredDocumentsCount?: number;
@@ -771,6 +835,7 @@ export type DocumentationPhaseScalarWhereInput = {
771
835
  tenantId?: Prisma.StringFilter<"DocumentationPhase"> | string;
772
836
  phaseId?: Prisma.StringFilter<"DocumentationPhase"> | string;
773
837
  documentationPlanId?: Prisma.StringNullableFilter<"DocumentationPhase"> | string | null;
838
+ sourceQuestionnairePhaseId?: Prisma.StringNullableFilter<"DocumentationPhase"> | string | null;
774
839
  currentStepId?: Prisma.StringNullableFilter<"DocumentationPhase"> | string | null;
775
840
  approvedDocumentsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
776
841
  requiredDocumentsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
@@ -797,6 +862,7 @@ export type DocumentationPhaseCreateWithoutDocumentationPlanInput = {
797
862
  updatedAt?: Date | string;
798
863
  tenant: Prisma.TenantCreateNestedOneWithoutDocumentationPhasesInput;
799
864
  phase: Prisma.ApplicationPhaseCreateNestedOneWithoutDocumentationPhaseInput;
865
+ sourceQuestionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutDependentDocumentationPhasesInput;
800
866
  currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
801
867
  steps?: Prisma.DocumentationStepCreateNestedManyWithoutDocumentationPhaseInput;
802
868
  };
@@ -804,6 +870,7 @@ export type DocumentationPhaseUncheckedCreateWithoutDocumentationPlanInput = {
804
870
  id?: string;
805
871
  tenantId: string;
806
872
  phaseId: string;
873
+ sourceQuestionnairePhaseId?: string | null;
807
874
  currentStepId?: string | null;
808
875
  approvedDocumentsCount?: number;
809
876
  requiredDocumentsCount?: number;
@@ -852,6 +919,7 @@ export type DocumentationPhaseCreateWithoutPhaseInput = {
852
919
  updatedAt?: Date | string;
853
920
  tenant: Prisma.TenantCreateNestedOneWithoutDocumentationPhasesInput;
854
921
  documentationPlan?: Prisma.DocumentationPlanCreateNestedOneWithoutDocumentationPhasesInput;
922
+ sourceQuestionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutDependentDocumentationPhasesInput;
855
923
  currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
856
924
  steps?: Prisma.DocumentationStepCreateNestedManyWithoutDocumentationPhaseInput;
857
925
  };
@@ -859,6 +927,7 @@ export type DocumentationPhaseUncheckedCreateWithoutPhaseInput = {
859
927
  id?: string;
860
928
  tenantId: string;
861
929
  documentationPlanId?: string | null;
930
+ sourceQuestionnairePhaseId?: string | null;
862
931
  currentStepId?: string | null;
863
932
  approvedDocumentsCount?: number;
864
933
  requiredDocumentsCount?: number;
@@ -899,6 +968,7 @@ export type DocumentationPhaseUpdateWithoutPhaseInput = {
899
968
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
900
969
  tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentationPhasesNestedInput;
901
970
  documentationPlan?: Prisma.DocumentationPlanUpdateOneWithoutDocumentationPhasesNestedInput;
971
+ sourceQuestionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutDependentDocumentationPhasesNestedInput;
902
972
  currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
903
973
  steps?: Prisma.DocumentationStepUpdateManyWithoutDocumentationPhaseNestedInput;
904
974
  };
@@ -906,6 +976,7 @@ export type DocumentationPhaseUncheckedUpdateWithoutPhaseInput = {
906
976
  id?: Prisma.StringFieldUpdateOperationsInput | string;
907
977
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
908
978
  documentationPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
979
+ sourceQuestionnairePhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
909
980
  currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
910
981
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
911
982
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
@@ -919,6 +990,63 @@ export type DocumentationPhaseUncheckedUpdateWithoutPhaseInput = {
919
990
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
920
991
  steps?: Prisma.DocumentationStepUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
921
992
  };
993
+ export type DocumentationPhaseCreateWithoutSourceQuestionnairePhaseInput = {
994
+ id?: string;
995
+ approvedDocumentsCount?: number;
996
+ requiredDocumentsCount?: number;
997
+ completedStepsCount?: number;
998
+ totalStepsCount?: number;
999
+ minimumCompletionPercentage?: number | null;
1000
+ completionCriterion?: $Enums.CompletionCriterion | null;
1001
+ stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1002
+ requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1003
+ createdAt?: Date | string;
1004
+ updatedAt?: Date | string;
1005
+ tenant: Prisma.TenantCreateNestedOneWithoutDocumentationPhasesInput;
1006
+ phase: Prisma.ApplicationPhaseCreateNestedOneWithoutDocumentationPhaseInput;
1007
+ documentationPlan?: Prisma.DocumentationPlanCreateNestedOneWithoutDocumentationPhasesInput;
1008
+ currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
1009
+ steps?: Prisma.DocumentationStepCreateNestedManyWithoutDocumentationPhaseInput;
1010
+ };
1011
+ export type DocumentationPhaseUncheckedCreateWithoutSourceQuestionnairePhaseInput = {
1012
+ id?: string;
1013
+ tenantId: string;
1014
+ phaseId: string;
1015
+ documentationPlanId?: string | null;
1016
+ currentStepId?: string | null;
1017
+ approvedDocumentsCount?: number;
1018
+ requiredDocumentsCount?: number;
1019
+ completedStepsCount?: number;
1020
+ totalStepsCount?: number;
1021
+ minimumCompletionPercentage?: number | null;
1022
+ completionCriterion?: $Enums.CompletionCriterion | null;
1023
+ stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1024
+ requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1025
+ createdAt?: Date | string;
1026
+ updatedAt?: Date | string;
1027
+ steps?: Prisma.DocumentationStepUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
1028
+ };
1029
+ export type DocumentationPhaseCreateOrConnectWithoutSourceQuestionnairePhaseInput = {
1030
+ where: Prisma.DocumentationPhaseWhereUniqueInput;
1031
+ create: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutSourceQuestionnairePhaseInput, Prisma.DocumentationPhaseUncheckedCreateWithoutSourceQuestionnairePhaseInput>;
1032
+ };
1033
+ export type DocumentationPhaseCreateManySourceQuestionnairePhaseInputEnvelope = {
1034
+ data: Prisma.DocumentationPhaseCreateManySourceQuestionnairePhaseInput | Prisma.DocumentationPhaseCreateManySourceQuestionnairePhaseInput[];
1035
+ skipDuplicates?: boolean;
1036
+ };
1037
+ export type DocumentationPhaseUpsertWithWhereUniqueWithoutSourceQuestionnairePhaseInput = {
1038
+ where: Prisma.DocumentationPhaseWhereUniqueInput;
1039
+ update: Prisma.XOR<Prisma.DocumentationPhaseUpdateWithoutSourceQuestionnairePhaseInput, Prisma.DocumentationPhaseUncheckedUpdateWithoutSourceQuestionnairePhaseInput>;
1040
+ create: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutSourceQuestionnairePhaseInput, Prisma.DocumentationPhaseUncheckedCreateWithoutSourceQuestionnairePhaseInput>;
1041
+ };
1042
+ export type DocumentationPhaseUpdateWithWhereUniqueWithoutSourceQuestionnairePhaseInput = {
1043
+ where: Prisma.DocumentationPhaseWhereUniqueInput;
1044
+ data: Prisma.XOR<Prisma.DocumentationPhaseUpdateWithoutSourceQuestionnairePhaseInput, Prisma.DocumentationPhaseUncheckedUpdateWithoutSourceQuestionnairePhaseInput>;
1045
+ };
1046
+ export type DocumentationPhaseUpdateManyWithWhereWithoutSourceQuestionnairePhaseInput = {
1047
+ where: Prisma.DocumentationPhaseScalarWhereInput;
1048
+ data: Prisma.XOR<Prisma.DocumentationPhaseUpdateManyMutationInput, Prisma.DocumentationPhaseUncheckedUpdateManyWithoutSourceQuestionnairePhaseInput>;
1049
+ };
922
1050
  export type DocumentationPhaseCreateWithoutStepsInput = {
923
1051
  id?: string;
924
1052
  approvedDocumentsCount?: number;
@@ -934,6 +1062,7 @@ export type DocumentationPhaseCreateWithoutStepsInput = {
934
1062
  tenant: Prisma.TenantCreateNestedOneWithoutDocumentationPhasesInput;
935
1063
  phase: Prisma.ApplicationPhaseCreateNestedOneWithoutDocumentationPhaseInput;
936
1064
  documentationPlan?: Prisma.DocumentationPlanCreateNestedOneWithoutDocumentationPhasesInput;
1065
+ sourceQuestionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutDependentDocumentationPhasesInput;
937
1066
  currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
938
1067
  };
939
1068
  export type DocumentationPhaseUncheckedCreateWithoutStepsInput = {
@@ -941,6 +1070,7 @@ export type DocumentationPhaseUncheckedCreateWithoutStepsInput = {
941
1070
  tenantId: string;
942
1071
  phaseId: string;
943
1072
  documentationPlanId?: string | null;
1073
+ sourceQuestionnairePhaseId?: string | null;
944
1074
  currentStepId?: string | null;
945
1075
  approvedDocumentsCount?: number;
946
1076
  requiredDocumentsCount?: number;
@@ -972,6 +1102,7 @@ export type DocumentationPhaseCreateWithoutCurrentStepInput = {
972
1102
  tenant: Prisma.TenantCreateNestedOneWithoutDocumentationPhasesInput;
973
1103
  phase: Prisma.ApplicationPhaseCreateNestedOneWithoutDocumentationPhaseInput;
974
1104
  documentationPlan?: Prisma.DocumentationPlanCreateNestedOneWithoutDocumentationPhasesInput;
1105
+ sourceQuestionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutDependentDocumentationPhasesInput;
975
1106
  steps?: Prisma.DocumentationStepCreateNestedManyWithoutDocumentationPhaseInput;
976
1107
  };
977
1108
  export type DocumentationPhaseUncheckedCreateWithoutCurrentStepInput = {
@@ -979,6 +1110,7 @@ export type DocumentationPhaseUncheckedCreateWithoutCurrentStepInput = {
979
1110
  tenantId: string;
980
1111
  phaseId: string;
981
1112
  documentationPlanId?: string | null;
1113
+ sourceQuestionnairePhaseId?: string | null;
982
1114
  approvedDocumentsCount?: number;
983
1115
  requiredDocumentsCount?: number;
984
1116
  completedStepsCount?: number;
@@ -1023,6 +1155,7 @@ export type DocumentationPhaseUpdateWithoutStepsInput = {
1023
1155
  tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentationPhasesNestedInput;
1024
1156
  phase?: Prisma.ApplicationPhaseUpdateOneRequiredWithoutDocumentationPhaseNestedInput;
1025
1157
  documentationPlan?: Prisma.DocumentationPlanUpdateOneWithoutDocumentationPhasesNestedInput;
1158
+ sourceQuestionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutDependentDocumentationPhasesNestedInput;
1026
1159
  currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
1027
1160
  };
1028
1161
  export type DocumentationPhaseUncheckedUpdateWithoutStepsInput = {
@@ -1030,6 +1163,7 @@ export type DocumentationPhaseUncheckedUpdateWithoutStepsInput = {
1030
1163
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1031
1164
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
1032
1165
  documentationPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1166
+ sourceQuestionnairePhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1033
1167
  currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1034
1168
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1035
1169
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
@@ -1059,6 +1193,7 @@ export type DocumentationPhaseCreateManyTenantInput = {
1059
1193
  id?: string;
1060
1194
  phaseId: string;
1061
1195
  documentationPlanId?: string | null;
1196
+ sourceQuestionnairePhaseId?: string | null;
1062
1197
  currentStepId?: string | null;
1063
1198
  approvedDocumentsCount?: number;
1064
1199
  requiredDocumentsCount?: number;
@@ -1085,6 +1220,7 @@ export type DocumentationPhaseUpdateWithoutTenantInput = {
1085
1220
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1086
1221
  phase?: Prisma.ApplicationPhaseUpdateOneRequiredWithoutDocumentationPhaseNestedInput;
1087
1222
  documentationPlan?: Prisma.DocumentationPlanUpdateOneWithoutDocumentationPhasesNestedInput;
1223
+ sourceQuestionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutDependentDocumentationPhasesNestedInput;
1088
1224
  currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
1089
1225
  steps?: Prisma.DocumentationStepUpdateManyWithoutDocumentationPhaseNestedInput;
1090
1226
  };
@@ -1092,6 +1228,7 @@ export type DocumentationPhaseUncheckedUpdateWithoutTenantInput = {
1092
1228
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1093
1229
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
1094
1230
  documentationPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1231
+ sourceQuestionnairePhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1095
1232
  currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1096
1233
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1097
1234
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
@@ -1109,6 +1246,7 @@ export type DocumentationPhaseUncheckedUpdateManyWithoutTenantInput = {
1109
1246
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1110
1247
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
1111
1248
  documentationPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1249
+ sourceQuestionnairePhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1112
1250
  currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1113
1251
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1114
1252
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
@@ -1125,6 +1263,7 @@ export type DocumentationPhaseCreateManyDocumentationPlanInput = {
1125
1263
  id?: string;
1126
1264
  tenantId: string;
1127
1265
  phaseId: string;
1266
+ sourceQuestionnairePhaseId?: string | null;
1128
1267
  currentStepId?: string | null;
1129
1268
  approvedDocumentsCount?: number;
1130
1269
  requiredDocumentsCount?: number;
@@ -1151,6 +1290,7 @@ export type DocumentationPhaseUpdateWithoutDocumentationPlanInput = {
1151
1290
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1152
1291
  tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentationPhasesNestedInput;
1153
1292
  phase?: Prisma.ApplicationPhaseUpdateOneRequiredWithoutDocumentationPhaseNestedInput;
1293
+ sourceQuestionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutDependentDocumentationPhasesNestedInput;
1154
1294
  currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
1155
1295
  steps?: Prisma.DocumentationStepUpdateManyWithoutDocumentationPhaseNestedInput;
1156
1296
  };
@@ -1158,6 +1298,7 @@ export type DocumentationPhaseUncheckedUpdateWithoutDocumentationPlanInput = {
1158
1298
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1159
1299
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1160
1300
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
1301
+ sourceQuestionnairePhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1161
1302
  currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1162
1303
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1163
1304
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
@@ -1175,6 +1316,77 @@ export type DocumentationPhaseUncheckedUpdateManyWithoutDocumentationPlanInput =
1175
1316
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1176
1317
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1177
1318
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
1319
+ sourceQuestionnairePhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1320
+ currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1321
+ approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1322
+ requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1323
+ completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1324
+ totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1325
+ minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1326
+ completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1327
+ stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1328
+ requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1329
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1330
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1331
+ };
1332
+ export type DocumentationPhaseCreateManySourceQuestionnairePhaseInput = {
1333
+ id?: string;
1334
+ tenantId: string;
1335
+ phaseId: string;
1336
+ documentationPlanId?: string | null;
1337
+ currentStepId?: string | null;
1338
+ approvedDocumentsCount?: number;
1339
+ requiredDocumentsCount?: number;
1340
+ completedStepsCount?: number;
1341
+ totalStepsCount?: number;
1342
+ minimumCompletionPercentage?: number | null;
1343
+ completionCriterion?: $Enums.CompletionCriterion | null;
1344
+ stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1345
+ requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1346
+ createdAt?: Date | string;
1347
+ updatedAt?: Date | string;
1348
+ };
1349
+ export type DocumentationPhaseUpdateWithoutSourceQuestionnairePhaseInput = {
1350
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1351
+ approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1352
+ requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1353
+ completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1354
+ totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1355
+ minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1356
+ completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1357
+ stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1358
+ requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1359
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1360
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1361
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentationPhasesNestedInput;
1362
+ phase?: Prisma.ApplicationPhaseUpdateOneRequiredWithoutDocumentationPhaseNestedInput;
1363
+ documentationPlan?: Prisma.DocumentationPlanUpdateOneWithoutDocumentationPhasesNestedInput;
1364
+ currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
1365
+ steps?: Prisma.DocumentationStepUpdateManyWithoutDocumentationPhaseNestedInput;
1366
+ };
1367
+ export type DocumentationPhaseUncheckedUpdateWithoutSourceQuestionnairePhaseInput = {
1368
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1369
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1370
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
1371
+ documentationPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1372
+ currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1373
+ approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1374
+ requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1375
+ completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1376
+ totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1377
+ minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1378
+ completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1379
+ stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1380
+ requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1381
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1382
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1383
+ steps?: Prisma.DocumentationStepUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
1384
+ };
1385
+ export type DocumentationPhaseUncheckedUpdateManyWithoutSourceQuestionnairePhaseInput = {
1386
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1387
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1388
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
1389
+ documentationPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1178
1390
  currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1179
1391
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1180
1392
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
@@ -1192,6 +1404,7 @@ export type DocumentationPhaseCreateManyCurrentStepInput = {
1192
1404
  tenantId: string;
1193
1405
  phaseId: string;
1194
1406
  documentationPlanId?: string | null;
1407
+ sourceQuestionnairePhaseId?: string | null;
1195
1408
  approvedDocumentsCount?: number;
1196
1409
  requiredDocumentsCount?: number;
1197
1410
  completedStepsCount?: number;
@@ -1218,6 +1431,7 @@ export type DocumentationPhaseUpdateWithoutCurrentStepInput = {
1218
1431
  tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentationPhasesNestedInput;
1219
1432
  phase?: Prisma.ApplicationPhaseUpdateOneRequiredWithoutDocumentationPhaseNestedInput;
1220
1433
  documentationPlan?: Prisma.DocumentationPlanUpdateOneWithoutDocumentationPhasesNestedInput;
1434
+ sourceQuestionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutDependentDocumentationPhasesNestedInput;
1221
1435
  steps?: Prisma.DocumentationStepUpdateManyWithoutDocumentationPhaseNestedInput;
1222
1436
  };
1223
1437
  export type DocumentationPhaseUncheckedUpdateWithoutCurrentStepInput = {
@@ -1225,6 +1439,7 @@ export type DocumentationPhaseUncheckedUpdateWithoutCurrentStepInput = {
1225
1439
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1226
1440
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
1227
1441
  documentationPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1442
+ sourceQuestionnairePhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1228
1443
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1229
1444
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1230
1445
  completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
@@ -1242,6 +1457,7 @@ export type DocumentationPhaseUncheckedUpdateManyWithoutCurrentStepInput = {
1242
1457
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1243
1458
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
1244
1459
  documentationPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1460
+ sourceQuestionnairePhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1245
1461
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1246
1462
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1247
1463
  completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
@@ -1282,6 +1498,7 @@ export type DocumentationPhaseSelect<ExtArgs extends runtime.Types.Extensions.In
1282
1498
  tenantId?: boolean;
1283
1499
  phaseId?: boolean;
1284
1500
  documentationPlanId?: boolean;
1501
+ sourceQuestionnairePhaseId?: boolean;
1285
1502
  currentStepId?: boolean;
1286
1503
  approvedDocumentsCount?: boolean;
1287
1504
  requiredDocumentsCount?: boolean;
@@ -1296,6 +1513,7 @@ export type DocumentationPhaseSelect<ExtArgs extends runtime.Types.Extensions.In
1296
1513
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
1297
1514
  phase?: boolean | Prisma.ApplicationPhaseDefaultArgs<ExtArgs>;
1298
1515
  documentationPlan?: boolean | Prisma.DocumentationPhase$documentationPlanArgs<ExtArgs>;
1516
+ sourceQuestionnairePhase?: boolean | Prisma.DocumentationPhase$sourceQuestionnairePhaseArgs<ExtArgs>;
1299
1517
  currentStep?: boolean | Prisma.DocumentationPhase$currentStepArgs<ExtArgs>;
1300
1518
  steps?: boolean | Prisma.DocumentationPhase$stepsArgs<ExtArgs>;
1301
1519
  _count?: boolean | Prisma.DocumentationPhaseCountOutputTypeDefaultArgs<ExtArgs>;
@@ -1305,6 +1523,7 @@ export type DocumentationPhaseSelectScalar = {
1305
1523
  tenantId?: boolean;
1306
1524
  phaseId?: boolean;
1307
1525
  documentationPlanId?: boolean;
1526
+ sourceQuestionnairePhaseId?: boolean;
1308
1527
  currentStepId?: boolean;
1309
1528
  approvedDocumentsCount?: boolean;
1310
1529
  requiredDocumentsCount?: boolean;
@@ -1317,11 +1536,12 @@ export type DocumentationPhaseSelectScalar = {
1317
1536
  createdAt?: boolean;
1318
1537
  updatedAt?: boolean;
1319
1538
  };
1320
- export type DocumentationPhaseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "phaseId" | "documentationPlanId" | "currentStepId" | "approvedDocumentsCount" | "requiredDocumentsCount" | "completedStepsCount" | "totalStepsCount" | "minimumCompletionPercentage" | "completionCriterion" | "stepDefinitionsSnapshot" | "requiredDocumentSnapshot" | "createdAt" | "updatedAt", ExtArgs["result"]["documentationPhase"]>;
1539
+ export type DocumentationPhaseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "phaseId" | "documentationPlanId" | "sourceQuestionnairePhaseId" | "currentStepId" | "approvedDocumentsCount" | "requiredDocumentsCount" | "completedStepsCount" | "totalStepsCount" | "minimumCompletionPercentage" | "completionCriterion" | "stepDefinitionsSnapshot" | "requiredDocumentSnapshot" | "createdAt" | "updatedAt", ExtArgs["result"]["documentationPhase"]>;
1321
1540
  export type DocumentationPhaseInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1322
1541
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
1323
1542
  phase?: boolean | Prisma.ApplicationPhaseDefaultArgs<ExtArgs>;
1324
1543
  documentationPlan?: boolean | Prisma.DocumentationPhase$documentationPlanArgs<ExtArgs>;
1544
+ sourceQuestionnairePhase?: boolean | Prisma.DocumentationPhase$sourceQuestionnairePhaseArgs<ExtArgs>;
1325
1545
  currentStep?: boolean | Prisma.DocumentationPhase$currentStepArgs<ExtArgs>;
1326
1546
  steps?: boolean | Prisma.DocumentationPhase$stepsArgs<ExtArgs>;
1327
1547
  _count?: boolean | Prisma.DocumentationPhaseCountOutputTypeDefaultArgs<ExtArgs>;
@@ -1332,6 +1552,7 @@ export type $DocumentationPhasePayload<ExtArgs extends runtime.Types.Extensions.
1332
1552
  tenant: Prisma.$TenantPayload<ExtArgs>;
1333
1553
  phase: Prisma.$ApplicationPhasePayload<ExtArgs>;
1334
1554
  documentationPlan: Prisma.$DocumentationPlanPayload<ExtArgs> | null;
1555
+ sourceQuestionnairePhase: Prisma.$QuestionnairePhasePayload<ExtArgs> | null;
1335
1556
  currentStep: Prisma.$DocumentationStepPayload<ExtArgs> | null;
1336
1557
  steps: Prisma.$DocumentationStepPayload<ExtArgs>[];
1337
1558
  };
@@ -1340,6 +1561,7 @@ export type $DocumentationPhasePayload<ExtArgs extends runtime.Types.Extensions.
1340
1561
  tenantId: string;
1341
1562
  phaseId: string;
1342
1563
  documentationPlanId: string | null;
1564
+ sourceQuestionnairePhaseId: string | null;
1343
1565
  currentStepId: string | null;
1344
1566
  approvedDocumentsCount: number;
1345
1567
  requiredDocumentsCount: number;
@@ -1631,6 +1853,7 @@ export interface Prisma__DocumentationPhaseClient<T, Null = never, ExtArgs exten
1631
1853
  tenant<T extends Prisma.TenantDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TenantDefaultArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1632
1854
  phase<T extends Prisma.ApplicationPhaseDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApplicationPhaseDefaultArgs<ExtArgs>>): Prisma.Prisma__ApplicationPhaseClient<runtime.Types.Result.GetResult<Prisma.$ApplicationPhasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1633
1855
  documentationPlan<T extends Prisma.DocumentationPhase$documentationPlanArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentationPhase$documentationPlanArgs<ExtArgs>>): Prisma.Prisma__DocumentationPlanClient<runtime.Types.Result.GetResult<Prisma.$DocumentationPlanPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1856
+ 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>;
1634
1857
  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>;
1635
1858
  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>;
1636
1859
  /**
@@ -1662,6 +1885,7 @@ export interface DocumentationPhaseFieldRefs {
1662
1885
  readonly tenantId: Prisma.FieldRef<"DocumentationPhase", 'String'>;
1663
1886
  readonly phaseId: Prisma.FieldRef<"DocumentationPhase", 'String'>;
1664
1887
  readonly documentationPlanId: Prisma.FieldRef<"DocumentationPhase", 'String'>;
1888
+ readonly sourceQuestionnairePhaseId: Prisma.FieldRef<"DocumentationPhase", 'String'>;
1665
1889
  readonly currentStepId: Prisma.FieldRef<"DocumentationPhase", 'String'>;
1666
1890
  readonly approvedDocumentsCount: Prisma.FieldRef<"DocumentationPhase", 'Int'>;
1667
1891
  readonly requiredDocumentsCount: Prisma.FieldRef<"DocumentationPhase", 'Int'>;
@@ -2018,6 +2242,24 @@ export type DocumentationPhase$documentationPlanArgs<ExtArgs extends runtime.Typ
2018
2242
  include?: Prisma.DocumentationPlanInclude<ExtArgs> | null;
2019
2243
  where?: Prisma.DocumentationPlanWhereInput;
2020
2244
  };
2245
+ /**
2246
+ * DocumentationPhase.sourceQuestionnairePhase
2247
+ */
2248
+ export type DocumentationPhase$sourceQuestionnairePhaseArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2249
+ /**
2250
+ * Select specific fields to fetch from the QuestionnairePhase
2251
+ */
2252
+ select?: Prisma.QuestionnairePhaseSelect<ExtArgs> | null;
2253
+ /**
2254
+ * Omit specific fields from the QuestionnairePhase
2255
+ */
2256
+ omit?: Prisma.QuestionnairePhaseOmit<ExtArgs> | null;
2257
+ /**
2258
+ * Choose, which related nodes to fetch as well
2259
+ */
2260
+ include?: Prisma.QuestionnairePhaseInclude<ExtArgs> | null;
2261
+ where?: Prisma.QuestionnairePhaseWhereInput;
2262
+ };
2021
2263
  /**
2022
2264
  * DocumentationPhase.currentStep
2023
2265
  */