@valentine-efagene/qshelter-common 2.0.30 → 2.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/generated/client/browser.d.ts +5 -0
  2. package/dist/generated/client/client.d.ts +5 -0
  3. package/dist/generated/client/commonInputTypes.d.ts +152 -10
  4. package/dist/generated/client/enums.d.ts +41 -0
  5. package/dist/generated/client/enums.js +37 -0
  6. package/dist/generated/client/internal/class.d.ts +11 -0
  7. package/dist/generated/client/internal/class.js +2 -2
  8. package/dist/generated/client/internal/prismaNamespace.d.ts +153 -1
  9. package/dist/generated/client/internal/prismaNamespace.js +67 -0
  10. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +69 -0
  11. package/dist/generated/client/internal/prismaNamespaceBrowser.js +67 -0
  12. package/dist/generated/client/models/Contract.d.ts +271 -0
  13. package/dist/generated/client/models/ContractPhase.d.ts +52 -1
  14. package/dist/generated/client/models/ContractTermination.d.ts +3449 -0
  15. package/dist/generated/client/models/ContractTermination.js +1 -0
  16. package/dist/generated/client/models/PaymentPlan.d.ts +42 -1
  17. package/dist/generated/client/models/PropertyPaymentMethodPhase.d.ts +51 -1
  18. package/dist/generated/client/models/Tenant.d.ts +163 -0
  19. package/dist/generated/client/models/User.d.ts +586 -0
  20. package/dist/generated/client/models/index.d.ts +1 -0
  21. package/dist/generated/client/models/index.js +1 -0
  22. package/dist/generated/client/models.d.ts +1 -0
  23. package/package.json +1 -1
  24. package/prisma/migrations/20260101081428_normalize_schema/migration.sql +119 -0
  25. package/prisma/migrations/20260101102022_add_contract_termination/migration.sql +69 -0
  26. package/prisma/migrations/20260101110958_add_collect_funds/migration.sql +8 -0
  27. package/prisma/schema.prisma +165 -5
@@ -411,6 +411,7 @@ export type ContractWhereInput = {
411
411
  payments?: Prisma.ContractPaymentListRelationFilter;
412
412
  transitions?: Prisma.ContractTransitionListRelationFilter;
413
413
  events?: Prisma.ContractEventListRelationFilter;
414
+ terminations?: Prisma.ContractTerminationListRelationFilter;
414
415
  prequalification?: Prisma.XOR<Prisma.PrequalificationNullableScalarRelationFilter, Prisma.PrequalificationWhereInput> | null;
415
416
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestListRelationFilter;
416
417
  };
@@ -455,6 +456,7 @@ export type ContractOrderByWithRelationInput = {
455
456
  payments?: Prisma.ContractPaymentOrderByRelationAggregateInput;
456
457
  transitions?: Prisma.ContractTransitionOrderByRelationAggregateInput;
457
458
  events?: Prisma.ContractEventOrderByRelationAggregateInput;
459
+ terminations?: Prisma.ContractTerminationOrderByRelationAggregateInput;
458
460
  prequalification?: Prisma.PrequalificationOrderByWithRelationInput;
459
461
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestOrderByRelationAggregateInput;
460
462
  _relevance?: Prisma.ContractOrderByRelevanceInput;
@@ -503,6 +505,7 @@ export type ContractWhereUniqueInput = Prisma.AtLeast<{
503
505
  payments?: Prisma.ContractPaymentListRelationFilter;
504
506
  transitions?: Prisma.ContractTransitionListRelationFilter;
505
507
  events?: Prisma.ContractEventListRelationFilter;
508
+ terminations?: Prisma.ContractTerminationListRelationFilter;
506
509
  prequalification?: Prisma.XOR<Prisma.PrequalificationNullableScalarRelationFilter, Prisma.PrequalificationWhereInput> | null;
507
510
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestListRelationFilter;
508
511
  }, "id" | "contractNumber">;
@@ -614,6 +617,7 @@ export type ContractCreateInput = {
614
617
  payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
615
618
  transitions?: Prisma.ContractTransitionCreateNestedManyWithoutContractInput;
616
619
  events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
620
+ terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
617
621
  prequalification?: Prisma.PrequalificationCreateNestedOneWithoutContractInput;
618
622
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
619
623
  };
@@ -653,6 +657,7 @@ export type ContractUncheckedCreateInput = {
653
657
  payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
654
658
  transitions?: Prisma.ContractTransitionUncheckedCreateNestedManyWithoutContractInput;
655
659
  events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
660
+ terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
656
661
  prequalification?: Prisma.PrequalificationUncheckedCreateNestedOneWithoutContractInput;
657
662
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
658
663
  };
@@ -692,6 +697,7 @@ export type ContractUpdateInput = {
692
697
  payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
693
698
  transitions?: Prisma.ContractTransitionUpdateManyWithoutContractNestedInput;
694
699
  events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
700
+ terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
695
701
  prequalification?: Prisma.PrequalificationUpdateOneWithoutContractNestedInput;
696
702
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
697
703
  };
@@ -731,6 +737,7 @@ export type ContractUncheckedUpdateInput = {
731
737
  payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
732
738
  transitions?: Prisma.ContractTransitionUncheckedUpdateManyWithoutContractNestedInput;
733
739
  events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
740
+ terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
734
741
  prequalification?: Prisma.PrequalificationUncheckedUpdateOneWithoutContractNestedInput;
735
742
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
736
743
  };
@@ -1217,6 +1224,18 @@ export type ContractUpdateOneRequiredWithoutEventsNestedInput = {
1217
1224
  connect?: Prisma.ContractWhereUniqueInput;
1218
1225
  update?: Prisma.XOR<Prisma.XOR<Prisma.ContractUpdateToOneWithWhereWithoutEventsInput, Prisma.ContractUpdateWithoutEventsInput>, Prisma.ContractUncheckedUpdateWithoutEventsInput>;
1219
1226
  };
1227
+ export type ContractCreateNestedOneWithoutTerminationsInput = {
1228
+ create?: Prisma.XOR<Prisma.ContractCreateWithoutTerminationsInput, Prisma.ContractUncheckedCreateWithoutTerminationsInput>;
1229
+ connectOrCreate?: Prisma.ContractCreateOrConnectWithoutTerminationsInput;
1230
+ connect?: Prisma.ContractWhereUniqueInput;
1231
+ };
1232
+ export type ContractUpdateOneRequiredWithoutTerminationsNestedInput = {
1233
+ create?: Prisma.XOR<Prisma.ContractCreateWithoutTerminationsInput, Prisma.ContractUncheckedCreateWithoutTerminationsInput>;
1234
+ connectOrCreate?: Prisma.ContractCreateOrConnectWithoutTerminationsInput;
1235
+ upsert?: Prisma.ContractUpsertWithoutTerminationsInput;
1236
+ connect?: Prisma.ContractWhereUniqueInput;
1237
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ContractUpdateToOneWithWhereWithoutTerminationsInput, Prisma.ContractUpdateWithoutTerminationsInput>, Prisma.ContractUncheckedUpdateWithoutTerminationsInput>;
1238
+ };
1220
1239
  export type ContractCreateNestedOneWithoutPrequalificationInput = {
1221
1240
  create?: Prisma.XOR<Prisma.ContractCreateWithoutPrequalificationInput, Prisma.ContractUncheckedCreateWithoutPrequalificationInput>;
1222
1241
  connectOrCreate?: Prisma.ContractCreateOrConnectWithoutPrequalificationInput;
@@ -1278,6 +1297,7 @@ export type ContractCreateWithoutBuyerInput = {
1278
1297
  payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
1279
1298
  transitions?: Prisma.ContractTransitionCreateNestedManyWithoutContractInput;
1280
1299
  events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
1300
+ terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
1281
1301
  prequalification?: Prisma.PrequalificationCreateNestedOneWithoutContractInput;
1282
1302
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
1283
1303
  };
@@ -1316,6 +1336,7 @@ export type ContractUncheckedCreateWithoutBuyerInput = {
1316
1336
  payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
1317
1337
  transitions?: Prisma.ContractTransitionUncheckedCreateNestedManyWithoutContractInput;
1318
1338
  events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
1339
+ terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
1319
1340
  prequalification?: Prisma.PrequalificationUncheckedCreateNestedOneWithoutContractInput;
1320
1341
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
1321
1342
  };
@@ -1362,6 +1383,7 @@ export type ContractCreateWithoutSellerInput = {
1362
1383
  payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
1363
1384
  transitions?: Prisma.ContractTransitionCreateNestedManyWithoutContractInput;
1364
1385
  events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
1386
+ terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
1365
1387
  prequalification?: Prisma.PrequalificationCreateNestedOneWithoutContractInput;
1366
1388
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
1367
1389
  };
@@ -1400,6 +1422,7 @@ export type ContractUncheckedCreateWithoutSellerInput = {
1400
1422
  payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
1401
1423
  transitions?: Prisma.ContractTransitionUncheckedCreateNestedManyWithoutContractInput;
1402
1424
  events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
1425
+ terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
1403
1426
  prequalification?: Prisma.PrequalificationUncheckedCreateNestedOneWithoutContractInput;
1404
1427
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
1405
1428
  };
@@ -1507,6 +1530,7 @@ export type ContractCreateWithoutTenantInput = {
1507
1530
  payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
1508
1531
  transitions?: Prisma.ContractTransitionCreateNestedManyWithoutContractInput;
1509
1532
  events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
1533
+ terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
1510
1534
  prequalification?: Prisma.PrequalificationCreateNestedOneWithoutContractInput;
1511
1535
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
1512
1536
  };
@@ -1545,6 +1569,7 @@ export type ContractUncheckedCreateWithoutTenantInput = {
1545
1569
  payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
1546
1570
  transitions?: Prisma.ContractTransitionUncheckedCreateNestedManyWithoutContractInput;
1547
1571
  events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
1572
+ terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
1548
1573
  prequalification?: Prisma.PrequalificationUncheckedCreateNestedOneWithoutContractInput;
1549
1574
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
1550
1575
  };
@@ -1604,6 +1629,7 @@ export type ContractCreateWithoutPropertyUnitInput = {
1604
1629
  payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
1605
1630
  transitions?: Prisma.ContractTransitionCreateNestedManyWithoutContractInput;
1606
1631
  events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
1632
+ terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
1607
1633
  prequalification?: Prisma.PrequalificationCreateNestedOneWithoutContractInput;
1608
1634
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
1609
1635
  };
@@ -1642,6 +1668,7 @@ export type ContractUncheckedCreateWithoutPropertyUnitInput = {
1642
1668
  payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
1643
1669
  transitions?: Prisma.ContractTransitionUncheckedCreateNestedManyWithoutContractInput;
1644
1670
  events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
1671
+ terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
1645
1672
  prequalification?: Prisma.PrequalificationUncheckedCreateNestedOneWithoutContractInput;
1646
1673
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
1647
1674
  };
@@ -1701,6 +1728,7 @@ export type ContractCreateWithoutPaymentMethodInput = {
1701
1728
  payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
1702
1729
  transitions?: Prisma.ContractTransitionCreateNestedManyWithoutContractInput;
1703
1730
  events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
1731
+ terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
1704
1732
  prequalification?: Prisma.PrequalificationCreateNestedOneWithoutContractInput;
1705
1733
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
1706
1734
  };
@@ -1739,6 +1767,7 @@ export type ContractUncheckedCreateWithoutPaymentMethodInput = {
1739
1767
  payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
1740
1768
  transitions?: Prisma.ContractTransitionUncheckedCreateNestedManyWithoutContractInput;
1741
1769
  events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
1770
+ terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
1742
1771
  prequalification?: Prisma.PrequalificationUncheckedCreateNestedOneWithoutContractInput;
1743
1772
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
1744
1773
  };
@@ -1798,6 +1827,7 @@ export type ContractCreateWithoutPhasesInput = {
1798
1827
  payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
1799
1828
  transitions?: Prisma.ContractTransitionCreateNestedManyWithoutContractInput;
1800
1829
  events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
1830
+ terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
1801
1831
  prequalification?: Prisma.PrequalificationCreateNestedOneWithoutContractInput;
1802
1832
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
1803
1833
  };
@@ -1836,6 +1866,7 @@ export type ContractUncheckedCreateWithoutPhasesInput = {
1836
1866
  payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
1837
1867
  transitions?: Prisma.ContractTransitionUncheckedCreateNestedManyWithoutContractInput;
1838
1868
  events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
1869
+ terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
1839
1870
  prequalification?: Prisma.PrequalificationUncheckedCreateNestedOneWithoutContractInput;
1840
1871
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
1841
1872
  };
@@ -1887,6 +1918,7 @@ export type ContractUpdateWithoutPhasesInput = {
1887
1918
  payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
1888
1919
  transitions?: Prisma.ContractTransitionUpdateManyWithoutContractNestedInput;
1889
1920
  events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
1921
+ terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
1890
1922
  prequalification?: Prisma.PrequalificationUpdateOneWithoutContractNestedInput;
1891
1923
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
1892
1924
  };
@@ -1925,6 +1957,7 @@ export type ContractUncheckedUpdateWithoutPhasesInput = {
1925
1957
  payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
1926
1958
  transitions?: Prisma.ContractTransitionUncheckedUpdateManyWithoutContractNestedInput;
1927
1959
  events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
1960
+ terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
1928
1961
  prequalification?: Prisma.PrequalificationUncheckedUpdateOneWithoutContractNestedInput;
1929
1962
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
1930
1963
  };
@@ -1963,6 +1996,7 @@ export type ContractCreateWithoutPaymentsInput = {
1963
1996
  documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
1964
1997
  transitions?: Prisma.ContractTransitionCreateNestedManyWithoutContractInput;
1965
1998
  events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
1999
+ terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
1966
2000
  prequalification?: Prisma.PrequalificationCreateNestedOneWithoutContractInput;
1967
2001
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
1968
2002
  };
@@ -2001,6 +2035,7 @@ export type ContractUncheckedCreateWithoutPaymentsInput = {
2001
2035
  documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
2002
2036
  transitions?: Prisma.ContractTransitionUncheckedCreateNestedManyWithoutContractInput;
2003
2037
  events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
2038
+ terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
2004
2039
  prequalification?: Prisma.PrequalificationUncheckedCreateNestedOneWithoutContractInput;
2005
2040
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
2006
2041
  };
@@ -2052,6 +2087,7 @@ export type ContractUpdateWithoutPaymentsInput = {
2052
2087
  documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
2053
2088
  transitions?: Prisma.ContractTransitionUpdateManyWithoutContractNestedInput;
2054
2089
  events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
2090
+ terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
2055
2091
  prequalification?: Prisma.PrequalificationUpdateOneWithoutContractNestedInput;
2056
2092
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
2057
2093
  };
@@ -2090,6 +2126,7 @@ export type ContractUncheckedUpdateWithoutPaymentsInput = {
2090
2126
  documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
2091
2127
  transitions?: Prisma.ContractTransitionUncheckedUpdateManyWithoutContractNestedInput;
2092
2128
  events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
2129
+ terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
2093
2130
  prequalification?: Prisma.PrequalificationUncheckedUpdateOneWithoutContractNestedInput;
2094
2131
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
2095
2132
  };
@@ -2128,6 +2165,7 @@ export type ContractCreateWithoutDocumentsInput = {
2128
2165
  payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
2129
2166
  transitions?: Prisma.ContractTransitionCreateNestedManyWithoutContractInput;
2130
2167
  events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
2168
+ terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
2131
2169
  prequalification?: Prisma.PrequalificationCreateNestedOneWithoutContractInput;
2132
2170
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
2133
2171
  };
@@ -2166,6 +2204,7 @@ export type ContractUncheckedCreateWithoutDocumentsInput = {
2166
2204
  payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
2167
2205
  transitions?: Prisma.ContractTransitionUncheckedCreateNestedManyWithoutContractInput;
2168
2206
  events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
2207
+ terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
2169
2208
  prequalification?: Prisma.PrequalificationUncheckedCreateNestedOneWithoutContractInput;
2170
2209
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
2171
2210
  };
@@ -2217,6 +2256,7 @@ export type ContractUpdateWithoutDocumentsInput = {
2217
2256
  payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
2218
2257
  transitions?: Prisma.ContractTransitionUpdateManyWithoutContractNestedInput;
2219
2258
  events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
2259
+ terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
2220
2260
  prequalification?: Prisma.PrequalificationUpdateOneWithoutContractNestedInput;
2221
2261
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
2222
2262
  };
@@ -2255,6 +2295,7 @@ export type ContractUncheckedUpdateWithoutDocumentsInput = {
2255
2295
  payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
2256
2296
  transitions?: Prisma.ContractTransitionUncheckedUpdateManyWithoutContractNestedInput;
2257
2297
  events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
2298
+ terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
2258
2299
  prequalification?: Prisma.PrequalificationUncheckedUpdateOneWithoutContractNestedInput;
2259
2300
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
2260
2301
  };
@@ -2293,6 +2334,7 @@ export type ContractCreateWithoutTransitionsInput = {
2293
2334
  documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
2294
2335
  payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
2295
2336
  events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
2337
+ terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
2296
2338
  prequalification?: Prisma.PrequalificationCreateNestedOneWithoutContractInput;
2297
2339
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
2298
2340
  };
@@ -2331,6 +2373,7 @@ export type ContractUncheckedCreateWithoutTransitionsInput = {
2331
2373
  documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
2332
2374
  payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
2333
2375
  events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
2376
+ terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
2334
2377
  prequalification?: Prisma.PrequalificationUncheckedCreateNestedOneWithoutContractInput;
2335
2378
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
2336
2379
  };
@@ -2382,6 +2425,7 @@ export type ContractUpdateWithoutTransitionsInput = {
2382
2425
  documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
2383
2426
  payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
2384
2427
  events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
2428
+ terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
2385
2429
  prequalification?: Prisma.PrequalificationUpdateOneWithoutContractNestedInput;
2386
2430
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
2387
2431
  };
@@ -2420,6 +2464,7 @@ export type ContractUncheckedUpdateWithoutTransitionsInput = {
2420
2464
  documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
2421
2465
  payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
2422
2466
  events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
2467
+ terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
2423
2468
  prequalification?: Prisma.PrequalificationUncheckedUpdateOneWithoutContractNestedInput;
2424
2469
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
2425
2470
  };
@@ -2458,6 +2503,7 @@ export type ContractCreateWithoutEventsInput = {
2458
2503
  documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
2459
2504
  payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
2460
2505
  transitions?: Prisma.ContractTransitionCreateNestedManyWithoutContractInput;
2506
+ terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
2461
2507
  prequalification?: Prisma.PrequalificationCreateNestedOneWithoutContractInput;
2462
2508
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
2463
2509
  };
@@ -2496,6 +2542,7 @@ export type ContractUncheckedCreateWithoutEventsInput = {
2496
2542
  documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
2497
2543
  payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
2498
2544
  transitions?: Prisma.ContractTransitionUncheckedCreateNestedManyWithoutContractInput;
2545
+ terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
2499
2546
  prequalification?: Prisma.PrequalificationUncheckedCreateNestedOneWithoutContractInput;
2500
2547
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
2501
2548
  };
@@ -2547,6 +2594,7 @@ export type ContractUpdateWithoutEventsInput = {
2547
2594
  documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
2548
2595
  payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
2549
2596
  transitions?: Prisma.ContractTransitionUpdateManyWithoutContractNestedInput;
2597
+ terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
2550
2598
  prequalification?: Prisma.PrequalificationUpdateOneWithoutContractNestedInput;
2551
2599
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
2552
2600
  };
@@ -2585,6 +2633,176 @@ export type ContractUncheckedUpdateWithoutEventsInput = {
2585
2633
  documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
2586
2634
  payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
2587
2635
  transitions?: Prisma.ContractTransitionUncheckedUpdateManyWithoutContractNestedInput;
2636
+ terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
2637
+ prequalification?: Prisma.PrequalificationUncheckedUpdateOneWithoutContractNestedInput;
2638
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
2639
+ };
2640
+ export type ContractCreateWithoutTerminationsInput = {
2641
+ id?: string;
2642
+ contractNumber: string;
2643
+ title: string;
2644
+ description?: string | null;
2645
+ contractType: string;
2646
+ totalAmount: number;
2647
+ downPayment?: number;
2648
+ downPaymentPaid?: number;
2649
+ principal?: number | null;
2650
+ interestRate?: number | null;
2651
+ termMonths?: number | null;
2652
+ periodicPayment?: number | null;
2653
+ totalPaidToDate?: number;
2654
+ totalInterestPaid?: number;
2655
+ status?: $Enums.ContractStatus;
2656
+ state?: $Enums.ContractStatus;
2657
+ currentPhaseId?: string | null;
2658
+ nextPaymentDueDate?: Date | string | null;
2659
+ lastReminderSentAt?: Date | string | null;
2660
+ startDate?: Date | string | null;
2661
+ endDate?: Date | string | null;
2662
+ signedAt?: Date | string | null;
2663
+ terminatedAt?: Date | string | null;
2664
+ createdAt?: Date | string;
2665
+ updatedAt?: Date | string;
2666
+ tenant: Prisma.TenantCreateNestedOneWithoutContractsInput;
2667
+ propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutContractsInput;
2668
+ buyer: Prisma.UserCreateNestedOneWithoutContractsInput;
2669
+ seller?: Prisma.UserCreateNestedOneWithoutSoldContractsInput;
2670
+ paymentMethod?: Prisma.PropertyPaymentMethodCreateNestedOneWithoutContractsInput;
2671
+ phases?: Prisma.ContractPhaseCreateNestedManyWithoutContractInput;
2672
+ documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
2673
+ payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
2674
+ transitions?: Prisma.ContractTransitionCreateNestedManyWithoutContractInput;
2675
+ events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
2676
+ prequalification?: Prisma.PrequalificationCreateNestedOneWithoutContractInput;
2677
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
2678
+ };
2679
+ export type ContractUncheckedCreateWithoutTerminationsInput = {
2680
+ id?: string;
2681
+ tenantId: string;
2682
+ propertyUnitId: string;
2683
+ buyerId: string;
2684
+ sellerId?: string | null;
2685
+ paymentMethodId?: string | null;
2686
+ contractNumber: string;
2687
+ title: string;
2688
+ description?: string | null;
2689
+ contractType: string;
2690
+ totalAmount: number;
2691
+ downPayment?: number;
2692
+ downPaymentPaid?: number;
2693
+ principal?: number | null;
2694
+ interestRate?: number | null;
2695
+ termMonths?: number | null;
2696
+ periodicPayment?: number | null;
2697
+ totalPaidToDate?: number;
2698
+ totalInterestPaid?: number;
2699
+ status?: $Enums.ContractStatus;
2700
+ state?: $Enums.ContractStatus;
2701
+ currentPhaseId?: string | null;
2702
+ nextPaymentDueDate?: Date | string | null;
2703
+ lastReminderSentAt?: Date | string | null;
2704
+ startDate?: Date | string | null;
2705
+ endDate?: Date | string | null;
2706
+ signedAt?: Date | string | null;
2707
+ terminatedAt?: Date | string | null;
2708
+ createdAt?: Date | string;
2709
+ updatedAt?: Date | string;
2710
+ phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
2711
+ documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
2712
+ payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
2713
+ transitions?: Prisma.ContractTransitionUncheckedCreateNestedManyWithoutContractInput;
2714
+ events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
2715
+ prequalification?: Prisma.PrequalificationUncheckedCreateNestedOneWithoutContractInput;
2716
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
2717
+ };
2718
+ export type ContractCreateOrConnectWithoutTerminationsInput = {
2719
+ where: Prisma.ContractWhereUniqueInput;
2720
+ create: Prisma.XOR<Prisma.ContractCreateWithoutTerminationsInput, Prisma.ContractUncheckedCreateWithoutTerminationsInput>;
2721
+ };
2722
+ export type ContractUpsertWithoutTerminationsInput = {
2723
+ update: Prisma.XOR<Prisma.ContractUpdateWithoutTerminationsInput, Prisma.ContractUncheckedUpdateWithoutTerminationsInput>;
2724
+ create: Prisma.XOR<Prisma.ContractCreateWithoutTerminationsInput, Prisma.ContractUncheckedCreateWithoutTerminationsInput>;
2725
+ where?: Prisma.ContractWhereInput;
2726
+ };
2727
+ export type ContractUpdateToOneWithWhereWithoutTerminationsInput = {
2728
+ where?: Prisma.ContractWhereInput;
2729
+ data: Prisma.XOR<Prisma.ContractUpdateWithoutTerminationsInput, Prisma.ContractUncheckedUpdateWithoutTerminationsInput>;
2730
+ };
2731
+ export type ContractUpdateWithoutTerminationsInput = {
2732
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2733
+ contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
2734
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
2735
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2736
+ contractType?: Prisma.StringFieldUpdateOperationsInput | string;
2737
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
2738
+ downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
2739
+ downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
2740
+ principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
2741
+ interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
2742
+ termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
2743
+ periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
2744
+ totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
2745
+ totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
2746
+ status?: Prisma.EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus;
2747
+ state?: Prisma.EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus;
2748
+ currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2749
+ nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2750
+ lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2751
+ startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2752
+ endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2753
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2754
+ terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2755
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2756
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2757
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutContractsNestedInput;
2758
+ propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutContractsNestedInput;
2759
+ buyer?: Prisma.UserUpdateOneRequiredWithoutContractsNestedInput;
2760
+ seller?: Prisma.UserUpdateOneWithoutSoldContractsNestedInput;
2761
+ paymentMethod?: Prisma.PropertyPaymentMethodUpdateOneWithoutContractsNestedInput;
2762
+ phases?: Prisma.ContractPhaseUpdateManyWithoutContractNestedInput;
2763
+ documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
2764
+ payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
2765
+ transitions?: Prisma.ContractTransitionUpdateManyWithoutContractNestedInput;
2766
+ events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
2767
+ prequalification?: Prisma.PrequalificationUpdateOneWithoutContractNestedInput;
2768
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
2769
+ };
2770
+ export type ContractUncheckedUpdateWithoutTerminationsInput = {
2771
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2772
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
2773
+ propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
2774
+ buyerId?: Prisma.StringFieldUpdateOperationsInput | string;
2775
+ sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2776
+ paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2777
+ contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
2778
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
2779
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2780
+ contractType?: Prisma.StringFieldUpdateOperationsInput | string;
2781
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
2782
+ downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
2783
+ downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
2784
+ principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
2785
+ interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
2786
+ termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
2787
+ periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
2788
+ totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
2789
+ totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
2790
+ status?: Prisma.EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus;
2791
+ state?: Prisma.EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus;
2792
+ currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2793
+ nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2794
+ lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2795
+ startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2796
+ endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2797
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2798
+ terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2799
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2800
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2801
+ phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
2802
+ documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
2803
+ payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
2804
+ transitions?: Prisma.ContractTransitionUncheckedUpdateManyWithoutContractNestedInput;
2805
+ events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
2588
2806
  prequalification?: Prisma.PrequalificationUncheckedUpdateOneWithoutContractNestedInput;
2589
2807
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
2590
2808
  };
@@ -2624,6 +2842,7 @@ export type ContractCreateWithoutPrequalificationInput = {
2624
2842
  payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
2625
2843
  transitions?: Prisma.ContractTransitionCreateNestedManyWithoutContractInput;
2626
2844
  events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
2845
+ terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
2627
2846
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
2628
2847
  };
2629
2848
  export type ContractUncheckedCreateWithoutPrequalificationInput = {
@@ -2662,6 +2881,7 @@ export type ContractUncheckedCreateWithoutPrequalificationInput = {
2662
2881
  payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
2663
2882
  transitions?: Prisma.ContractTransitionUncheckedCreateNestedManyWithoutContractInput;
2664
2883
  events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
2884
+ terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
2665
2885
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
2666
2886
  };
2667
2887
  export type ContractCreateOrConnectWithoutPrequalificationInput = {
@@ -2713,6 +2933,7 @@ export type ContractUpdateWithoutPrequalificationInput = {
2713
2933
  payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
2714
2934
  transitions?: Prisma.ContractTransitionUpdateManyWithoutContractNestedInput;
2715
2935
  events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
2936
+ terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
2716
2937
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
2717
2938
  };
2718
2939
  export type ContractUncheckedUpdateWithoutPrequalificationInput = {
@@ -2751,6 +2972,7 @@ export type ContractUncheckedUpdateWithoutPrequalificationInput = {
2751
2972
  payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
2752
2973
  transitions?: Prisma.ContractTransitionUncheckedUpdateManyWithoutContractNestedInput;
2753
2974
  events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
2975
+ terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
2754
2976
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
2755
2977
  };
2756
2978
  export type ContractCreateWithoutPaymentMethodChangeRequestsInput = {
@@ -2789,6 +3011,7 @@ export type ContractCreateWithoutPaymentMethodChangeRequestsInput = {
2789
3011
  payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
2790
3012
  transitions?: Prisma.ContractTransitionCreateNestedManyWithoutContractInput;
2791
3013
  events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
3014
+ terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
2792
3015
  prequalification?: Prisma.PrequalificationCreateNestedOneWithoutContractInput;
2793
3016
  };
2794
3017
  export type ContractUncheckedCreateWithoutPaymentMethodChangeRequestsInput = {
@@ -2827,6 +3050,7 @@ export type ContractUncheckedCreateWithoutPaymentMethodChangeRequestsInput = {
2827
3050
  payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
2828
3051
  transitions?: Prisma.ContractTransitionUncheckedCreateNestedManyWithoutContractInput;
2829
3052
  events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
3053
+ terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
2830
3054
  prequalification?: Prisma.PrequalificationUncheckedCreateNestedOneWithoutContractInput;
2831
3055
  };
2832
3056
  export type ContractCreateOrConnectWithoutPaymentMethodChangeRequestsInput = {
@@ -2878,6 +3102,7 @@ export type ContractUpdateWithoutPaymentMethodChangeRequestsInput = {
2878
3102
  payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
2879
3103
  transitions?: Prisma.ContractTransitionUpdateManyWithoutContractNestedInput;
2880
3104
  events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
3105
+ terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
2881
3106
  prequalification?: Prisma.PrequalificationUpdateOneWithoutContractNestedInput;
2882
3107
  };
2883
3108
  export type ContractUncheckedUpdateWithoutPaymentMethodChangeRequestsInput = {
@@ -2916,6 +3141,7 @@ export type ContractUncheckedUpdateWithoutPaymentMethodChangeRequestsInput = {
2916
3141
  payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
2917
3142
  transitions?: Prisma.ContractTransitionUncheckedUpdateManyWithoutContractNestedInput;
2918
3143
  events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
3144
+ terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
2919
3145
  prequalification?: Prisma.PrequalificationUncheckedUpdateOneWithoutContractNestedInput;
2920
3146
  };
2921
3147
  export type ContractCreateManyBuyerInput = {
@@ -3015,6 +3241,7 @@ export type ContractUpdateWithoutBuyerInput = {
3015
3241
  payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
3016
3242
  transitions?: Prisma.ContractTransitionUpdateManyWithoutContractNestedInput;
3017
3243
  events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
3244
+ terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
3018
3245
  prequalification?: Prisma.PrequalificationUpdateOneWithoutContractNestedInput;
3019
3246
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
3020
3247
  };
@@ -3053,6 +3280,7 @@ export type ContractUncheckedUpdateWithoutBuyerInput = {
3053
3280
  payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
3054
3281
  transitions?: Prisma.ContractTransitionUncheckedUpdateManyWithoutContractNestedInput;
3055
3282
  events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
3283
+ terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
3056
3284
  prequalification?: Prisma.PrequalificationUncheckedUpdateOneWithoutContractNestedInput;
3057
3285
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
3058
3286
  };
@@ -3122,6 +3350,7 @@ export type ContractUpdateWithoutSellerInput = {
3122
3350
  payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
3123
3351
  transitions?: Prisma.ContractTransitionUpdateManyWithoutContractNestedInput;
3124
3352
  events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
3353
+ terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
3125
3354
  prequalification?: Prisma.PrequalificationUpdateOneWithoutContractNestedInput;
3126
3355
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
3127
3356
  };
@@ -3160,6 +3389,7 @@ export type ContractUncheckedUpdateWithoutSellerInput = {
3160
3389
  payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
3161
3390
  transitions?: Prisma.ContractTransitionUncheckedUpdateManyWithoutContractNestedInput;
3162
3391
  events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
3392
+ terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
3163
3393
  prequalification?: Prisma.PrequalificationUncheckedUpdateOneWithoutContractNestedInput;
3164
3394
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
3165
3395
  };
@@ -3260,6 +3490,7 @@ export type ContractUpdateWithoutTenantInput = {
3260
3490
  payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
3261
3491
  transitions?: Prisma.ContractTransitionUpdateManyWithoutContractNestedInput;
3262
3492
  events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
3493
+ terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
3263
3494
  prequalification?: Prisma.PrequalificationUpdateOneWithoutContractNestedInput;
3264
3495
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
3265
3496
  };
@@ -3298,6 +3529,7 @@ export type ContractUncheckedUpdateWithoutTenantInput = {
3298
3529
  payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
3299
3530
  transitions?: Prisma.ContractTransitionUncheckedUpdateManyWithoutContractNestedInput;
3300
3531
  events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
3532
+ terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
3301
3533
  prequalification?: Prisma.PrequalificationUncheckedUpdateOneWithoutContractNestedInput;
3302
3534
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
3303
3535
  };
@@ -3398,6 +3630,7 @@ export type ContractUpdateWithoutPropertyUnitInput = {
3398
3630
  payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
3399
3631
  transitions?: Prisma.ContractTransitionUpdateManyWithoutContractNestedInput;
3400
3632
  events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
3633
+ terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
3401
3634
  prequalification?: Prisma.PrequalificationUpdateOneWithoutContractNestedInput;
3402
3635
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
3403
3636
  };
@@ -3436,6 +3669,7 @@ export type ContractUncheckedUpdateWithoutPropertyUnitInput = {
3436
3669
  payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
3437
3670
  transitions?: Prisma.ContractTransitionUncheckedUpdateManyWithoutContractNestedInput;
3438
3671
  events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
3672
+ terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
3439
3673
  prequalification?: Prisma.PrequalificationUncheckedUpdateOneWithoutContractNestedInput;
3440
3674
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
3441
3675
  };
@@ -3536,6 +3770,7 @@ export type ContractUpdateWithoutPaymentMethodInput = {
3536
3770
  payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
3537
3771
  transitions?: Prisma.ContractTransitionUpdateManyWithoutContractNestedInput;
3538
3772
  events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
3773
+ terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
3539
3774
  prequalification?: Prisma.PrequalificationUpdateOneWithoutContractNestedInput;
3540
3775
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
3541
3776
  };
@@ -3574,6 +3809,7 @@ export type ContractUncheckedUpdateWithoutPaymentMethodInput = {
3574
3809
  payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
3575
3810
  transitions?: Prisma.ContractTransitionUncheckedUpdateManyWithoutContractNestedInput;
3576
3811
  events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
3812
+ terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
3577
3813
  prequalification?: Prisma.PrequalificationUncheckedUpdateOneWithoutContractNestedInput;
3578
3814
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
3579
3815
  };
@@ -3617,6 +3853,7 @@ export type ContractCountOutputType = {
3617
3853
  payments: number;
3618
3854
  transitions: number;
3619
3855
  events: number;
3856
+ terminations: number;
3620
3857
  paymentMethodChangeRequests: number;
3621
3858
  };
3622
3859
  export type ContractCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -3625,6 +3862,7 @@ export type ContractCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensio
3625
3862
  payments?: boolean | ContractCountOutputTypeCountPaymentsArgs;
3626
3863
  transitions?: boolean | ContractCountOutputTypeCountTransitionsArgs;
3627
3864
  events?: boolean | ContractCountOutputTypeCountEventsArgs;
3865
+ terminations?: boolean | ContractCountOutputTypeCountTerminationsArgs;
3628
3866
  paymentMethodChangeRequests?: boolean | ContractCountOutputTypeCountPaymentMethodChangeRequestsArgs;
3629
3867
  };
3630
3868
  /**
@@ -3666,6 +3904,12 @@ export type ContractCountOutputTypeCountTransitionsArgs<ExtArgs extends runtime.
3666
3904
  export type ContractCountOutputTypeCountEventsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3667
3905
  where?: Prisma.ContractEventWhereInput;
3668
3906
  };
3907
+ /**
3908
+ * ContractCountOutputType without action
3909
+ */
3910
+ export type ContractCountOutputTypeCountTerminationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3911
+ where?: Prisma.ContractTerminationWhereInput;
3912
+ };
3669
3913
  /**
3670
3914
  * ContractCountOutputType without action
3671
3915
  */
@@ -3713,6 +3957,7 @@ export type ContractSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
3713
3957
  payments?: boolean | Prisma.Contract$paymentsArgs<ExtArgs>;
3714
3958
  transitions?: boolean | Prisma.Contract$transitionsArgs<ExtArgs>;
3715
3959
  events?: boolean | Prisma.Contract$eventsArgs<ExtArgs>;
3960
+ terminations?: boolean | Prisma.Contract$terminationsArgs<ExtArgs>;
3716
3961
  prequalification?: boolean | Prisma.Contract$prequalificationArgs<ExtArgs>;
3717
3962
  paymentMethodChangeRequests?: boolean | Prisma.Contract$paymentMethodChangeRequestsArgs<ExtArgs>;
3718
3963
  _count?: boolean | Prisma.ContractCountOutputTypeDefaultArgs<ExtArgs>;
@@ -3761,6 +4006,7 @@ export type ContractInclude<ExtArgs extends runtime.Types.Extensions.InternalArg
3761
4006
  payments?: boolean | Prisma.Contract$paymentsArgs<ExtArgs>;
3762
4007
  transitions?: boolean | Prisma.Contract$transitionsArgs<ExtArgs>;
3763
4008
  events?: boolean | Prisma.Contract$eventsArgs<ExtArgs>;
4009
+ terminations?: boolean | Prisma.Contract$terminationsArgs<ExtArgs>;
3764
4010
  prequalification?: boolean | Prisma.Contract$prequalificationArgs<ExtArgs>;
3765
4011
  paymentMethodChangeRequests?: boolean | Prisma.Contract$paymentMethodChangeRequestsArgs<ExtArgs>;
3766
4012
  _count?: boolean | Prisma.ContractCountOutputTypeDefaultArgs<ExtArgs>;
@@ -3778,6 +4024,7 @@ export type $ContractPayload<ExtArgs extends runtime.Types.Extensions.InternalAr
3778
4024
  payments: Prisma.$ContractPaymentPayload<ExtArgs>[];
3779
4025
  transitions: Prisma.$ContractTransitionPayload<ExtArgs>[];
3780
4026
  events: Prisma.$ContractEventPayload<ExtArgs>[];
4027
+ terminations: Prisma.$ContractTerminationPayload<ExtArgs>[];
3781
4028
  prequalification: Prisma.$PrequalificationPayload<ExtArgs> | null;
3782
4029
  paymentMethodChangeRequests: Prisma.$PaymentMethodChangeRequestPayload<ExtArgs>[];
3783
4030
  };
@@ -4099,6 +4346,7 @@ export interface Prisma__ContractClient<T, Null = never, ExtArgs extends runtime
4099
4346
  payments<T extends Prisma.Contract$paymentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Contract$paymentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractPaymentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
4100
4347
  transitions<T extends Prisma.Contract$transitionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Contract$transitionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractTransitionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
4101
4348
  events<T extends Prisma.Contract$eventsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Contract$eventsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractEventPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
4349
+ terminations<T extends Prisma.Contract$terminationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Contract$terminationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractTerminationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
4102
4350
  prequalification<T extends Prisma.Contract$prequalificationArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Contract$prequalificationArgs<ExtArgs>>): Prisma.Prisma__PrequalificationClient<runtime.Types.Result.GetResult<Prisma.$PrequalificationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
4103
4351
  paymentMethodChangeRequests<T extends Prisma.Contract$paymentMethodChangeRequestsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Contract$paymentMethodChangeRequestsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentMethodChangeRequestPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
4104
4352
  /**
@@ -4634,6 +4882,29 @@ export type Contract$eventsArgs<ExtArgs extends runtime.Types.Extensions.Interna
4634
4882
  skip?: number;
4635
4883
  distinct?: Prisma.ContractEventScalarFieldEnum | Prisma.ContractEventScalarFieldEnum[];
4636
4884
  };
4885
+ /**
4886
+ * Contract.terminations
4887
+ */
4888
+ export type Contract$terminationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4889
+ /**
4890
+ * Select specific fields to fetch from the ContractTermination
4891
+ */
4892
+ select?: Prisma.ContractTerminationSelect<ExtArgs> | null;
4893
+ /**
4894
+ * Omit specific fields from the ContractTermination
4895
+ */
4896
+ omit?: Prisma.ContractTerminationOmit<ExtArgs> | null;
4897
+ /**
4898
+ * Choose, which related nodes to fetch as well
4899
+ */
4900
+ include?: Prisma.ContractTerminationInclude<ExtArgs> | null;
4901
+ where?: Prisma.ContractTerminationWhereInput;
4902
+ orderBy?: Prisma.ContractTerminationOrderByWithRelationInput | Prisma.ContractTerminationOrderByWithRelationInput[];
4903
+ cursor?: Prisma.ContractTerminationWhereUniqueInput;
4904
+ take?: number;
4905
+ skip?: number;
4906
+ distinct?: Prisma.ContractTerminationScalarFieldEnum | Prisma.ContractTerminationScalarFieldEnum[];
4907
+ };
4637
4908
  /**
4638
4909
  * Contract.prequalification
4639
4910
  */