@valentine-efagene/qshelter-common 2.0.113 → 2.0.114

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.
@@ -42,6 +42,8 @@ export type ApplicationMinAggregateOutputType = {
42
42
  createdAt: Date | null;
43
43
  updatedAt: Date | null;
44
44
  transferredFromId: string | null;
45
+ supersededById: string | null;
46
+ supersededAt: Date | null;
45
47
  };
46
48
  export type ApplicationMaxAggregateOutputType = {
47
49
  id: string | null;
@@ -66,6 +68,8 @@ export type ApplicationMaxAggregateOutputType = {
66
68
  createdAt: Date | null;
67
69
  updatedAt: Date | null;
68
70
  transferredFromId: string | null;
71
+ supersededById: string | null;
72
+ supersededAt: Date | null;
69
73
  };
70
74
  export type ApplicationCountAggregateOutputType = {
71
75
  id: number;
@@ -90,6 +94,8 @@ export type ApplicationCountAggregateOutputType = {
90
94
  createdAt: number;
91
95
  updatedAt: number;
92
96
  transferredFromId: number;
97
+ supersededById: number;
98
+ supersededAt: number;
93
99
  _all: number;
94
100
  };
95
101
  export type ApplicationAvgAggregateInputType = {
@@ -121,6 +127,8 @@ export type ApplicationMinAggregateInputType = {
121
127
  createdAt?: true;
122
128
  updatedAt?: true;
123
129
  transferredFromId?: true;
130
+ supersededById?: true;
131
+ supersededAt?: true;
124
132
  };
125
133
  export type ApplicationMaxAggregateInputType = {
126
134
  id?: true;
@@ -145,6 +153,8 @@ export type ApplicationMaxAggregateInputType = {
145
153
  createdAt?: true;
146
154
  updatedAt?: true;
147
155
  transferredFromId?: true;
156
+ supersededById?: true;
157
+ supersededAt?: true;
148
158
  };
149
159
  export type ApplicationCountAggregateInputType = {
150
160
  id?: true;
@@ -169,6 +179,8 @@ export type ApplicationCountAggregateInputType = {
169
179
  createdAt?: true;
170
180
  updatedAt?: true;
171
181
  transferredFromId?: true;
182
+ supersededById?: true;
183
+ supersededAt?: true;
172
184
  _all?: true;
173
185
  };
174
186
  export type ApplicationAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -270,6 +282,8 @@ export type ApplicationGroupByOutputType = {
270
282
  createdAt: Date;
271
283
  updatedAt: Date;
272
284
  transferredFromId: string | null;
285
+ supersededById: string | null;
286
+ supersededAt: Date | null;
273
287
  _count: ApplicationCountAggregateOutputType | null;
274
288
  _avg: ApplicationAvgAggregateOutputType | null;
275
289
  _sum: ApplicationSumAggregateOutputType | null;
@@ -305,6 +319,8 @@ export type ApplicationWhereInput = {
305
319
  createdAt?: Prisma.DateTimeFilter<"Application"> | Date | string;
306
320
  updatedAt?: Prisma.DateTimeFilter<"Application"> | Date | string;
307
321
  transferredFromId?: Prisma.StringNullableFilter<"Application"> | string | null;
322
+ supersededById?: Prisma.StringNullableFilter<"Application"> | string | null;
323
+ supersededAt?: Prisma.DateTimeNullableFilter<"Application"> | Date | string | null;
308
324
  tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
309
325
  propertyUnit?: Prisma.XOR<Prisma.PropertyUnitScalarRelationFilter, Prisma.PropertyUnitWhereInput>;
310
326
  buyer?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
@@ -319,6 +335,8 @@ export type ApplicationWhereInput = {
319
335
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestListRelationFilter;
320
336
  transferredFrom?: Prisma.XOR<Prisma.ApplicationNullableScalarRelationFilter, Prisma.ApplicationWhereInput> | null;
321
337
  transferredTo?: Prisma.XOR<Prisma.ApplicationNullableScalarRelationFilter, Prisma.ApplicationWhereInput> | null;
338
+ supersededBy?: Prisma.XOR<Prisma.ApplicationNullableScalarRelationFilter, Prisma.ApplicationWhereInput> | null;
339
+ supersededApplications?: Prisma.ApplicationListRelationFilter;
322
340
  outgoingTransferRequests?: Prisma.PropertyTransferRequestListRelationFilter;
323
341
  incomingTransferRequests?: Prisma.PropertyTransferRequestListRelationFilter;
324
342
  events?: Prisma.ApplicationEventListRelationFilter;
@@ -347,6 +365,8 @@ export type ApplicationOrderByWithRelationInput = {
347
365
  createdAt?: Prisma.SortOrder;
348
366
  updatedAt?: Prisma.SortOrder;
349
367
  transferredFromId?: Prisma.SortOrderInput | Prisma.SortOrder;
368
+ supersededById?: Prisma.SortOrderInput | Prisma.SortOrder;
369
+ supersededAt?: Prisma.SortOrderInput | Prisma.SortOrder;
350
370
  tenant?: Prisma.TenantOrderByWithRelationInput;
351
371
  propertyUnit?: Prisma.PropertyUnitOrderByWithRelationInput;
352
372
  buyer?: Prisma.UserOrderByWithRelationInput;
@@ -361,6 +381,8 @@ export type ApplicationOrderByWithRelationInput = {
361
381
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestOrderByRelationAggregateInput;
362
382
  transferredFrom?: Prisma.ApplicationOrderByWithRelationInput;
363
383
  transferredTo?: Prisma.ApplicationOrderByWithRelationInput;
384
+ supersededBy?: Prisma.ApplicationOrderByWithRelationInput;
385
+ supersededApplications?: Prisma.ApplicationOrderByRelationAggregateInput;
364
386
  outgoingTransferRequests?: Prisma.PropertyTransferRequestOrderByRelationAggregateInput;
365
387
  incomingTransferRequests?: Prisma.PropertyTransferRequestOrderByRelationAggregateInput;
366
388
  events?: Prisma.ApplicationEventOrderByRelationAggregateInput;
@@ -393,6 +415,8 @@ export type ApplicationWhereUniqueInput = Prisma.AtLeast<{
393
415
  terminatedAt?: Prisma.DateTimeNullableFilter<"Application"> | Date | string | null;
394
416
  createdAt?: Prisma.DateTimeFilter<"Application"> | Date | string;
395
417
  updatedAt?: Prisma.DateTimeFilter<"Application"> | Date | string;
418
+ supersededById?: Prisma.StringNullableFilter<"Application"> | string | null;
419
+ supersededAt?: Prisma.DateTimeNullableFilter<"Application"> | Date | string | null;
396
420
  tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
397
421
  propertyUnit?: Prisma.XOR<Prisma.PropertyUnitScalarRelationFilter, Prisma.PropertyUnitWhereInput>;
398
422
  buyer?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
@@ -407,6 +431,8 @@ export type ApplicationWhereUniqueInput = Prisma.AtLeast<{
407
431
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestListRelationFilter;
408
432
  transferredFrom?: Prisma.XOR<Prisma.ApplicationNullableScalarRelationFilter, Prisma.ApplicationWhereInput> | null;
409
433
  transferredTo?: Prisma.XOR<Prisma.ApplicationNullableScalarRelationFilter, Prisma.ApplicationWhereInput> | null;
434
+ supersededBy?: Prisma.XOR<Prisma.ApplicationNullableScalarRelationFilter, Prisma.ApplicationWhereInput> | null;
435
+ supersededApplications?: Prisma.ApplicationListRelationFilter;
410
436
  outgoingTransferRequests?: Prisma.PropertyTransferRequestListRelationFilter;
411
437
  incomingTransferRequests?: Prisma.PropertyTransferRequestListRelationFilter;
412
438
  events?: Prisma.ApplicationEventListRelationFilter;
@@ -435,6 +461,8 @@ export type ApplicationOrderByWithAggregationInput = {
435
461
  createdAt?: Prisma.SortOrder;
436
462
  updatedAt?: Prisma.SortOrder;
437
463
  transferredFromId?: Prisma.SortOrderInput | Prisma.SortOrder;
464
+ supersededById?: Prisma.SortOrderInput | Prisma.SortOrder;
465
+ supersededAt?: Prisma.SortOrderInput | Prisma.SortOrder;
438
466
  _count?: Prisma.ApplicationCountOrderByAggregateInput;
439
467
  _avg?: Prisma.ApplicationAvgOrderByAggregateInput;
440
468
  _max?: Prisma.ApplicationMaxOrderByAggregateInput;
@@ -467,6 +495,8 @@ export type ApplicationScalarWhereWithAggregatesInput = {
467
495
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"Application"> | Date | string;
468
496
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Application"> | Date | string;
469
497
  transferredFromId?: Prisma.StringNullableWithAggregatesFilter<"Application"> | string | null;
498
+ supersededById?: Prisma.StringNullableWithAggregatesFilter<"Application"> | string | null;
499
+ supersededAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Application"> | Date | string | null;
470
500
  };
471
501
  export type ApplicationCreateInput = {
472
502
  id?: string;
@@ -484,6 +514,7 @@ export type ApplicationCreateInput = {
484
514
  terminatedAt?: Date | string | null;
485
515
  createdAt?: Date | string;
486
516
  updatedAt?: Date | string;
517
+ supersededAt?: Date | string | null;
487
518
  tenant: Prisma.TenantCreateNestedOneWithoutApplicationsInput;
488
519
  propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutApplicationsInput;
489
520
  buyer: Prisma.UserCreateNestedOneWithoutApplicationsInput;
@@ -498,6 +529,8 @@ export type ApplicationCreateInput = {
498
529
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutApplicationInput;
499
530
  transferredFrom?: Prisma.ApplicationCreateNestedOneWithoutTransferredToInput;
500
531
  transferredTo?: Prisma.ApplicationCreateNestedOneWithoutTransferredFromInput;
532
+ supersededBy?: Prisma.ApplicationCreateNestedOneWithoutSupersededApplicationsInput;
533
+ supersededApplications?: Prisma.ApplicationCreateNestedManyWithoutSupersededByInput;
501
534
  outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceApplicationInput;
502
535
  incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetApplicationInput;
503
536
  events?: Prisma.ApplicationEventCreateNestedManyWithoutApplicationInput;
@@ -526,6 +559,8 @@ export type ApplicationUncheckedCreateInput = {
526
559
  createdAt?: Date | string;
527
560
  updatedAt?: Date | string;
528
561
  transferredFromId?: string | null;
562
+ supersededById?: string | null;
563
+ supersededAt?: Date | string | null;
529
564
  phases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutApplicationInput;
530
565
  documents?: Prisma.ApplicationDocumentUncheckedCreateNestedManyWithoutApplicationInput;
531
566
  payments?: Prisma.ApplicationPaymentUncheckedCreateNestedManyWithoutApplicationInput;
@@ -533,6 +568,7 @@ export type ApplicationUncheckedCreateInput = {
533
568
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutApplicationInput;
534
569
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutApplicationInput;
535
570
  transferredTo?: Prisma.ApplicationUncheckedCreateNestedOneWithoutTransferredFromInput;
571
+ supersededApplications?: Prisma.ApplicationUncheckedCreateNestedManyWithoutSupersededByInput;
536
572
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceApplicationInput;
537
573
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetApplicationInput;
538
574
  events?: Prisma.ApplicationEventUncheckedCreateNestedManyWithoutApplicationInput;
@@ -554,6 +590,7 @@ export type ApplicationUpdateInput = {
554
590
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
555
591
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
556
592
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
593
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
557
594
  tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationsNestedInput;
558
595
  propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutApplicationsNestedInput;
559
596
  buyer?: Prisma.UserUpdateOneRequiredWithoutApplicationsNestedInput;
@@ -568,6 +605,8 @@ export type ApplicationUpdateInput = {
568
605
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutApplicationNestedInput;
569
606
  transferredFrom?: Prisma.ApplicationUpdateOneWithoutTransferredToNestedInput;
570
607
  transferredTo?: Prisma.ApplicationUpdateOneWithoutTransferredFromNestedInput;
608
+ supersededBy?: Prisma.ApplicationUpdateOneWithoutSupersededApplicationsNestedInput;
609
+ supersededApplications?: Prisma.ApplicationUpdateManyWithoutSupersededByNestedInput;
571
610
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceApplicationNestedInput;
572
611
  incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetApplicationNestedInput;
573
612
  events?: Prisma.ApplicationEventUpdateManyWithoutApplicationNestedInput;
@@ -596,6 +635,8 @@ export type ApplicationUncheckedUpdateInput = {
596
635
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
597
636
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
598
637
  transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
638
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
639
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
599
640
  phases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutApplicationNestedInput;
600
641
  documents?: Prisma.ApplicationDocumentUncheckedUpdateManyWithoutApplicationNestedInput;
601
642
  payments?: Prisma.ApplicationPaymentUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -603,6 +644,7 @@ export type ApplicationUncheckedUpdateInput = {
603
644
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutApplicationNestedInput;
604
645
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutApplicationNestedInput;
605
646
  transferredTo?: Prisma.ApplicationUncheckedUpdateOneWithoutTransferredFromNestedInput;
647
+ supersededApplications?: Prisma.ApplicationUncheckedUpdateManyWithoutSupersededByNestedInput;
606
648
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceApplicationNestedInput;
607
649
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetApplicationNestedInput;
608
650
  events?: Prisma.ApplicationEventUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -631,6 +673,8 @@ export type ApplicationCreateManyInput = {
631
673
  createdAt?: Date | string;
632
674
  updatedAt?: Date | string;
633
675
  transferredFromId?: string | null;
676
+ supersededById?: string | null;
677
+ supersededAt?: Date | string | null;
634
678
  };
635
679
  export type ApplicationUpdateManyMutationInput = {
636
680
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -648,6 +692,7 @@ export type ApplicationUpdateManyMutationInput = {
648
692
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
649
693
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
650
694
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
695
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
651
696
  };
652
697
  export type ApplicationUncheckedUpdateManyInput = {
653
698
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -672,6 +717,8 @@ export type ApplicationUncheckedUpdateManyInput = {
672
717
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
673
718
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
674
719
  transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
720
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
721
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
675
722
  };
676
723
  export type ApplicationListRelationFilter = {
677
724
  every?: Prisma.ApplicationWhereInput;
@@ -713,6 +760,8 @@ export type ApplicationCountOrderByAggregateInput = {
713
760
  createdAt?: Prisma.SortOrder;
714
761
  updatedAt?: Prisma.SortOrder;
715
762
  transferredFromId?: Prisma.SortOrder;
763
+ supersededById?: Prisma.SortOrder;
764
+ supersededAt?: Prisma.SortOrder;
716
765
  };
717
766
  export type ApplicationAvgOrderByAggregateInput = {
718
767
  totalAmount?: Prisma.SortOrder;
@@ -740,6 +789,8 @@ export type ApplicationMaxOrderByAggregateInput = {
740
789
  createdAt?: Prisma.SortOrder;
741
790
  updatedAt?: Prisma.SortOrder;
742
791
  transferredFromId?: Prisma.SortOrder;
792
+ supersededById?: Prisma.SortOrder;
793
+ supersededAt?: Prisma.SortOrder;
743
794
  };
744
795
  export type ApplicationMinOrderByAggregateInput = {
745
796
  id?: Prisma.SortOrder;
@@ -764,6 +815,8 @@ export type ApplicationMinOrderByAggregateInput = {
764
815
  createdAt?: Prisma.SortOrder;
765
816
  updatedAt?: Prisma.SortOrder;
766
817
  transferredFromId?: Prisma.SortOrder;
818
+ supersededById?: Prisma.SortOrder;
819
+ supersededAt?: Prisma.SortOrder;
767
820
  };
768
821
  export type ApplicationSumOrderByAggregateInput = {
769
822
  totalAmount?: Prisma.SortOrder;
@@ -972,11 +1025,28 @@ export type ApplicationCreateNestedOneWithoutTransferredFromInput = {
972
1025
  connectOrCreate?: Prisma.ApplicationCreateOrConnectWithoutTransferredFromInput;
973
1026
  connect?: Prisma.ApplicationWhereUniqueInput;
974
1027
  };
1028
+ export type ApplicationCreateNestedOneWithoutSupersededApplicationsInput = {
1029
+ create?: Prisma.XOR<Prisma.ApplicationCreateWithoutSupersededApplicationsInput, Prisma.ApplicationUncheckedCreateWithoutSupersededApplicationsInput>;
1030
+ connectOrCreate?: Prisma.ApplicationCreateOrConnectWithoutSupersededApplicationsInput;
1031
+ connect?: Prisma.ApplicationWhereUniqueInput;
1032
+ };
1033
+ export type ApplicationCreateNestedManyWithoutSupersededByInput = {
1034
+ create?: Prisma.XOR<Prisma.ApplicationCreateWithoutSupersededByInput, Prisma.ApplicationUncheckedCreateWithoutSupersededByInput> | Prisma.ApplicationCreateWithoutSupersededByInput[] | Prisma.ApplicationUncheckedCreateWithoutSupersededByInput[];
1035
+ connectOrCreate?: Prisma.ApplicationCreateOrConnectWithoutSupersededByInput | Prisma.ApplicationCreateOrConnectWithoutSupersededByInput[];
1036
+ createMany?: Prisma.ApplicationCreateManySupersededByInputEnvelope;
1037
+ connect?: Prisma.ApplicationWhereUniqueInput | Prisma.ApplicationWhereUniqueInput[];
1038
+ };
975
1039
  export type ApplicationUncheckedCreateNestedOneWithoutTransferredFromInput = {
976
1040
  create?: Prisma.XOR<Prisma.ApplicationCreateWithoutTransferredFromInput, Prisma.ApplicationUncheckedCreateWithoutTransferredFromInput>;
977
1041
  connectOrCreate?: Prisma.ApplicationCreateOrConnectWithoutTransferredFromInput;
978
1042
  connect?: Prisma.ApplicationWhereUniqueInput;
979
1043
  };
1044
+ export type ApplicationUncheckedCreateNestedManyWithoutSupersededByInput = {
1045
+ create?: Prisma.XOR<Prisma.ApplicationCreateWithoutSupersededByInput, Prisma.ApplicationUncheckedCreateWithoutSupersededByInput> | Prisma.ApplicationCreateWithoutSupersededByInput[] | Prisma.ApplicationUncheckedCreateWithoutSupersededByInput[];
1046
+ connectOrCreate?: Prisma.ApplicationCreateOrConnectWithoutSupersededByInput | Prisma.ApplicationCreateOrConnectWithoutSupersededByInput[];
1047
+ createMany?: Prisma.ApplicationCreateManySupersededByInputEnvelope;
1048
+ connect?: Prisma.ApplicationWhereUniqueInput | Prisma.ApplicationWhereUniqueInput[];
1049
+ };
980
1050
  export type EnumApplicationStatusFieldUpdateOperationsInput = {
981
1051
  set?: $Enums.ApplicationStatus;
982
1052
  };
@@ -998,6 +1068,28 @@ export type ApplicationUpdateOneWithoutTransferredFromNestedInput = {
998
1068
  connect?: Prisma.ApplicationWhereUniqueInput;
999
1069
  update?: Prisma.XOR<Prisma.XOR<Prisma.ApplicationUpdateToOneWithWhereWithoutTransferredFromInput, Prisma.ApplicationUpdateWithoutTransferredFromInput>, Prisma.ApplicationUncheckedUpdateWithoutTransferredFromInput>;
1000
1070
  };
1071
+ export type ApplicationUpdateOneWithoutSupersededApplicationsNestedInput = {
1072
+ create?: Prisma.XOR<Prisma.ApplicationCreateWithoutSupersededApplicationsInput, Prisma.ApplicationUncheckedCreateWithoutSupersededApplicationsInput>;
1073
+ connectOrCreate?: Prisma.ApplicationCreateOrConnectWithoutSupersededApplicationsInput;
1074
+ upsert?: Prisma.ApplicationUpsertWithoutSupersededApplicationsInput;
1075
+ disconnect?: Prisma.ApplicationWhereInput | boolean;
1076
+ delete?: Prisma.ApplicationWhereInput | boolean;
1077
+ connect?: Prisma.ApplicationWhereUniqueInput;
1078
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ApplicationUpdateToOneWithWhereWithoutSupersededApplicationsInput, Prisma.ApplicationUpdateWithoutSupersededApplicationsInput>, Prisma.ApplicationUncheckedUpdateWithoutSupersededApplicationsInput>;
1079
+ };
1080
+ export type ApplicationUpdateManyWithoutSupersededByNestedInput = {
1081
+ create?: Prisma.XOR<Prisma.ApplicationCreateWithoutSupersededByInput, Prisma.ApplicationUncheckedCreateWithoutSupersededByInput> | Prisma.ApplicationCreateWithoutSupersededByInput[] | Prisma.ApplicationUncheckedCreateWithoutSupersededByInput[];
1082
+ connectOrCreate?: Prisma.ApplicationCreateOrConnectWithoutSupersededByInput | Prisma.ApplicationCreateOrConnectWithoutSupersededByInput[];
1083
+ upsert?: Prisma.ApplicationUpsertWithWhereUniqueWithoutSupersededByInput | Prisma.ApplicationUpsertWithWhereUniqueWithoutSupersededByInput[];
1084
+ createMany?: Prisma.ApplicationCreateManySupersededByInputEnvelope;
1085
+ set?: Prisma.ApplicationWhereUniqueInput | Prisma.ApplicationWhereUniqueInput[];
1086
+ disconnect?: Prisma.ApplicationWhereUniqueInput | Prisma.ApplicationWhereUniqueInput[];
1087
+ delete?: Prisma.ApplicationWhereUniqueInput | Prisma.ApplicationWhereUniqueInput[];
1088
+ connect?: Prisma.ApplicationWhereUniqueInput | Prisma.ApplicationWhereUniqueInput[];
1089
+ update?: Prisma.ApplicationUpdateWithWhereUniqueWithoutSupersededByInput | Prisma.ApplicationUpdateWithWhereUniqueWithoutSupersededByInput[];
1090
+ updateMany?: Prisma.ApplicationUpdateManyWithWhereWithoutSupersededByInput | Prisma.ApplicationUpdateManyWithWhereWithoutSupersededByInput[];
1091
+ deleteMany?: Prisma.ApplicationScalarWhereInput | Prisma.ApplicationScalarWhereInput[];
1092
+ };
1001
1093
  export type ApplicationUncheckedUpdateOneWithoutTransferredFromNestedInput = {
1002
1094
  create?: Prisma.XOR<Prisma.ApplicationCreateWithoutTransferredFromInput, Prisma.ApplicationUncheckedCreateWithoutTransferredFromInput>;
1003
1095
  connectOrCreate?: Prisma.ApplicationCreateOrConnectWithoutTransferredFromInput;
@@ -1007,6 +1099,19 @@ export type ApplicationUncheckedUpdateOneWithoutTransferredFromNestedInput = {
1007
1099
  connect?: Prisma.ApplicationWhereUniqueInput;
1008
1100
  update?: Prisma.XOR<Prisma.XOR<Prisma.ApplicationUpdateToOneWithWhereWithoutTransferredFromInput, Prisma.ApplicationUpdateWithoutTransferredFromInput>, Prisma.ApplicationUncheckedUpdateWithoutTransferredFromInput>;
1009
1101
  };
1102
+ export type ApplicationUncheckedUpdateManyWithoutSupersededByNestedInput = {
1103
+ create?: Prisma.XOR<Prisma.ApplicationCreateWithoutSupersededByInput, Prisma.ApplicationUncheckedCreateWithoutSupersededByInput> | Prisma.ApplicationCreateWithoutSupersededByInput[] | Prisma.ApplicationUncheckedCreateWithoutSupersededByInput[];
1104
+ connectOrCreate?: Prisma.ApplicationCreateOrConnectWithoutSupersededByInput | Prisma.ApplicationCreateOrConnectWithoutSupersededByInput[];
1105
+ upsert?: Prisma.ApplicationUpsertWithWhereUniqueWithoutSupersededByInput | Prisma.ApplicationUpsertWithWhereUniqueWithoutSupersededByInput[];
1106
+ createMany?: Prisma.ApplicationCreateManySupersededByInputEnvelope;
1107
+ set?: Prisma.ApplicationWhereUniqueInput | Prisma.ApplicationWhereUniqueInput[];
1108
+ disconnect?: Prisma.ApplicationWhereUniqueInput | Prisma.ApplicationWhereUniqueInput[];
1109
+ delete?: Prisma.ApplicationWhereUniqueInput | Prisma.ApplicationWhereUniqueInput[];
1110
+ connect?: Prisma.ApplicationWhereUniqueInput | Prisma.ApplicationWhereUniqueInput[];
1111
+ update?: Prisma.ApplicationUpdateWithWhereUniqueWithoutSupersededByInput | Prisma.ApplicationUpdateWithWhereUniqueWithoutSupersededByInput[];
1112
+ updateMany?: Prisma.ApplicationUpdateManyWithWhereWithoutSupersededByInput | Prisma.ApplicationUpdateManyWithWhereWithoutSupersededByInput[];
1113
+ deleteMany?: Prisma.ApplicationScalarWhereInput | Prisma.ApplicationScalarWhereInput[];
1114
+ };
1010
1115
  export type ApplicationCreateNestedOneWithoutRefundsInput = {
1011
1116
  create?: Prisma.XOR<Prisma.ApplicationCreateWithoutRefundsInput, Prisma.ApplicationUncheckedCreateWithoutRefundsInput>;
1012
1117
  connectOrCreate?: Prisma.ApplicationCreateOrConnectWithoutRefundsInput;
@@ -1183,6 +1288,7 @@ export type ApplicationCreateWithoutBuyerInput = {
1183
1288
  terminatedAt?: Date | string | null;
1184
1289
  createdAt?: Date | string;
1185
1290
  updatedAt?: Date | string;
1291
+ supersededAt?: Date | string | null;
1186
1292
  tenant: Prisma.TenantCreateNestedOneWithoutApplicationsInput;
1187
1293
  propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutApplicationsInput;
1188
1294
  seller?: Prisma.UserCreateNestedOneWithoutSoldApplicationsInput;
@@ -1196,6 +1302,8 @@ export type ApplicationCreateWithoutBuyerInput = {
1196
1302
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutApplicationInput;
1197
1303
  transferredFrom?: Prisma.ApplicationCreateNestedOneWithoutTransferredToInput;
1198
1304
  transferredTo?: Prisma.ApplicationCreateNestedOneWithoutTransferredFromInput;
1305
+ supersededBy?: Prisma.ApplicationCreateNestedOneWithoutSupersededApplicationsInput;
1306
+ supersededApplications?: Prisma.ApplicationCreateNestedManyWithoutSupersededByInput;
1199
1307
  outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceApplicationInput;
1200
1308
  incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetApplicationInput;
1201
1309
  events?: Prisma.ApplicationEventCreateNestedManyWithoutApplicationInput;
@@ -1223,6 +1331,8 @@ export type ApplicationUncheckedCreateWithoutBuyerInput = {
1223
1331
  createdAt?: Date | string;
1224
1332
  updatedAt?: Date | string;
1225
1333
  transferredFromId?: string | null;
1334
+ supersededById?: string | null;
1335
+ supersededAt?: Date | string | null;
1226
1336
  phases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutApplicationInput;
1227
1337
  documents?: Prisma.ApplicationDocumentUncheckedCreateNestedManyWithoutApplicationInput;
1228
1338
  payments?: Prisma.ApplicationPaymentUncheckedCreateNestedManyWithoutApplicationInput;
@@ -1230,6 +1340,7 @@ export type ApplicationUncheckedCreateWithoutBuyerInput = {
1230
1340
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutApplicationInput;
1231
1341
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutApplicationInput;
1232
1342
  transferredTo?: Prisma.ApplicationUncheckedCreateNestedOneWithoutTransferredFromInput;
1343
+ supersededApplications?: Prisma.ApplicationUncheckedCreateNestedManyWithoutSupersededByInput;
1233
1344
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceApplicationInput;
1234
1345
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetApplicationInput;
1235
1346
  events?: Prisma.ApplicationEventUncheckedCreateNestedManyWithoutApplicationInput;
@@ -1259,6 +1370,7 @@ export type ApplicationCreateWithoutSellerInput = {
1259
1370
  terminatedAt?: Date | string | null;
1260
1371
  createdAt?: Date | string;
1261
1372
  updatedAt?: Date | string;
1373
+ supersededAt?: Date | string | null;
1262
1374
  tenant: Prisma.TenantCreateNestedOneWithoutApplicationsInput;
1263
1375
  propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutApplicationsInput;
1264
1376
  buyer: Prisma.UserCreateNestedOneWithoutApplicationsInput;
@@ -1272,6 +1384,8 @@ export type ApplicationCreateWithoutSellerInput = {
1272
1384
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutApplicationInput;
1273
1385
  transferredFrom?: Prisma.ApplicationCreateNestedOneWithoutTransferredToInput;
1274
1386
  transferredTo?: Prisma.ApplicationCreateNestedOneWithoutTransferredFromInput;
1387
+ supersededBy?: Prisma.ApplicationCreateNestedOneWithoutSupersededApplicationsInput;
1388
+ supersededApplications?: Prisma.ApplicationCreateNestedManyWithoutSupersededByInput;
1275
1389
  outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceApplicationInput;
1276
1390
  incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetApplicationInput;
1277
1391
  events?: Prisma.ApplicationEventCreateNestedManyWithoutApplicationInput;
@@ -1299,6 +1413,8 @@ export type ApplicationUncheckedCreateWithoutSellerInput = {
1299
1413
  createdAt?: Date | string;
1300
1414
  updatedAt?: Date | string;
1301
1415
  transferredFromId?: string | null;
1416
+ supersededById?: string | null;
1417
+ supersededAt?: Date | string | null;
1302
1418
  phases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutApplicationInput;
1303
1419
  documents?: Prisma.ApplicationDocumentUncheckedCreateNestedManyWithoutApplicationInput;
1304
1420
  payments?: Prisma.ApplicationPaymentUncheckedCreateNestedManyWithoutApplicationInput;
@@ -1306,6 +1422,7 @@ export type ApplicationUncheckedCreateWithoutSellerInput = {
1306
1422
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutApplicationInput;
1307
1423
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutApplicationInput;
1308
1424
  transferredTo?: Prisma.ApplicationUncheckedCreateNestedOneWithoutTransferredFromInput;
1425
+ supersededApplications?: Prisma.ApplicationUncheckedCreateNestedManyWithoutSupersededByInput;
1309
1426
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceApplicationInput;
1310
1427
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetApplicationInput;
1311
1428
  events?: Prisma.ApplicationEventUncheckedCreateNestedManyWithoutApplicationInput;
@@ -1358,6 +1475,8 @@ export type ApplicationScalarWhereInput = {
1358
1475
  createdAt?: Prisma.DateTimeFilter<"Application"> | Date | string;
1359
1476
  updatedAt?: Prisma.DateTimeFilter<"Application"> | Date | string;
1360
1477
  transferredFromId?: Prisma.StringNullableFilter<"Application"> | string | null;
1478
+ supersededById?: Prisma.StringNullableFilter<"Application"> | string | null;
1479
+ supersededAt?: Prisma.DateTimeNullableFilter<"Application"> | Date | string | null;
1361
1480
  };
1362
1481
  export type ApplicationUpsertWithWhereUniqueWithoutSellerInput = {
1363
1482
  where: Prisma.ApplicationWhereUniqueInput;
@@ -1388,6 +1507,7 @@ export type ApplicationCreateWithoutTenantInput = {
1388
1507
  terminatedAt?: Date | string | null;
1389
1508
  createdAt?: Date | string;
1390
1509
  updatedAt?: Date | string;
1510
+ supersededAt?: Date | string | null;
1391
1511
  propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutApplicationsInput;
1392
1512
  buyer: Prisma.UserCreateNestedOneWithoutApplicationsInput;
1393
1513
  seller?: Prisma.UserCreateNestedOneWithoutSoldApplicationsInput;
@@ -1401,6 +1521,8 @@ export type ApplicationCreateWithoutTenantInput = {
1401
1521
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutApplicationInput;
1402
1522
  transferredFrom?: Prisma.ApplicationCreateNestedOneWithoutTransferredToInput;
1403
1523
  transferredTo?: Prisma.ApplicationCreateNestedOneWithoutTransferredFromInput;
1524
+ supersededBy?: Prisma.ApplicationCreateNestedOneWithoutSupersededApplicationsInput;
1525
+ supersededApplications?: Prisma.ApplicationCreateNestedManyWithoutSupersededByInput;
1404
1526
  outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceApplicationInput;
1405
1527
  incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetApplicationInput;
1406
1528
  events?: Prisma.ApplicationEventCreateNestedManyWithoutApplicationInput;
@@ -1428,6 +1550,8 @@ export type ApplicationUncheckedCreateWithoutTenantInput = {
1428
1550
  createdAt?: Date | string;
1429
1551
  updatedAt?: Date | string;
1430
1552
  transferredFromId?: string | null;
1553
+ supersededById?: string | null;
1554
+ supersededAt?: Date | string | null;
1431
1555
  phases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutApplicationInput;
1432
1556
  documents?: Prisma.ApplicationDocumentUncheckedCreateNestedManyWithoutApplicationInput;
1433
1557
  payments?: Prisma.ApplicationPaymentUncheckedCreateNestedManyWithoutApplicationInput;
@@ -1435,6 +1559,7 @@ export type ApplicationUncheckedCreateWithoutTenantInput = {
1435
1559
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutApplicationInput;
1436
1560
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutApplicationInput;
1437
1561
  transferredTo?: Prisma.ApplicationUncheckedCreateNestedOneWithoutTransferredFromInput;
1562
+ supersededApplications?: Prisma.ApplicationUncheckedCreateNestedManyWithoutSupersededByInput;
1438
1563
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceApplicationInput;
1439
1564
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetApplicationInput;
1440
1565
  events?: Prisma.ApplicationEventUncheckedCreateNestedManyWithoutApplicationInput;
@@ -1477,6 +1602,7 @@ export type ApplicationCreateWithoutPropertyUnitInput = {
1477
1602
  terminatedAt?: Date | string | null;
1478
1603
  createdAt?: Date | string;
1479
1604
  updatedAt?: Date | string;
1605
+ supersededAt?: Date | string | null;
1480
1606
  tenant: Prisma.TenantCreateNestedOneWithoutApplicationsInput;
1481
1607
  buyer: Prisma.UserCreateNestedOneWithoutApplicationsInput;
1482
1608
  seller?: Prisma.UserCreateNestedOneWithoutSoldApplicationsInput;
@@ -1490,6 +1616,8 @@ export type ApplicationCreateWithoutPropertyUnitInput = {
1490
1616
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutApplicationInput;
1491
1617
  transferredFrom?: Prisma.ApplicationCreateNestedOneWithoutTransferredToInput;
1492
1618
  transferredTo?: Prisma.ApplicationCreateNestedOneWithoutTransferredFromInput;
1619
+ supersededBy?: Prisma.ApplicationCreateNestedOneWithoutSupersededApplicationsInput;
1620
+ supersededApplications?: Prisma.ApplicationCreateNestedManyWithoutSupersededByInput;
1493
1621
  outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceApplicationInput;
1494
1622
  incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetApplicationInput;
1495
1623
  events?: Prisma.ApplicationEventCreateNestedManyWithoutApplicationInput;
@@ -1517,6 +1645,8 @@ export type ApplicationUncheckedCreateWithoutPropertyUnitInput = {
1517
1645
  createdAt?: Date | string;
1518
1646
  updatedAt?: Date | string;
1519
1647
  transferredFromId?: string | null;
1648
+ supersededById?: string | null;
1649
+ supersededAt?: Date | string | null;
1520
1650
  phases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutApplicationInput;
1521
1651
  documents?: Prisma.ApplicationDocumentUncheckedCreateNestedManyWithoutApplicationInput;
1522
1652
  payments?: Prisma.ApplicationPaymentUncheckedCreateNestedManyWithoutApplicationInput;
@@ -1524,6 +1654,7 @@ export type ApplicationUncheckedCreateWithoutPropertyUnitInput = {
1524
1654
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutApplicationInput;
1525
1655
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutApplicationInput;
1526
1656
  transferredTo?: Prisma.ApplicationUncheckedCreateNestedOneWithoutTransferredFromInput;
1657
+ supersededApplications?: Prisma.ApplicationUncheckedCreateNestedManyWithoutSupersededByInput;
1527
1658
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceApplicationInput;
1528
1659
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetApplicationInput;
1529
1660
  events?: Prisma.ApplicationEventUncheckedCreateNestedManyWithoutApplicationInput;
@@ -1566,6 +1697,7 @@ export type ApplicationCreateWithoutPaymentMethodInput = {
1566
1697
  terminatedAt?: Date | string | null;
1567
1698
  createdAt?: Date | string;
1568
1699
  updatedAt?: Date | string;
1700
+ supersededAt?: Date | string | null;
1569
1701
  tenant: Prisma.TenantCreateNestedOneWithoutApplicationsInput;
1570
1702
  propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutApplicationsInput;
1571
1703
  buyer: Prisma.UserCreateNestedOneWithoutApplicationsInput;
@@ -1579,6 +1711,8 @@ export type ApplicationCreateWithoutPaymentMethodInput = {
1579
1711
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutApplicationInput;
1580
1712
  transferredFrom?: Prisma.ApplicationCreateNestedOneWithoutTransferredToInput;
1581
1713
  transferredTo?: Prisma.ApplicationCreateNestedOneWithoutTransferredFromInput;
1714
+ supersededBy?: Prisma.ApplicationCreateNestedOneWithoutSupersededApplicationsInput;
1715
+ supersededApplications?: Prisma.ApplicationCreateNestedManyWithoutSupersededByInput;
1582
1716
  outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceApplicationInput;
1583
1717
  incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetApplicationInput;
1584
1718
  events?: Prisma.ApplicationEventCreateNestedManyWithoutApplicationInput;
@@ -1606,6 +1740,8 @@ export type ApplicationUncheckedCreateWithoutPaymentMethodInput = {
1606
1740
  createdAt?: Date | string;
1607
1741
  updatedAt?: Date | string;
1608
1742
  transferredFromId?: string | null;
1743
+ supersededById?: string | null;
1744
+ supersededAt?: Date | string | null;
1609
1745
  phases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutApplicationInput;
1610
1746
  documents?: Prisma.ApplicationDocumentUncheckedCreateNestedManyWithoutApplicationInput;
1611
1747
  payments?: Prisma.ApplicationPaymentUncheckedCreateNestedManyWithoutApplicationInput;
@@ -1613,6 +1749,7 @@ export type ApplicationUncheckedCreateWithoutPaymentMethodInput = {
1613
1749
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutApplicationInput;
1614
1750
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutApplicationInput;
1615
1751
  transferredTo?: Prisma.ApplicationUncheckedCreateNestedOneWithoutTransferredFromInput;
1752
+ supersededApplications?: Prisma.ApplicationUncheckedCreateNestedManyWithoutSupersededByInput;
1616
1753
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceApplicationInput;
1617
1754
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetApplicationInput;
1618
1755
  events?: Prisma.ApplicationEventUncheckedCreateNestedManyWithoutApplicationInput;
@@ -1655,6 +1792,7 @@ export type ApplicationCreateWithoutTransferredToInput = {
1655
1792
  terminatedAt?: Date | string | null;
1656
1793
  createdAt?: Date | string;
1657
1794
  updatedAt?: Date | string;
1795
+ supersededAt?: Date | string | null;
1658
1796
  tenant: Prisma.TenantCreateNestedOneWithoutApplicationsInput;
1659
1797
  propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutApplicationsInput;
1660
1798
  buyer: Prisma.UserCreateNestedOneWithoutApplicationsInput;
@@ -1668,6 +1806,8 @@ export type ApplicationCreateWithoutTransferredToInput = {
1668
1806
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutApplicationInput;
1669
1807
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutApplicationInput;
1670
1808
  transferredFrom?: Prisma.ApplicationCreateNestedOneWithoutTransferredToInput;
1809
+ supersededBy?: Prisma.ApplicationCreateNestedOneWithoutSupersededApplicationsInput;
1810
+ supersededApplications?: Prisma.ApplicationCreateNestedManyWithoutSupersededByInput;
1671
1811
  outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceApplicationInput;
1672
1812
  incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetApplicationInput;
1673
1813
  events?: Prisma.ApplicationEventCreateNestedManyWithoutApplicationInput;
@@ -1696,12 +1836,15 @@ export type ApplicationUncheckedCreateWithoutTransferredToInput = {
1696
1836
  createdAt?: Date | string;
1697
1837
  updatedAt?: Date | string;
1698
1838
  transferredFromId?: string | null;
1839
+ supersededById?: string | null;
1840
+ supersededAt?: Date | string | null;
1699
1841
  phases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutApplicationInput;
1700
1842
  documents?: Prisma.ApplicationDocumentUncheckedCreateNestedManyWithoutApplicationInput;
1701
1843
  payments?: Prisma.ApplicationPaymentUncheckedCreateNestedManyWithoutApplicationInput;
1702
1844
  terminations?: Prisma.ApplicationTerminationUncheckedCreateNestedManyWithoutApplicationInput;
1703
1845
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutApplicationInput;
1704
1846
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutApplicationInput;
1847
+ supersededApplications?: Prisma.ApplicationUncheckedCreateNestedManyWithoutSupersededByInput;
1705
1848
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceApplicationInput;
1706
1849
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetApplicationInput;
1707
1850
  events?: Prisma.ApplicationEventUncheckedCreateNestedManyWithoutApplicationInput;
@@ -1727,6 +1870,7 @@ export type ApplicationCreateWithoutTransferredFromInput = {
1727
1870
  terminatedAt?: Date | string | null;
1728
1871
  createdAt?: Date | string;
1729
1872
  updatedAt?: Date | string;
1873
+ supersededAt?: Date | string | null;
1730
1874
  tenant: Prisma.TenantCreateNestedOneWithoutApplicationsInput;
1731
1875
  propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutApplicationsInput;
1732
1876
  buyer: Prisma.UserCreateNestedOneWithoutApplicationsInput;
@@ -1740,6 +1884,8 @@ export type ApplicationCreateWithoutTransferredFromInput = {
1740
1884
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutApplicationInput;
1741
1885
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutApplicationInput;
1742
1886
  transferredTo?: Prisma.ApplicationCreateNestedOneWithoutTransferredFromInput;
1887
+ supersededBy?: Prisma.ApplicationCreateNestedOneWithoutSupersededApplicationsInput;
1888
+ supersededApplications?: Prisma.ApplicationCreateNestedManyWithoutSupersededByInput;
1743
1889
  outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceApplicationInput;
1744
1890
  incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetApplicationInput;
1745
1891
  events?: Prisma.ApplicationEventCreateNestedManyWithoutApplicationInput;
@@ -1767,6 +1913,8 @@ export type ApplicationUncheckedCreateWithoutTransferredFromInput = {
1767
1913
  terminatedAt?: Date | string | null;
1768
1914
  createdAt?: Date | string;
1769
1915
  updatedAt?: Date | string;
1916
+ supersededById?: string | null;
1917
+ supersededAt?: Date | string | null;
1770
1918
  phases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutApplicationInput;
1771
1919
  documents?: Prisma.ApplicationDocumentUncheckedCreateNestedManyWithoutApplicationInput;
1772
1920
  payments?: Prisma.ApplicationPaymentUncheckedCreateNestedManyWithoutApplicationInput;
@@ -1774,6 +1922,7 @@ export type ApplicationUncheckedCreateWithoutTransferredFromInput = {
1774
1922
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutApplicationInput;
1775
1923
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutApplicationInput;
1776
1924
  transferredTo?: Prisma.ApplicationUncheckedCreateNestedOneWithoutTransferredFromInput;
1925
+ supersededApplications?: Prisma.ApplicationUncheckedCreateNestedManyWithoutSupersededByInput;
1777
1926
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceApplicationInput;
1778
1927
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetApplicationInput;
1779
1928
  events?: Prisma.ApplicationEventUncheckedCreateNestedManyWithoutApplicationInput;
@@ -1783,6 +1932,166 @@ export type ApplicationCreateOrConnectWithoutTransferredFromInput = {
1783
1932
  where: Prisma.ApplicationWhereUniqueInput;
1784
1933
  create: Prisma.XOR<Prisma.ApplicationCreateWithoutTransferredFromInput, Prisma.ApplicationUncheckedCreateWithoutTransferredFromInput>;
1785
1934
  };
1935
+ export type ApplicationCreateWithoutSupersededApplicationsInput = {
1936
+ id?: string;
1937
+ applicationNumber: string;
1938
+ title: string;
1939
+ description?: string | null;
1940
+ applicationType: string;
1941
+ totalAmount: number;
1942
+ status?: $Enums.ApplicationStatus;
1943
+ nextPaymentDueDate?: Date | string | null;
1944
+ lastReminderSentAt?: Date | string | null;
1945
+ startDate?: Date | string | null;
1946
+ endDate?: Date | string | null;
1947
+ signedAt?: Date | string | null;
1948
+ terminatedAt?: Date | string | null;
1949
+ createdAt?: Date | string;
1950
+ updatedAt?: Date | string;
1951
+ supersededAt?: Date | string | null;
1952
+ tenant: Prisma.TenantCreateNestedOneWithoutApplicationsInput;
1953
+ propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutApplicationsInput;
1954
+ buyer: Prisma.UserCreateNestedOneWithoutApplicationsInput;
1955
+ seller?: Prisma.UserCreateNestedOneWithoutSoldApplicationsInput;
1956
+ paymentMethod?: Prisma.PropertyPaymentMethodCreateNestedOneWithoutApplicationsInput;
1957
+ currentPhase?: Prisma.ApplicationPhaseCreateNestedOneWithoutCurrentForApplicationsInput;
1958
+ phases?: Prisma.ApplicationPhaseCreateNestedManyWithoutApplicationInput;
1959
+ documents?: Prisma.ApplicationDocumentCreateNestedManyWithoutApplicationInput;
1960
+ payments?: Prisma.ApplicationPaymentCreateNestedManyWithoutApplicationInput;
1961
+ terminations?: Prisma.ApplicationTerminationCreateNestedManyWithoutApplicationInput;
1962
+ offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutApplicationInput;
1963
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutApplicationInput;
1964
+ transferredFrom?: Prisma.ApplicationCreateNestedOneWithoutTransferredToInput;
1965
+ transferredTo?: Prisma.ApplicationCreateNestedOneWithoutTransferredFromInput;
1966
+ supersededBy?: Prisma.ApplicationCreateNestedOneWithoutSupersededApplicationsInput;
1967
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceApplicationInput;
1968
+ incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetApplicationInput;
1969
+ events?: Prisma.ApplicationEventCreateNestedManyWithoutApplicationInput;
1970
+ refunds?: Prisma.ApplicationRefundCreateNestedManyWithoutApplicationInput;
1971
+ };
1972
+ export type ApplicationUncheckedCreateWithoutSupersededApplicationsInput = {
1973
+ id?: string;
1974
+ tenantId: string;
1975
+ propertyUnitId: string;
1976
+ buyerId: string;
1977
+ sellerId?: string | null;
1978
+ paymentMethodId?: string | null;
1979
+ applicationNumber: string;
1980
+ title: string;
1981
+ description?: string | null;
1982
+ applicationType: string;
1983
+ totalAmount: number;
1984
+ status?: $Enums.ApplicationStatus;
1985
+ currentPhaseId?: string | null;
1986
+ nextPaymentDueDate?: Date | string | null;
1987
+ lastReminderSentAt?: Date | string | null;
1988
+ startDate?: Date | string | null;
1989
+ endDate?: Date | string | null;
1990
+ signedAt?: Date | string | null;
1991
+ terminatedAt?: Date | string | null;
1992
+ createdAt?: Date | string;
1993
+ updatedAt?: Date | string;
1994
+ transferredFromId?: string | null;
1995
+ supersededById?: string | null;
1996
+ supersededAt?: Date | string | null;
1997
+ phases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutApplicationInput;
1998
+ documents?: Prisma.ApplicationDocumentUncheckedCreateNestedManyWithoutApplicationInput;
1999
+ payments?: Prisma.ApplicationPaymentUncheckedCreateNestedManyWithoutApplicationInput;
2000
+ terminations?: Prisma.ApplicationTerminationUncheckedCreateNestedManyWithoutApplicationInput;
2001
+ offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutApplicationInput;
2002
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutApplicationInput;
2003
+ transferredTo?: Prisma.ApplicationUncheckedCreateNestedOneWithoutTransferredFromInput;
2004
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceApplicationInput;
2005
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetApplicationInput;
2006
+ events?: Prisma.ApplicationEventUncheckedCreateNestedManyWithoutApplicationInput;
2007
+ refunds?: Prisma.ApplicationRefundUncheckedCreateNestedManyWithoutApplicationInput;
2008
+ };
2009
+ export type ApplicationCreateOrConnectWithoutSupersededApplicationsInput = {
2010
+ where: Prisma.ApplicationWhereUniqueInput;
2011
+ create: Prisma.XOR<Prisma.ApplicationCreateWithoutSupersededApplicationsInput, Prisma.ApplicationUncheckedCreateWithoutSupersededApplicationsInput>;
2012
+ };
2013
+ export type ApplicationCreateWithoutSupersededByInput = {
2014
+ id?: string;
2015
+ applicationNumber: string;
2016
+ title: string;
2017
+ description?: string | null;
2018
+ applicationType: string;
2019
+ totalAmount: number;
2020
+ status?: $Enums.ApplicationStatus;
2021
+ nextPaymentDueDate?: Date | string | null;
2022
+ lastReminderSentAt?: Date | string | null;
2023
+ startDate?: Date | string | null;
2024
+ endDate?: Date | string | null;
2025
+ signedAt?: Date | string | null;
2026
+ terminatedAt?: Date | string | null;
2027
+ createdAt?: Date | string;
2028
+ updatedAt?: Date | string;
2029
+ supersededAt?: Date | string | null;
2030
+ tenant: Prisma.TenantCreateNestedOneWithoutApplicationsInput;
2031
+ propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutApplicationsInput;
2032
+ buyer: Prisma.UserCreateNestedOneWithoutApplicationsInput;
2033
+ seller?: Prisma.UserCreateNestedOneWithoutSoldApplicationsInput;
2034
+ paymentMethod?: Prisma.PropertyPaymentMethodCreateNestedOneWithoutApplicationsInput;
2035
+ currentPhase?: Prisma.ApplicationPhaseCreateNestedOneWithoutCurrentForApplicationsInput;
2036
+ phases?: Prisma.ApplicationPhaseCreateNestedManyWithoutApplicationInput;
2037
+ documents?: Prisma.ApplicationDocumentCreateNestedManyWithoutApplicationInput;
2038
+ payments?: Prisma.ApplicationPaymentCreateNestedManyWithoutApplicationInput;
2039
+ terminations?: Prisma.ApplicationTerminationCreateNestedManyWithoutApplicationInput;
2040
+ offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutApplicationInput;
2041
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutApplicationInput;
2042
+ transferredFrom?: Prisma.ApplicationCreateNestedOneWithoutTransferredToInput;
2043
+ transferredTo?: Prisma.ApplicationCreateNestedOneWithoutTransferredFromInput;
2044
+ supersededApplications?: Prisma.ApplicationCreateNestedManyWithoutSupersededByInput;
2045
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceApplicationInput;
2046
+ incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetApplicationInput;
2047
+ events?: Prisma.ApplicationEventCreateNestedManyWithoutApplicationInput;
2048
+ refunds?: Prisma.ApplicationRefundCreateNestedManyWithoutApplicationInput;
2049
+ };
2050
+ export type ApplicationUncheckedCreateWithoutSupersededByInput = {
2051
+ id?: string;
2052
+ tenantId: string;
2053
+ propertyUnitId: string;
2054
+ buyerId: string;
2055
+ sellerId?: string | null;
2056
+ paymentMethodId?: string | null;
2057
+ applicationNumber: string;
2058
+ title: string;
2059
+ description?: string | null;
2060
+ applicationType: string;
2061
+ totalAmount: number;
2062
+ status?: $Enums.ApplicationStatus;
2063
+ currentPhaseId?: string | null;
2064
+ nextPaymentDueDate?: Date | string | null;
2065
+ lastReminderSentAt?: Date | string | null;
2066
+ startDate?: Date | string | null;
2067
+ endDate?: Date | string | null;
2068
+ signedAt?: Date | string | null;
2069
+ terminatedAt?: Date | string | null;
2070
+ createdAt?: Date | string;
2071
+ updatedAt?: Date | string;
2072
+ transferredFromId?: string | null;
2073
+ supersededAt?: Date | string | null;
2074
+ phases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutApplicationInput;
2075
+ documents?: Prisma.ApplicationDocumentUncheckedCreateNestedManyWithoutApplicationInput;
2076
+ payments?: Prisma.ApplicationPaymentUncheckedCreateNestedManyWithoutApplicationInput;
2077
+ terminations?: Prisma.ApplicationTerminationUncheckedCreateNestedManyWithoutApplicationInput;
2078
+ offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutApplicationInput;
2079
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutApplicationInput;
2080
+ transferredTo?: Prisma.ApplicationUncheckedCreateNestedOneWithoutTransferredFromInput;
2081
+ supersededApplications?: Prisma.ApplicationUncheckedCreateNestedManyWithoutSupersededByInput;
2082
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceApplicationInput;
2083
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetApplicationInput;
2084
+ events?: Prisma.ApplicationEventUncheckedCreateNestedManyWithoutApplicationInput;
2085
+ refunds?: Prisma.ApplicationRefundUncheckedCreateNestedManyWithoutApplicationInput;
2086
+ };
2087
+ export type ApplicationCreateOrConnectWithoutSupersededByInput = {
2088
+ where: Prisma.ApplicationWhereUniqueInput;
2089
+ create: Prisma.XOR<Prisma.ApplicationCreateWithoutSupersededByInput, Prisma.ApplicationUncheckedCreateWithoutSupersededByInput>;
2090
+ };
2091
+ export type ApplicationCreateManySupersededByInputEnvelope = {
2092
+ data: Prisma.ApplicationCreateManySupersededByInput | Prisma.ApplicationCreateManySupersededByInput[];
2093
+ skipDuplicates?: boolean;
2094
+ };
1786
2095
  export type ApplicationUpsertWithoutTransferredToInput = {
1787
2096
  update: Prisma.XOR<Prisma.ApplicationUpdateWithoutTransferredToInput, Prisma.ApplicationUncheckedUpdateWithoutTransferredToInput>;
1788
2097
  create: Prisma.XOR<Prisma.ApplicationCreateWithoutTransferredToInput, Prisma.ApplicationUncheckedCreateWithoutTransferredToInput>;
@@ -1808,6 +2117,7 @@ export type ApplicationUpdateWithoutTransferredToInput = {
1808
2117
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1809
2118
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1810
2119
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2120
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1811
2121
  tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationsNestedInput;
1812
2122
  propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutApplicationsNestedInput;
1813
2123
  buyer?: Prisma.UserUpdateOneRequiredWithoutApplicationsNestedInput;
@@ -1821,6 +2131,8 @@ export type ApplicationUpdateWithoutTransferredToInput = {
1821
2131
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutApplicationNestedInput;
1822
2132
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutApplicationNestedInput;
1823
2133
  transferredFrom?: Prisma.ApplicationUpdateOneWithoutTransferredToNestedInput;
2134
+ supersededBy?: Prisma.ApplicationUpdateOneWithoutSupersededApplicationsNestedInput;
2135
+ supersededApplications?: Prisma.ApplicationUpdateManyWithoutSupersededByNestedInput;
1824
2136
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceApplicationNestedInput;
1825
2137
  incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetApplicationNestedInput;
1826
2138
  events?: Prisma.ApplicationEventUpdateManyWithoutApplicationNestedInput;
@@ -1849,12 +2161,15 @@ export type ApplicationUncheckedUpdateWithoutTransferredToInput = {
1849
2161
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1850
2162
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1851
2163
  transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2164
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2165
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1852
2166
  phases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutApplicationNestedInput;
1853
2167
  documents?: Prisma.ApplicationDocumentUncheckedUpdateManyWithoutApplicationNestedInput;
1854
2168
  payments?: Prisma.ApplicationPaymentUncheckedUpdateManyWithoutApplicationNestedInput;
1855
2169
  terminations?: Prisma.ApplicationTerminationUncheckedUpdateManyWithoutApplicationNestedInput;
1856
2170
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutApplicationNestedInput;
1857
2171
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutApplicationNestedInput;
2172
+ supersededApplications?: Prisma.ApplicationUncheckedUpdateManyWithoutSupersededByNestedInput;
1858
2173
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceApplicationNestedInput;
1859
2174
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetApplicationNestedInput;
1860
2175
  events?: Prisma.ApplicationEventUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -1885,6 +2200,7 @@ export type ApplicationUpdateWithoutTransferredFromInput = {
1885
2200
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1886
2201
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1887
2202
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2203
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1888
2204
  tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationsNestedInput;
1889
2205
  propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutApplicationsNestedInput;
1890
2206
  buyer?: Prisma.UserUpdateOneRequiredWithoutApplicationsNestedInput;
@@ -1898,6 +2214,8 @@ export type ApplicationUpdateWithoutTransferredFromInput = {
1898
2214
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutApplicationNestedInput;
1899
2215
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutApplicationNestedInput;
1900
2216
  transferredTo?: Prisma.ApplicationUpdateOneWithoutTransferredFromNestedInput;
2217
+ supersededBy?: Prisma.ApplicationUpdateOneWithoutSupersededApplicationsNestedInput;
2218
+ supersededApplications?: Prisma.ApplicationUpdateManyWithoutSupersededByNestedInput;
1901
2219
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceApplicationNestedInput;
1902
2220
  incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetApplicationNestedInput;
1903
2221
  events?: Prisma.ApplicationEventUpdateManyWithoutApplicationNestedInput;
@@ -1925,6 +2243,92 @@ export type ApplicationUncheckedUpdateWithoutTransferredFromInput = {
1925
2243
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1926
2244
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1927
2245
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2246
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2247
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2248
+ phases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutApplicationNestedInput;
2249
+ documents?: Prisma.ApplicationDocumentUncheckedUpdateManyWithoutApplicationNestedInput;
2250
+ payments?: Prisma.ApplicationPaymentUncheckedUpdateManyWithoutApplicationNestedInput;
2251
+ terminations?: Prisma.ApplicationTerminationUncheckedUpdateManyWithoutApplicationNestedInput;
2252
+ offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutApplicationNestedInput;
2253
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutApplicationNestedInput;
2254
+ transferredTo?: Prisma.ApplicationUncheckedUpdateOneWithoutTransferredFromNestedInput;
2255
+ supersededApplications?: Prisma.ApplicationUncheckedUpdateManyWithoutSupersededByNestedInput;
2256
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceApplicationNestedInput;
2257
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetApplicationNestedInput;
2258
+ events?: Prisma.ApplicationEventUncheckedUpdateManyWithoutApplicationNestedInput;
2259
+ refunds?: Prisma.ApplicationRefundUncheckedUpdateManyWithoutApplicationNestedInput;
2260
+ };
2261
+ export type ApplicationUpsertWithoutSupersededApplicationsInput = {
2262
+ update: Prisma.XOR<Prisma.ApplicationUpdateWithoutSupersededApplicationsInput, Prisma.ApplicationUncheckedUpdateWithoutSupersededApplicationsInput>;
2263
+ create: Prisma.XOR<Prisma.ApplicationCreateWithoutSupersededApplicationsInput, Prisma.ApplicationUncheckedCreateWithoutSupersededApplicationsInput>;
2264
+ where?: Prisma.ApplicationWhereInput;
2265
+ };
2266
+ export type ApplicationUpdateToOneWithWhereWithoutSupersededApplicationsInput = {
2267
+ where?: Prisma.ApplicationWhereInput;
2268
+ data: Prisma.XOR<Prisma.ApplicationUpdateWithoutSupersededApplicationsInput, Prisma.ApplicationUncheckedUpdateWithoutSupersededApplicationsInput>;
2269
+ };
2270
+ export type ApplicationUpdateWithoutSupersededApplicationsInput = {
2271
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2272
+ applicationNumber?: Prisma.StringFieldUpdateOperationsInput | string;
2273
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
2274
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2275
+ applicationType?: Prisma.StringFieldUpdateOperationsInput | string;
2276
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
2277
+ status?: Prisma.EnumApplicationStatusFieldUpdateOperationsInput | $Enums.ApplicationStatus;
2278
+ nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2279
+ lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2280
+ startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2281
+ endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2282
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2283
+ terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2284
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2285
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2286
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2287
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationsNestedInput;
2288
+ propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutApplicationsNestedInput;
2289
+ buyer?: Prisma.UserUpdateOneRequiredWithoutApplicationsNestedInput;
2290
+ seller?: Prisma.UserUpdateOneWithoutSoldApplicationsNestedInput;
2291
+ paymentMethod?: Prisma.PropertyPaymentMethodUpdateOneWithoutApplicationsNestedInput;
2292
+ currentPhase?: Prisma.ApplicationPhaseUpdateOneWithoutCurrentForApplicationsNestedInput;
2293
+ phases?: Prisma.ApplicationPhaseUpdateManyWithoutApplicationNestedInput;
2294
+ documents?: Prisma.ApplicationDocumentUpdateManyWithoutApplicationNestedInput;
2295
+ payments?: Prisma.ApplicationPaymentUpdateManyWithoutApplicationNestedInput;
2296
+ terminations?: Prisma.ApplicationTerminationUpdateManyWithoutApplicationNestedInput;
2297
+ offerLetters?: Prisma.OfferLetterUpdateManyWithoutApplicationNestedInput;
2298
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutApplicationNestedInput;
2299
+ transferredFrom?: Prisma.ApplicationUpdateOneWithoutTransferredToNestedInput;
2300
+ transferredTo?: Prisma.ApplicationUpdateOneWithoutTransferredFromNestedInput;
2301
+ supersededBy?: Prisma.ApplicationUpdateOneWithoutSupersededApplicationsNestedInput;
2302
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceApplicationNestedInput;
2303
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetApplicationNestedInput;
2304
+ events?: Prisma.ApplicationEventUpdateManyWithoutApplicationNestedInput;
2305
+ refunds?: Prisma.ApplicationRefundUpdateManyWithoutApplicationNestedInput;
2306
+ };
2307
+ export type ApplicationUncheckedUpdateWithoutSupersededApplicationsInput = {
2308
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2309
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
2310
+ propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
2311
+ buyerId?: Prisma.StringFieldUpdateOperationsInput | string;
2312
+ sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2313
+ paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2314
+ applicationNumber?: Prisma.StringFieldUpdateOperationsInput | string;
2315
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
2316
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2317
+ applicationType?: Prisma.StringFieldUpdateOperationsInput | string;
2318
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
2319
+ status?: Prisma.EnumApplicationStatusFieldUpdateOperationsInput | $Enums.ApplicationStatus;
2320
+ currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2321
+ nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2322
+ lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2323
+ startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2324
+ endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2325
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2326
+ terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2327
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2328
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2329
+ transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2330
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2331
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1928
2332
  phases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutApplicationNestedInput;
1929
2333
  documents?: Prisma.ApplicationDocumentUncheckedUpdateManyWithoutApplicationNestedInput;
1930
2334
  payments?: Prisma.ApplicationPaymentUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -1937,6 +2341,19 @@ export type ApplicationUncheckedUpdateWithoutTransferredFromInput = {
1937
2341
  events?: Prisma.ApplicationEventUncheckedUpdateManyWithoutApplicationNestedInput;
1938
2342
  refunds?: Prisma.ApplicationRefundUncheckedUpdateManyWithoutApplicationNestedInput;
1939
2343
  };
2344
+ export type ApplicationUpsertWithWhereUniqueWithoutSupersededByInput = {
2345
+ where: Prisma.ApplicationWhereUniqueInput;
2346
+ update: Prisma.XOR<Prisma.ApplicationUpdateWithoutSupersededByInput, Prisma.ApplicationUncheckedUpdateWithoutSupersededByInput>;
2347
+ create: Prisma.XOR<Prisma.ApplicationCreateWithoutSupersededByInput, Prisma.ApplicationUncheckedCreateWithoutSupersededByInput>;
2348
+ };
2349
+ export type ApplicationUpdateWithWhereUniqueWithoutSupersededByInput = {
2350
+ where: Prisma.ApplicationWhereUniqueInput;
2351
+ data: Prisma.XOR<Prisma.ApplicationUpdateWithoutSupersededByInput, Prisma.ApplicationUncheckedUpdateWithoutSupersededByInput>;
2352
+ };
2353
+ export type ApplicationUpdateManyWithWhereWithoutSupersededByInput = {
2354
+ where: Prisma.ApplicationScalarWhereInput;
2355
+ data: Prisma.XOR<Prisma.ApplicationUpdateManyMutationInput, Prisma.ApplicationUncheckedUpdateManyWithoutSupersededByInput>;
2356
+ };
1940
2357
  export type ApplicationCreateWithoutRefundsInput = {
1941
2358
  id?: string;
1942
2359
  applicationNumber: string;
@@ -1953,6 +2370,7 @@ export type ApplicationCreateWithoutRefundsInput = {
1953
2370
  terminatedAt?: Date | string | null;
1954
2371
  createdAt?: Date | string;
1955
2372
  updatedAt?: Date | string;
2373
+ supersededAt?: Date | string | null;
1956
2374
  tenant: Prisma.TenantCreateNestedOneWithoutApplicationsInput;
1957
2375
  propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutApplicationsInput;
1958
2376
  buyer: Prisma.UserCreateNestedOneWithoutApplicationsInput;
@@ -1967,6 +2385,8 @@ export type ApplicationCreateWithoutRefundsInput = {
1967
2385
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutApplicationInput;
1968
2386
  transferredFrom?: Prisma.ApplicationCreateNestedOneWithoutTransferredToInput;
1969
2387
  transferredTo?: Prisma.ApplicationCreateNestedOneWithoutTransferredFromInput;
2388
+ supersededBy?: Prisma.ApplicationCreateNestedOneWithoutSupersededApplicationsInput;
2389
+ supersededApplications?: Prisma.ApplicationCreateNestedManyWithoutSupersededByInput;
1970
2390
  outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceApplicationInput;
1971
2391
  incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetApplicationInput;
1972
2392
  events?: Prisma.ApplicationEventCreateNestedManyWithoutApplicationInput;
@@ -1994,6 +2414,8 @@ export type ApplicationUncheckedCreateWithoutRefundsInput = {
1994
2414
  createdAt?: Date | string;
1995
2415
  updatedAt?: Date | string;
1996
2416
  transferredFromId?: string | null;
2417
+ supersededById?: string | null;
2418
+ supersededAt?: Date | string | null;
1997
2419
  phases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutApplicationInput;
1998
2420
  documents?: Prisma.ApplicationDocumentUncheckedCreateNestedManyWithoutApplicationInput;
1999
2421
  payments?: Prisma.ApplicationPaymentUncheckedCreateNestedManyWithoutApplicationInput;
@@ -2001,6 +2423,7 @@ export type ApplicationUncheckedCreateWithoutRefundsInput = {
2001
2423
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutApplicationInput;
2002
2424
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutApplicationInput;
2003
2425
  transferredTo?: Prisma.ApplicationUncheckedCreateNestedOneWithoutTransferredFromInput;
2426
+ supersededApplications?: Prisma.ApplicationUncheckedCreateNestedManyWithoutSupersededByInput;
2004
2427
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceApplicationInput;
2005
2428
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetApplicationInput;
2006
2429
  events?: Prisma.ApplicationEventUncheckedCreateNestedManyWithoutApplicationInput;
@@ -2034,6 +2457,7 @@ export type ApplicationUpdateWithoutRefundsInput = {
2034
2457
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2035
2458
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2036
2459
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2460
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2037
2461
  tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationsNestedInput;
2038
2462
  propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutApplicationsNestedInput;
2039
2463
  buyer?: Prisma.UserUpdateOneRequiredWithoutApplicationsNestedInput;
@@ -2048,6 +2472,8 @@ export type ApplicationUpdateWithoutRefundsInput = {
2048
2472
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutApplicationNestedInput;
2049
2473
  transferredFrom?: Prisma.ApplicationUpdateOneWithoutTransferredToNestedInput;
2050
2474
  transferredTo?: Prisma.ApplicationUpdateOneWithoutTransferredFromNestedInput;
2475
+ supersededBy?: Prisma.ApplicationUpdateOneWithoutSupersededApplicationsNestedInput;
2476
+ supersededApplications?: Prisma.ApplicationUpdateManyWithoutSupersededByNestedInput;
2051
2477
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceApplicationNestedInput;
2052
2478
  incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetApplicationNestedInput;
2053
2479
  events?: Prisma.ApplicationEventUpdateManyWithoutApplicationNestedInput;
@@ -2075,6 +2501,8 @@ export type ApplicationUncheckedUpdateWithoutRefundsInput = {
2075
2501
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2076
2502
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2077
2503
  transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2504
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2505
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2078
2506
  phases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutApplicationNestedInput;
2079
2507
  documents?: Prisma.ApplicationDocumentUncheckedUpdateManyWithoutApplicationNestedInput;
2080
2508
  payments?: Prisma.ApplicationPaymentUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -2082,6 +2510,7 @@ export type ApplicationUncheckedUpdateWithoutRefundsInput = {
2082
2510
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutApplicationNestedInput;
2083
2511
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutApplicationNestedInput;
2084
2512
  transferredTo?: Prisma.ApplicationUncheckedUpdateOneWithoutTransferredFromNestedInput;
2513
+ supersededApplications?: Prisma.ApplicationUncheckedUpdateManyWithoutSupersededByNestedInput;
2085
2514
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceApplicationNestedInput;
2086
2515
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetApplicationNestedInput;
2087
2516
  events?: Prisma.ApplicationEventUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -2102,6 +2531,7 @@ export type ApplicationCreateWithoutPhasesInput = {
2102
2531
  terminatedAt?: Date | string | null;
2103
2532
  createdAt?: Date | string;
2104
2533
  updatedAt?: Date | string;
2534
+ supersededAt?: Date | string | null;
2105
2535
  tenant: Prisma.TenantCreateNestedOneWithoutApplicationsInput;
2106
2536
  propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutApplicationsInput;
2107
2537
  buyer: Prisma.UserCreateNestedOneWithoutApplicationsInput;
@@ -2115,6 +2545,8 @@ export type ApplicationCreateWithoutPhasesInput = {
2115
2545
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutApplicationInput;
2116
2546
  transferredFrom?: Prisma.ApplicationCreateNestedOneWithoutTransferredToInput;
2117
2547
  transferredTo?: Prisma.ApplicationCreateNestedOneWithoutTransferredFromInput;
2548
+ supersededBy?: Prisma.ApplicationCreateNestedOneWithoutSupersededApplicationsInput;
2549
+ supersededApplications?: Prisma.ApplicationCreateNestedManyWithoutSupersededByInput;
2118
2550
  outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceApplicationInput;
2119
2551
  incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetApplicationInput;
2120
2552
  events?: Prisma.ApplicationEventCreateNestedManyWithoutApplicationInput;
@@ -2143,12 +2575,15 @@ export type ApplicationUncheckedCreateWithoutPhasesInput = {
2143
2575
  createdAt?: Date | string;
2144
2576
  updatedAt?: Date | string;
2145
2577
  transferredFromId?: string | null;
2578
+ supersededById?: string | null;
2579
+ supersededAt?: Date | string | null;
2146
2580
  documents?: Prisma.ApplicationDocumentUncheckedCreateNestedManyWithoutApplicationInput;
2147
2581
  payments?: Prisma.ApplicationPaymentUncheckedCreateNestedManyWithoutApplicationInput;
2148
2582
  terminations?: Prisma.ApplicationTerminationUncheckedCreateNestedManyWithoutApplicationInput;
2149
2583
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutApplicationInput;
2150
2584
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutApplicationInput;
2151
2585
  transferredTo?: Prisma.ApplicationUncheckedCreateNestedOneWithoutTransferredFromInput;
2586
+ supersededApplications?: Prisma.ApplicationUncheckedCreateNestedManyWithoutSupersededByInput;
2152
2587
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceApplicationInput;
2153
2588
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetApplicationInput;
2154
2589
  events?: Prisma.ApplicationEventUncheckedCreateNestedManyWithoutApplicationInput;
@@ -2174,6 +2609,7 @@ export type ApplicationCreateWithoutCurrentPhaseInput = {
2174
2609
  terminatedAt?: Date | string | null;
2175
2610
  createdAt?: Date | string;
2176
2611
  updatedAt?: Date | string;
2612
+ supersededAt?: Date | string | null;
2177
2613
  tenant: Prisma.TenantCreateNestedOneWithoutApplicationsInput;
2178
2614
  propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutApplicationsInput;
2179
2615
  buyer: Prisma.UserCreateNestedOneWithoutApplicationsInput;
@@ -2187,6 +2623,8 @@ export type ApplicationCreateWithoutCurrentPhaseInput = {
2187
2623
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutApplicationInput;
2188
2624
  transferredFrom?: Prisma.ApplicationCreateNestedOneWithoutTransferredToInput;
2189
2625
  transferredTo?: Prisma.ApplicationCreateNestedOneWithoutTransferredFromInput;
2626
+ supersededBy?: Prisma.ApplicationCreateNestedOneWithoutSupersededApplicationsInput;
2627
+ supersededApplications?: Prisma.ApplicationCreateNestedManyWithoutSupersededByInput;
2190
2628
  outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceApplicationInput;
2191
2629
  incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetApplicationInput;
2192
2630
  events?: Prisma.ApplicationEventCreateNestedManyWithoutApplicationInput;
@@ -2214,6 +2652,8 @@ export type ApplicationUncheckedCreateWithoutCurrentPhaseInput = {
2214
2652
  createdAt?: Date | string;
2215
2653
  updatedAt?: Date | string;
2216
2654
  transferredFromId?: string | null;
2655
+ supersededById?: string | null;
2656
+ supersededAt?: Date | string | null;
2217
2657
  phases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutApplicationInput;
2218
2658
  documents?: Prisma.ApplicationDocumentUncheckedCreateNestedManyWithoutApplicationInput;
2219
2659
  payments?: Prisma.ApplicationPaymentUncheckedCreateNestedManyWithoutApplicationInput;
@@ -2221,6 +2661,7 @@ export type ApplicationUncheckedCreateWithoutCurrentPhaseInput = {
2221
2661
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutApplicationInput;
2222
2662
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutApplicationInput;
2223
2663
  transferredTo?: Prisma.ApplicationUncheckedCreateNestedOneWithoutTransferredFromInput;
2664
+ supersededApplications?: Prisma.ApplicationUncheckedCreateNestedManyWithoutSupersededByInput;
2224
2665
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceApplicationInput;
2225
2666
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetApplicationInput;
2226
2667
  events?: Prisma.ApplicationEventUncheckedCreateNestedManyWithoutApplicationInput;
@@ -2259,6 +2700,7 @@ export type ApplicationUpdateWithoutPhasesInput = {
2259
2700
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2260
2701
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2261
2702
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2703
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2262
2704
  tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationsNestedInput;
2263
2705
  propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutApplicationsNestedInput;
2264
2706
  buyer?: Prisma.UserUpdateOneRequiredWithoutApplicationsNestedInput;
@@ -2272,6 +2714,8 @@ export type ApplicationUpdateWithoutPhasesInput = {
2272
2714
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutApplicationNestedInput;
2273
2715
  transferredFrom?: Prisma.ApplicationUpdateOneWithoutTransferredToNestedInput;
2274
2716
  transferredTo?: Prisma.ApplicationUpdateOneWithoutTransferredFromNestedInput;
2717
+ supersededBy?: Prisma.ApplicationUpdateOneWithoutSupersededApplicationsNestedInput;
2718
+ supersededApplications?: Prisma.ApplicationUpdateManyWithoutSupersededByNestedInput;
2275
2719
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceApplicationNestedInput;
2276
2720
  incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetApplicationNestedInput;
2277
2721
  events?: Prisma.ApplicationEventUpdateManyWithoutApplicationNestedInput;
@@ -2300,12 +2744,15 @@ export type ApplicationUncheckedUpdateWithoutPhasesInput = {
2300
2744
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2301
2745
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2302
2746
  transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2747
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2748
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2303
2749
  documents?: Prisma.ApplicationDocumentUncheckedUpdateManyWithoutApplicationNestedInput;
2304
2750
  payments?: Prisma.ApplicationPaymentUncheckedUpdateManyWithoutApplicationNestedInput;
2305
2751
  terminations?: Prisma.ApplicationTerminationUncheckedUpdateManyWithoutApplicationNestedInput;
2306
2752
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutApplicationNestedInput;
2307
2753
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutApplicationNestedInput;
2308
2754
  transferredTo?: Prisma.ApplicationUncheckedUpdateOneWithoutTransferredFromNestedInput;
2755
+ supersededApplications?: Prisma.ApplicationUncheckedUpdateManyWithoutSupersededByNestedInput;
2309
2756
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceApplicationNestedInput;
2310
2757
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetApplicationNestedInput;
2311
2758
  events?: Prisma.ApplicationEventUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -2340,6 +2787,7 @@ export type ApplicationCreateWithoutEventsInput = {
2340
2787
  terminatedAt?: Date | string | null;
2341
2788
  createdAt?: Date | string;
2342
2789
  updatedAt?: Date | string;
2790
+ supersededAt?: Date | string | null;
2343
2791
  tenant: Prisma.TenantCreateNestedOneWithoutApplicationsInput;
2344
2792
  propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutApplicationsInput;
2345
2793
  buyer: Prisma.UserCreateNestedOneWithoutApplicationsInput;
@@ -2354,6 +2802,8 @@ export type ApplicationCreateWithoutEventsInput = {
2354
2802
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutApplicationInput;
2355
2803
  transferredFrom?: Prisma.ApplicationCreateNestedOneWithoutTransferredToInput;
2356
2804
  transferredTo?: Prisma.ApplicationCreateNestedOneWithoutTransferredFromInput;
2805
+ supersededBy?: Prisma.ApplicationCreateNestedOneWithoutSupersededApplicationsInput;
2806
+ supersededApplications?: Prisma.ApplicationCreateNestedManyWithoutSupersededByInput;
2357
2807
  outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceApplicationInput;
2358
2808
  incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetApplicationInput;
2359
2809
  refunds?: Prisma.ApplicationRefundCreateNestedManyWithoutApplicationInput;
@@ -2381,6 +2831,8 @@ export type ApplicationUncheckedCreateWithoutEventsInput = {
2381
2831
  createdAt?: Date | string;
2382
2832
  updatedAt?: Date | string;
2383
2833
  transferredFromId?: string | null;
2834
+ supersededById?: string | null;
2835
+ supersededAt?: Date | string | null;
2384
2836
  phases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutApplicationInput;
2385
2837
  documents?: Prisma.ApplicationDocumentUncheckedCreateNestedManyWithoutApplicationInput;
2386
2838
  payments?: Prisma.ApplicationPaymentUncheckedCreateNestedManyWithoutApplicationInput;
@@ -2388,6 +2840,7 @@ export type ApplicationUncheckedCreateWithoutEventsInput = {
2388
2840
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutApplicationInput;
2389
2841
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutApplicationInput;
2390
2842
  transferredTo?: Prisma.ApplicationUncheckedCreateNestedOneWithoutTransferredFromInput;
2843
+ supersededApplications?: Prisma.ApplicationUncheckedCreateNestedManyWithoutSupersededByInput;
2391
2844
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceApplicationInput;
2392
2845
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetApplicationInput;
2393
2846
  refunds?: Prisma.ApplicationRefundUncheckedCreateNestedManyWithoutApplicationInput;
@@ -2421,6 +2874,7 @@ export type ApplicationUpdateWithoutEventsInput = {
2421
2874
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2422
2875
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2423
2876
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2877
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2424
2878
  tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationsNestedInput;
2425
2879
  propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutApplicationsNestedInput;
2426
2880
  buyer?: Prisma.UserUpdateOneRequiredWithoutApplicationsNestedInput;
@@ -2435,6 +2889,8 @@ export type ApplicationUpdateWithoutEventsInput = {
2435
2889
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutApplicationNestedInput;
2436
2890
  transferredFrom?: Prisma.ApplicationUpdateOneWithoutTransferredToNestedInput;
2437
2891
  transferredTo?: Prisma.ApplicationUpdateOneWithoutTransferredFromNestedInput;
2892
+ supersededBy?: Prisma.ApplicationUpdateOneWithoutSupersededApplicationsNestedInput;
2893
+ supersededApplications?: Prisma.ApplicationUpdateManyWithoutSupersededByNestedInput;
2438
2894
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceApplicationNestedInput;
2439
2895
  incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetApplicationNestedInput;
2440
2896
  refunds?: Prisma.ApplicationRefundUpdateManyWithoutApplicationNestedInput;
@@ -2462,6 +2918,8 @@ export type ApplicationUncheckedUpdateWithoutEventsInput = {
2462
2918
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2463
2919
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2464
2920
  transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2921
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2922
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2465
2923
  phases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutApplicationNestedInput;
2466
2924
  documents?: Prisma.ApplicationDocumentUncheckedUpdateManyWithoutApplicationNestedInput;
2467
2925
  payments?: Prisma.ApplicationPaymentUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -2469,6 +2927,7 @@ export type ApplicationUncheckedUpdateWithoutEventsInput = {
2469
2927
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutApplicationNestedInput;
2470
2928
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutApplicationNestedInput;
2471
2929
  transferredTo?: Prisma.ApplicationUncheckedUpdateOneWithoutTransferredFromNestedInput;
2930
+ supersededApplications?: Prisma.ApplicationUncheckedUpdateManyWithoutSupersededByNestedInput;
2472
2931
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceApplicationNestedInput;
2473
2932
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetApplicationNestedInput;
2474
2933
  refunds?: Prisma.ApplicationRefundUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -2489,6 +2948,7 @@ export type ApplicationCreateWithoutPaymentsInput = {
2489
2948
  terminatedAt?: Date | string | null;
2490
2949
  createdAt?: Date | string;
2491
2950
  updatedAt?: Date | string;
2951
+ supersededAt?: Date | string | null;
2492
2952
  tenant: Prisma.TenantCreateNestedOneWithoutApplicationsInput;
2493
2953
  propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutApplicationsInput;
2494
2954
  buyer: Prisma.UserCreateNestedOneWithoutApplicationsInput;
@@ -2502,6 +2962,8 @@ export type ApplicationCreateWithoutPaymentsInput = {
2502
2962
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutApplicationInput;
2503
2963
  transferredFrom?: Prisma.ApplicationCreateNestedOneWithoutTransferredToInput;
2504
2964
  transferredTo?: Prisma.ApplicationCreateNestedOneWithoutTransferredFromInput;
2965
+ supersededBy?: Prisma.ApplicationCreateNestedOneWithoutSupersededApplicationsInput;
2966
+ supersededApplications?: Prisma.ApplicationCreateNestedManyWithoutSupersededByInput;
2505
2967
  outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceApplicationInput;
2506
2968
  incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetApplicationInput;
2507
2969
  events?: Prisma.ApplicationEventCreateNestedManyWithoutApplicationInput;
@@ -2530,12 +2992,15 @@ export type ApplicationUncheckedCreateWithoutPaymentsInput = {
2530
2992
  createdAt?: Date | string;
2531
2993
  updatedAt?: Date | string;
2532
2994
  transferredFromId?: string | null;
2995
+ supersededById?: string | null;
2996
+ supersededAt?: Date | string | null;
2533
2997
  phases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutApplicationInput;
2534
2998
  documents?: Prisma.ApplicationDocumentUncheckedCreateNestedManyWithoutApplicationInput;
2535
2999
  terminations?: Prisma.ApplicationTerminationUncheckedCreateNestedManyWithoutApplicationInput;
2536
3000
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutApplicationInput;
2537
3001
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutApplicationInput;
2538
3002
  transferredTo?: Prisma.ApplicationUncheckedCreateNestedOneWithoutTransferredFromInput;
3003
+ supersededApplications?: Prisma.ApplicationUncheckedCreateNestedManyWithoutSupersededByInput;
2539
3004
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceApplicationInput;
2540
3005
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetApplicationInput;
2541
3006
  events?: Prisma.ApplicationEventUncheckedCreateNestedManyWithoutApplicationInput;
@@ -2570,6 +3035,7 @@ export type ApplicationUpdateWithoutPaymentsInput = {
2570
3035
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2571
3036
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2572
3037
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3038
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2573
3039
  tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationsNestedInput;
2574
3040
  propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutApplicationsNestedInput;
2575
3041
  buyer?: Prisma.UserUpdateOneRequiredWithoutApplicationsNestedInput;
@@ -2583,6 +3049,8 @@ export type ApplicationUpdateWithoutPaymentsInput = {
2583
3049
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutApplicationNestedInput;
2584
3050
  transferredFrom?: Prisma.ApplicationUpdateOneWithoutTransferredToNestedInput;
2585
3051
  transferredTo?: Prisma.ApplicationUpdateOneWithoutTransferredFromNestedInput;
3052
+ supersededBy?: Prisma.ApplicationUpdateOneWithoutSupersededApplicationsNestedInput;
3053
+ supersededApplications?: Prisma.ApplicationUpdateManyWithoutSupersededByNestedInput;
2586
3054
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceApplicationNestedInput;
2587
3055
  incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetApplicationNestedInput;
2588
3056
  events?: Prisma.ApplicationEventUpdateManyWithoutApplicationNestedInput;
@@ -2611,12 +3079,15 @@ export type ApplicationUncheckedUpdateWithoutPaymentsInput = {
2611
3079
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2612
3080
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2613
3081
  transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3082
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3083
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2614
3084
  phases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutApplicationNestedInput;
2615
3085
  documents?: Prisma.ApplicationDocumentUncheckedUpdateManyWithoutApplicationNestedInput;
2616
3086
  terminations?: Prisma.ApplicationTerminationUncheckedUpdateManyWithoutApplicationNestedInput;
2617
3087
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutApplicationNestedInput;
2618
3088
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutApplicationNestedInput;
2619
3089
  transferredTo?: Prisma.ApplicationUncheckedUpdateOneWithoutTransferredFromNestedInput;
3090
+ supersededApplications?: Prisma.ApplicationUncheckedUpdateManyWithoutSupersededByNestedInput;
2620
3091
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceApplicationNestedInput;
2621
3092
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetApplicationNestedInput;
2622
3093
  events?: Prisma.ApplicationEventUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -2638,6 +3109,7 @@ export type ApplicationCreateWithoutDocumentsInput = {
2638
3109
  terminatedAt?: Date | string | null;
2639
3110
  createdAt?: Date | string;
2640
3111
  updatedAt?: Date | string;
3112
+ supersededAt?: Date | string | null;
2641
3113
  tenant: Prisma.TenantCreateNestedOneWithoutApplicationsInput;
2642
3114
  propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutApplicationsInput;
2643
3115
  buyer: Prisma.UserCreateNestedOneWithoutApplicationsInput;
@@ -2651,6 +3123,8 @@ export type ApplicationCreateWithoutDocumentsInput = {
2651
3123
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutApplicationInput;
2652
3124
  transferredFrom?: Prisma.ApplicationCreateNestedOneWithoutTransferredToInput;
2653
3125
  transferredTo?: Prisma.ApplicationCreateNestedOneWithoutTransferredFromInput;
3126
+ supersededBy?: Prisma.ApplicationCreateNestedOneWithoutSupersededApplicationsInput;
3127
+ supersededApplications?: Prisma.ApplicationCreateNestedManyWithoutSupersededByInput;
2654
3128
  outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceApplicationInput;
2655
3129
  incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetApplicationInput;
2656
3130
  events?: Prisma.ApplicationEventCreateNestedManyWithoutApplicationInput;
@@ -2679,12 +3153,15 @@ export type ApplicationUncheckedCreateWithoutDocumentsInput = {
2679
3153
  createdAt?: Date | string;
2680
3154
  updatedAt?: Date | string;
2681
3155
  transferredFromId?: string | null;
3156
+ supersededById?: string | null;
3157
+ supersededAt?: Date | string | null;
2682
3158
  phases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutApplicationInput;
2683
3159
  payments?: Prisma.ApplicationPaymentUncheckedCreateNestedManyWithoutApplicationInput;
2684
3160
  terminations?: Prisma.ApplicationTerminationUncheckedCreateNestedManyWithoutApplicationInput;
2685
3161
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutApplicationInput;
2686
3162
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutApplicationInput;
2687
3163
  transferredTo?: Prisma.ApplicationUncheckedCreateNestedOneWithoutTransferredFromInput;
3164
+ supersededApplications?: Prisma.ApplicationUncheckedCreateNestedManyWithoutSupersededByInput;
2688
3165
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceApplicationInput;
2689
3166
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetApplicationInput;
2690
3167
  events?: Prisma.ApplicationEventUncheckedCreateNestedManyWithoutApplicationInput;
@@ -2719,6 +3196,7 @@ export type ApplicationUpdateWithoutDocumentsInput = {
2719
3196
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2720
3197
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2721
3198
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3199
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2722
3200
  tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationsNestedInput;
2723
3201
  propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutApplicationsNestedInput;
2724
3202
  buyer?: Prisma.UserUpdateOneRequiredWithoutApplicationsNestedInput;
@@ -2732,6 +3210,8 @@ export type ApplicationUpdateWithoutDocumentsInput = {
2732
3210
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutApplicationNestedInput;
2733
3211
  transferredFrom?: Prisma.ApplicationUpdateOneWithoutTransferredToNestedInput;
2734
3212
  transferredTo?: Prisma.ApplicationUpdateOneWithoutTransferredFromNestedInput;
3213
+ supersededBy?: Prisma.ApplicationUpdateOneWithoutSupersededApplicationsNestedInput;
3214
+ supersededApplications?: Prisma.ApplicationUpdateManyWithoutSupersededByNestedInput;
2735
3215
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceApplicationNestedInput;
2736
3216
  incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetApplicationNestedInput;
2737
3217
  events?: Prisma.ApplicationEventUpdateManyWithoutApplicationNestedInput;
@@ -2760,12 +3240,15 @@ export type ApplicationUncheckedUpdateWithoutDocumentsInput = {
2760
3240
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2761
3241
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2762
3242
  transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3243
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3244
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2763
3245
  phases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutApplicationNestedInput;
2764
3246
  payments?: Prisma.ApplicationPaymentUncheckedUpdateManyWithoutApplicationNestedInput;
2765
3247
  terminations?: Prisma.ApplicationTerminationUncheckedUpdateManyWithoutApplicationNestedInput;
2766
3248
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutApplicationNestedInput;
2767
3249
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutApplicationNestedInput;
2768
3250
  transferredTo?: Prisma.ApplicationUncheckedUpdateOneWithoutTransferredFromNestedInput;
3251
+ supersededApplications?: Prisma.ApplicationUncheckedUpdateManyWithoutSupersededByNestedInput;
2769
3252
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceApplicationNestedInput;
2770
3253
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetApplicationNestedInput;
2771
3254
  events?: Prisma.ApplicationEventUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -2787,6 +3270,7 @@ export type ApplicationCreateWithoutOfferLettersInput = {
2787
3270
  terminatedAt?: Date | string | null;
2788
3271
  createdAt?: Date | string;
2789
3272
  updatedAt?: Date | string;
3273
+ supersededAt?: Date | string | null;
2790
3274
  tenant: Prisma.TenantCreateNestedOneWithoutApplicationsInput;
2791
3275
  propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutApplicationsInput;
2792
3276
  buyer: Prisma.UserCreateNestedOneWithoutApplicationsInput;
@@ -2800,6 +3284,8 @@ export type ApplicationCreateWithoutOfferLettersInput = {
2800
3284
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutApplicationInput;
2801
3285
  transferredFrom?: Prisma.ApplicationCreateNestedOneWithoutTransferredToInput;
2802
3286
  transferredTo?: Prisma.ApplicationCreateNestedOneWithoutTransferredFromInput;
3287
+ supersededBy?: Prisma.ApplicationCreateNestedOneWithoutSupersededApplicationsInput;
3288
+ supersededApplications?: Prisma.ApplicationCreateNestedManyWithoutSupersededByInput;
2803
3289
  outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceApplicationInput;
2804
3290
  incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetApplicationInput;
2805
3291
  events?: Prisma.ApplicationEventCreateNestedManyWithoutApplicationInput;
@@ -2828,12 +3314,15 @@ export type ApplicationUncheckedCreateWithoutOfferLettersInput = {
2828
3314
  createdAt?: Date | string;
2829
3315
  updatedAt?: Date | string;
2830
3316
  transferredFromId?: string | null;
3317
+ supersededById?: string | null;
3318
+ supersededAt?: Date | string | null;
2831
3319
  phases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutApplicationInput;
2832
3320
  documents?: Prisma.ApplicationDocumentUncheckedCreateNestedManyWithoutApplicationInput;
2833
3321
  payments?: Prisma.ApplicationPaymentUncheckedCreateNestedManyWithoutApplicationInput;
2834
3322
  terminations?: Prisma.ApplicationTerminationUncheckedCreateNestedManyWithoutApplicationInput;
2835
3323
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutApplicationInput;
2836
3324
  transferredTo?: Prisma.ApplicationUncheckedCreateNestedOneWithoutTransferredFromInput;
3325
+ supersededApplications?: Prisma.ApplicationUncheckedCreateNestedManyWithoutSupersededByInput;
2837
3326
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceApplicationInput;
2838
3327
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetApplicationInput;
2839
3328
  events?: Prisma.ApplicationEventUncheckedCreateNestedManyWithoutApplicationInput;
@@ -2868,6 +3357,7 @@ export type ApplicationUpdateWithoutOfferLettersInput = {
2868
3357
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2869
3358
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2870
3359
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3360
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2871
3361
  tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationsNestedInput;
2872
3362
  propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutApplicationsNestedInput;
2873
3363
  buyer?: Prisma.UserUpdateOneRequiredWithoutApplicationsNestedInput;
@@ -2881,6 +3371,8 @@ export type ApplicationUpdateWithoutOfferLettersInput = {
2881
3371
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutApplicationNestedInput;
2882
3372
  transferredFrom?: Prisma.ApplicationUpdateOneWithoutTransferredToNestedInput;
2883
3373
  transferredTo?: Prisma.ApplicationUpdateOneWithoutTransferredFromNestedInput;
3374
+ supersededBy?: Prisma.ApplicationUpdateOneWithoutSupersededApplicationsNestedInput;
3375
+ supersededApplications?: Prisma.ApplicationUpdateManyWithoutSupersededByNestedInput;
2884
3376
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceApplicationNestedInput;
2885
3377
  incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetApplicationNestedInput;
2886
3378
  events?: Prisma.ApplicationEventUpdateManyWithoutApplicationNestedInput;
@@ -2909,12 +3401,15 @@ export type ApplicationUncheckedUpdateWithoutOfferLettersInput = {
2909
3401
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2910
3402
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2911
3403
  transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3404
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3405
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2912
3406
  phases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutApplicationNestedInput;
2913
3407
  documents?: Prisma.ApplicationDocumentUncheckedUpdateManyWithoutApplicationNestedInput;
2914
3408
  payments?: Prisma.ApplicationPaymentUncheckedUpdateManyWithoutApplicationNestedInput;
2915
3409
  terminations?: Prisma.ApplicationTerminationUncheckedUpdateManyWithoutApplicationNestedInput;
2916
3410
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutApplicationNestedInput;
2917
3411
  transferredTo?: Prisma.ApplicationUncheckedUpdateOneWithoutTransferredFromNestedInput;
3412
+ supersededApplications?: Prisma.ApplicationUncheckedUpdateManyWithoutSupersededByNestedInput;
2918
3413
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceApplicationNestedInput;
2919
3414
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetApplicationNestedInput;
2920
3415
  events?: Prisma.ApplicationEventUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -2936,6 +3431,7 @@ export type ApplicationCreateWithoutTerminationsInput = {
2936
3431
  terminatedAt?: Date | string | null;
2937
3432
  createdAt?: Date | string;
2938
3433
  updatedAt?: Date | string;
3434
+ supersededAt?: Date | string | null;
2939
3435
  tenant: Prisma.TenantCreateNestedOneWithoutApplicationsInput;
2940
3436
  propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutApplicationsInput;
2941
3437
  buyer: Prisma.UserCreateNestedOneWithoutApplicationsInput;
@@ -2949,6 +3445,8 @@ export type ApplicationCreateWithoutTerminationsInput = {
2949
3445
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutApplicationInput;
2950
3446
  transferredFrom?: Prisma.ApplicationCreateNestedOneWithoutTransferredToInput;
2951
3447
  transferredTo?: Prisma.ApplicationCreateNestedOneWithoutTransferredFromInput;
3448
+ supersededBy?: Prisma.ApplicationCreateNestedOneWithoutSupersededApplicationsInput;
3449
+ supersededApplications?: Prisma.ApplicationCreateNestedManyWithoutSupersededByInput;
2952
3450
  outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceApplicationInput;
2953
3451
  incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetApplicationInput;
2954
3452
  events?: Prisma.ApplicationEventCreateNestedManyWithoutApplicationInput;
@@ -2977,12 +3475,15 @@ export type ApplicationUncheckedCreateWithoutTerminationsInput = {
2977
3475
  createdAt?: Date | string;
2978
3476
  updatedAt?: Date | string;
2979
3477
  transferredFromId?: string | null;
3478
+ supersededById?: string | null;
3479
+ supersededAt?: Date | string | null;
2980
3480
  phases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutApplicationInput;
2981
3481
  documents?: Prisma.ApplicationDocumentUncheckedCreateNestedManyWithoutApplicationInput;
2982
3482
  payments?: Prisma.ApplicationPaymentUncheckedCreateNestedManyWithoutApplicationInput;
2983
3483
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutApplicationInput;
2984
3484
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutApplicationInput;
2985
3485
  transferredTo?: Prisma.ApplicationUncheckedCreateNestedOneWithoutTransferredFromInput;
3486
+ supersededApplications?: Prisma.ApplicationUncheckedCreateNestedManyWithoutSupersededByInput;
2986
3487
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceApplicationInput;
2987
3488
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetApplicationInput;
2988
3489
  events?: Prisma.ApplicationEventUncheckedCreateNestedManyWithoutApplicationInput;
@@ -3017,6 +3518,7 @@ export type ApplicationUpdateWithoutTerminationsInput = {
3017
3518
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3018
3519
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3019
3520
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3521
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3020
3522
  tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationsNestedInput;
3021
3523
  propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutApplicationsNestedInput;
3022
3524
  buyer?: Prisma.UserUpdateOneRequiredWithoutApplicationsNestedInput;
@@ -3030,6 +3532,8 @@ export type ApplicationUpdateWithoutTerminationsInput = {
3030
3532
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutApplicationNestedInput;
3031
3533
  transferredFrom?: Prisma.ApplicationUpdateOneWithoutTransferredToNestedInput;
3032
3534
  transferredTo?: Prisma.ApplicationUpdateOneWithoutTransferredFromNestedInput;
3535
+ supersededBy?: Prisma.ApplicationUpdateOneWithoutSupersededApplicationsNestedInput;
3536
+ supersededApplications?: Prisma.ApplicationUpdateManyWithoutSupersededByNestedInput;
3033
3537
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceApplicationNestedInput;
3034
3538
  incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetApplicationNestedInput;
3035
3539
  events?: Prisma.ApplicationEventUpdateManyWithoutApplicationNestedInput;
@@ -3058,12 +3562,15 @@ export type ApplicationUncheckedUpdateWithoutTerminationsInput = {
3058
3562
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3059
3563
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3060
3564
  transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3565
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3566
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3061
3567
  phases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutApplicationNestedInput;
3062
3568
  documents?: Prisma.ApplicationDocumentUncheckedUpdateManyWithoutApplicationNestedInput;
3063
3569
  payments?: Prisma.ApplicationPaymentUncheckedUpdateManyWithoutApplicationNestedInput;
3064
3570
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutApplicationNestedInput;
3065
3571
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutApplicationNestedInput;
3066
3572
  transferredTo?: Prisma.ApplicationUncheckedUpdateOneWithoutTransferredFromNestedInput;
3573
+ supersededApplications?: Prisma.ApplicationUncheckedUpdateManyWithoutSupersededByNestedInput;
3067
3574
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceApplicationNestedInput;
3068
3575
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetApplicationNestedInput;
3069
3576
  events?: Prisma.ApplicationEventUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -3085,6 +3592,7 @@ export type ApplicationCreateWithoutPaymentMethodChangeRequestsInput = {
3085
3592
  terminatedAt?: Date | string | null;
3086
3593
  createdAt?: Date | string;
3087
3594
  updatedAt?: Date | string;
3595
+ supersededAt?: Date | string | null;
3088
3596
  tenant: Prisma.TenantCreateNestedOneWithoutApplicationsInput;
3089
3597
  propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutApplicationsInput;
3090
3598
  buyer: Prisma.UserCreateNestedOneWithoutApplicationsInput;
@@ -3098,6 +3606,8 @@ export type ApplicationCreateWithoutPaymentMethodChangeRequestsInput = {
3098
3606
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutApplicationInput;
3099
3607
  transferredFrom?: Prisma.ApplicationCreateNestedOneWithoutTransferredToInput;
3100
3608
  transferredTo?: Prisma.ApplicationCreateNestedOneWithoutTransferredFromInput;
3609
+ supersededBy?: Prisma.ApplicationCreateNestedOneWithoutSupersededApplicationsInput;
3610
+ supersededApplications?: Prisma.ApplicationCreateNestedManyWithoutSupersededByInput;
3101
3611
  outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceApplicationInput;
3102
3612
  incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetApplicationInput;
3103
3613
  events?: Prisma.ApplicationEventCreateNestedManyWithoutApplicationInput;
@@ -3126,12 +3636,15 @@ export type ApplicationUncheckedCreateWithoutPaymentMethodChangeRequestsInput =
3126
3636
  createdAt?: Date | string;
3127
3637
  updatedAt?: Date | string;
3128
3638
  transferredFromId?: string | null;
3639
+ supersededById?: string | null;
3640
+ supersededAt?: Date | string | null;
3129
3641
  phases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutApplicationInput;
3130
3642
  documents?: Prisma.ApplicationDocumentUncheckedCreateNestedManyWithoutApplicationInput;
3131
3643
  payments?: Prisma.ApplicationPaymentUncheckedCreateNestedManyWithoutApplicationInput;
3132
3644
  terminations?: Prisma.ApplicationTerminationUncheckedCreateNestedManyWithoutApplicationInput;
3133
3645
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutApplicationInput;
3134
3646
  transferredTo?: Prisma.ApplicationUncheckedCreateNestedOneWithoutTransferredFromInput;
3647
+ supersededApplications?: Prisma.ApplicationUncheckedCreateNestedManyWithoutSupersededByInput;
3135
3648
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceApplicationInput;
3136
3649
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetApplicationInput;
3137
3650
  events?: Prisma.ApplicationEventUncheckedCreateNestedManyWithoutApplicationInput;
@@ -3166,6 +3679,7 @@ export type ApplicationUpdateWithoutPaymentMethodChangeRequestsInput = {
3166
3679
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3167
3680
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3168
3681
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3682
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3169
3683
  tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationsNestedInput;
3170
3684
  propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutApplicationsNestedInput;
3171
3685
  buyer?: Prisma.UserUpdateOneRequiredWithoutApplicationsNestedInput;
@@ -3179,6 +3693,8 @@ export type ApplicationUpdateWithoutPaymentMethodChangeRequestsInput = {
3179
3693
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutApplicationNestedInput;
3180
3694
  transferredFrom?: Prisma.ApplicationUpdateOneWithoutTransferredToNestedInput;
3181
3695
  transferredTo?: Prisma.ApplicationUpdateOneWithoutTransferredFromNestedInput;
3696
+ supersededBy?: Prisma.ApplicationUpdateOneWithoutSupersededApplicationsNestedInput;
3697
+ supersededApplications?: Prisma.ApplicationUpdateManyWithoutSupersededByNestedInput;
3182
3698
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceApplicationNestedInput;
3183
3699
  incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetApplicationNestedInput;
3184
3700
  events?: Prisma.ApplicationEventUpdateManyWithoutApplicationNestedInput;
@@ -3207,12 +3723,15 @@ export type ApplicationUncheckedUpdateWithoutPaymentMethodChangeRequestsInput =
3207
3723
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3208
3724
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3209
3725
  transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3726
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3727
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3210
3728
  phases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutApplicationNestedInput;
3211
3729
  documents?: Prisma.ApplicationDocumentUncheckedUpdateManyWithoutApplicationNestedInput;
3212
3730
  payments?: Prisma.ApplicationPaymentUncheckedUpdateManyWithoutApplicationNestedInput;
3213
3731
  terminations?: Prisma.ApplicationTerminationUncheckedUpdateManyWithoutApplicationNestedInput;
3214
3732
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutApplicationNestedInput;
3215
3733
  transferredTo?: Prisma.ApplicationUncheckedUpdateOneWithoutTransferredFromNestedInput;
3734
+ supersededApplications?: Prisma.ApplicationUncheckedUpdateManyWithoutSupersededByNestedInput;
3216
3735
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceApplicationNestedInput;
3217
3736
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetApplicationNestedInput;
3218
3737
  events?: Prisma.ApplicationEventUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -3234,6 +3753,7 @@ export type ApplicationCreateWithoutOutgoingTransferRequestsInput = {
3234
3753
  terminatedAt?: Date | string | null;
3235
3754
  createdAt?: Date | string;
3236
3755
  updatedAt?: Date | string;
3756
+ supersededAt?: Date | string | null;
3237
3757
  tenant: Prisma.TenantCreateNestedOneWithoutApplicationsInput;
3238
3758
  propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutApplicationsInput;
3239
3759
  buyer: Prisma.UserCreateNestedOneWithoutApplicationsInput;
@@ -3248,6 +3768,8 @@ export type ApplicationCreateWithoutOutgoingTransferRequestsInput = {
3248
3768
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutApplicationInput;
3249
3769
  transferredFrom?: Prisma.ApplicationCreateNestedOneWithoutTransferredToInput;
3250
3770
  transferredTo?: Prisma.ApplicationCreateNestedOneWithoutTransferredFromInput;
3771
+ supersededBy?: Prisma.ApplicationCreateNestedOneWithoutSupersededApplicationsInput;
3772
+ supersededApplications?: Prisma.ApplicationCreateNestedManyWithoutSupersededByInput;
3251
3773
  incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetApplicationInput;
3252
3774
  events?: Prisma.ApplicationEventCreateNestedManyWithoutApplicationInput;
3253
3775
  refunds?: Prisma.ApplicationRefundCreateNestedManyWithoutApplicationInput;
@@ -3275,6 +3797,8 @@ export type ApplicationUncheckedCreateWithoutOutgoingTransferRequestsInput = {
3275
3797
  createdAt?: Date | string;
3276
3798
  updatedAt?: Date | string;
3277
3799
  transferredFromId?: string | null;
3800
+ supersededById?: string | null;
3801
+ supersededAt?: Date | string | null;
3278
3802
  phases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutApplicationInput;
3279
3803
  documents?: Prisma.ApplicationDocumentUncheckedCreateNestedManyWithoutApplicationInput;
3280
3804
  payments?: Prisma.ApplicationPaymentUncheckedCreateNestedManyWithoutApplicationInput;
@@ -3282,6 +3806,7 @@ export type ApplicationUncheckedCreateWithoutOutgoingTransferRequestsInput = {
3282
3806
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutApplicationInput;
3283
3807
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutApplicationInput;
3284
3808
  transferredTo?: Prisma.ApplicationUncheckedCreateNestedOneWithoutTransferredFromInput;
3809
+ supersededApplications?: Prisma.ApplicationUncheckedCreateNestedManyWithoutSupersededByInput;
3285
3810
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetApplicationInput;
3286
3811
  events?: Prisma.ApplicationEventUncheckedCreateNestedManyWithoutApplicationInput;
3287
3812
  refunds?: Prisma.ApplicationRefundUncheckedCreateNestedManyWithoutApplicationInput;
@@ -3306,6 +3831,7 @@ export type ApplicationCreateWithoutIncomingTransferRequestsInput = {
3306
3831
  terminatedAt?: Date | string | null;
3307
3832
  createdAt?: Date | string;
3308
3833
  updatedAt?: Date | string;
3834
+ supersededAt?: Date | string | null;
3309
3835
  tenant: Prisma.TenantCreateNestedOneWithoutApplicationsInput;
3310
3836
  propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutApplicationsInput;
3311
3837
  buyer: Prisma.UserCreateNestedOneWithoutApplicationsInput;
@@ -3320,6 +3846,8 @@ export type ApplicationCreateWithoutIncomingTransferRequestsInput = {
3320
3846
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutApplicationInput;
3321
3847
  transferredFrom?: Prisma.ApplicationCreateNestedOneWithoutTransferredToInput;
3322
3848
  transferredTo?: Prisma.ApplicationCreateNestedOneWithoutTransferredFromInput;
3849
+ supersededBy?: Prisma.ApplicationCreateNestedOneWithoutSupersededApplicationsInput;
3850
+ supersededApplications?: Prisma.ApplicationCreateNestedManyWithoutSupersededByInput;
3323
3851
  outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceApplicationInput;
3324
3852
  events?: Prisma.ApplicationEventCreateNestedManyWithoutApplicationInput;
3325
3853
  refunds?: Prisma.ApplicationRefundCreateNestedManyWithoutApplicationInput;
@@ -3347,6 +3875,8 @@ export type ApplicationUncheckedCreateWithoutIncomingTransferRequestsInput = {
3347
3875
  createdAt?: Date | string;
3348
3876
  updatedAt?: Date | string;
3349
3877
  transferredFromId?: string | null;
3878
+ supersededById?: string | null;
3879
+ supersededAt?: Date | string | null;
3350
3880
  phases?: Prisma.ApplicationPhaseUncheckedCreateNestedManyWithoutApplicationInput;
3351
3881
  documents?: Prisma.ApplicationDocumentUncheckedCreateNestedManyWithoutApplicationInput;
3352
3882
  payments?: Prisma.ApplicationPaymentUncheckedCreateNestedManyWithoutApplicationInput;
@@ -3354,6 +3884,7 @@ export type ApplicationUncheckedCreateWithoutIncomingTransferRequestsInput = {
3354
3884
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutApplicationInput;
3355
3885
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutApplicationInput;
3356
3886
  transferredTo?: Prisma.ApplicationUncheckedCreateNestedOneWithoutTransferredFromInput;
3887
+ supersededApplications?: Prisma.ApplicationUncheckedCreateNestedManyWithoutSupersededByInput;
3357
3888
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceApplicationInput;
3358
3889
  events?: Prisma.ApplicationEventUncheckedCreateNestedManyWithoutApplicationInput;
3359
3890
  refunds?: Prisma.ApplicationRefundUncheckedCreateNestedManyWithoutApplicationInput;
@@ -3387,6 +3918,7 @@ export type ApplicationUpdateWithoutOutgoingTransferRequestsInput = {
3387
3918
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3388
3919
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3389
3920
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3921
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3390
3922
  tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationsNestedInput;
3391
3923
  propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutApplicationsNestedInput;
3392
3924
  buyer?: Prisma.UserUpdateOneRequiredWithoutApplicationsNestedInput;
@@ -3401,6 +3933,8 @@ export type ApplicationUpdateWithoutOutgoingTransferRequestsInput = {
3401
3933
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutApplicationNestedInput;
3402
3934
  transferredFrom?: Prisma.ApplicationUpdateOneWithoutTransferredToNestedInput;
3403
3935
  transferredTo?: Prisma.ApplicationUpdateOneWithoutTransferredFromNestedInput;
3936
+ supersededBy?: Prisma.ApplicationUpdateOneWithoutSupersededApplicationsNestedInput;
3937
+ supersededApplications?: Prisma.ApplicationUpdateManyWithoutSupersededByNestedInput;
3404
3938
  incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetApplicationNestedInput;
3405
3939
  events?: Prisma.ApplicationEventUpdateManyWithoutApplicationNestedInput;
3406
3940
  refunds?: Prisma.ApplicationRefundUpdateManyWithoutApplicationNestedInput;
@@ -3428,6 +3962,8 @@ export type ApplicationUncheckedUpdateWithoutOutgoingTransferRequestsInput = {
3428
3962
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3429
3963
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3430
3964
  transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3965
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3966
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3431
3967
  phases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutApplicationNestedInput;
3432
3968
  documents?: Prisma.ApplicationDocumentUncheckedUpdateManyWithoutApplicationNestedInput;
3433
3969
  payments?: Prisma.ApplicationPaymentUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -3435,6 +3971,7 @@ export type ApplicationUncheckedUpdateWithoutOutgoingTransferRequestsInput = {
3435
3971
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutApplicationNestedInput;
3436
3972
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutApplicationNestedInput;
3437
3973
  transferredTo?: Prisma.ApplicationUncheckedUpdateOneWithoutTransferredFromNestedInput;
3974
+ supersededApplications?: Prisma.ApplicationUncheckedUpdateManyWithoutSupersededByNestedInput;
3438
3975
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetApplicationNestedInput;
3439
3976
  events?: Prisma.ApplicationEventUncheckedUpdateManyWithoutApplicationNestedInput;
3440
3977
  refunds?: Prisma.ApplicationRefundUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -3464,6 +4001,7 @@ export type ApplicationUpdateWithoutIncomingTransferRequestsInput = {
3464
4001
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3465
4002
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3466
4003
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4004
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3467
4005
  tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationsNestedInput;
3468
4006
  propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutApplicationsNestedInput;
3469
4007
  buyer?: Prisma.UserUpdateOneRequiredWithoutApplicationsNestedInput;
@@ -3478,6 +4016,8 @@ export type ApplicationUpdateWithoutIncomingTransferRequestsInput = {
3478
4016
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutApplicationNestedInput;
3479
4017
  transferredFrom?: Prisma.ApplicationUpdateOneWithoutTransferredToNestedInput;
3480
4018
  transferredTo?: Prisma.ApplicationUpdateOneWithoutTransferredFromNestedInput;
4019
+ supersededBy?: Prisma.ApplicationUpdateOneWithoutSupersededApplicationsNestedInput;
4020
+ supersededApplications?: Prisma.ApplicationUpdateManyWithoutSupersededByNestedInput;
3481
4021
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceApplicationNestedInput;
3482
4022
  events?: Prisma.ApplicationEventUpdateManyWithoutApplicationNestedInput;
3483
4023
  refunds?: Prisma.ApplicationRefundUpdateManyWithoutApplicationNestedInput;
@@ -3505,6 +4045,8 @@ export type ApplicationUncheckedUpdateWithoutIncomingTransferRequestsInput = {
3505
4045
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3506
4046
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3507
4047
  transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4048
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4049
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3508
4050
  phases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutApplicationNestedInput;
3509
4051
  documents?: Prisma.ApplicationDocumentUncheckedUpdateManyWithoutApplicationNestedInput;
3510
4052
  payments?: Prisma.ApplicationPaymentUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -3512,6 +4054,7 @@ export type ApplicationUncheckedUpdateWithoutIncomingTransferRequestsInput = {
3512
4054
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutApplicationNestedInput;
3513
4055
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutApplicationNestedInput;
3514
4056
  transferredTo?: Prisma.ApplicationUncheckedUpdateOneWithoutTransferredFromNestedInput;
4057
+ supersededApplications?: Prisma.ApplicationUncheckedUpdateManyWithoutSupersededByNestedInput;
3515
4058
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceApplicationNestedInput;
3516
4059
  events?: Prisma.ApplicationEventUncheckedUpdateManyWithoutApplicationNestedInput;
3517
4060
  refunds?: Prisma.ApplicationRefundUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -3538,6 +4081,8 @@ export type ApplicationCreateManyBuyerInput = {
3538
4081
  createdAt?: Date | string;
3539
4082
  updatedAt?: Date | string;
3540
4083
  transferredFromId?: string | null;
4084
+ supersededById?: string | null;
4085
+ supersededAt?: Date | string | null;
3541
4086
  };
3542
4087
  export type ApplicationCreateManySellerInput = {
3543
4088
  id?: string;
@@ -3561,6 +4106,8 @@ export type ApplicationCreateManySellerInput = {
3561
4106
  createdAt?: Date | string;
3562
4107
  updatedAt?: Date | string;
3563
4108
  transferredFromId?: string | null;
4109
+ supersededById?: string | null;
4110
+ supersededAt?: Date | string | null;
3564
4111
  };
3565
4112
  export type ApplicationUpdateWithoutBuyerInput = {
3566
4113
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3578,6 +4125,7 @@ export type ApplicationUpdateWithoutBuyerInput = {
3578
4125
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3579
4126
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3580
4127
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4128
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3581
4129
  tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationsNestedInput;
3582
4130
  propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutApplicationsNestedInput;
3583
4131
  seller?: Prisma.UserUpdateOneWithoutSoldApplicationsNestedInput;
@@ -3591,6 +4139,8 @@ export type ApplicationUpdateWithoutBuyerInput = {
3591
4139
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutApplicationNestedInput;
3592
4140
  transferredFrom?: Prisma.ApplicationUpdateOneWithoutTransferredToNestedInput;
3593
4141
  transferredTo?: Prisma.ApplicationUpdateOneWithoutTransferredFromNestedInput;
4142
+ supersededBy?: Prisma.ApplicationUpdateOneWithoutSupersededApplicationsNestedInput;
4143
+ supersededApplications?: Prisma.ApplicationUpdateManyWithoutSupersededByNestedInput;
3594
4144
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceApplicationNestedInput;
3595
4145
  incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetApplicationNestedInput;
3596
4146
  events?: Prisma.ApplicationEventUpdateManyWithoutApplicationNestedInput;
@@ -3618,6 +4168,8 @@ export type ApplicationUncheckedUpdateWithoutBuyerInput = {
3618
4168
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3619
4169
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3620
4170
  transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4171
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4172
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3621
4173
  phases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutApplicationNestedInput;
3622
4174
  documents?: Prisma.ApplicationDocumentUncheckedUpdateManyWithoutApplicationNestedInput;
3623
4175
  payments?: Prisma.ApplicationPaymentUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -3625,6 +4177,7 @@ export type ApplicationUncheckedUpdateWithoutBuyerInput = {
3625
4177
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutApplicationNestedInput;
3626
4178
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutApplicationNestedInput;
3627
4179
  transferredTo?: Prisma.ApplicationUncheckedUpdateOneWithoutTransferredFromNestedInput;
4180
+ supersededApplications?: Prisma.ApplicationUncheckedUpdateManyWithoutSupersededByNestedInput;
3628
4181
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceApplicationNestedInput;
3629
4182
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetApplicationNestedInput;
3630
4183
  events?: Prisma.ApplicationEventUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -3652,6 +4205,8 @@ export type ApplicationUncheckedUpdateManyWithoutBuyerInput = {
3652
4205
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3653
4206
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3654
4207
  transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4208
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4209
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3655
4210
  };
3656
4211
  export type ApplicationUpdateWithoutSellerInput = {
3657
4212
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3669,6 +4224,7 @@ export type ApplicationUpdateWithoutSellerInput = {
3669
4224
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3670
4225
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3671
4226
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4227
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3672
4228
  tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationsNestedInput;
3673
4229
  propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutApplicationsNestedInput;
3674
4230
  buyer?: Prisma.UserUpdateOneRequiredWithoutApplicationsNestedInput;
@@ -3682,6 +4238,8 @@ export type ApplicationUpdateWithoutSellerInput = {
3682
4238
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutApplicationNestedInput;
3683
4239
  transferredFrom?: Prisma.ApplicationUpdateOneWithoutTransferredToNestedInput;
3684
4240
  transferredTo?: Prisma.ApplicationUpdateOneWithoutTransferredFromNestedInput;
4241
+ supersededBy?: Prisma.ApplicationUpdateOneWithoutSupersededApplicationsNestedInput;
4242
+ supersededApplications?: Prisma.ApplicationUpdateManyWithoutSupersededByNestedInput;
3685
4243
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceApplicationNestedInput;
3686
4244
  incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetApplicationNestedInput;
3687
4245
  events?: Prisma.ApplicationEventUpdateManyWithoutApplicationNestedInput;
@@ -3709,6 +4267,8 @@ export type ApplicationUncheckedUpdateWithoutSellerInput = {
3709
4267
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3710
4268
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3711
4269
  transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4270
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4271
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3712
4272
  phases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutApplicationNestedInput;
3713
4273
  documents?: Prisma.ApplicationDocumentUncheckedUpdateManyWithoutApplicationNestedInput;
3714
4274
  payments?: Prisma.ApplicationPaymentUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -3716,6 +4276,7 @@ export type ApplicationUncheckedUpdateWithoutSellerInput = {
3716
4276
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutApplicationNestedInput;
3717
4277
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutApplicationNestedInput;
3718
4278
  transferredTo?: Prisma.ApplicationUncheckedUpdateOneWithoutTransferredFromNestedInput;
4279
+ supersededApplications?: Prisma.ApplicationUncheckedUpdateManyWithoutSupersededByNestedInput;
3719
4280
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceApplicationNestedInput;
3720
4281
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetApplicationNestedInput;
3721
4282
  events?: Prisma.ApplicationEventUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -3743,6 +4304,8 @@ export type ApplicationUncheckedUpdateManyWithoutSellerInput = {
3743
4304
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3744
4305
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3745
4306
  transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4307
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4308
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3746
4309
  };
3747
4310
  export type ApplicationCreateManyTenantInput = {
3748
4311
  id?: string;
@@ -3766,6 +4329,8 @@ export type ApplicationCreateManyTenantInput = {
3766
4329
  createdAt?: Date | string;
3767
4330
  updatedAt?: Date | string;
3768
4331
  transferredFromId?: string | null;
4332
+ supersededById?: string | null;
4333
+ supersededAt?: Date | string | null;
3769
4334
  };
3770
4335
  export type ApplicationUpdateWithoutTenantInput = {
3771
4336
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3783,6 +4348,7 @@ export type ApplicationUpdateWithoutTenantInput = {
3783
4348
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3784
4349
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3785
4350
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4351
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3786
4352
  propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutApplicationsNestedInput;
3787
4353
  buyer?: Prisma.UserUpdateOneRequiredWithoutApplicationsNestedInput;
3788
4354
  seller?: Prisma.UserUpdateOneWithoutSoldApplicationsNestedInput;
@@ -3796,6 +4362,8 @@ export type ApplicationUpdateWithoutTenantInput = {
3796
4362
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutApplicationNestedInput;
3797
4363
  transferredFrom?: Prisma.ApplicationUpdateOneWithoutTransferredToNestedInput;
3798
4364
  transferredTo?: Prisma.ApplicationUpdateOneWithoutTransferredFromNestedInput;
4365
+ supersededBy?: Prisma.ApplicationUpdateOneWithoutSupersededApplicationsNestedInput;
4366
+ supersededApplications?: Prisma.ApplicationUpdateManyWithoutSupersededByNestedInput;
3799
4367
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceApplicationNestedInput;
3800
4368
  incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetApplicationNestedInput;
3801
4369
  events?: Prisma.ApplicationEventUpdateManyWithoutApplicationNestedInput;
@@ -3823,6 +4391,8 @@ export type ApplicationUncheckedUpdateWithoutTenantInput = {
3823
4391
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3824
4392
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3825
4393
  transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4394
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4395
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3826
4396
  phases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutApplicationNestedInput;
3827
4397
  documents?: Prisma.ApplicationDocumentUncheckedUpdateManyWithoutApplicationNestedInput;
3828
4398
  payments?: Prisma.ApplicationPaymentUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -3830,6 +4400,7 @@ export type ApplicationUncheckedUpdateWithoutTenantInput = {
3830
4400
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutApplicationNestedInput;
3831
4401
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutApplicationNestedInput;
3832
4402
  transferredTo?: Prisma.ApplicationUncheckedUpdateOneWithoutTransferredFromNestedInput;
4403
+ supersededApplications?: Prisma.ApplicationUncheckedUpdateManyWithoutSupersededByNestedInput;
3833
4404
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceApplicationNestedInput;
3834
4405
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetApplicationNestedInput;
3835
4406
  events?: Prisma.ApplicationEventUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -3857,6 +4428,8 @@ export type ApplicationUncheckedUpdateManyWithoutTenantInput = {
3857
4428
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3858
4429
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3859
4430
  transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4431
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4432
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3860
4433
  };
3861
4434
  export type ApplicationCreateManyPropertyUnitInput = {
3862
4435
  id?: string;
@@ -3880,6 +4453,8 @@ export type ApplicationCreateManyPropertyUnitInput = {
3880
4453
  createdAt?: Date | string;
3881
4454
  updatedAt?: Date | string;
3882
4455
  transferredFromId?: string | null;
4456
+ supersededById?: string | null;
4457
+ supersededAt?: Date | string | null;
3883
4458
  };
3884
4459
  export type ApplicationUpdateWithoutPropertyUnitInput = {
3885
4460
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3897,6 +4472,7 @@ export type ApplicationUpdateWithoutPropertyUnitInput = {
3897
4472
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3898
4473
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3899
4474
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4475
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3900
4476
  tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationsNestedInput;
3901
4477
  buyer?: Prisma.UserUpdateOneRequiredWithoutApplicationsNestedInput;
3902
4478
  seller?: Prisma.UserUpdateOneWithoutSoldApplicationsNestedInput;
@@ -3910,6 +4486,8 @@ export type ApplicationUpdateWithoutPropertyUnitInput = {
3910
4486
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutApplicationNestedInput;
3911
4487
  transferredFrom?: Prisma.ApplicationUpdateOneWithoutTransferredToNestedInput;
3912
4488
  transferredTo?: Prisma.ApplicationUpdateOneWithoutTransferredFromNestedInput;
4489
+ supersededBy?: Prisma.ApplicationUpdateOneWithoutSupersededApplicationsNestedInput;
4490
+ supersededApplications?: Prisma.ApplicationUpdateManyWithoutSupersededByNestedInput;
3913
4491
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceApplicationNestedInput;
3914
4492
  incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetApplicationNestedInput;
3915
4493
  events?: Prisma.ApplicationEventUpdateManyWithoutApplicationNestedInput;
@@ -3937,6 +4515,8 @@ export type ApplicationUncheckedUpdateWithoutPropertyUnitInput = {
3937
4515
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3938
4516
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3939
4517
  transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4518
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4519
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3940
4520
  phases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutApplicationNestedInput;
3941
4521
  documents?: Prisma.ApplicationDocumentUncheckedUpdateManyWithoutApplicationNestedInput;
3942
4522
  payments?: Prisma.ApplicationPaymentUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -3944,6 +4524,7 @@ export type ApplicationUncheckedUpdateWithoutPropertyUnitInput = {
3944
4524
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutApplicationNestedInput;
3945
4525
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutApplicationNestedInput;
3946
4526
  transferredTo?: Prisma.ApplicationUncheckedUpdateOneWithoutTransferredFromNestedInput;
4527
+ supersededApplications?: Prisma.ApplicationUncheckedUpdateManyWithoutSupersededByNestedInput;
3947
4528
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceApplicationNestedInput;
3948
4529
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetApplicationNestedInput;
3949
4530
  events?: Prisma.ApplicationEventUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -3971,6 +4552,8 @@ export type ApplicationUncheckedUpdateManyWithoutPropertyUnitInput = {
3971
4552
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3972
4553
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3973
4554
  transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4555
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4556
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3974
4557
  };
3975
4558
  export type ApplicationCreateManyPaymentMethodInput = {
3976
4559
  id?: string;
@@ -3994,6 +4577,8 @@ export type ApplicationCreateManyPaymentMethodInput = {
3994
4577
  createdAt?: Date | string;
3995
4578
  updatedAt?: Date | string;
3996
4579
  transferredFromId?: string | null;
4580
+ supersededById?: string | null;
4581
+ supersededAt?: Date | string | null;
3997
4582
  };
3998
4583
  export type ApplicationUpdateWithoutPaymentMethodInput = {
3999
4584
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -4011,6 +4596,7 @@ export type ApplicationUpdateWithoutPaymentMethodInput = {
4011
4596
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4012
4597
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4013
4598
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4599
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4014
4600
  tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationsNestedInput;
4015
4601
  propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutApplicationsNestedInput;
4016
4602
  buyer?: Prisma.UserUpdateOneRequiredWithoutApplicationsNestedInput;
@@ -4024,6 +4610,8 @@ export type ApplicationUpdateWithoutPaymentMethodInput = {
4024
4610
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutApplicationNestedInput;
4025
4611
  transferredFrom?: Prisma.ApplicationUpdateOneWithoutTransferredToNestedInput;
4026
4612
  transferredTo?: Prisma.ApplicationUpdateOneWithoutTransferredFromNestedInput;
4613
+ supersededBy?: Prisma.ApplicationUpdateOneWithoutSupersededApplicationsNestedInput;
4614
+ supersededApplications?: Prisma.ApplicationUpdateManyWithoutSupersededByNestedInput;
4027
4615
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceApplicationNestedInput;
4028
4616
  incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetApplicationNestedInput;
4029
4617
  events?: Prisma.ApplicationEventUpdateManyWithoutApplicationNestedInput;
@@ -4051,6 +4639,8 @@ export type ApplicationUncheckedUpdateWithoutPaymentMethodInput = {
4051
4639
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4052
4640
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4053
4641
  transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4642
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4643
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4054
4644
  phases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutApplicationNestedInput;
4055
4645
  documents?: Prisma.ApplicationDocumentUncheckedUpdateManyWithoutApplicationNestedInput;
4056
4646
  payments?: Prisma.ApplicationPaymentUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -4058,6 +4648,7 @@ export type ApplicationUncheckedUpdateWithoutPaymentMethodInput = {
4058
4648
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutApplicationNestedInput;
4059
4649
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutApplicationNestedInput;
4060
4650
  transferredTo?: Prisma.ApplicationUncheckedUpdateOneWithoutTransferredFromNestedInput;
4651
+ supersededApplications?: Prisma.ApplicationUncheckedUpdateManyWithoutSupersededByNestedInput;
4061
4652
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceApplicationNestedInput;
4062
4653
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetApplicationNestedInput;
4063
4654
  events?: Prisma.ApplicationEventUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -4085,6 +4676,132 @@ export type ApplicationUncheckedUpdateManyWithoutPaymentMethodInput = {
4085
4676
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4086
4677
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4087
4678
  transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4679
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4680
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4681
+ };
4682
+ export type ApplicationCreateManySupersededByInput = {
4683
+ id?: string;
4684
+ tenantId: string;
4685
+ propertyUnitId: string;
4686
+ buyerId: string;
4687
+ sellerId?: string | null;
4688
+ paymentMethodId?: string | null;
4689
+ applicationNumber: string;
4690
+ title: string;
4691
+ description?: string | null;
4692
+ applicationType: string;
4693
+ totalAmount: number;
4694
+ status?: $Enums.ApplicationStatus;
4695
+ currentPhaseId?: string | null;
4696
+ nextPaymentDueDate?: Date | string | null;
4697
+ lastReminderSentAt?: Date | string | null;
4698
+ startDate?: Date | string | null;
4699
+ endDate?: Date | string | null;
4700
+ signedAt?: Date | string | null;
4701
+ terminatedAt?: Date | string | null;
4702
+ createdAt?: Date | string;
4703
+ updatedAt?: Date | string;
4704
+ transferredFromId?: string | null;
4705
+ supersededAt?: Date | string | null;
4706
+ };
4707
+ export type ApplicationUpdateWithoutSupersededByInput = {
4708
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
4709
+ applicationNumber?: Prisma.StringFieldUpdateOperationsInput | string;
4710
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
4711
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4712
+ applicationType?: Prisma.StringFieldUpdateOperationsInput | string;
4713
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
4714
+ status?: Prisma.EnumApplicationStatusFieldUpdateOperationsInput | $Enums.ApplicationStatus;
4715
+ nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4716
+ lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4717
+ startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4718
+ endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4719
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4720
+ terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4721
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4722
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4723
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4724
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationsNestedInput;
4725
+ propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutApplicationsNestedInput;
4726
+ buyer?: Prisma.UserUpdateOneRequiredWithoutApplicationsNestedInput;
4727
+ seller?: Prisma.UserUpdateOneWithoutSoldApplicationsNestedInput;
4728
+ paymentMethod?: Prisma.PropertyPaymentMethodUpdateOneWithoutApplicationsNestedInput;
4729
+ currentPhase?: Prisma.ApplicationPhaseUpdateOneWithoutCurrentForApplicationsNestedInput;
4730
+ phases?: Prisma.ApplicationPhaseUpdateManyWithoutApplicationNestedInput;
4731
+ documents?: Prisma.ApplicationDocumentUpdateManyWithoutApplicationNestedInput;
4732
+ payments?: Prisma.ApplicationPaymentUpdateManyWithoutApplicationNestedInput;
4733
+ terminations?: Prisma.ApplicationTerminationUpdateManyWithoutApplicationNestedInput;
4734
+ offerLetters?: Prisma.OfferLetterUpdateManyWithoutApplicationNestedInput;
4735
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutApplicationNestedInput;
4736
+ transferredFrom?: Prisma.ApplicationUpdateOneWithoutTransferredToNestedInput;
4737
+ transferredTo?: Prisma.ApplicationUpdateOneWithoutTransferredFromNestedInput;
4738
+ supersededApplications?: Prisma.ApplicationUpdateManyWithoutSupersededByNestedInput;
4739
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceApplicationNestedInput;
4740
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetApplicationNestedInput;
4741
+ events?: Prisma.ApplicationEventUpdateManyWithoutApplicationNestedInput;
4742
+ refunds?: Prisma.ApplicationRefundUpdateManyWithoutApplicationNestedInput;
4743
+ };
4744
+ export type ApplicationUncheckedUpdateWithoutSupersededByInput = {
4745
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
4746
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
4747
+ propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
4748
+ buyerId?: Prisma.StringFieldUpdateOperationsInput | string;
4749
+ sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4750
+ paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4751
+ applicationNumber?: Prisma.StringFieldUpdateOperationsInput | string;
4752
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
4753
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4754
+ applicationType?: Prisma.StringFieldUpdateOperationsInput | string;
4755
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
4756
+ status?: Prisma.EnumApplicationStatusFieldUpdateOperationsInput | $Enums.ApplicationStatus;
4757
+ currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4758
+ nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4759
+ lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4760
+ startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4761
+ endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4762
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4763
+ terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4764
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4765
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4766
+ transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4767
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4768
+ phases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutApplicationNestedInput;
4769
+ documents?: Prisma.ApplicationDocumentUncheckedUpdateManyWithoutApplicationNestedInput;
4770
+ payments?: Prisma.ApplicationPaymentUncheckedUpdateManyWithoutApplicationNestedInput;
4771
+ terminations?: Prisma.ApplicationTerminationUncheckedUpdateManyWithoutApplicationNestedInput;
4772
+ offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutApplicationNestedInput;
4773
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutApplicationNestedInput;
4774
+ transferredTo?: Prisma.ApplicationUncheckedUpdateOneWithoutTransferredFromNestedInput;
4775
+ supersededApplications?: Prisma.ApplicationUncheckedUpdateManyWithoutSupersededByNestedInput;
4776
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceApplicationNestedInput;
4777
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetApplicationNestedInput;
4778
+ events?: Prisma.ApplicationEventUncheckedUpdateManyWithoutApplicationNestedInput;
4779
+ refunds?: Prisma.ApplicationRefundUncheckedUpdateManyWithoutApplicationNestedInput;
4780
+ };
4781
+ export type ApplicationUncheckedUpdateManyWithoutSupersededByInput = {
4782
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
4783
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
4784
+ propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
4785
+ buyerId?: Prisma.StringFieldUpdateOperationsInput | string;
4786
+ sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4787
+ paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4788
+ applicationNumber?: Prisma.StringFieldUpdateOperationsInput | string;
4789
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
4790
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4791
+ applicationType?: Prisma.StringFieldUpdateOperationsInput | string;
4792
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
4793
+ status?: Prisma.EnumApplicationStatusFieldUpdateOperationsInput | $Enums.ApplicationStatus;
4794
+ currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4795
+ nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4796
+ lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4797
+ startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4798
+ endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4799
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4800
+ terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4801
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4802
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4803
+ transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4804
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4088
4805
  };
4089
4806
  export type ApplicationCreateManyCurrentPhaseInput = {
4090
4807
  id?: string;
@@ -4108,6 +4825,8 @@ export type ApplicationCreateManyCurrentPhaseInput = {
4108
4825
  createdAt?: Date | string;
4109
4826
  updatedAt?: Date | string;
4110
4827
  transferredFromId?: string | null;
4828
+ supersededById?: string | null;
4829
+ supersededAt?: Date | string | null;
4111
4830
  };
4112
4831
  export type ApplicationUpdateWithoutCurrentPhaseInput = {
4113
4832
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -4125,6 +4844,7 @@ export type ApplicationUpdateWithoutCurrentPhaseInput = {
4125
4844
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4126
4845
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4127
4846
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4847
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4128
4848
  tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationsNestedInput;
4129
4849
  propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutApplicationsNestedInput;
4130
4850
  buyer?: Prisma.UserUpdateOneRequiredWithoutApplicationsNestedInput;
@@ -4138,6 +4858,8 @@ export type ApplicationUpdateWithoutCurrentPhaseInput = {
4138
4858
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutApplicationNestedInput;
4139
4859
  transferredFrom?: Prisma.ApplicationUpdateOneWithoutTransferredToNestedInput;
4140
4860
  transferredTo?: Prisma.ApplicationUpdateOneWithoutTransferredFromNestedInput;
4861
+ supersededBy?: Prisma.ApplicationUpdateOneWithoutSupersededApplicationsNestedInput;
4862
+ supersededApplications?: Prisma.ApplicationUpdateManyWithoutSupersededByNestedInput;
4141
4863
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceApplicationNestedInput;
4142
4864
  incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetApplicationNestedInput;
4143
4865
  events?: Prisma.ApplicationEventUpdateManyWithoutApplicationNestedInput;
@@ -4165,6 +4887,8 @@ export type ApplicationUncheckedUpdateWithoutCurrentPhaseInput = {
4165
4887
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4166
4888
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4167
4889
  transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4890
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4891
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4168
4892
  phases?: Prisma.ApplicationPhaseUncheckedUpdateManyWithoutApplicationNestedInput;
4169
4893
  documents?: Prisma.ApplicationDocumentUncheckedUpdateManyWithoutApplicationNestedInput;
4170
4894
  payments?: Prisma.ApplicationPaymentUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -4172,6 +4896,7 @@ export type ApplicationUncheckedUpdateWithoutCurrentPhaseInput = {
4172
4896
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutApplicationNestedInput;
4173
4897
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutApplicationNestedInput;
4174
4898
  transferredTo?: Prisma.ApplicationUncheckedUpdateOneWithoutTransferredFromNestedInput;
4899
+ supersededApplications?: Prisma.ApplicationUncheckedUpdateManyWithoutSupersededByNestedInput;
4175
4900
  outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceApplicationNestedInput;
4176
4901
  incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetApplicationNestedInput;
4177
4902
  events?: Prisma.ApplicationEventUncheckedUpdateManyWithoutApplicationNestedInput;
@@ -4199,6 +4924,8 @@ export type ApplicationUncheckedUpdateManyWithoutCurrentPhaseInput = {
4199
4924
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4200
4925
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4201
4926
  transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4927
+ supersededById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4928
+ supersededAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4202
4929
  };
4203
4930
  /**
4204
4931
  * Count Type ApplicationCountOutputType
@@ -4210,6 +4937,7 @@ export type ApplicationCountOutputType = {
4210
4937
  terminations: number;
4211
4938
  offerLetters: number;
4212
4939
  paymentMethodChangeRequests: number;
4940
+ supersededApplications: number;
4213
4941
  outgoingTransferRequests: number;
4214
4942
  incomingTransferRequests: number;
4215
4943
  events: number;
@@ -4222,6 +4950,7 @@ export type ApplicationCountOutputTypeSelect<ExtArgs extends runtime.Types.Exten
4222
4950
  terminations?: boolean | ApplicationCountOutputTypeCountTerminationsArgs;
4223
4951
  offerLetters?: boolean | ApplicationCountOutputTypeCountOfferLettersArgs;
4224
4952
  paymentMethodChangeRequests?: boolean | ApplicationCountOutputTypeCountPaymentMethodChangeRequestsArgs;
4953
+ supersededApplications?: boolean | ApplicationCountOutputTypeCountSupersededApplicationsArgs;
4225
4954
  outgoingTransferRequests?: boolean | ApplicationCountOutputTypeCountOutgoingTransferRequestsArgs;
4226
4955
  incomingTransferRequests?: boolean | ApplicationCountOutputTypeCountIncomingTransferRequestsArgs;
4227
4956
  events?: boolean | ApplicationCountOutputTypeCountEventsArgs;
@@ -4272,6 +5001,12 @@ export type ApplicationCountOutputTypeCountOfferLettersArgs<ExtArgs extends runt
4272
5001
  export type ApplicationCountOutputTypeCountPaymentMethodChangeRequestsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4273
5002
  where?: Prisma.PaymentMethodChangeRequestWhereInput;
4274
5003
  };
5004
+ /**
5005
+ * ApplicationCountOutputType without action
5006
+ */
5007
+ export type ApplicationCountOutputTypeCountSupersededApplicationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
5008
+ where?: Prisma.ApplicationWhereInput;
5009
+ };
4275
5010
  /**
4276
5011
  * ApplicationCountOutputType without action
4277
5012
  */
@@ -4319,6 +5054,8 @@ export type ApplicationSelect<ExtArgs extends runtime.Types.Extensions.InternalA
4319
5054
  createdAt?: boolean;
4320
5055
  updatedAt?: boolean;
4321
5056
  transferredFromId?: boolean;
5057
+ supersededById?: boolean;
5058
+ supersededAt?: boolean;
4322
5059
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
4323
5060
  propertyUnit?: boolean | Prisma.PropertyUnitDefaultArgs<ExtArgs>;
4324
5061
  buyer?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
@@ -4333,6 +5070,8 @@ export type ApplicationSelect<ExtArgs extends runtime.Types.Extensions.InternalA
4333
5070
  paymentMethodChangeRequests?: boolean | Prisma.Application$paymentMethodChangeRequestsArgs<ExtArgs>;
4334
5071
  transferredFrom?: boolean | Prisma.Application$transferredFromArgs<ExtArgs>;
4335
5072
  transferredTo?: boolean | Prisma.Application$transferredToArgs<ExtArgs>;
5073
+ supersededBy?: boolean | Prisma.Application$supersededByArgs<ExtArgs>;
5074
+ supersededApplications?: boolean | Prisma.Application$supersededApplicationsArgs<ExtArgs>;
4336
5075
  outgoingTransferRequests?: boolean | Prisma.Application$outgoingTransferRequestsArgs<ExtArgs>;
4337
5076
  incomingTransferRequests?: boolean | Prisma.Application$incomingTransferRequestsArgs<ExtArgs>;
4338
5077
  events?: boolean | Prisma.Application$eventsArgs<ExtArgs>;
@@ -4362,8 +5101,10 @@ export type ApplicationSelectScalar = {
4362
5101
  createdAt?: boolean;
4363
5102
  updatedAt?: boolean;
4364
5103
  transferredFromId?: boolean;
5104
+ supersededById?: boolean;
5105
+ supersededAt?: boolean;
4365
5106
  };
4366
- export type ApplicationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "propertyUnitId" | "buyerId" | "sellerId" | "paymentMethodId" | "applicationNumber" | "title" | "description" | "applicationType" | "totalAmount" | "status" | "currentPhaseId" | "nextPaymentDueDate" | "lastReminderSentAt" | "startDate" | "endDate" | "signedAt" | "terminatedAt" | "createdAt" | "updatedAt" | "transferredFromId", ExtArgs["result"]["application"]>;
5107
+ export type ApplicationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "propertyUnitId" | "buyerId" | "sellerId" | "paymentMethodId" | "applicationNumber" | "title" | "description" | "applicationType" | "totalAmount" | "status" | "currentPhaseId" | "nextPaymentDueDate" | "lastReminderSentAt" | "startDate" | "endDate" | "signedAt" | "terminatedAt" | "createdAt" | "updatedAt" | "transferredFromId" | "supersededById" | "supersededAt", ExtArgs["result"]["application"]>;
4367
5108
  export type ApplicationInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4368
5109
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
4369
5110
  propertyUnit?: boolean | Prisma.PropertyUnitDefaultArgs<ExtArgs>;
@@ -4379,6 +5120,8 @@ export type ApplicationInclude<ExtArgs extends runtime.Types.Extensions.Internal
4379
5120
  paymentMethodChangeRequests?: boolean | Prisma.Application$paymentMethodChangeRequestsArgs<ExtArgs>;
4380
5121
  transferredFrom?: boolean | Prisma.Application$transferredFromArgs<ExtArgs>;
4381
5122
  transferredTo?: boolean | Prisma.Application$transferredToArgs<ExtArgs>;
5123
+ supersededBy?: boolean | Prisma.Application$supersededByArgs<ExtArgs>;
5124
+ supersededApplications?: boolean | Prisma.Application$supersededApplicationsArgs<ExtArgs>;
4382
5125
  outgoingTransferRequests?: boolean | Prisma.Application$outgoingTransferRequestsArgs<ExtArgs>;
4383
5126
  incomingTransferRequests?: boolean | Prisma.Application$incomingTransferRequestsArgs<ExtArgs>;
4384
5127
  events?: boolean | Prisma.Application$eventsArgs<ExtArgs>;
@@ -4402,6 +5145,8 @@ export type $ApplicationPayload<ExtArgs extends runtime.Types.Extensions.Interna
4402
5145
  paymentMethodChangeRequests: Prisma.$PaymentMethodChangeRequestPayload<ExtArgs>[];
4403
5146
  transferredFrom: Prisma.$ApplicationPayload<ExtArgs> | null;
4404
5147
  transferredTo: Prisma.$ApplicationPayload<ExtArgs> | null;
5148
+ supersededBy: Prisma.$ApplicationPayload<ExtArgs> | null;
5149
+ supersededApplications: Prisma.$ApplicationPayload<ExtArgs>[];
4405
5150
  outgoingTransferRequests: Prisma.$PropertyTransferRequestPayload<ExtArgs>[];
4406
5151
  incomingTransferRequests: Prisma.$PropertyTransferRequestPayload<ExtArgs>[];
4407
5152
  events: Prisma.$ApplicationEventPayload<ExtArgs>[];
@@ -4430,6 +5175,8 @@ export type $ApplicationPayload<ExtArgs extends runtime.Types.Extensions.Interna
4430
5175
  createdAt: Date;
4431
5176
  updatedAt: Date;
4432
5177
  transferredFromId: string | null;
5178
+ supersededById: string | null;
5179
+ supersededAt: Date | null;
4433
5180
  }, ExtArgs["result"]["application"]>;
4434
5181
  composites: {};
4435
5182
  };
@@ -4721,6 +5468,8 @@ export interface Prisma__ApplicationClient<T, Null = never, ExtArgs extends runt
4721
5468
  paymentMethodChangeRequests<T extends Prisma.Application$paymentMethodChangeRequestsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Application$paymentMethodChangeRequestsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentMethodChangeRequestPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
4722
5469
  transferredFrom<T extends Prisma.Application$transferredFromArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Application$transferredFromArgs<ExtArgs>>): Prisma.Prisma__ApplicationClient<runtime.Types.Result.GetResult<Prisma.$ApplicationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
4723
5470
  transferredTo<T extends Prisma.Application$transferredToArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Application$transferredToArgs<ExtArgs>>): Prisma.Prisma__ApplicationClient<runtime.Types.Result.GetResult<Prisma.$ApplicationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
5471
+ supersededBy<T extends Prisma.Application$supersededByArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Application$supersededByArgs<ExtArgs>>): Prisma.Prisma__ApplicationClient<runtime.Types.Result.GetResult<Prisma.$ApplicationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
5472
+ supersededApplications<T extends Prisma.Application$supersededApplicationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Application$supersededApplicationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApplicationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
4724
5473
  outgoingTransferRequests<T extends Prisma.Application$outgoingTransferRequestsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Application$outgoingTransferRequestsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PropertyTransferRequestPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
4725
5474
  incomingTransferRequests<T extends Prisma.Application$incomingTransferRequestsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Application$incomingTransferRequestsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PropertyTransferRequestPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
4726
5475
  events<T extends Prisma.Application$eventsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Application$eventsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApplicationEventPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
@@ -4772,6 +5521,8 @@ export interface ApplicationFieldRefs {
4772
5521
  readonly createdAt: Prisma.FieldRef<"Application", 'DateTime'>;
4773
5522
  readonly updatedAt: Prisma.FieldRef<"Application", 'DateTime'>;
4774
5523
  readonly transferredFromId: Prisma.FieldRef<"Application", 'String'>;
5524
+ readonly supersededById: Prisma.FieldRef<"Application", 'String'>;
5525
+ readonly supersededAt: Prisma.FieldRef<"Application", 'DateTime'>;
4775
5526
  }
4776
5527
  /**
4777
5528
  * Application findUnique
@@ -5327,6 +6078,47 @@ export type Application$transferredToArgs<ExtArgs extends runtime.Types.Extensio
5327
6078
  include?: Prisma.ApplicationInclude<ExtArgs> | null;
5328
6079
  where?: Prisma.ApplicationWhereInput;
5329
6080
  };
6081
+ /**
6082
+ * Application.supersededBy
6083
+ */
6084
+ export type Application$supersededByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
6085
+ /**
6086
+ * Select specific fields to fetch from the Application
6087
+ */
6088
+ select?: Prisma.ApplicationSelect<ExtArgs> | null;
6089
+ /**
6090
+ * Omit specific fields from the Application
6091
+ */
6092
+ omit?: Prisma.ApplicationOmit<ExtArgs> | null;
6093
+ /**
6094
+ * Choose, which related nodes to fetch as well
6095
+ */
6096
+ include?: Prisma.ApplicationInclude<ExtArgs> | null;
6097
+ where?: Prisma.ApplicationWhereInput;
6098
+ };
6099
+ /**
6100
+ * Application.supersededApplications
6101
+ */
6102
+ export type Application$supersededApplicationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
6103
+ /**
6104
+ * Select specific fields to fetch from the Application
6105
+ */
6106
+ select?: Prisma.ApplicationSelect<ExtArgs> | null;
6107
+ /**
6108
+ * Omit specific fields from the Application
6109
+ */
6110
+ omit?: Prisma.ApplicationOmit<ExtArgs> | null;
6111
+ /**
6112
+ * Choose, which related nodes to fetch as well
6113
+ */
6114
+ include?: Prisma.ApplicationInclude<ExtArgs> | null;
6115
+ where?: Prisma.ApplicationWhereInput;
6116
+ orderBy?: Prisma.ApplicationOrderByWithRelationInput | Prisma.ApplicationOrderByWithRelationInput[];
6117
+ cursor?: Prisma.ApplicationWhereUniqueInput;
6118
+ take?: number;
6119
+ skip?: number;
6120
+ distinct?: Prisma.ApplicationScalarFieldEnum | Prisma.ApplicationScalarFieldEnum[];
6121
+ };
5330
6122
  /**
5331
6123
  * Application.outgoingTransferRequests
5332
6124
  */