@valentine-efagene/qshelter-common 2.0.113 → 2.0.115

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.
@@ -43,6 +43,7 @@ export type PropertyPaymentMethodPhaseMinAggregateOutputType = {
43
43
  requiresPreviousPhaseCompletion: boolean | null;
44
44
  minimumCompletionPercentage: number | null;
45
45
  completionCriterion: $Enums.CompletionCriterion | null;
46
+ lockUnitOnComplete: boolean | null;
46
47
  createdAt: Date | null;
47
48
  updatedAt: Date | null;
48
49
  };
@@ -64,6 +65,7 @@ export type PropertyPaymentMethodPhaseMaxAggregateOutputType = {
64
65
  requiresPreviousPhaseCompletion: boolean | null;
65
66
  minimumCompletionPercentage: number | null;
66
67
  completionCriterion: $Enums.CompletionCriterion | null;
68
+ lockUnitOnComplete: boolean | null;
67
69
  createdAt: Date | null;
68
70
  updatedAt: Date | null;
69
71
  };
@@ -85,6 +87,7 @@ export type PropertyPaymentMethodPhaseCountAggregateOutputType = {
85
87
  requiresPreviousPhaseCompletion: number;
86
88
  minimumCompletionPercentage: number;
87
89
  completionCriterion: number;
90
+ lockUnitOnComplete: number;
88
91
  stepDefinitionsSnapshot: number;
89
92
  requiredDocumentSnapshot: number;
90
93
  createdAt: number;
@@ -121,6 +124,7 @@ export type PropertyPaymentMethodPhaseMinAggregateInputType = {
121
124
  requiresPreviousPhaseCompletion?: true;
122
125
  minimumCompletionPercentage?: true;
123
126
  completionCriterion?: true;
127
+ lockUnitOnComplete?: true;
124
128
  createdAt?: true;
125
129
  updatedAt?: true;
126
130
  };
@@ -142,6 +146,7 @@ export type PropertyPaymentMethodPhaseMaxAggregateInputType = {
142
146
  requiresPreviousPhaseCompletion?: true;
143
147
  minimumCompletionPercentage?: true;
144
148
  completionCriterion?: true;
149
+ lockUnitOnComplete?: true;
145
150
  createdAt?: true;
146
151
  updatedAt?: true;
147
152
  };
@@ -163,6 +168,7 @@ export type PropertyPaymentMethodPhaseCountAggregateInputType = {
163
168
  requiresPreviousPhaseCompletion?: true;
164
169
  minimumCompletionPercentage?: true;
165
170
  completionCriterion?: true;
171
+ lockUnitOnComplete?: true;
166
172
  stepDefinitionsSnapshot?: true;
167
173
  requiredDocumentSnapshot?: true;
168
174
  createdAt?: true;
@@ -263,6 +269,7 @@ export type PropertyPaymentMethodPhaseGroupByOutputType = {
263
269
  requiresPreviousPhaseCompletion: boolean;
264
270
  minimumCompletionPercentage: number | null;
265
271
  completionCriterion: $Enums.CompletionCriterion | null;
272
+ lockUnitOnComplete: boolean;
266
273
  stepDefinitionsSnapshot: runtime.JsonValue | null;
267
274
  requiredDocumentSnapshot: runtime.JsonValue | null;
268
275
  createdAt: Date;
@@ -297,6 +304,7 @@ export type PropertyPaymentMethodPhaseWhereInput = {
297
304
  requiresPreviousPhaseCompletion?: Prisma.BoolFilter<"PropertyPaymentMethodPhase"> | boolean;
298
305
  minimumCompletionPercentage?: Prisma.FloatNullableFilter<"PropertyPaymentMethodPhase"> | number | null;
299
306
  completionCriterion?: Prisma.EnumCompletionCriterionNullableFilter<"PropertyPaymentMethodPhase"> | $Enums.CompletionCriterion | null;
307
+ lockUnitOnComplete?: Prisma.BoolFilter<"PropertyPaymentMethodPhase"> | boolean;
300
308
  stepDefinitionsSnapshot?: Prisma.JsonNullableFilter<"PropertyPaymentMethodPhase">;
301
309
  requiredDocumentSnapshot?: Prisma.JsonNullableFilter<"PropertyPaymentMethodPhase">;
302
310
  createdAt?: Prisma.DateTimeFilter<"PropertyPaymentMethodPhase"> | Date | string;
@@ -310,6 +318,7 @@ export type PropertyPaymentMethodPhaseWhereInput = {
310
318
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentListRelationFilter;
311
319
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldListRelationFilter;
312
320
  eventAttachments?: Prisma.PhaseEventAttachmentListRelationFilter;
321
+ applicationPhases?: Prisma.ApplicationPhaseListRelationFilter;
313
322
  };
314
323
  export type PropertyPaymentMethodPhaseOrderByWithRelationInput = {
315
324
  id?: Prisma.SortOrder;
@@ -329,6 +338,7 @@ export type PropertyPaymentMethodPhaseOrderByWithRelationInput = {
329
338
  requiresPreviousPhaseCompletion?: Prisma.SortOrder;
330
339
  minimumCompletionPercentage?: Prisma.SortOrderInput | Prisma.SortOrder;
331
340
  completionCriterion?: Prisma.SortOrderInput | Prisma.SortOrder;
341
+ lockUnitOnComplete?: Prisma.SortOrder;
332
342
  stepDefinitionsSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
333
343
  requiredDocumentSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
334
344
  createdAt?: Prisma.SortOrder;
@@ -342,6 +352,7 @@ export type PropertyPaymentMethodPhaseOrderByWithRelationInput = {
342
352
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentOrderByRelationAggregateInput;
343
353
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldOrderByRelationAggregateInput;
344
354
  eventAttachments?: Prisma.PhaseEventAttachmentOrderByRelationAggregateInput;
355
+ applicationPhases?: Prisma.ApplicationPhaseOrderByRelationAggregateInput;
345
356
  _relevance?: Prisma.PropertyPaymentMethodPhaseOrderByRelevanceInput;
346
357
  };
347
358
  export type PropertyPaymentMethodPhaseWhereUniqueInput = Prisma.AtLeast<{
@@ -365,6 +376,7 @@ export type PropertyPaymentMethodPhaseWhereUniqueInput = Prisma.AtLeast<{
365
376
  requiresPreviousPhaseCompletion?: Prisma.BoolFilter<"PropertyPaymentMethodPhase"> | boolean;
366
377
  minimumCompletionPercentage?: Prisma.FloatNullableFilter<"PropertyPaymentMethodPhase"> | number | null;
367
378
  completionCriterion?: Prisma.EnumCompletionCriterionNullableFilter<"PropertyPaymentMethodPhase"> | $Enums.CompletionCriterion | null;
379
+ lockUnitOnComplete?: Prisma.BoolFilter<"PropertyPaymentMethodPhase"> | boolean;
368
380
  stepDefinitionsSnapshot?: Prisma.JsonNullableFilter<"PropertyPaymentMethodPhase">;
369
381
  requiredDocumentSnapshot?: Prisma.JsonNullableFilter<"PropertyPaymentMethodPhase">;
370
382
  createdAt?: Prisma.DateTimeFilter<"PropertyPaymentMethodPhase"> | Date | string;
@@ -378,6 +390,7 @@ export type PropertyPaymentMethodPhaseWhereUniqueInput = Prisma.AtLeast<{
378
390
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentListRelationFilter;
379
391
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldListRelationFilter;
380
392
  eventAttachments?: Prisma.PhaseEventAttachmentListRelationFilter;
393
+ applicationPhases?: Prisma.ApplicationPhaseListRelationFilter;
381
394
  }, "id">;
382
395
  export type PropertyPaymentMethodPhaseOrderByWithAggregationInput = {
383
396
  id?: Prisma.SortOrder;
@@ -397,6 +410,7 @@ export type PropertyPaymentMethodPhaseOrderByWithAggregationInput = {
397
410
  requiresPreviousPhaseCompletion?: Prisma.SortOrder;
398
411
  minimumCompletionPercentage?: Prisma.SortOrderInput | Prisma.SortOrder;
399
412
  completionCriterion?: Prisma.SortOrderInput | Prisma.SortOrder;
413
+ lockUnitOnComplete?: Prisma.SortOrder;
400
414
  stepDefinitionsSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
401
415
  requiredDocumentSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
402
416
  createdAt?: Prisma.SortOrder;
@@ -428,6 +442,7 @@ export type PropertyPaymentMethodPhaseScalarWhereWithAggregatesInput = {
428
442
  requiresPreviousPhaseCompletion?: Prisma.BoolWithAggregatesFilter<"PropertyPaymentMethodPhase"> | boolean;
429
443
  minimumCompletionPercentage?: Prisma.FloatNullableWithAggregatesFilter<"PropertyPaymentMethodPhase"> | number | null;
430
444
  completionCriterion?: Prisma.EnumCompletionCriterionNullableWithAggregatesFilter<"PropertyPaymentMethodPhase"> | $Enums.CompletionCriterion | null;
445
+ lockUnitOnComplete?: Prisma.BoolWithAggregatesFilter<"PropertyPaymentMethodPhase"> | boolean;
431
446
  stepDefinitionsSnapshot?: Prisma.JsonNullableWithAggregatesFilter<"PropertyPaymentMethodPhase">;
432
447
  requiredDocumentSnapshot?: Prisma.JsonNullableWithAggregatesFilter<"PropertyPaymentMethodPhase">;
433
448
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"PropertyPaymentMethodPhase"> | Date | string;
@@ -446,6 +461,7 @@ export type PropertyPaymentMethodPhaseCreateInput = {
446
461
  requiresPreviousPhaseCompletion?: boolean;
447
462
  minimumCompletionPercentage?: number | null;
448
463
  completionCriterion?: $Enums.CompletionCriterion | null;
464
+ lockUnitOnComplete?: boolean;
449
465
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
450
466
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
451
467
  createdAt?: Date | string;
@@ -459,6 +475,7 @@ export type PropertyPaymentMethodPhaseCreateInput = {
459
475
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentCreateNestedManyWithoutPhaseInput;
460
476
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldCreateNestedManyWithoutPhaseInput;
461
477
  eventAttachments?: Prisma.PhaseEventAttachmentCreateNestedManyWithoutPhaseInput;
478
+ applicationPhases?: Prisma.ApplicationPhaseCreateNestedManyWithoutPhaseTemplateInput;
462
479
  };
463
480
  export type PropertyPaymentMethodPhaseUncheckedCreateInput = {
464
481
  id?: string;
@@ -478,6 +495,7 @@ export type PropertyPaymentMethodPhaseUncheckedCreateInput = {
478
495
  requiresPreviousPhaseCompletion?: boolean;
479
496
  minimumCompletionPercentage?: number | null;
480
497
  completionCriterion?: $Enums.CompletionCriterion | null;
498
+ lockUnitOnComplete?: boolean;
481
499
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
482
500
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
483
501
  createdAt?: Date | string;
@@ -486,6 +504,7 @@ export type PropertyPaymentMethodPhaseUncheckedCreateInput = {
486
504
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUncheckedCreateNestedManyWithoutPhaseInput;
487
505
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUncheckedCreateNestedManyWithoutPhaseInput;
488
506
  eventAttachments?: Prisma.PhaseEventAttachmentUncheckedCreateNestedManyWithoutPhaseInput;
507
+ applicationPhases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutPhaseTemplateInput;
489
508
  };
490
509
  export type PropertyPaymentMethodPhaseUpdateInput = {
491
510
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -500,6 +519,7 @@ export type PropertyPaymentMethodPhaseUpdateInput = {
500
519
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
501
520
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
502
521
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
522
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
503
523
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
504
524
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
505
525
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -513,6 +533,7 @@ export type PropertyPaymentMethodPhaseUpdateInput = {
513
533
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUpdateManyWithoutPhaseNestedInput;
514
534
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUpdateManyWithoutPhaseNestedInput;
515
535
  eventAttachments?: Prisma.PhaseEventAttachmentUpdateManyWithoutPhaseNestedInput;
536
+ applicationPhases?: Prisma.ApplicationPhaseUpdateManyWithoutPhaseTemplateNestedInput;
516
537
  };
517
538
  export type PropertyPaymentMethodPhaseUncheckedUpdateInput = {
518
539
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -532,6 +553,7 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateInput = {
532
553
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
533
554
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
534
555
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
556
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
535
557
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
536
558
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
537
559
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -540,6 +562,7 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateInput = {
540
562
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUncheckedUpdateManyWithoutPhaseNestedInput;
541
563
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUncheckedUpdateManyWithoutPhaseNestedInput;
542
564
  eventAttachments?: Prisma.PhaseEventAttachmentUncheckedUpdateManyWithoutPhaseNestedInput;
565
+ applicationPhases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutPhaseTemplateNestedInput;
543
566
  };
544
567
  export type PropertyPaymentMethodPhaseCreateManyInput = {
545
568
  id?: string;
@@ -559,6 +582,7 @@ export type PropertyPaymentMethodPhaseCreateManyInput = {
559
582
  requiresPreviousPhaseCompletion?: boolean;
560
583
  minimumCompletionPercentage?: number | null;
561
584
  completionCriterion?: $Enums.CompletionCriterion | null;
585
+ lockUnitOnComplete?: boolean;
562
586
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
563
587
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
564
588
  createdAt?: Date | string;
@@ -577,6 +601,7 @@ export type PropertyPaymentMethodPhaseUpdateManyMutationInput = {
577
601
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
578
602
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
579
603
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
604
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
580
605
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
581
606
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
582
607
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -600,6 +625,7 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateManyInput = {
600
625
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
601
626
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
602
627
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
628
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
603
629
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
604
630
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
605
631
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -636,6 +662,7 @@ export type PropertyPaymentMethodPhaseCountOrderByAggregateInput = {
636
662
  requiresPreviousPhaseCompletion?: Prisma.SortOrder;
637
663
  minimumCompletionPercentage?: Prisma.SortOrder;
638
664
  completionCriterion?: Prisma.SortOrder;
665
+ lockUnitOnComplete?: Prisma.SortOrder;
639
666
  stepDefinitionsSnapshot?: Prisma.SortOrder;
640
667
  requiredDocumentSnapshot?: Prisma.SortOrder;
641
668
  createdAt?: Prisma.SortOrder;
@@ -665,6 +692,7 @@ export type PropertyPaymentMethodPhaseMaxOrderByAggregateInput = {
665
692
  requiresPreviousPhaseCompletion?: Prisma.SortOrder;
666
693
  minimumCompletionPercentage?: Prisma.SortOrder;
667
694
  completionCriterion?: Prisma.SortOrder;
695
+ lockUnitOnComplete?: Prisma.SortOrder;
668
696
  createdAt?: Prisma.SortOrder;
669
697
  updatedAt?: Prisma.SortOrder;
670
698
  };
@@ -686,6 +714,7 @@ export type PropertyPaymentMethodPhaseMinOrderByAggregateInput = {
686
714
  requiresPreviousPhaseCompletion?: Prisma.SortOrder;
687
715
  minimumCompletionPercentage?: Prisma.SortOrder;
688
716
  completionCriterion?: Prisma.SortOrder;
717
+ lockUnitOnComplete?: Prisma.SortOrder;
689
718
  createdAt?: Prisma.SortOrder;
690
719
  updatedAt?: Prisma.SortOrder;
691
720
  };
@@ -699,6 +728,10 @@ export type PropertyPaymentMethodPhaseScalarRelationFilter = {
699
728
  is?: Prisma.PropertyPaymentMethodPhaseWhereInput;
700
729
  isNot?: Prisma.PropertyPaymentMethodPhaseWhereInput;
701
730
  };
731
+ export type PropertyPaymentMethodPhaseNullableScalarRelationFilter = {
732
+ is?: Prisma.PropertyPaymentMethodPhaseWhereInput | null;
733
+ isNot?: Prisma.PropertyPaymentMethodPhaseWhereInput | null;
734
+ };
702
735
  export type PropertyPaymentMethodPhaseCreateNestedManyWithoutTenantInput = {
703
736
  create?: Prisma.XOR<Prisma.PropertyPaymentMethodPhaseCreateWithoutTenantInput, Prisma.PropertyPaymentMethodPhaseUncheckedCreateWithoutTenantInput> | Prisma.PropertyPaymentMethodPhaseCreateWithoutTenantInput[] | Prisma.PropertyPaymentMethodPhaseUncheckedCreateWithoutTenantInput[];
704
737
  connectOrCreate?: Prisma.PropertyPaymentMethodPhaseCreateOrConnectWithoutTenantInput | Prisma.PropertyPaymentMethodPhaseCreateOrConnectWithoutTenantInput[];
@@ -949,6 +982,20 @@ export type PropertyPaymentMethodPhaseUpdateOneRequiredWithoutQuestionnaireField
949
982
  connect?: Prisma.PropertyPaymentMethodPhaseWhereUniqueInput;
950
983
  update?: Prisma.XOR<Prisma.XOR<Prisma.PropertyPaymentMethodPhaseUpdateToOneWithWhereWithoutQuestionnaireFieldsInput, Prisma.PropertyPaymentMethodPhaseUpdateWithoutQuestionnaireFieldsInput>, Prisma.PropertyPaymentMethodPhaseUncheckedUpdateWithoutQuestionnaireFieldsInput>;
951
984
  };
985
+ export type PropertyPaymentMethodPhaseCreateNestedOneWithoutApplicationPhasesInput = {
986
+ create?: Prisma.XOR<Prisma.PropertyPaymentMethodPhaseCreateWithoutApplicationPhasesInput, Prisma.PropertyPaymentMethodPhaseUncheckedCreateWithoutApplicationPhasesInput>;
987
+ connectOrCreate?: Prisma.PropertyPaymentMethodPhaseCreateOrConnectWithoutApplicationPhasesInput;
988
+ connect?: Prisma.PropertyPaymentMethodPhaseWhereUniqueInput;
989
+ };
990
+ export type PropertyPaymentMethodPhaseUpdateOneWithoutApplicationPhasesNestedInput = {
991
+ create?: Prisma.XOR<Prisma.PropertyPaymentMethodPhaseCreateWithoutApplicationPhasesInput, Prisma.PropertyPaymentMethodPhaseUncheckedCreateWithoutApplicationPhasesInput>;
992
+ connectOrCreate?: Prisma.PropertyPaymentMethodPhaseCreateOrConnectWithoutApplicationPhasesInput;
993
+ upsert?: Prisma.PropertyPaymentMethodPhaseUpsertWithoutApplicationPhasesInput;
994
+ disconnect?: Prisma.PropertyPaymentMethodPhaseWhereInput | boolean;
995
+ delete?: Prisma.PropertyPaymentMethodPhaseWhereInput | boolean;
996
+ connect?: Prisma.PropertyPaymentMethodPhaseWhereUniqueInput;
997
+ update?: Prisma.XOR<Prisma.XOR<Prisma.PropertyPaymentMethodPhaseUpdateToOneWithWhereWithoutApplicationPhasesInput, Prisma.PropertyPaymentMethodPhaseUpdateWithoutApplicationPhasesInput>, Prisma.PropertyPaymentMethodPhaseUncheckedUpdateWithoutApplicationPhasesInput>;
998
+ };
952
999
  export type PropertyPaymentMethodPhaseCreateWithoutTenantInput = {
953
1000
  id?: string;
954
1001
  name: string;
@@ -962,6 +1009,7 @@ export type PropertyPaymentMethodPhaseCreateWithoutTenantInput = {
962
1009
  requiresPreviousPhaseCompletion?: boolean;
963
1010
  minimumCompletionPercentage?: number | null;
964
1011
  completionCriterion?: $Enums.CompletionCriterion | null;
1012
+ lockUnitOnComplete?: boolean;
965
1013
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
966
1014
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
967
1015
  createdAt?: Date | string;
@@ -974,6 +1022,7 @@ export type PropertyPaymentMethodPhaseCreateWithoutTenantInput = {
974
1022
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentCreateNestedManyWithoutPhaseInput;
975
1023
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldCreateNestedManyWithoutPhaseInput;
976
1024
  eventAttachments?: Prisma.PhaseEventAttachmentCreateNestedManyWithoutPhaseInput;
1025
+ applicationPhases?: Prisma.ApplicationPhaseCreateNestedManyWithoutPhaseTemplateInput;
977
1026
  };
978
1027
  export type PropertyPaymentMethodPhaseUncheckedCreateWithoutTenantInput = {
979
1028
  id?: string;
@@ -992,6 +1041,7 @@ export type PropertyPaymentMethodPhaseUncheckedCreateWithoutTenantInput = {
992
1041
  requiresPreviousPhaseCompletion?: boolean;
993
1042
  minimumCompletionPercentage?: number | null;
994
1043
  completionCriterion?: $Enums.CompletionCriterion | null;
1044
+ lockUnitOnComplete?: boolean;
995
1045
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
996
1046
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
997
1047
  createdAt?: Date | string;
@@ -1000,6 +1050,7 @@ export type PropertyPaymentMethodPhaseUncheckedCreateWithoutTenantInput = {
1000
1050
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUncheckedCreateNestedManyWithoutPhaseInput;
1001
1051
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUncheckedCreateNestedManyWithoutPhaseInput;
1002
1052
  eventAttachments?: Prisma.PhaseEventAttachmentUncheckedCreateNestedManyWithoutPhaseInput;
1053
+ applicationPhases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutPhaseTemplateInput;
1003
1054
  };
1004
1055
  export type PropertyPaymentMethodPhaseCreateOrConnectWithoutTenantInput = {
1005
1056
  where: Prisma.PropertyPaymentMethodPhaseWhereUniqueInput;
@@ -1043,6 +1094,7 @@ export type PropertyPaymentMethodPhaseScalarWhereInput = {
1043
1094
  requiresPreviousPhaseCompletion?: Prisma.BoolFilter<"PropertyPaymentMethodPhase"> | boolean;
1044
1095
  minimumCompletionPercentage?: Prisma.FloatNullableFilter<"PropertyPaymentMethodPhase"> | number | null;
1045
1096
  completionCriterion?: Prisma.EnumCompletionCriterionNullableFilter<"PropertyPaymentMethodPhase"> | $Enums.CompletionCriterion | null;
1097
+ lockUnitOnComplete?: Prisma.BoolFilter<"PropertyPaymentMethodPhase"> | boolean;
1046
1098
  stepDefinitionsSnapshot?: Prisma.JsonNullableFilter<"PropertyPaymentMethodPhase">;
1047
1099
  requiredDocumentSnapshot?: Prisma.JsonNullableFilter<"PropertyPaymentMethodPhase">;
1048
1100
  createdAt?: Prisma.DateTimeFilter<"PropertyPaymentMethodPhase"> | Date | string;
@@ -1061,6 +1113,7 @@ export type PropertyPaymentMethodPhaseCreateWithoutDocumentationPlanInput = {
1061
1113
  requiresPreviousPhaseCompletion?: boolean;
1062
1114
  minimumCompletionPercentage?: number | null;
1063
1115
  completionCriterion?: $Enums.CompletionCriterion | null;
1116
+ lockUnitOnComplete?: boolean;
1064
1117
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1065
1118
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1066
1119
  createdAt?: Date | string;
@@ -1073,6 +1126,7 @@ export type PropertyPaymentMethodPhaseCreateWithoutDocumentationPlanInput = {
1073
1126
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentCreateNestedManyWithoutPhaseInput;
1074
1127
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldCreateNestedManyWithoutPhaseInput;
1075
1128
  eventAttachments?: Prisma.PhaseEventAttachmentCreateNestedManyWithoutPhaseInput;
1129
+ applicationPhases?: Prisma.ApplicationPhaseCreateNestedManyWithoutPhaseTemplateInput;
1076
1130
  };
1077
1131
  export type PropertyPaymentMethodPhaseUncheckedCreateWithoutDocumentationPlanInput = {
1078
1132
  id?: string;
@@ -1091,6 +1145,7 @@ export type PropertyPaymentMethodPhaseUncheckedCreateWithoutDocumentationPlanInp
1091
1145
  requiresPreviousPhaseCompletion?: boolean;
1092
1146
  minimumCompletionPercentage?: number | null;
1093
1147
  completionCriterion?: $Enums.CompletionCriterion | null;
1148
+ lockUnitOnComplete?: boolean;
1094
1149
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1095
1150
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1096
1151
  createdAt?: Date | string;
@@ -1099,6 +1154,7 @@ export type PropertyPaymentMethodPhaseUncheckedCreateWithoutDocumentationPlanInp
1099
1154
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUncheckedCreateNestedManyWithoutPhaseInput;
1100
1155
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUncheckedCreateNestedManyWithoutPhaseInput;
1101
1156
  eventAttachments?: Prisma.PhaseEventAttachmentUncheckedCreateNestedManyWithoutPhaseInput;
1157
+ applicationPhases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutPhaseTemplateInput;
1102
1158
  };
1103
1159
  export type PropertyPaymentMethodPhaseCreateOrConnectWithoutDocumentationPlanInput = {
1104
1160
  where: Prisma.PropertyPaymentMethodPhaseWhereUniqueInput;
@@ -1134,6 +1190,7 @@ export type PropertyPaymentMethodPhaseCreateWithoutQuestionnairePlanInput = {
1134
1190
  requiresPreviousPhaseCompletion?: boolean;
1135
1191
  minimumCompletionPercentage?: number | null;
1136
1192
  completionCriterion?: $Enums.CompletionCriterion | null;
1193
+ lockUnitOnComplete?: boolean;
1137
1194
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1138
1195
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1139
1196
  createdAt?: Date | string;
@@ -1146,6 +1203,7 @@ export type PropertyPaymentMethodPhaseCreateWithoutQuestionnairePlanInput = {
1146
1203
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentCreateNestedManyWithoutPhaseInput;
1147
1204
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldCreateNestedManyWithoutPhaseInput;
1148
1205
  eventAttachments?: Prisma.PhaseEventAttachmentCreateNestedManyWithoutPhaseInput;
1206
+ applicationPhases?: Prisma.ApplicationPhaseCreateNestedManyWithoutPhaseTemplateInput;
1149
1207
  };
1150
1208
  export type PropertyPaymentMethodPhaseUncheckedCreateWithoutQuestionnairePlanInput = {
1151
1209
  id?: string;
@@ -1164,6 +1222,7 @@ export type PropertyPaymentMethodPhaseUncheckedCreateWithoutQuestionnairePlanInp
1164
1222
  requiresPreviousPhaseCompletion?: boolean;
1165
1223
  minimumCompletionPercentage?: number | null;
1166
1224
  completionCriterion?: $Enums.CompletionCriterion | null;
1225
+ lockUnitOnComplete?: boolean;
1167
1226
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1168
1227
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1169
1228
  createdAt?: Date | string;
@@ -1172,6 +1231,7 @@ export type PropertyPaymentMethodPhaseUncheckedCreateWithoutQuestionnairePlanInp
1172
1231
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUncheckedCreateNestedManyWithoutPhaseInput;
1173
1232
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUncheckedCreateNestedManyWithoutPhaseInput;
1174
1233
  eventAttachments?: Prisma.PhaseEventAttachmentUncheckedCreateNestedManyWithoutPhaseInput;
1234
+ applicationPhases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutPhaseTemplateInput;
1175
1235
  };
1176
1236
  export type PropertyPaymentMethodPhaseCreateOrConnectWithoutQuestionnairePlanInput = {
1177
1237
  where: Prisma.PropertyPaymentMethodPhaseWhereUniqueInput;
@@ -1207,6 +1267,7 @@ export type PropertyPaymentMethodPhaseCreateWithoutPaymentPlanInput = {
1207
1267
  requiresPreviousPhaseCompletion?: boolean;
1208
1268
  minimumCompletionPercentage?: number | null;
1209
1269
  completionCriterion?: $Enums.CompletionCriterion | null;
1270
+ lockUnitOnComplete?: boolean;
1210
1271
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1211
1272
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1212
1273
  createdAt?: Date | string;
@@ -1219,6 +1280,7 @@ export type PropertyPaymentMethodPhaseCreateWithoutPaymentPlanInput = {
1219
1280
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentCreateNestedManyWithoutPhaseInput;
1220
1281
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldCreateNestedManyWithoutPhaseInput;
1221
1282
  eventAttachments?: Prisma.PhaseEventAttachmentCreateNestedManyWithoutPhaseInput;
1283
+ applicationPhases?: Prisma.ApplicationPhaseCreateNestedManyWithoutPhaseTemplateInput;
1222
1284
  };
1223
1285
  export type PropertyPaymentMethodPhaseUncheckedCreateWithoutPaymentPlanInput = {
1224
1286
  id?: string;
@@ -1237,6 +1299,7 @@ export type PropertyPaymentMethodPhaseUncheckedCreateWithoutPaymentPlanInput = {
1237
1299
  requiresPreviousPhaseCompletion?: boolean;
1238
1300
  minimumCompletionPercentage?: number | null;
1239
1301
  completionCriterion?: $Enums.CompletionCriterion | null;
1302
+ lockUnitOnComplete?: boolean;
1240
1303
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1241
1304
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1242
1305
  createdAt?: Date | string;
@@ -1245,6 +1308,7 @@ export type PropertyPaymentMethodPhaseUncheckedCreateWithoutPaymentPlanInput = {
1245
1308
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUncheckedCreateNestedManyWithoutPhaseInput;
1246
1309
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUncheckedCreateNestedManyWithoutPhaseInput;
1247
1310
  eventAttachments?: Prisma.PhaseEventAttachmentUncheckedCreateNestedManyWithoutPhaseInput;
1311
+ applicationPhases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutPhaseTemplateInput;
1248
1312
  };
1249
1313
  export type PropertyPaymentMethodPhaseCreateOrConnectWithoutPaymentPlanInput = {
1250
1314
  where: Prisma.PropertyPaymentMethodPhaseWhereUniqueInput;
@@ -1280,6 +1344,7 @@ export type PropertyPaymentMethodPhaseCreateWithoutPaymentMethodInput = {
1280
1344
  requiresPreviousPhaseCompletion?: boolean;
1281
1345
  minimumCompletionPercentage?: number | null;
1282
1346
  completionCriterion?: $Enums.CompletionCriterion | null;
1347
+ lockUnitOnComplete?: boolean;
1283
1348
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1284
1349
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1285
1350
  createdAt?: Date | string;
@@ -1292,6 +1357,7 @@ export type PropertyPaymentMethodPhaseCreateWithoutPaymentMethodInput = {
1292
1357
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentCreateNestedManyWithoutPhaseInput;
1293
1358
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldCreateNestedManyWithoutPhaseInput;
1294
1359
  eventAttachments?: Prisma.PhaseEventAttachmentCreateNestedManyWithoutPhaseInput;
1360
+ applicationPhases?: Prisma.ApplicationPhaseCreateNestedManyWithoutPhaseTemplateInput;
1295
1361
  };
1296
1362
  export type PropertyPaymentMethodPhaseUncheckedCreateWithoutPaymentMethodInput = {
1297
1363
  id?: string;
@@ -1310,6 +1376,7 @@ export type PropertyPaymentMethodPhaseUncheckedCreateWithoutPaymentMethodInput =
1310
1376
  requiresPreviousPhaseCompletion?: boolean;
1311
1377
  minimumCompletionPercentage?: number | null;
1312
1378
  completionCriterion?: $Enums.CompletionCriterion | null;
1379
+ lockUnitOnComplete?: boolean;
1313
1380
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1314
1381
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1315
1382
  createdAt?: Date | string;
@@ -1318,6 +1385,7 @@ export type PropertyPaymentMethodPhaseUncheckedCreateWithoutPaymentMethodInput =
1318
1385
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUncheckedCreateNestedManyWithoutPhaseInput;
1319
1386
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUncheckedCreateNestedManyWithoutPhaseInput;
1320
1387
  eventAttachments?: Prisma.PhaseEventAttachmentUncheckedCreateNestedManyWithoutPhaseInput;
1388
+ applicationPhases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutPhaseTemplateInput;
1321
1389
  };
1322
1390
  export type PropertyPaymentMethodPhaseCreateOrConnectWithoutPaymentMethodInput = {
1323
1391
  where: Prisma.PropertyPaymentMethodPhaseWhereUniqueInput;
@@ -1353,6 +1421,7 @@ export type PropertyPaymentMethodPhaseCreateWithoutEventAttachmentsInput = {
1353
1421
  requiresPreviousPhaseCompletion?: boolean;
1354
1422
  minimumCompletionPercentage?: number | null;
1355
1423
  completionCriterion?: $Enums.CompletionCriterion | null;
1424
+ lockUnitOnComplete?: boolean;
1356
1425
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1357
1426
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1358
1427
  createdAt?: Date | string;
@@ -1365,6 +1434,7 @@ export type PropertyPaymentMethodPhaseCreateWithoutEventAttachmentsInput = {
1365
1434
  steps?: Prisma.PaymentMethodPhaseStepCreateNestedManyWithoutPhaseInput;
1366
1435
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentCreateNestedManyWithoutPhaseInput;
1367
1436
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldCreateNestedManyWithoutPhaseInput;
1437
+ applicationPhases?: Prisma.ApplicationPhaseCreateNestedManyWithoutPhaseTemplateInput;
1368
1438
  };
1369
1439
  export type PropertyPaymentMethodPhaseUncheckedCreateWithoutEventAttachmentsInput = {
1370
1440
  id?: string;
@@ -1384,6 +1454,7 @@ export type PropertyPaymentMethodPhaseUncheckedCreateWithoutEventAttachmentsInpu
1384
1454
  requiresPreviousPhaseCompletion?: boolean;
1385
1455
  minimumCompletionPercentage?: number | null;
1386
1456
  completionCriterion?: $Enums.CompletionCriterion | null;
1457
+ lockUnitOnComplete?: boolean;
1387
1458
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1388
1459
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1389
1460
  createdAt?: Date | string;
@@ -1391,6 +1462,7 @@ export type PropertyPaymentMethodPhaseUncheckedCreateWithoutEventAttachmentsInpu
1391
1462
  steps?: Prisma.PaymentMethodPhaseStepUncheckedCreateNestedManyWithoutPhaseInput;
1392
1463
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUncheckedCreateNestedManyWithoutPhaseInput;
1393
1464
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUncheckedCreateNestedManyWithoutPhaseInput;
1465
+ applicationPhases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutPhaseTemplateInput;
1394
1466
  };
1395
1467
  export type PropertyPaymentMethodPhaseCreateOrConnectWithoutEventAttachmentsInput = {
1396
1468
  where: Prisma.PropertyPaymentMethodPhaseWhereUniqueInput;
@@ -1418,6 +1490,7 @@ export type PropertyPaymentMethodPhaseUpdateWithoutEventAttachmentsInput = {
1418
1490
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1419
1491
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1420
1492
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1493
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1421
1494
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1422
1495
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1423
1496
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -1430,6 +1503,7 @@ export type PropertyPaymentMethodPhaseUpdateWithoutEventAttachmentsInput = {
1430
1503
  steps?: Prisma.PaymentMethodPhaseStepUpdateManyWithoutPhaseNestedInput;
1431
1504
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUpdateManyWithoutPhaseNestedInput;
1432
1505
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUpdateManyWithoutPhaseNestedInput;
1506
+ applicationPhases?: Prisma.ApplicationPhaseUpdateManyWithoutPhaseTemplateNestedInput;
1433
1507
  };
1434
1508
  export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutEventAttachmentsInput = {
1435
1509
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1449,6 +1523,7 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutEventAttachmentsInpu
1449
1523
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1450
1524
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1451
1525
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1526
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1452
1527
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1453
1528
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1454
1529
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -1456,6 +1531,7 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutEventAttachmentsInpu
1456
1531
  steps?: Prisma.PaymentMethodPhaseStepUncheckedUpdateManyWithoutPhaseNestedInput;
1457
1532
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUncheckedUpdateManyWithoutPhaseNestedInput;
1458
1533
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUncheckedUpdateManyWithoutPhaseNestedInput;
1534
+ applicationPhases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutPhaseTemplateNestedInput;
1459
1535
  };
1460
1536
  export type PropertyPaymentMethodPhaseCreateWithoutStepsInput = {
1461
1537
  id?: string;
@@ -1470,6 +1546,7 @@ export type PropertyPaymentMethodPhaseCreateWithoutStepsInput = {
1470
1546
  requiresPreviousPhaseCompletion?: boolean;
1471
1547
  minimumCompletionPercentage?: number | null;
1472
1548
  completionCriterion?: $Enums.CompletionCriterion | null;
1549
+ lockUnitOnComplete?: boolean;
1473
1550
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1474
1551
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1475
1552
  createdAt?: Date | string;
@@ -1482,6 +1559,7 @@ export type PropertyPaymentMethodPhaseCreateWithoutStepsInput = {
1482
1559
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentCreateNestedManyWithoutPhaseInput;
1483
1560
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldCreateNestedManyWithoutPhaseInput;
1484
1561
  eventAttachments?: Prisma.PhaseEventAttachmentCreateNestedManyWithoutPhaseInput;
1562
+ applicationPhases?: Prisma.ApplicationPhaseCreateNestedManyWithoutPhaseTemplateInput;
1485
1563
  };
1486
1564
  export type PropertyPaymentMethodPhaseUncheckedCreateWithoutStepsInput = {
1487
1565
  id?: string;
@@ -1501,6 +1579,7 @@ export type PropertyPaymentMethodPhaseUncheckedCreateWithoutStepsInput = {
1501
1579
  requiresPreviousPhaseCompletion?: boolean;
1502
1580
  minimumCompletionPercentage?: number | null;
1503
1581
  completionCriterion?: $Enums.CompletionCriterion | null;
1582
+ lockUnitOnComplete?: boolean;
1504
1583
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1505
1584
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1506
1585
  createdAt?: Date | string;
@@ -1508,6 +1587,7 @@ export type PropertyPaymentMethodPhaseUncheckedCreateWithoutStepsInput = {
1508
1587
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUncheckedCreateNestedManyWithoutPhaseInput;
1509
1588
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUncheckedCreateNestedManyWithoutPhaseInput;
1510
1589
  eventAttachments?: Prisma.PhaseEventAttachmentUncheckedCreateNestedManyWithoutPhaseInput;
1590
+ applicationPhases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutPhaseTemplateInput;
1511
1591
  };
1512
1592
  export type PropertyPaymentMethodPhaseCreateOrConnectWithoutStepsInput = {
1513
1593
  where: Prisma.PropertyPaymentMethodPhaseWhereUniqueInput;
@@ -1535,6 +1615,7 @@ export type PropertyPaymentMethodPhaseUpdateWithoutStepsInput = {
1535
1615
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1536
1616
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1537
1617
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1618
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1538
1619
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1539
1620
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1540
1621
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -1547,6 +1628,7 @@ export type PropertyPaymentMethodPhaseUpdateWithoutStepsInput = {
1547
1628
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUpdateManyWithoutPhaseNestedInput;
1548
1629
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUpdateManyWithoutPhaseNestedInput;
1549
1630
  eventAttachments?: Prisma.PhaseEventAttachmentUpdateManyWithoutPhaseNestedInput;
1631
+ applicationPhases?: Prisma.ApplicationPhaseUpdateManyWithoutPhaseTemplateNestedInput;
1550
1632
  };
1551
1633
  export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutStepsInput = {
1552
1634
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1566,6 +1648,7 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutStepsInput = {
1566
1648
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1567
1649
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1568
1650
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1651
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1569
1652
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1570
1653
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1571
1654
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -1573,6 +1656,7 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutStepsInput = {
1573
1656
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUncheckedUpdateManyWithoutPhaseNestedInput;
1574
1657
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUncheckedUpdateManyWithoutPhaseNestedInput;
1575
1658
  eventAttachments?: Prisma.PhaseEventAttachmentUncheckedUpdateManyWithoutPhaseNestedInput;
1659
+ applicationPhases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutPhaseTemplateNestedInput;
1576
1660
  };
1577
1661
  export type PropertyPaymentMethodPhaseCreateWithoutRequiredDocumentsInput = {
1578
1662
  id?: string;
@@ -1587,6 +1671,7 @@ export type PropertyPaymentMethodPhaseCreateWithoutRequiredDocumentsInput = {
1587
1671
  requiresPreviousPhaseCompletion?: boolean;
1588
1672
  minimumCompletionPercentage?: number | null;
1589
1673
  completionCriterion?: $Enums.CompletionCriterion | null;
1674
+ lockUnitOnComplete?: boolean;
1590
1675
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1591
1676
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1592
1677
  createdAt?: Date | string;
@@ -1599,6 +1684,7 @@ export type PropertyPaymentMethodPhaseCreateWithoutRequiredDocumentsInput = {
1599
1684
  steps?: Prisma.PaymentMethodPhaseStepCreateNestedManyWithoutPhaseInput;
1600
1685
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldCreateNestedManyWithoutPhaseInput;
1601
1686
  eventAttachments?: Prisma.PhaseEventAttachmentCreateNestedManyWithoutPhaseInput;
1687
+ applicationPhases?: Prisma.ApplicationPhaseCreateNestedManyWithoutPhaseTemplateInput;
1602
1688
  };
1603
1689
  export type PropertyPaymentMethodPhaseUncheckedCreateWithoutRequiredDocumentsInput = {
1604
1690
  id?: string;
@@ -1618,6 +1704,7 @@ export type PropertyPaymentMethodPhaseUncheckedCreateWithoutRequiredDocumentsInp
1618
1704
  requiresPreviousPhaseCompletion?: boolean;
1619
1705
  minimumCompletionPercentage?: number | null;
1620
1706
  completionCriterion?: $Enums.CompletionCriterion | null;
1707
+ lockUnitOnComplete?: boolean;
1621
1708
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1622
1709
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1623
1710
  createdAt?: Date | string;
@@ -1625,6 +1712,7 @@ export type PropertyPaymentMethodPhaseUncheckedCreateWithoutRequiredDocumentsInp
1625
1712
  steps?: Prisma.PaymentMethodPhaseStepUncheckedCreateNestedManyWithoutPhaseInput;
1626
1713
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUncheckedCreateNestedManyWithoutPhaseInput;
1627
1714
  eventAttachments?: Prisma.PhaseEventAttachmentUncheckedCreateNestedManyWithoutPhaseInput;
1715
+ applicationPhases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutPhaseTemplateInput;
1628
1716
  };
1629
1717
  export type PropertyPaymentMethodPhaseCreateOrConnectWithoutRequiredDocumentsInput = {
1630
1718
  where: Prisma.PropertyPaymentMethodPhaseWhereUniqueInput;
@@ -1652,6 +1740,7 @@ export type PropertyPaymentMethodPhaseUpdateWithoutRequiredDocumentsInput = {
1652
1740
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1653
1741
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1654
1742
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1743
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1655
1744
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1656
1745
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1657
1746
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -1664,6 +1753,7 @@ export type PropertyPaymentMethodPhaseUpdateWithoutRequiredDocumentsInput = {
1664
1753
  steps?: Prisma.PaymentMethodPhaseStepUpdateManyWithoutPhaseNestedInput;
1665
1754
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUpdateManyWithoutPhaseNestedInput;
1666
1755
  eventAttachments?: Prisma.PhaseEventAttachmentUpdateManyWithoutPhaseNestedInput;
1756
+ applicationPhases?: Prisma.ApplicationPhaseUpdateManyWithoutPhaseTemplateNestedInput;
1667
1757
  };
1668
1758
  export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutRequiredDocumentsInput = {
1669
1759
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1683,6 +1773,7 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutRequiredDocumentsInp
1683
1773
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1684
1774
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1685
1775
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1776
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1686
1777
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1687
1778
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1688
1779
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -1690,6 +1781,7 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutRequiredDocumentsInp
1690
1781
  steps?: Prisma.PaymentMethodPhaseStepUncheckedUpdateManyWithoutPhaseNestedInput;
1691
1782
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUncheckedUpdateManyWithoutPhaseNestedInput;
1692
1783
  eventAttachments?: Prisma.PhaseEventAttachmentUncheckedUpdateManyWithoutPhaseNestedInput;
1784
+ applicationPhases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutPhaseTemplateNestedInput;
1693
1785
  };
1694
1786
  export type PropertyPaymentMethodPhaseCreateWithoutQuestionnaireFieldsInput = {
1695
1787
  id?: string;
@@ -1704,6 +1796,7 @@ export type PropertyPaymentMethodPhaseCreateWithoutQuestionnaireFieldsInput = {
1704
1796
  requiresPreviousPhaseCompletion?: boolean;
1705
1797
  minimumCompletionPercentage?: number | null;
1706
1798
  completionCriterion?: $Enums.CompletionCriterion | null;
1799
+ lockUnitOnComplete?: boolean;
1707
1800
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1708
1801
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1709
1802
  createdAt?: Date | string;
@@ -1716,6 +1809,7 @@ export type PropertyPaymentMethodPhaseCreateWithoutQuestionnaireFieldsInput = {
1716
1809
  steps?: Prisma.PaymentMethodPhaseStepCreateNestedManyWithoutPhaseInput;
1717
1810
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentCreateNestedManyWithoutPhaseInput;
1718
1811
  eventAttachments?: Prisma.PhaseEventAttachmentCreateNestedManyWithoutPhaseInput;
1812
+ applicationPhases?: Prisma.ApplicationPhaseCreateNestedManyWithoutPhaseTemplateInput;
1719
1813
  };
1720
1814
  export type PropertyPaymentMethodPhaseUncheckedCreateWithoutQuestionnaireFieldsInput = {
1721
1815
  id?: string;
@@ -1735,6 +1829,7 @@ export type PropertyPaymentMethodPhaseUncheckedCreateWithoutQuestionnaireFieldsI
1735
1829
  requiresPreviousPhaseCompletion?: boolean;
1736
1830
  minimumCompletionPercentage?: number | null;
1737
1831
  completionCriterion?: $Enums.CompletionCriterion | null;
1832
+ lockUnitOnComplete?: boolean;
1738
1833
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1739
1834
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1740
1835
  createdAt?: Date | string;
@@ -1742,6 +1837,7 @@ export type PropertyPaymentMethodPhaseUncheckedCreateWithoutQuestionnaireFieldsI
1742
1837
  steps?: Prisma.PaymentMethodPhaseStepUncheckedCreateNestedManyWithoutPhaseInput;
1743
1838
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUncheckedCreateNestedManyWithoutPhaseInput;
1744
1839
  eventAttachments?: Prisma.PhaseEventAttachmentUncheckedCreateNestedManyWithoutPhaseInput;
1840
+ applicationPhases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutPhaseTemplateInput;
1745
1841
  };
1746
1842
  export type PropertyPaymentMethodPhaseCreateOrConnectWithoutQuestionnaireFieldsInput = {
1747
1843
  where: Prisma.PropertyPaymentMethodPhaseWhereUniqueInput;
@@ -1769,6 +1865,7 @@ export type PropertyPaymentMethodPhaseUpdateWithoutQuestionnaireFieldsInput = {
1769
1865
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1770
1866
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1771
1867
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1868
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1772
1869
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1773
1870
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1774
1871
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -1781,6 +1878,7 @@ export type PropertyPaymentMethodPhaseUpdateWithoutQuestionnaireFieldsInput = {
1781
1878
  steps?: Prisma.PaymentMethodPhaseStepUpdateManyWithoutPhaseNestedInput;
1782
1879
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUpdateManyWithoutPhaseNestedInput;
1783
1880
  eventAttachments?: Prisma.PhaseEventAttachmentUpdateManyWithoutPhaseNestedInput;
1881
+ applicationPhases?: Prisma.ApplicationPhaseUpdateManyWithoutPhaseTemplateNestedInput;
1784
1882
  };
1785
1883
  export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutQuestionnaireFieldsInput = {
1786
1884
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1800,6 +1898,7 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutQuestionnaireFieldsI
1800
1898
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1801
1899
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1802
1900
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1901
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1803
1902
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1804
1903
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1805
1904
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -1807,6 +1906,132 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutQuestionnaireFieldsI
1807
1906
  steps?: Prisma.PaymentMethodPhaseStepUncheckedUpdateManyWithoutPhaseNestedInput;
1808
1907
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUncheckedUpdateManyWithoutPhaseNestedInput;
1809
1908
  eventAttachments?: Prisma.PhaseEventAttachmentUncheckedUpdateManyWithoutPhaseNestedInput;
1909
+ applicationPhases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutPhaseTemplateNestedInput;
1910
+ };
1911
+ export type PropertyPaymentMethodPhaseCreateWithoutApplicationPhasesInput = {
1912
+ id?: string;
1913
+ name: string;
1914
+ description?: string | null;
1915
+ phaseCategory: $Enums.PhaseCategory;
1916
+ phaseType: $Enums.PhaseType;
1917
+ order: number;
1918
+ interestRate?: number | null;
1919
+ percentOfPrice?: number | null;
1920
+ collectFunds?: boolean | null;
1921
+ requiresPreviousPhaseCompletion?: boolean;
1922
+ minimumCompletionPercentage?: number | null;
1923
+ completionCriterion?: $Enums.CompletionCriterion | null;
1924
+ lockUnitOnComplete?: boolean;
1925
+ stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1926
+ requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1927
+ createdAt?: Date | string;
1928
+ updatedAt?: Date | string;
1929
+ tenant: Prisma.TenantCreateNestedOneWithoutPropertyPaymentMethodPhasesInput;
1930
+ paymentMethod: Prisma.PropertyPaymentMethodCreateNestedOneWithoutPhasesInput;
1931
+ paymentPlan?: Prisma.PaymentPlanCreateNestedOneWithoutMethodPhasesInput;
1932
+ documentationPlan?: Prisma.DocumentationPlanCreateNestedOneWithoutMethodPhasesInput;
1933
+ questionnairePlan?: Prisma.QuestionnairePlanCreateNestedOneWithoutMethodPhasesInput;
1934
+ steps?: Prisma.PaymentMethodPhaseStepCreateNestedManyWithoutPhaseInput;
1935
+ requiredDocuments?: Prisma.PaymentMethodPhaseDocumentCreateNestedManyWithoutPhaseInput;
1936
+ questionnaireFields?: Prisma.PaymentMethodPhaseFieldCreateNestedManyWithoutPhaseInput;
1937
+ eventAttachments?: Prisma.PhaseEventAttachmentCreateNestedManyWithoutPhaseInput;
1938
+ };
1939
+ export type PropertyPaymentMethodPhaseUncheckedCreateWithoutApplicationPhasesInput = {
1940
+ id?: string;
1941
+ tenantId: string;
1942
+ paymentMethodId: string;
1943
+ paymentPlanId?: string | null;
1944
+ documentationPlanId?: string | null;
1945
+ questionnairePlanId?: string | null;
1946
+ name: string;
1947
+ description?: string | null;
1948
+ phaseCategory: $Enums.PhaseCategory;
1949
+ phaseType: $Enums.PhaseType;
1950
+ order: number;
1951
+ interestRate?: number | null;
1952
+ percentOfPrice?: number | null;
1953
+ collectFunds?: boolean | null;
1954
+ requiresPreviousPhaseCompletion?: boolean;
1955
+ minimumCompletionPercentage?: number | null;
1956
+ completionCriterion?: $Enums.CompletionCriterion | null;
1957
+ lockUnitOnComplete?: boolean;
1958
+ stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1959
+ requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1960
+ createdAt?: Date | string;
1961
+ updatedAt?: Date | string;
1962
+ steps?: Prisma.PaymentMethodPhaseStepUncheckedCreateNestedManyWithoutPhaseInput;
1963
+ requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUncheckedCreateNestedManyWithoutPhaseInput;
1964
+ questionnaireFields?: Prisma.PaymentMethodPhaseFieldUncheckedCreateNestedManyWithoutPhaseInput;
1965
+ eventAttachments?: Prisma.PhaseEventAttachmentUncheckedCreateNestedManyWithoutPhaseInput;
1966
+ };
1967
+ export type PropertyPaymentMethodPhaseCreateOrConnectWithoutApplicationPhasesInput = {
1968
+ where: Prisma.PropertyPaymentMethodPhaseWhereUniqueInput;
1969
+ create: Prisma.XOR<Prisma.PropertyPaymentMethodPhaseCreateWithoutApplicationPhasesInput, Prisma.PropertyPaymentMethodPhaseUncheckedCreateWithoutApplicationPhasesInput>;
1970
+ };
1971
+ export type PropertyPaymentMethodPhaseUpsertWithoutApplicationPhasesInput = {
1972
+ update: Prisma.XOR<Prisma.PropertyPaymentMethodPhaseUpdateWithoutApplicationPhasesInput, Prisma.PropertyPaymentMethodPhaseUncheckedUpdateWithoutApplicationPhasesInput>;
1973
+ create: Prisma.XOR<Prisma.PropertyPaymentMethodPhaseCreateWithoutApplicationPhasesInput, Prisma.PropertyPaymentMethodPhaseUncheckedCreateWithoutApplicationPhasesInput>;
1974
+ where?: Prisma.PropertyPaymentMethodPhaseWhereInput;
1975
+ };
1976
+ export type PropertyPaymentMethodPhaseUpdateToOneWithWhereWithoutApplicationPhasesInput = {
1977
+ where?: Prisma.PropertyPaymentMethodPhaseWhereInput;
1978
+ data: Prisma.XOR<Prisma.PropertyPaymentMethodPhaseUpdateWithoutApplicationPhasesInput, Prisma.PropertyPaymentMethodPhaseUncheckedUpdateWithoutApplicationPhasesInput>;
1979
+ };
1980
+ export type PropertyPaymentMethodPhaseUpdateWithoutApplicationPhasesInput = {
1981
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1982
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1983
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1984
+ phaseCategory?: Prisma.EnumPhaseCategoryFieldUpdateOperationsInput | $Enums.PhaseCategory;
1985
+ phaseType?: Prisma.EnumPhaseTypeFieldUpdateOperationsInput | $Enums.PhaseType;
1986
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
1987
+ interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1988
+ percentOfPrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1989
+ collectFunds?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
1990
+ requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1991
+ minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1992
+ completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1993
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1994
+ stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1995
+ requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1996
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1997
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1998
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutPropertyPaymentMethodPhasesNestedInput;
1999
+ paymentMethod?: Prisma.PropertyPaymentMethodUpdateOneRequiredWithoutPhasesNestedInput;
2000
+ paymentPlan?: Prisma.PaymentPlanUpdateOneWithoutMethodPhasesNestedInput;
2001
+ documentationPlan?: Prisma.DocumentationPlanUpdateOneWithoutMethodPhasesNestedInput;
2002
+ questionnairePlan?: Prisma.QuestionnairePlanUpdateOneWithoutMethodPhasesNestedInput;
2003
+ steps?: Prisma.PaymentMethodPhaseStepUpdateManyWithoutPhaseNestedInput;
2004
+ requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUpdateManyWithoutPhaseNestedInput;
2005
+ questionnaireFields?: Prisma.PaymentMethodPhaseFieldUpdateManyWithoutPhaseNestedInput;
2006
+ eventAttachments?: Prisma.PhaseEventAttachmentUpdateManyWithoutPhaseNestedInput;
2007
+ };
2008
+ export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutApplicationPhasesInput = {
2009
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2010
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
2011
+ paymentMethodId?: Prisma.StringFieldUpdateOperationsInput | string;
2012
+ paymentPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2013
+ documentationPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2014
+ questionnairePlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2015
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2016
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2017
+ phaseCategory?: Prisma.EnumPhaseCategoryFieldUpdateOperationsInput | $Enums.PhaseCategory;
2018
+ phaseType?: Prisma.EnumPhaseTypeFieldUpdateOperationsInput | $Enums.PhaseType;
2019
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
2020
+ interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
2021
+ percentOfPrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
2022
+ collectFunds?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
2023
+ requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2024
+ minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
2025
+ completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
2026
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2027
+ stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2028
+ requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2029
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2030
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2031
+ steps?: Prisma.PaymentMethodPhaseStepUncheckedUpdateManyWithoutPhaseNestedInput;
2032
+ requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUncheckedUpdateManyWithoutPhaseNestedInput;
2033
+ questionnaireFields?: Prisma.PaymentMethodPhaseFieldUncheckedUpdateManyWithoutPhaseNestedInput;
2034
+ eventAttachments?: Prisma.PhaseEventAttachmentUncheckedUpdateManyWithoutPhaseNestedInput;
1810
2035
  };
1811
2036
  export type PropertyPaymentMethodPhaseCreateManyTenantInput = {
1812
2037
  id?: string;
@@ -1825,6 +2050,7 @@ export type PropertyPaymentMethodPhaseCreateManyTenantInput = {
1825
2050
  requiresPreviousPhaseCompletion?: boolean;
1826
2051
  minimumCompletionPercentage?: number | null;
1827
2052
  completionCriterion?: $Enums.CompletionCriterion | null;
2053
+ lockUnitOnComplete?: boolean;
1828
2054
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1829
2055
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1830
2056
  createdAt?: Date | string;
@@ -1843,6 +2069,7 @@ export type PropertyPaymentMethodPhaseUpdateWithoutTenantInput = {
1843
2069
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1844
2070
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1845
2071
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
2072
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1846
2073
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1847
2074
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1848
2075
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -1855,6 +2082,7 @@ export type PropertyPaymentMethodPhaseUpdateWithoutTenantInput = {
1855
2082
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUpdateManyWithoutPhaseNestedInput;
1856
2083
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUpdateManyWithoutPhaseNestedInput;
1857
2084
  eventAttachments?: Prisma.PhaseEventAttachmentUpdateManyWithoutPhaseNestedInput;
2085
+ applicationPhases?: Prisma.ApplicationPhaseUpdateManyWithoutPhaseTemplateNestedInput;
1858
2086
  };
1859
2087
  export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutTenantInput = {
1860
2088
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1873,6 +2101,7 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutTenantInput = {
1873
2101
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1874
2102
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1875
2103
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
2104
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1876
2105
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1877
2106
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1878
2107
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -1881,6 +2110,7 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutTenantInput = {
1881
2110
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUncheckedUpdateManyWithoutPhaseNestedInput;
1882
2111
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUncheckedUpdateManyWithoutPhaseNestedInput;
1883
2112
  eventAttachments?: Prisma.PhaseEventAttachmentUncheckedUpdateManyWithoutPhaseNestedInput;
2113
+ applicationPhases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutPhaseTemplateNestedInput;
1884
2114
  };
1885
2115
  export type PropertyPaymentMethodPhaseUncheckedUpdateManyWithoutTenantInput = {
1886
2116
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1899,6 +2129,7 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateManyWithoutTenantInput = {
1899
2129
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1900
2130
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1901
2131
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
2132
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1902
2133
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1903
2134
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1904
2135
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -1921,6 +2152,7 @@ export type PropertyPaymentMethodPhaseCreateManyDocumentationPlanInput = {
1921
2152
  requiresPreviousPhaseCompletion?: boolean;
1922
2153
  minimumCompletionPercentage?: number | null;
1923
2154
  completionCriterion?: $Enums.CompletionCriterion | null;
2155
+ lockUnitOnComplete?: boolean;
1924
2156
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1925
2157
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1926
2158
  createdAt?: Date | string;
@@ -1939,6 +2171,7 @@ export type PropertyPaymentMethodPhaseUpdateWithoutDocumentationPlanInput = {
1939
2171
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1940
2172
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1941
2173
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
2174
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1942
2175
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1943
2176
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1944
2177
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -1951,6 +2184,7 @@ export type PropertyPaymentMethodPhaseUpdateWithoutDocumentationPlanInput = {
1951
2184
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUpdateManyWithoutPhaseNestedInput;
1952
2185
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUpdateManyWithoutPhaseNestedInput;
1953
2186
  eventAttachments?: Prisma.PhaseEventAttachmentUpdateManyWithoutPhaseNestedInput;
2187
+ applicationPhases?: Prisma.ApplicationPhaseUpdateManyWithoutPhaseTemplateNestedInput;
1954
2188
  };
1955
2189
  export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutDocumentationPlanInput = {
1956
2190
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1969,6 +2203,7 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutDocumentationPlanInp
1969
2203
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1970
2204
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1971
2205
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
2206
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1972
2207
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1973
2208
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1974
2209
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -1977,6 +2212,7 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutDocumentationPlanInp
1977
2212
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUncheckedUpdateManyWithoutPhaseNestedInput;
1978
2213
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUncheckedUpdateManyWithoutPhaseNestedInput;
1979
2214
  eventAttachments?: Prisma.PhaseEventAttachmentUncheckedUpdateManyWithoutPhaseNestedInput;
2215
+ applicationPhases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutPhaseTemplateNestedInput;
1980
2216
  };
1981
2217
  export type PropertyPaymentMethodPhaseUncheckedUpdateManyWithoutDocumentationPlanInput = {
1982
2218
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1995,6 +2231,7 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateManyWithoutDocumentationPla
1995
2231
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1996
2232
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1997
2233
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
2234
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1998
2235
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1999
2236
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2000
2237
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -2017,6 +2254,7 @@ export type PropertyPaymentMethodPhaseCreateManyQuestionnairePlanInput = {
2017
2254
  requiresPreviousPhaseCompletion?: boolean;
2018
2255
  minimumCompletionPercentage?: number | null;
2019
2256
  completionCriterion?: $Enums.CompletionCriterion | null;
2257
+ lockUnitOnComplete?: boolean;
2020
2258
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2021
2259
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2022
2260
  createdAt?: Date | string;
@@ -2035,6 +2273,7 @@ export type PropertyPaymentMethodPhaseUpdateWithoutQuestionnairePlanInput = {
2035
2273
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2036
2274
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
2037
2275
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
2276
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2038
2277
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2039
2278
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2040
2279
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -2047,6 +2286,7 @@ export type PropertyPaymentMethodPhaseUpdateWithoutQuestionnairePlanInput = {
2047
2286
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUpdateManyWithoutPhaseNestedInput;
2048
2287
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUpdateManyWithoutPhaseNestedInput;
2049
2288
  eventAttachments?: Prisma.PhaseEventAttachmentUpdateManyWithoutPhaseNestedInput;
2289
+ applicationPhases?: Prisma.ApplicationPhaseUpdateManyWithoutPhaseTemplateNestedInput;
2050
2290
  };
2051
2291
  export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutQuestionnairePlanInput = {
2052
2292
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2065,6 +2305,7 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutQuestionnairePlanInp
2065
2305
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2066
2306
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
2067
2307
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
2308
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2068
2309
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2069
2310
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2070
2311
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -2073,6 +2314,7 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutQuestionnairePlanInp
2073
2314
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUncheckedUpdateManyWithoutPhaseNestedInput;
2074
2315
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUncheckedUpdateManyWithoutPhaseNestedInput;
2075
2316
  eventAttachments?: Prisma.PhaseEventAttachmentUncheckedUpdateManyWithoutPhaseNestedInput;
2317
+ applicationPhases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutPhaseTemplateNestedInput;
2076
2318
  };
2077
2319
  export type PropertyPaymentMethodPhaseUncheckedUpdateManyWithoutQuestionnairePlanInput = {
2078
2320
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2091,6 +2333,7 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateManyWithoutQuestionnairePla
2091
2333
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2092
2334
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
2093
2335
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
2336
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2094
2337
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2095
2338
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2096
2339
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -2113,6 +2356,7 @@ export type PropertyPaymentMethodPhaseCreateManyPaymentPlanInput = {
2113
2356
  requiresPreviousPhaseCompletion?: boolean;
2114
2357
  minimumCompletionPercentage?: number | null;
2115
2358
  completionCriterion?: $Enums.CompletionCriterion | null;
2359
+ lockUnitOnComplete?: boolean;
2116
2360
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2117
2361
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2118
2362
  createdAt?: Date | string;
@@ -2131,6 +2375,7 @@ export type PropertyPaymentMethodPhaseUpdateWithoutPaymentPlanInput = {
2131
2375
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2132
2376
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
2133
2377
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
2378
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2134
2379
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2135
2380
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2136
2381
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -2143,6 +2388,7 @@ export type PropertyPaymentMethodPhaseUpdateWithoutPaymentPlanInput = {
2143
2388
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUpdateManyWithoutPhaseNestedInput;
2144
2389
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUpdateManyWithoutPhaseNestedInput;
2145
2390
  eventAttachments?: Prisma.PhaseEventAttachmentUpdateManyWithoutPhaseNestedInput;
2391
+ applicationPhases?: Prisma.ApplicationPhaseUpdateManyWithoutPhaseTemplateNestedInput;
2146
2392
  };
2147
2393
  export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutPaymentPlanInput = {
2148
2394
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2161,6 +2407,7 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutPaymentPlanInput = {
2161
2407
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2162
2408
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
2163
2409
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
2410
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2164
2411
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2165
2412
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2166
2413
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -2169,6 +2416,7 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutPaymentPlanInput = {
2169
2416
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUncheckedUpdateManyWithoutPhaseNestedInput;
2170
2417
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUncheckedUpdateManyWithoutPhaseNestedInput;
2171
2418
  eventAttachments?: Prisma.PhaseEventAttachmentUncheckedUpdateManyWithoutPhaseNestedInput;
2419
+ applicationPhases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutPhaseTemplateNestedInput;
2172
2420
  };
2173
2421
  export type PropertyPaymentMethodPhaseUncheckedUpdateManyWithoutPaymentPlanInput = {
2174
2422
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2187,6 +2435,7 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateManyWithoutPaymentPlanInput
2187
2435
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2188
2436
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
2189
2437
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
2438
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2190
2439
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2191
2440
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2192
2441
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -2209,6 +2458,7 @@ export type PropertyPaymentMethodPhaseCreateManyPaymentMethodInput = {
2209
2458
  requiresPreviousPhaseCompletion?: boolean;
2210
2459
  minimumCompletionPercentage?: number | null;
2211
2460
  completionCriterion?: $Enums.CompletionCriterion | null;
2461
+ lockUnitOnComplete?: boolean;
2212
2462
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2213
2463
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2214
2464
  createdAt?: Date | string;
@@ -2227,6 +2477,7 @@ export type PropertyPaymentMethodPhaseUpdateWithoutPaymentMethodInput = {
2227
2477
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2228
2478
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
2229
2479
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
2480
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2230
2481
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2231
2482
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2232
2483
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -2239,6 +2490,7 @@ export type PropertyPaymentMethodPhaseUpdateWithoutPaymentMethodInput = {
2239
2490
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUpdateManyWithoutPhaseNestedInput;
2240
2491
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUpdateManyWithoutPhaseNestedInput;
2241
2492
  eventAttachments?: Prisma.PhaseEventAttachmentUpdateManyWithoutPhaseNestedInput;
2493
+ applicationPhases?: Prisma.ApplicationPhaseUpdateManyWithoutPhaseTemplateNestedInput;
2242
2494
  };
2243
2495
  export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutPaymentMethodInput = {
2244
2496
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2257,6 +2509,7 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutPaymentMethodInput =
2257
2509
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2258
2510
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
2259
2511
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
2512
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2260
2513
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2261
2514
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2262
2515
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -2265,6 +2518,7 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateWithoutPaymentMethodInput =
2265
2518
  requiredDocuments?: Prisma.PaymentMethodPhaseDocumentUncheckedUpdateManyWithoutPhaseNestedInput;
2266
2519
  questionnaireFields?: Prisma.PaymentMethodPhaseFieldUncheckedUpdateManyWithoutPhaseNestedInput;
2267
2520
  eventAttachments?: Prisma.PhaseEventAttachmentUncheckedUpdateManyWithoutPhaseNestedInput;
2521
+ applicationPhases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutPhaseTemplateNestedInput;
2268
2522
  };
2269
2523
  export type PropertyPaymentMethodPhaseUncheckedUpdateManyWithoutPaymentMethodInput = {
2270
2524
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2283,6 +2537,7 @@ export type PropertyPaymentMethodPhaseUncheckedUpdateManyWithoutPaymentMethodInp
2283
2537
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2284
2538
  minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
2285
2539
  completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
2540
+ lockUnitOnComplete?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2286
2541
  stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2287
2542
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2288
2543
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -2296,12 +2551,14 @@ export type PropertyPaymentMethodPhaseCountOutputType = {
2296
2551
  requiredDocuments: number;
2297
2552
  questionnaireFields: number;
2298
2553
  eventAttachments: number;
2554
+ applicationPhases: number;
2299
2555
  };
2300
2556
  export type PropertyPaymentMethodPhaseCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2301
2557
  steps?: boolean | PropertyPaymentMethodPhaseCountOutputTypeCountStepsArgs;
2302
2558
  requiredDocuments?: boolean | PropertyPaymentMethodPhaseCountOutputTypeCountRequiredDocumentsArgs;
2303
2559
  questionnaireFields?: boolean | PropertyPaymentMethodPhaseCountOutputTypeCountQuestionnaireFieldsArgs;
2304
2560
  eventAttachments?: boolean | PropertyPaymentMethodPhaseCountOutputTypeCountEventAttachmentsArgs;
2561
+ applicationPhases?: boolean | PropertyPaymentMethodPhaseCountOutputTypeCountApplicationPhasesArgs;
2305
2562
  };
2306
2563
  /**
2307
2564
  * PropertyPaymentMethodPhaseCountOutputType without action
@@ -2336,6 +2593,12 @@ export type PropertyPaymentMethodPhaseCountOutputTypeCountQuestionnaireFieldsArg
2336
2593
  export type PropertyPaymentMethodPhaseCountOutputTypeCountEventAttachmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2337
2594
  where?: Prisma.PhaseEventAttachmentWhereInput;
2338
2595
  };
2596
+ /**
2597
+ * PropertyPaymentMethodPhaseCountOutputType without action
2598
+ */
2599
+ export type PropertyPaymentMethodPhaseCountOutputTypeCountApplicationPhasesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2600
+ where?: Prisma.ApplicationPhaseWhereInput;
2601
+ };
2339
2602
  export type PropertyPaymentMethodPhaseSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
2340
2603
  id?: boolean;
2341
2604
  tenantId?: boolean;
@@ -2354,6 +2617,7 @@ export type PropertyPaymentMethodPhaseSelect<ExtArgs extends runtime.Types.Exten
2354
2617
  requiresPreviousPhaseCompletion?: boolean;
2355
2618
  minimumCompletionPercentage?: boolean;
2356
2619
  completionCriterion?: boolean;
2620
+ lockUnitOnComplete?: boolean;
2357
2621
  stepDefinitionsSnapshot?: boolean;
2358
2622
  requiredDocumentSnapshot?: boolean;
2359
2623
  createdAt?: boolean;
@@ -2367,6 +2631,7 @@ export type PropertyPaymentMethodPhaseSelect<ExtArgs extends runtime.Types.Exten
2367
2631
  requiredDocuments?: boolean | Prisma.PropertyPaymentMethodPhase$requiredDocumentsArgs<ExtArgs>;
2368
2632
  questionnaireFields?: boolean | Prisma.PropertyPaymentMethodPhase$questionnaireFieldsArgs<ExtArgs>;
2369
2633
  eventAttachments?: boolean | Prisma.PropertyPaymentMethodPhase$eventAttachmentsArgs<ExtArgs>;
2634
+ applicationPhases?: boolean | Prisma.PropertyPaymentMethodPhase$applicationPhasesArgs<ExtArgs>;
2370
2635
  _count?: boolean | Prisma.PropertyPaymentMethodPhaseCountOutputTypeDefaultArgs<ExtArgs>;
2371
2636
  }, ExtArgs["result"]["propertyPaymentMethodPhase"]>;
2372
2637
  export type PropertyPaymentMethodPhaseSelectScalar = {
@@ -2387,12 +2652,13 @@ export type PropertyPaymentMethodPhaseSelectScalar = {
2387
2652
  requiresPreviousPhaseCompletion?: boolean;
2388
2653
  minimumCompletionPercentage?: boolean;
2389
2654
  completionCriterion?: boolean;
2655
+ lockUnitOnComplete?: boolean;
2390
2656
  stepDefinitionsSnapshot?: boolean;
2391
2657
  requiredDocumentSnapshot?: boolean;
2392
2658
  createdAt?: boolean;
2393
2659
  updatedAt?: boolean;
2394
2660
  };
2395
- export type PropertyPaymentMethodPhaseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "paymentMethodId" | "paymentPlanId" | "documentationPlanId" | "questionnairePlanId" | "name" | "description" | "phaseCategory" | "phaseType" | "order" | "interestRate" | "percentOfPrice" | "collectFunds" | "requiresPreviousPhaseCompletion" | "minimumCompletionPercentage" | "completionCriterion" | "stepDefinitionsSnapshot" | "requiredDocumentSnapshot" | "createdAt" | "updatedAt", ExtArgs["result"]["propertyPaymentMethodPhase"]>;
2661
+ export type PropertyPaymentMethodPhaseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "paymentMethodId" | "paymentPlanId" | "documentationPlanId" | "questionnairePlanId" | "name" | "description" | "phaseCategory" | "phaseType" | "order" | "interestRate" | "percentOfPrice" | "collectFunds" | "requiresPreviousPhaseCompletion" | "minimumCompletionPercentage" | "completionCriterion" | "lockUnitOnComplete" | "stepDefinitionsSnapshot" | "requiredDocumentSnapshot" | "createdAt" | "updatedAt", ExtArgs["result"]["propertyPaymentMethodPhase"]>;
2396
2662
  export type PropertyPaymentMethodPhaseInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2397
2663
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
2398
2664
  paymentMethod?: boolean | Prisma.PropertyPaymentMethodDefaultArgs<ExtArgs>;
@@ -2403,6 +2669,7 @@ export type PropertyPaymentMethodPhaseInclude<ExtArgs extends runtime.Types.Exte
2403
2669
  requiredDocuments?: boolean | Prisma.PropertyPaymentMethodPhase$requiredDocumentsArgs<ExtArgs>;
2404
2670
  questionnaireFields?: boolean | Prisma.PropertyPaymentMethodPhase$questionnaireFieldsArgs<ExtArgs>;
2405
2671
  eventAttachments?: boolean | Prisma.PropertyPaymentMethodPhase$eventAttachmentsArgs<ExtArgs>;
2672
+ applicationPhases?: boolean | Prisma.PropertyPaymentMethodPhase$applicationPhasesArgs<ExtArgs>;
2406
2673
  _count?: boolean | Prisma.PropertyPaymentMethodPhaseCountOutputTypeDefaultArgs<ExtArgs>;
2407
2674
  };
2408
2675
  export type $PropertyPaymentMethodPhasePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -2417,6 +2684,7 @@ export type $PropertyPaymentMethodPhasePayload<ExtArgs extends runtime.Types.Ext
2417
2684
  requiredDocuments: Prisma.$PaymentMethodPhaseDocumentPayload<ExtArgs>[];
2418
2685
  questionnaireFields: Prisma.$PaymentMethodPhaseFieldPayload<ExtArgs>[];
2419
2686
  eventAttachments: Prisma.$PhaseEventAttachmentPayload<ExtArgs>[];
2687
+ applicationPhases: Prisma.$ApplicationPhasePayload<ExtArgs>[];
2420
2688
  };
2421
2689
  scalars: runtime.Types.Extensions.GetPayloadResult<{
2422
2690
  id: string;
@@ -2436,6 +2704,7 @@ export type $PropertyPaymentMethodPhasePayload<ExtArgs extends runtime.Types.Ext
2436
2704
  requiresPreviousPhaseCompletion: boolean;
2437
2705
  minimumCompletionPercentage: number | null;
2438
2706
  completionCriterion: $Enums.CompletionCriterion | null;
2707
+ lockUnitOnComplete: boolean;
2439
2708
  stepDefinitionsSnapshot: runtime.JsonValue | null;
2440
2709
  requiredDocumentSnapshot: runtime.JsonValue | null;
2441
2710
  createdAt: Date;
@@ -2726,6 +2995,7 @@ export interface Prisma__PropertyPaymentMethodPhaseClient<T, Null = never, ExtAr
2726
2995
  requiredDocuments<T extends Prisma.PropertyPaymentMethodPhase$requiredDocumentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PropertyPaymentMethodPhase$requiredDocumentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentMethodPhaseDocumentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2727
2996
  questionnaireFields<T extends Prisma.PropertyPaymentMethodPhase$questionnaireFieldsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PropertyPaymentMethodPhase$questionnaireFieldsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentMethodPhaseFieldPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2728
2997
  eventAttachments<T extends Prisma.PropertyPaymentMethodPhase$eventAttachmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PropertyPaymentMethodPhase$eventAttachmentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PhaseEventAttachmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2998
+ applicationPhases<T extends Prisma.PropertyPaymentMethodPhase$applicationPhasesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PropertyPaymentMethodPhase$applicationPhasesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApplicationPhasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2729
2999
  /**
2730
3000
  * Attaches callbacks for the resolution and/or rejection of the Promise.
2731
3001
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -2768,6 +3038,7 @@ export interface PropertyPaymentMethodPhaseFieldRefs {
2768
3038
  readonly requiresPreviousPhaseCompletion: Prisma.FieldRef<"PropertyPaymentMethodPhase", 'Boolean'>;
2769
3039
  readonly minimumCompletionPercentage: Prisma.FieldRef<"PropertyPaymentMethodPhase", 'Float'>;
2770
3040
  readonly completionCriterion: Prisma.FieldRef<"PropertyPaymentMethodPhase", 'CompletionCriterion'>;
3041
+ readonly lockUnitOnComplete: Prisma.FieldRef<"PropertyPaymentMethodPhase", 'Boolean'>;
2771
3042
  readonly stepDefinitionsSnapshot: Prisma.FieldRef<"PropertyPaymentMethodPhase", 'Json'>;
2772
3043
  readonly requiredDocumentSnapshot: Prisma.FieldRef<"PropertyPaymentMethodPhase", 'Json'>;
2773
3044
  readonly createdAt: Prisma.FieldRef<"PropertyPaymentMethodPhase", 'DateTime'>;
@@ -3245,6 +3516,29 @@ export type PropertyPaymentMethodPhase$eventAttachmentsArgs<ExtArgs extends runt
3245
3516
  skip?: number;
3246
3517
  distinct?: Prisma.PhaseEventAttachmentScalarFieldEnum | Prisma.PhaseEventAttachmentScalarFieldEnum[];
3247
3518
  };
3519
+ /**
3520
+ * PropertyPaymentMethodPhase.applicationPhases
3521
+ */
3522
+ export type PropertyPaymentMethodPhase$applicationPhasesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3523
+ /**
3524
+ * Select specific fields to fetch from the ApplicationPhase
3525
+ */
3526
+ select?: Prisma.ApplicationPhaseSelect<ExtArgs> | null;
3527
+ /**
3528
+ * Omit specific fields from the ApplicationPhase
3529
+ */
3530
+ omit?: Prisma.ApplicationPhaseOmit<ExtArgs> | null;
3531
+ /**
3532
+ * Choose, which related nodes to fetch as well
3533
+ */
3534
+ include?: Prisma.ApplicationPhaseInclude<ExtArgs> | null;
3535
+ where?: Prisma.ApplicationPhaseWhereInput;
3536
+ orderBy?: Prisma.ApplicationPhaseOrderByWithRelationInput | Prisma.ApplicationPhaseOrderByWithRelationInput[];
3537
+ cursor?: Prisma.ApplicationPhaseWhereUniqueInput;
3538
+ take?: number;
3539
+ skip?: number;
3540
+ distinct?: Prisma.ApplicationPhaseScalarFieldEnum | Prisma.ApplicationPhaseScalarFieldEnum[];
3541
+ };
3248
3542
  /**
3249
3543
  * PropertyPaymentMethodPhase without action
3250
3544
  */