@valentine-efagene/qshelter-common 2.0.73 → 2.0.75

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.
@@ -162,6 +162,7 @@ export type TenantWhereInput = {
162
162
  eventHandlers?: Prisma.EventHandlerListRelationFilter;
163
163
  workflowEvents?: Prisma.WorkflowEventListRelationFilter;
164
164
  propertyTransferRequests?: Prisma.PropertyTransferRequestListRelationFilter;
165
+ approvalRequests?: Prisma.ApprovalRequestListRelationFilter;
165
166
  };
166
167
  export type TenantOrderByWithRelationInput = {
167
168
  id?: Prisma.SortOrder;
@@ -186,6 +187,7 @@ export type TenantOrderByWithRelationInput = {
186
187
  eventHandlers?: Prisma.EventHandlerOrderByRelationAggregateInput;
187
188
  workflowEvents?: Prisma.WorkflowEventOrderByRelationAggregateInput;
188
189
  propertyTransferRequests?: Prisma.PropertyTransferRequestOrderByRelationAggregateInput;
190
+ approvalRequests?: Prisma.ApprovalRequestOrderByRelationAggregateInput;
189
191
  _relevance?: Prisma.TenantOrderByRelevanceInput;
190
192
  };
191
193
  export type TenantWhereUniqueInput = Prisma.AtLeast<{
@@ -214,6 +216,7 @@ export type TenantWhereUniqueInput = Prisma.AtLeast<{
214
216
  eventHandlers?: Prisma.EventHandlerListRelationFilter;
215
217
  workflowEvents?: Prisma.WorkflowEventListRelationFilter;
216
218
  propertyTransferRequests?: Prisma.PropertyTransferRequestListRelationFilter;
219
+ approvalRequests?: Prisma.ApprovalRequestListRelationFilter;
217
220
  }, "id" | "subdomain">;
218
221
  export type TenantOrderByWithAggregationInput = {
219
222
  id?: Prisma.SortOrder;
@@ -260,6 +263,7 @@ export type TenantCreateInput = {
260
263
  eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
261
264
  workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
262
265
  propertyTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTenantInput;
266
+ approvalRequests?: Prisma.ApprovalRequestCreateNestedManyWithoutTenantInput;
263
267
  };
264
268
  export type TenantUncheckedCreateInput = {
265
269
  id?: string;
@@ -284,6 +288,7 @@ export type TenantUncheckedCreateInput = {
284
288
  eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
285
289
  workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
286
290
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTenantInput;
291
+ approvalRequests?: Prisma.ApprovalRequestUncheckedCreateNestedManyWithoutTenantInput;
287
292
  };
288
293
  export type TenantUpdateInput = {
289
294
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -308,6 +313,7 @@ export type TenantUpdateInput = {
308
313
  eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
309
314
  workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
310
315
  propertyTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTenantNestedInput;
316
+ approvalRequests?: Prisma.ApprovalRequestUpdateManyWithoutTenantNestedInput;
311
317
  };
312
318
  export type TenantUncheckedUpdateInput = {
313
319
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -332,6 +338,7 @@ export type TenantUncheckedUpdateInput = {
332
338
  eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
333
339
  workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
334
340
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTenantNestedInput;
341
+ approvalRequests?: Prisma.ApprovalRequestUncheckedUpdateManyWithoutTenantNestedInput;
335
342
  };
336
343
  export type TenantCreateManyInput = {
337
344
  id?: string;
@@ -590,6 +597,18 @@ export type TenantUpdateOneRequiredWithoutPropertyTransferRequestsNestedInput =
590
597
  connect?: Prisma.TenantWhereUniqueInput;
591
598
  update?: Prisma.XOR<Prisma.XOR<Prisma.TenantUpdateToOneWithWhereWithoutPropertyTransferRequestsInput, Prisma.TenantUpdateWithoutPropertyTransferRequestsInput>, Prisma.TenantUncheckedUpdateWithoutPropertyTransferRequestsInput>;
592
599
  };
600
+ export type TenantCreateNestedOneWithoutApprovalRequestsInput = {
601
+ create?: Prisma.XOR<Prisma.TenantCreateWithoutApprovalRequestsInput, Prisma.TenantUncheckedCreateWithoutApprovalRequestsInput>;
602
+ connectOrCreate?: Prisma.TenantCreateOrConnectWithoutApprovalRequestsInput;
603
+ connect?: Prisma.TenantWhereUniqueInput;
604
+ };
605
+ export type TenantUpdateOneRequiredWithoutApprovalRequestsNestedInput = {
606
+ create?: Prisma.XOR<Prisma.TenantCreateWithoutApprovalRequestsInput, Prisma.TenantUncheckedCreateWithoutApprovalRequestsInput>;
607
+ connectOrCreate?: Prisma.TenantCreateOrConnectWithoutApprovalRequestsInput;
608
+ upsert?: Prisma.TenantUpsertWithoutApprovalRequestsInput;
609
+ connect?: Prisma.TenantWhereUniqueInput;
610
+ update?: Prisma.XOR<Prisma.XOR<Prisma.TenantUpdateToOneWithWhereWithoutApprovalRequestsInput, Prisma.TenantUpdateWithoutApprovalRequestsInput>, Prisma.TenantUncheckedUpdateWithoutApprovalRequestsInput>;
611
+ };
593
612
  export type TenantCreateWithoutUsersInput = {
594
613
  id?: string;
595
614
  name: string;
@@ -612,6 +631,7 @@ export type TenantCreateWithoutUsersInput = {
612
631
  eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
613
632
  workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
614
633
  propertyTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTenantInput;
634
+ approvalRequests?: Prisma.ApprovalRequestCreateNestedManyWithoutTenantInput;
615
635
  };
616
636
  export type TenantUncheckedCreateWithoutUsersInput = {
617
637
  id?: string;
@@ -635,6 +655,7 @@ export type TenantUncheckedCreateWithoutUsersInput = {
635
655
  eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
636
656
  workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
637
657
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTenantInput;
658
+ approvalRequests?: Prisma.ApprovalRequestUncheckedCreateNestedManyWithoutTenantInput;
638
659
  };
639
660
  export type TenantCreateOrConnectWithoutUsersInput = {
640
661
  where: Prisma.TenantWhereUniqueInput;
@@ -671,6 +692,7 @@ export type TenantUpdateWithoutUsersInput = {
671
692
  eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
672
693
  workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
673
694
  propertyTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTenantNestedInput;
695
+ approvalRequests?: Prisma.ApprovalRequestUpdateManyWithoutTenantNestedInput;
674
696
  };
675
697
  export type TenantUncheckedUpdateWithoutUsersInput = {
676
698
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -694,6 +716,7 @@ export type TenantUncheckedUpdateWithoutUsersInput = {
694
716
  eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
695
717
  workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
696
718
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTenantNestedInput;
719
+ approvalRequests?: Prisma.ApprovalRequestUncheckedUpdateManyWithoutTenantNestedInput;
697
720
  };
698
721
  export type TenantCreateWithoutApiKeysInput = {
699
722
  id?: string;
@@ -717,6 +740,7 @@ export type TenantCreateWithoutApiKeysInput = {
717
740
  eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
718
741
  workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
719
742
  propertyTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTenantInput;
743
+ approvalRequests?: Prisma.ApprovalRequestCreateNestedManyWithoutTenantInput;
720
744
  };
721
745
  export type TenantUncheckedCreateWithoutApiKeysInput = {
722
746
  id?: string;
@@ -740,6 +764,7 @@ export type TenantUncheckedCreateWithoutApiKeysInput = {
740
764
  eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
741
765
  workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
742
766
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTenantInput;
767
+ approvalRequests?: Prisma.ApprovalRequestUncheckedCreateNestedManyWithoutTenantInput;
743
768
  };
744
769
  export type TenantCreateOrConnectWithoutApiKeysInput = {
745
770
  where: Prisma.TenantWhereUniqueInput;
@@ -776,6 +801,7 @@ export type TenantUpdateWithoutApiKeysInput = {
776
801
  eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
777
802
  workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
778
803
  propertyTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTenantNestedInput;
804
+ approvalRequests?: Prisma.ApprovalRequestUpdateManyWithoutTenantNestedInput;
779
805
  };
780
806
  export type TenantUncheckedUpdateWithoutApiKeysInput = {
781
807
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -799,6 +825,7 @@ export type TenantUncheckedUpdateWithoutApiKeysInput = {
799
825
  eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
800
826
  workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
801
827
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTenantNestedInput;
828
+ approvalRequests?: Prisma.ApprovalRequestUncheckedUpdateManyWithoutTenantNestedInput;
802
829
  };
803
830
  export type TenantCreateWithoutPropertiesInput = {
804
831
  id?: string;
@@ -822,6 +849,7 @@ export type TenantCreateWithoutPropertiesInput = {
822
849
  eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
823
850
  workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
824
851
  propertyTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTenantInput;
852
+ approvalRequests?: Prisma.ApprovalRequestCreateNestedManyWithoutTenantInput;
825
853
  };
826
854
  export type TenantUncheckedCreateWithoutPropertiesInput = {
827
855
  id?: string;
@@ -845,6 +873,7 @@ export type TenantUncheckedCreateWithoutPropertiesInput = {
845
873
  eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
846
874
  workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
847
875
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTenantInput;
876
+ approvalRequests?: Prisma.ApprovalRequestUncheckedCreateNestedManyWithoutTenantInput;
848
877
  };
849
878
  export type TenantCreateOrConnectWithoutPropertiesInput = {
850
879
  where: Prisma.TenantWhereUniqueInput;
@@ -881,6 +910,7 @@ export type TenantUpdateWithoutPropertiesInput = {
881
910
  eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
882
911
  workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
883
912
  propertyTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTenantNestedInput;
913
+ approvalRequests?: Prisma.ApprovalRequestUpdateManyWithoutTenantNestedInput;
884
914
  };
885
915
  export type TenantUncheckedUpdateWithoutPropertiesInput = {
886
916
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -904,6 +934,7 @@ export type TenantUncheckedUpdateWithoutPropertiesInput = {
904
934
  eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
905
935
  workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
906
936
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTenantNestedInput;
937
+ approvalRequests?: Prisma.ApprovalRequestUncheckedUpdateManyWithoutTenantNestedInput;
907
938
  };
908
939
  export type TenantCreateWithoutPaymentPlansInput = {
909
940
  id?: string;
@@ -927,6 +958,7 @@ export type TenantCreateWithoutPaymentPlansInput = {
927
958
  eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
928
959
  workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
929
960
  propertyTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTenantInput;
961
+ approvalRequests?: Prisma.ApprovalRequestCreateNestedManyWithoutTenantInput;
930
962
  };
931
963
  export type TenantUncheckedCreateWithoutPaymentPlansInput = {
932
964
  id?: string;
@@ -950,6 +982,7 @@ export type TenantUncheckedCreateWithoutPaymentPlansInput = {
950
982
  eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
951
983
  workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
952
984
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTenantInput;
985
+ approvalRequests?: Prisma.ApprovalRequestUncheckedCreateNestedManyWithoutTenantInput;
953
986
  };
954
987
  export type TenantCreateOrConnectWithoutPaymentPlansInput = {
955
988
  where: Prisma.TenantWhereUniqueInput;
@@ -986,6 +1019,7 @@ export type TenantUpdateWithoutPaymentPlansInput = {
986
1019
  eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
987
1020
  workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
988
1021
  propertyTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTenantNestedInput;
1022
+ approvalRequests?: Prisma.ApprovalRequestUpdateManyWithoutTenantNestedInput;
989
1023
  };
990
1024
  export type TenantUncheckedUpdateWithoutPaymentPlansInput = {
991
1025
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1009,6 +1043,7 @@ export type TenantUncheckedUpdateWithoutPaymentPlansInput = {
1009
1043
  eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
1010
1044
  workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
1011
1045
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTenantNestedInput;
1046
+ approvalRequests?: Prisma.ApprovalRequestUncheckedUpdateManyWithoutTenantNestedInput;
1012
1047
  };
1013
1048
  export type TenantCreateWithoutPaymentMethodsInput = {
1014
1049
  id?: string;
@@ -1032,6 +1067,7 @@ export type TenantCreateWithoutPaymentMethodsInput = {
1032
1067
  eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
1033
1068
  workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
1034
1069
  propertyTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTenantInput;
1070
+ approvalRequests?: Prisma.ApprovalRequestCreateNestedManyWithoutTenantInput;
1035
1071
  };
1036
1072
  export type TenantUncheckedCreateWithoutPaymentMethodsInput = {
1037
1073
  id?: string;
@@ -1055,6 +1091,7 @@ export type TenantUncheckedCreateWithoutPaymentMethodsInput = {
1055
1091
  eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
1056
1092
  workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
1057
1093
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTenantInput;
1094
+ approvalRequests?: Prisma.ApprovalRequestUncheckedCreateNestedManyWithoutTenantInput;
1058
1095
  };
1059
1096
  export type TenantCreateOrConnectWithoutPaymentMethodsInput = {
1060
1097
  where: Prisma.TenantWhereUniqueInput;
@@ -1091,6 +1128,7 @@ export type TenantUpdateWithoutPaymentMethodsInput = {
1091
1128
  eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
1092
1129
  workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
1093
1130
  propertyTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTenantNestedInput;
1131
+ approvalRequests?: Prisma.ApprovalRequestUpdateManyWithoutTenantNestedInput;
1094
1132
  };
1095
1133
  export type TenantUncheckedUpdateWithoutPaymentMethodsInput = {
1096
1134
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1114,6 +1152,7 @@ export type TenantUncheckedUpdateWithoutPaymentMethodsInput = {
1114
1152
  eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
1115
1153
  workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
1116
1154
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTenantNestedInput;
1155
+ approvalRequests?: Prisma.ApprovalRequestUncheckedUpdateManyWithoutTenantNestedInput;
1117
1156
  };
1118
1157
  export type TenantCreateWithoutContractsInput = {
1119
1158
  id?: string;
@@ -1137,6 +1176,7 @@ export type TenantCreateWithoutContractsInput = {
1137
1176
  eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
1138
1177
  workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
1139
1178
  propertyTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTenantInput;
1179
+ approvalRequests?: Prisma.ApprovalRequestCreateNestedManyWithoutTenantInput;
1140
1180
  };
1141
1181
  export type TenantUncheckedCreateWithoutContractsInput = {
1142
1182
  id?: string;
@@ -1160,6 +1200,7 @@ export type TenantUncheckedCreateWithoutContractsInput = {
1160
1200
  eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
1161
1201
  workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
1162
1202
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTenantInput;
1203
+ approvalRequests?: Prisma.ApprovalRequestUncheckedCreateNestedManyWithoutTenantInput;
1163
1204
  };
1164
1205
  export type TenantCreateOrConnectWithoutContractsInput = {
1165
1206
  where: Prisma.TenantWhereUniqueInput;
@@ -1196,6 +1237,7 @@ export type TenantUpdateWithoutContractsInput = {
1196
1237
  eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
1197
1238
  workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
1198
1239
  propertyTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTenantNestedInput;
1240
+ approvalRequests?: Prisma.ApprovalRequestUpdateManyWithoutTenantNestedInput;
1199
1241
  };
1200
1242
  export type TenantUncheckedUpdateWithoutContractsInput = {
1201
1243
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1219,6 +1261,7 @@ export type TenantUncheckedUpdateWithoutContractsInput = {
1219
1261
  eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
1220
1262
  workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
1221
1263
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTenantNestedInput;
1264
+ approvalRequests?: Prisma.ApprovalRequestUncheckedUpdateManyWithoutTenantNestedInput;
1222
1265
  };
1223
1266
  export type TenantCreateWithoutDocumentTemplatesInput = {
1224
1267
  id?: string;
@@ -1242,6 +1285,7 @@ export type TenantCreateWithoutDocumentTemplatesInput = {
1242
1285
  eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
1243
1286
  workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
1244
1287
  propertyTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTenantInput;
1288
+ approvalRequests?: Prisma.ApprovalRequestCreateNestedManyWithoutTenantInput;
1245
1289
  };
1246
1290
  export type TenantUncheckedCreateWithoutDocumentTemplatesInput = {
1247
1291
  id?: string;
@@ -1265,6 +1309,7 @@ export type TenantUncheckedCreateWithoutDocumentTemplatesInput = {
1265
1309
  eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
1266
1310
  workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
1267
1311
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTenantInput;
1312
+ approvalRequests?: Prisma.ApprovalRequestUncheckedCreateNestedManyWithoutTenantInput;
1268
1313
  };
1269
1314
  export type TenantCreateOrConnectWithoutDocumentTemplatesInput = {
1270
1315
  where: Prisma.TenantWhereUniqueInput;
@@ -1301,6 +1346,7 @@ export type TenantUpdateWithoutDocumentTemplatesInput = {
1301
1346
  eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
1302
1347
  workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
1303
1348
  propertyTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTenantNestedInput;
1349
+ approvalRequests?: Prisma.ApprovalRequestUpdateManyWithoutTenantNestedInput;
1304
1350
  };
1305
1351
  export type TenantUncheckedUpdateWithoutDocumentTemplatesInput = {
1306
1352
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1324,6 +1370,7 @@ export type TenantUncheckedUpdateWithoutDocumentTemplatesInput = {
1324
1370
  eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
1325
1371
  workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
1326
1372
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTenantNestedInput;
1373
+ approvalRequests?: Prisma.ApprovalRequestUncheckedUpdateManyWithoutTenantNestedInput;
1327
1374
  };
1328
1375
  export type TenantCreateWithoutOfferLettersInput = {
1329
1376
  id?: string;
@@ -1347,6 +1394,7 @@ export type TenantCreateWithoutOfferLettersInput = {
1347
1394
  eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
1348
1395
  workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
1349
1396
  propertyTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTenantInput;
1397
+ approvalRequests?: Prisma.ApprovalRequestCreateNestedManyWithoutTenantInput;
1350
1398
  };
1351
1399
  export type TenantUncheckedCreateWithoutOfferLettersInput = {
1352
1400
  id?: string;
@@ -1370,6 +1418,7 @@ export type TenantUncheckedCreateWithoutOfferLettersInput = {
1370
1418
  eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
1371
1419
  workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
1372
1420
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTenantInput;
1421
+ approvalRequests?: Prisma.ApprovalRequestUncheckedCreateNestedManyWithoutTenantInput;
1373
1422
  };
1374
1423
  export type TenantCreateOrConnectWithoutOfferLettersInput = {
1375
1424
  where: Prisma.TenantWhereUniqueInput;
@@ -1406,6 +1455,7 @@ export type TenantUpdateWithoutOfferLettersInput = {
1406
1455
  eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
1407
1456
  workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
1408
1457
  propertyTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTenantNestedInput;
1458
+ approvalRequests?: Prisma.ApprovalRequestUpdateManyWithoutTenantNestedInput;
1409
1459
  };
1410
1460
  export type TenantUncheckedUpdateWithoutOfferLettersInput = {
1411
1461
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1429,6 +1479,7 @@ export type TenantUncheckedUpdateWithoutOfferLettersInput = {
1429
1479
  eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
1430
1480
  workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
1431
1481
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTenantNestedInput;
1482
+ approvalRequests?: Prisma.ApprovalRequestUncheckedUpdateManyWithoutTenantNestedInput;
1432
1483
  };
1433
1484
  export type TenantCreateWithoutContractTerminationsInput = {
1434
1485
  id?: string;
@@ -1452,6 +1503,7 @@ export type TenantCreateWithoutContractTerminationsInput = {
1452
1503
  eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
1453
1504
  workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
1454
1505
  propertyTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTenantInput;
1506
+ approvalRequests?: Prisma.ApprovalRequestCreateNestedManyWithoutTenantInput;
1455
1507
  };
1456
1508
  export type TenantUncheckedCreateWithoutContractTerminationsInput = {
1457
1509
  id?: string;
@@ -1475,6 +1527,7 @@ export type TenantUncheckedCreateWithoutContractTerminationsInput = {
1475
1527
  eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
1476
1528
  workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
1477
1529
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTenantInput;
1530
+ approvalRequests?: Prisma.ApprovalRequestUncheckedCreateNestedManyWithoutTenantInput;
1478
1531
  };
1479
1532
  export type TenantCreateOrConnectWithoutContractTerminationsInput = {
1480
1533
  where: Prisma.TenantWhereUniqueInput;
@@ -1511,6 +1564,7 @@ export type TenantUpdateWithoutContractTerminationsInput = {
1511
1564
  eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
1512
1565
  workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
1513
1566
  propertyTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTenantNestedInput;
1567
+ approvalRequests?: Prisma.ApprovalRequestUpdateManyWithoutTenantNestedInput;
1514
1568
  };
1515
1569
  export type TenantUncheckedUpdateWithoutContractTerminationsInput = {
1516
1570
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1534,6 +1588,7 @@ export type TenantUncheckedUpdateWithoutContractTerminationsInput = {
1534
1588
  eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
1535
1589
  workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
1536
1590
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTenantNestedInput;
1591
+ approvalRequests?: Prisma.ApprovalRequestUncheckedUpdateManyWithoutTenantNestedInput;
1537
1592
  };
1538
1593
  export type TenantCreateWithoutPaymentMethodChangeRequestsInput = {
1539
1594
  id?: string;
@@ -1557,6 +1612,7 @@ export type TenantCreateWithoutPaymentMethodChangeRequestsInput = {
1557
1612
  eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
1558
1613
  workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
1559
1614
  propertyTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTenantInput;
1615
+ approvalRequests?: Prisma.ApprovalRequestCreateNestedManyWithoutTenantInput;
1560
1616
  };
1561
1617
  export type TenantUncheckedCreateWithoutPaymentMethodChangeRequestsInput = {
1562
1618
  id?: string;
@@ -1580,6 +1636,7 @@ export type TenantUncheckedCreateWithoutPaymentMethodChangeRequestsInput = {
1580
1636
  eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
1581
1637
  workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
1582
1638
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTenantInput;
1639
+ approvalRequests?: Prisma.ApprovalRequestUncheckedCreateNestedManyWithoutTenantInput;
1583
1640
  };
1584
1641
  export type TenantCreateOrConnectWithoutPaymentMethodChangeRequestsInput = {
1585
1642
  where: Prisma.TenantWhereUniqueInput;
@@ -1616,6 +1673,7 @@ export type TenantUpdateWithoutPaymentMethodChangeRequestsInput = {
1616
1673
  eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
1617
1674
  workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
1618
1675
  propertyTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTenantNestedInput;
1676
+ approvalRequests?: Prisma.ApprovalRequestUpdateManyWithoutTenantNestedInput;
1619
1677
  };
1620
1678
  export type TenantUncheckedUpdateWithoutPaymentMethodChangeRequestsInput = {
1621
1679
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1639,6 +1697,7 @@ export type TenantUncheckedUpdateWithoutPaymentMethodChangeRequestsInput = {
1639
1697
  eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
1640
1698
  workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
1641
1699
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTenantNestedInput;
1700
+ approvalRequests?: Prisma.ApprovalRequestUncheckedUpdateManyWithoutTenantNestedInput;
1642
1701
  };
1643
1702
  export type TenantCreateWithoutDocumentRequirementRulesInput = {
1644
1703
  id?: string;
@@ -1662,6 +1721,7 @@ export type TenantCreateWithoutDocumentRequirementRulesInput = {
1662
1721
  eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
1663
1722
  workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
1664
1723
  propertyTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTenantInput;
1724
+ approvalRequests?: Prisma.ApprovalRequestCreateNestedManyWithoutTenantInput;
1665
1725
  };
1666
1726
  export type TenantUncheckedCreateWithoutDocumentRequirementRulesInput = {
1667
1727
  id?: string;
@@ -1685,6 +1745,7 @@ export type TenantUncheckedCreateWithoutDocumentRequirementRulesInput = {
1685
1745
  eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
1686
1746
  workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
1687
1747
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTenantInput;
1748
+ approvalRequests?: Prisma.ApprovalRequestUncheckedCreateNestedManyWithoutTenantInput;
1688
1749
  };
1689
1750
  export type TenantCreateOrConnectWithoutDocumentRequirementRulesInput = {
1690
1751
  where: Prisma.TenantWhereUniqueInput;
@@ -1721,6 +1782,7 @@ export type TenantUpdateWithoutDocumentRequirementRulesInput = {
1721
1782
  eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
1722
1783
  workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
1723
1784
  propertyTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTenantNestedInput;
1785
+ approvalRequests?: Prisma.ApprovalRequestUpdateManyWithoutTenantNestedInput;
1724
1786
  };
1725
1787
  export type TenantUncheckedUpdateWithoutDocumentRequirementRulesInput = {
1726
1788
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1744,6 +1806,7 @@ export type TenantUncheckedUpdateWithoutDocumentRequirementRulesInput = {
1744
1806
  eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
1745
1807
  workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
1746
1808
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTenantNestedInput;
1809
+ approvalRequests?: Prisma.ApprovalRequestUncheckedUpdateManyWithoutTenantNestedInput;
1747
1810
  };
1748
1811
  export type TenantCreateWithoutEventChannelsInput = {
1749
1812
  id?: string;
@@ -1767,6 +1830,7 @@ export type TenantCreateWithoutEventChannelsInput = {
1767
1830
  eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
1768
1831
  workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
1769
1832
  propertyTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTenantInput;
1833
+ approvalRequests?: Prisma.ApprovalRequestCreateNestedManyWithoutTenantInput;
1770
1834
  };
1771
1835
  export type TenantUncheckedCreateWithoutEventChannelsInput = {
1772
1836
  id?: string;
@@ -1790,6 +1854,7 @@ export type TenantUncheckedCreateWithoutEventChannelsInput = {
1790
1854
  eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
1791
1855
  workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
1792
1856
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTenantInput;
1857
+ approvalRequests?: Prisma.ApprovalRequestUncheckedCreateNestedManyWithoutTenantInput;
1793
1858
  };
1794
1859
  export type TenantCreateOrConnectWithoutEventChannelsInput = {
1795
1860
  where: Prisma.TenantWhereUniqueInput;
@@ -1826,6 +1891,7 @@ export type TenantUpdateWithoutEventChannelsInput = {
1826
1891
  eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
1827
1892
  workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
1828
1893
  propertyTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTenantNestedInput;
1894
+ approvalRequests?: Prisma.ApprovalRequestUpdateManyWithoutTenantNestedInput;
1829
1895
  };
1830
1896
  export type TenantUncheckedUpdateWithoutEventChannelsInput = {
1831
1897
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1849,6 +1915,7 @@ export type TenantUncheckedUpdateWithoutEventChannelsInput = {
1849
1915
  eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
1850
1916
  workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
1851
1917
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTenantNestedInput;
1918
+ approvalRequests?: Prisma.ApprovalRequestUncheckedUpdateManyWithoutTenantNestedInput;
1852
1919
  };
1853
1920
  export type TenantCreateWithoutEventTypesInput = {
1854
1921
  id?: string;
@@ -1872,6 +1939,7 @@ export type TenantCreateWithoutEventTypesInput = {
1872
1939
  eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
1873
1940
  workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
1874
1941
  propertyTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTenantInput;
1942
+ approvalRequests?: Prisma.ApprovalRequestCreateNestedManyWithoutTenantInput;
1875
1943
  };
1876
1944
  export type TenantUncheckedCreateWithoutEventTypesInput = {
1877
1945
  id?: string;
@@ -1895,6 +1963,7 @@ export type TenantUncheckedCreateWithoutEventTypesInput = {
1895
1963
  eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
1896
1964
  workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
1897
1965
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTenantInput;
1966
+ approvalRequests?: Prisma.ApprovalRequestUncheckedCreateNestedManyWithoutTenantInput;
1898
1967
  };
1899
1968
  export type TenantCreateOrConnectWithoutEventTypesInput = {
1900
1969
  where: Prisma.TenantWhereUniqueInput;
@@ -1931,6 +2000,7 @@ export type TenantUpdateWithoutEventTypesInput = {
1931
2000
  eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
1932
2001
  workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
1933
2002
  propertyTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTenantNestedInput;
2003
+ approvalRequests?: Prisma.ApprovalRequestUpdateManyWithoutTenantNestedInput;
1934
2004
  };
1935
2005
  export type TenantUncheckedUpdateWithoutEventTypesInput = {
1936
2006
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1954,6 +2024,7 @@ export type TenantUncheckedUpdateWithoutEventTypesInput = {
1954
2024
  eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
1955
2025
  workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
1956
2026
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTenantNestedInput;
2027
+ approvalRequests?: Prisma.ApprovalRequestUncheckedUpdateManyWithoutTenantNestedInput;
1957
2028
  };
1958
2029
  export type TenantCreateWithoutEventHandlersInput = {
1959
2030
  id?: string;
@@ -1977,6 +2048,7 @@ export type TenantCreateWithoutEventHandlersInput = {
1977
2048
  eventTypes?: Prisma.EventTypeCreateNestedManyWithoutTenantInput;
1978
2049
  workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
1979
2050
  propertyTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTenantInput;
2051
+ approvalRequests?: Prisma.ApprovalRequestCreateNestedManyWithoutTenantInput;
1980
2052
  };
1981
2053
  export type TenantUncheckedCreateWithoutEventHandlersInput = {
1982
2054
  id?: string;
@@ -2000,6 +2072,7 @@ export type TenantUncheckedCreateWithoutEventHandlersInput = {
2000
2072
  eventTypes?: Prisma.EventTypeUncheckedCreateNestedManyWithoutTenantInput;
2001
2073
  workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
2002
2074
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTenantInput;
2075
+ approvalRequests?: Prisma.ApprovalRequestUncheckedCreateNestedManyWithoutTenantInput;
2003
2076
  };
2004
2077
  export type TenantCreateOrConnectWithoutEventHandlersInput = {
2005
2078
  where: Prisma.TenantWhereUniqueInput;
@@ -2036,6 +2109,7 @@ export type TenantUpdateWithoutEventHandlersInput = {
2036
2109
  eventTypes?: Prisma.EventTypeUpdateManyWithoutTenantNestedInput;
2037
2110
  workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
2038
2111
  propertyTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTenantNestedInput;
2112
+ approvalRequests?: Prisma.ApprovalRequestUpdateManyWithoutTenantNestedInput;
2039
2113
  };
2040
2114
  export type TenantUncheckedUpdateWithoutEventHandlersInput = {
2041
2115
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2059,6 +2133,7 @@ export type TenantUncheckedUpdateWithoutEventHandlersInput = {
2059
2133
  eventTypes?: Prisma.EventTypeUncheckedUpdateManyWithoutTenantNestedInput;
2060
2134
  workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
2061
2135
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTenantNestedInput;
2136
+ approvalRequests?: Prisma.ApprovalRequestUncheckedUpdateManyWithoutTenantNestedInput;
2062
2137
  };
2063
2138
  export type TenantCreateWithoutWorkflowEventsInput = {
2064
2139
  id?: string;
@@ -2082,6 +2157,7 @@ export type TenantCreateWithoutWorkflowEventsInput = {
2082
2157
  eventTypes?: Prisma.EventTypeCreateNestedManyWithoutTenantInput;
2083
2158
  eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
2084
2159
  propertyTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTenantInput;
2160
+ approvalRequests?: Prisma.ApprovalRequestCreateNestedManyWithoutTenantInput;
2085
2161
  };
2086
2162
  export type TenantUncheckedCreateWithoutWorkflowEventsInput = {
2087
2163
  id?: string;
@@ -2105,6 +2181,7 @@ export type TenantUncheckedCreateWithoutWorkflowEventsInput = {
2105
2181
  eventTypes?: Prisma.EventTypeUncheckedCreateNestedManyWithoutTenantInput;
2106
2182
  eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
2107
2183
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTenantInput;
2184
+ approvalRequests?: Prisma.ApprovalRequestUncheckedCreateNestedManyWithoutTenantInput;
2108
2185
  };
2109
2186
  export type TenantCreateOrConnectWithoutWorkflowEventsInput = {
2110
2187
  where: Prisma.TenantWhereUniqueInput;
@@ -2141,6 +2218,7 @@ export type TenantUpdateWithoutWorkflowEventsInput = {
2141
2218
  eventTypes?: Prisma.EventTypeUpdateManyWithoutTenantNestedInput;
2142
2219
  eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
2143
2220
  propertyTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTenantNestedInput;
2221
+ approvalRequests?: Prisma.ApprovalRequestUpdateManyWithoutTenantNestedInput;
2144
2222
  };
2145
2223
  export type TenantUncheckedUpdateWithoutWorkflowEventsInput = {
2146
2224
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2164,6 +2242,7 @@ export type TenantUncheckedUpdateWithoutWorkflowEventsInput = {
2164
2242
  eventTypes?: Prisma.EventTypeUncheckedUpdateManyWithoutTenantNestedInput;
2165
2243
  eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
2166
2244
  propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTenantNestedInput;
2245
+ approvalRequests?: Prisma.ApprovalRequestUncheckedUpdateManyWithoutTenantNestedInput;
2167
2246
  };
2168
2247
  export type TenantCreateWithoutPropertyTransferRequestsInput = {
2169
2248
  id?: string;
@@ -2187,6 +2266,7 @@ export type TenantCreateWithoutPropertyTransferRequestsInput = {
2187
2266
  eventTypes?: Prisma.EventTypeCreateNestedManyWithoutTenantInput;
2188
2267
  eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
2189
2268
  workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
2269
+ approvalRequests?: Prisma.ApprovalRequestCreateNestedManyWithoutTenantInput;
2190
2270
  };
2191
2271
  export type TenantUncheckedCreateWithoutPropertyTransferRequestsInput = {
2192
2272
  id?: string;
@@ -2210,6 +2290,7 @@ export type TenantUncheckedCreateWithoutPropertyTransferRequestsInput = {
2210
2290
  eventTypes?: Prisma.EventTypeUncheckedCreateNestedManyWithoutTenantInput;
2211
2291
  eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
2212
2292
  workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
2293
+ approvalRequests?: Prisma.ApprovalRequestUncheckedCreateNestedManyWithoutTenantInput;
2213
2294
  };
2214
2295
  export type TenantCreateOrConnectWithoutPropertyTransferRequestsInput = {
2215
2296
  where: Prisma.TenantWhereUniqueInput;
@@ -2246,6 +2327,7 @@ export type TenantUpdateWithoutPropertyTransferRequestsInput = {
2246
2327
  eventTypes?: Prisma.EventTypeUpdateManyWithoutTenantNestedInput;
2247
2328
  eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
2248
2329
  workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
2330
+ approvalRequests?: Prisma.ApprovalRequestUpdateManyWithoutTenantNestedInput;
2249
2331
  };
2250
2332
  export type TenantUncheckedUpdateWithoutPropertyTransferRequestsInput = {
2251
2333
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2269,6 +2351,116 @@ export type TenantUncheckedUpdateWithoutPropertyTransferRequestsInput = {
2269
2351
  eventTypes?: Prisma.EventTypeUncheckedUpdateManyWithoutTenantNestedInput;
2270
2352
  eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
2271
2353
  workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
2354
+ approvalRequests?: Prisma.ApprovalRequestUncheckedUpdateManyWithoutTenantNestedInput;
2355
+ };
2356
+ export type TenantCreateWithoutApprovalRequestsInput = {
2357
+ id?: string;
2358
+ name: string;
2359
+ subdomain: string;
2360
+ isActive?: boolean;
2361
+ createdAt?: Date | string;
2362
+ updatedAt?: Date | string;
2363
+ users?: Prisma.UserCreateNestedManyWithoutTenantInput;
2364
+ properties?: Prisma.PropertyCreateNestedManyWithoutTenantInput;
2365
+ paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
2366
+ paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
2367
+ contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
2368
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
2369
+ documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
2370
+ contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
2371
+ documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
2372
+ offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
2373
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
2374
+ eventChannels?: Prisma.EventChannelCreateNestedManyWithoutTenantInput;
2375
+ eventTypes?: Prisma.EventTypeCreateNestedManyWithoutTenantInput;
2376
+ eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
2377
+ workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
2378
+ propertyTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTenantInput;
2379
+ };
2380
+ export type TenantUncheckedCreateWithoutApprovalRequestsInput = {
2381
+ id?: string;
2382
+ name: string;
2383
+ subdomain: string;
2384
+ isActive?: boolean;
2385
+ createdAt?: Date | string;
2386
+ updatedAt?: Date | string;
2387
+ users?: Prisma.UserUncheckedCreateNestedManyWithoutTenantInput;
2388
+ properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutTenantInput;
2389
+ paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
2390
+ paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
2391
+ contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
2392
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
2393
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
2394
+ contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
2395
+ documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
2396
+ offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
2397
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
2398
+ eventChannels?: Prisma.EventChannelUncheckedCreateNestedManyWithoutTenantInput;
2399
+ eventTypes?: Prisma.EventTypeUncheckedCreateNestedManyWithoutTenantInput;
2400
+ eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
2401
+ workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
2402
+ propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTenantInput;
2403
+ };
2404
+ export type TenantCreateOrConnectWithoutApprovalRequestsInput = {
2405
+ where: Prisma.TenantWhereUniqueInput;
2406
+ create: Prisma.XOR<Prisma.TenantCreateWithoutApprovalRequestsInput, Prisma.TenantUncheckedCreateWithoutApprovalRequestsInput>;
2407
+ };
2408
+ export type TenantUpsertWithoutApprovalRequestsInput = {
2409
+ update: Prisma.XOR<Prisma.TenantUpdateWithoutApprovalRequestsInput, Prisma.TenantUncheckedUpdateWithoutApprovalRequestsInput>;
2410
+ create: Prisma.XOR<Prisma.TenantCreateWithoutApprovalRequestsInput, Prisma.TenantUncheckedCreateWithoutApprovalRequestsInput>;
2411
+ where?: Prisma.TenantWhereInput;
2412
+ };
2413
+ export type TenantUpdateToOneWithWhereWithoutApprovalRequestsInput = {
2414
+ where?: Prisma.TenantWhereInput;
2415
+ data: Prisma.XOR<Prisma.TenantUpdateWithoutApprovalRequestsInput, Prisma.TenantUncheckedUpdateWithoutApprovalRequestsInput>;
2416
+ };
2417
+ export type TenantUpdateWithoutApprovalRequestsInput = {
2418
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2419
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2420
+ subdomain?: Prisma.StringFieldUpdateOperationsInput | string;
2421
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2422
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2423
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2424
+ users?: Prisma.UserUpdateManyWithoutTenantNestedInput;
2425
+ properties?: Prisma.PropertyUpdateManyWithoutTenantNestedInput;
2426
+ paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
2427
+ paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
2428
+ contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
2429
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
2430
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
2431
+ contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
2432
+ documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
2433
+ offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
2434
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
2435
+ eventChannels?: Prisma.EventChannelUpdateManyWithoutTenantNestedInput;
2436
+ eventTypes?: Prisma.EventTypeUpdateManyWithoutTenantNestedInput;
2437
+ eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
2438
+ workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
2439
+ propertyTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTenantNestedInput;
2440
+ };
2441
+ export type TenantUncheckedUpdateWithoutApprovalRequestsInput = {
2442
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2443
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2444
+ subdomain?: Prisma.StringFieldUpdateOperationsInput | string;
2445
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2446
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2447
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2448
+ users?: Prisma.UserUncheckedUpdateManyWithoutTenantNestedInput;
2449
+ properties?: Prisma.PropertyUncheckedUpdateManyWithoutTenantNestedInput;
2450
+ paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
2451
+ paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
2452
+ contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
2453
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
2454
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
2455
+ contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
2456
+ documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
2457
+ offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
2458
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
2459
+ eventChannels?: Prisma.EventChannelUncheckedUpdateManyWithoutTenantNestedInput;
2460
+ eventTypes?: Prisma.EventTypeUncheckedUpdateManyWithoutTenantNestedInput;
2461
+ eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
2462
+ workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
2463
+ propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTenantNestedInput;
2272
2464
  };
2273
2465
  /**
2274
2466
  * Count Type TenantCountOutputType
@@ -2290,6 +2482,7 @@ export type TenantCountOutputType = {
2290
2482
  eventHandlers: number;
2291
2483
  workflowEvents: number;
2292
2484
  propertyTransferRequests: number;
2485
+ approvalRequests: number;
2293
2486
  };
2294
2487
  export type TenantCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2295
2488
  users?: boolean | TenantCountOutputTypeCountUsersArgs;
@@ -2308,6 +2501,7 @@ export type TenantCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions
2308
2501
  eventHandlers?: boolean | TenantCountOutputTypeCountEventHandlersArgs;
2309
2502
  workflowEvents?: boolean | TenantCountOutputTypeCountWorkflowEventsArgs;
2310
2503
  propertyTransferRequests?: boolean | TenantCountOutputTypeCountPropertyTransferRequestsArgs;
2504
+ approvalRequests?: boolean | TenantCountOutputTypeCountApprovalRequestsArgs;
2311
2505
  };
2312
2506
  /**
2313
2507
  * TenantCountOutputType without action
@@ -2414,6 +2608,12 @@ export type TenantCountOutputTypeCountWorkflowEventsArgs<ExtArgs extends runtime
2414
2608
  export type TenantCountOutputTypeCountPropertyTransferRequestsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2415
2609
  where?: Prisma.PropertyTransferRequestWhereInput;
2416
2610
  };
2611
+ /**
2612
+ * TenantCountOutputType without action
2613
+ */
2614
+ export type TenantCountOutputTypeCountApprovalRequestsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2615
+ where?: Prisma.ApprovalRequestWhereInput;
2616
+ };
2417
2617
  export type TenantSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
2418
2618
  id?: boolean;
2419
2619
  name?: boolean;
@@ -2437,6 +2637,7 @@ export type TenantSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
2437
2637
  eventHandlers?: boolean | Prisma.Tenant$eventHandlersArgs<ExtArgs>;
2438
2638
  workflowEvents?: boolean | Prisma.Tenant$workflowEventsArgs<ExtArgs>;
2439
2639
  propertyTransferRequests?: boolean | Prisma.Tenant$propertyTransferRequestsArgs<ExtArgs>;
2640
+ approvalRequests?: boolean | Prisma.Tenant$approvalRequestsArgs<ExtArgs>;
2440
2641
  _count?: boolean | Prisma.TenantCountOutputTypeDefaultArgs<ExtArgs>;
2441
2642
  }, ExtArgs["result"]["tenant"]>;
2442
2643
  export type TenantSelectScalar = {
@@ -2465,6 +2666,7 @@ export type TenantInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs
2465
2666
  eventHandlers?: boolean | Prisma.Tenant$eventHandlersArgs<ExtArgs>;
2466
2667
  workflowEvents?: boolean | Prisma.Tenant$workflowEventsArgs<ExtArgs>;
2467
2668
  propertyTransferRequests?: boolean | Prisma.Tenant$propertyTransferRequestsArgs<ExtArgs>;
2669
+ approvalRequests?: boolean | Prisma.Tenant$approvalRequestsArgs<ExtArgs>;
2468
2670
  _count?: boolean | Prisma.TenantCountOutputTypeDefaultArgs<ExtArgs>;
2469
2671
  };
2470
2672
  export type $TenantPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -2486,6 +2688,7 @@ export type $TenantPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
2486
2688
  eventHandlers: Prisma.$EventHandlerPayload<ExtArgs>[];
2487
2689
  workflowEvents: Prisma.$WorkflowEventPayload<ExtArgs>[];
2488
2690
  propertyTransferRequests: Prisma.$PropertyTransferRequestPayload<ExtArgs>[];
2691
+ approvalRequests: Prisma.$ApprovalRequestPayload<ExtArgs>[];
2489
2692
  };
2490
2693
  scalars: runtime.Types.Extensions.GetPayloadResult<{
2491
2694
  id: string;
@@ -2787,6 +2990,7 @@ export interface Prisma__TenantClient<T, Null = never, ExtArgs extends runtime.T
2787
2990
  eventHandlers<T extends Prisma.Tenant$eventHandlersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tenant$eventHandlersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EventHandlerPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2788
2991
  workflowEvents<T extends Prisma.Tenant$workflowEventsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tenant$workflowEventsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkflowEventPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2789
2992
  propertyTransferRequests<T extends Prisma.Tenant$propertyTransferRequestsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tenant$propertyTransferRequestsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PropertyTransferRequestPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2993
+ approvalRequests<T extends Prisma.Tenant$approvalRequestsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tenant$approvalRequestsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApprovalRequestPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2790
2994
  /**
2791
2995
  * Attaches callbacks for the resolution and/or rejection of the Promise.
2792
2996
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -3513,6 +3717,29 @@ export type Tenant$propertyTransferRequestsArgs<ExtArgs extends runtime.Types.Ex
3513
3717
  skip?: number;
3514
3718
  distinct?: Prisma.PropertyTransferRequestScalarFieldEnum | Prisma.PropertyTransferRequestScalarFieldEnum[];
3515
3719
  };
3720
+ /**
3721
+ * Tenant.approvalRequests
3722
+ */
3723
+ export type Tenant$approvalRequestsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3724
+ /**
3725
+ * Select specific fields to fetch from the ApprovalRequest
3726
+ */
3727
+ select?: Prisma.ApprovalRequestSelect<ExtArgs> | null;
3728
+ /**
3729
+ * Omit specific fields from the ApprovalRequest
3730
+ */
3731
+ omit?: Prisma.ApprovalRequestOmit<ExtArgs> | null;
3732
+ /**
3733
+ * Choose, which related nodes to fetch as well
3734
+ */
3735
+ include?: Prisma.ApprovalRequestInclude<ExtArgs> | null;
3736
+ where?: Prisma.ApprovalRequestWhereInput;
3737
+ orderBy?: Prisma.ApprovalRequestOrderByWithRelationInput | Prisma.ApprovalRequestOrderByWithRelationInput[];
3738
+ cursor?: Prisma.ApprovalRequestWhereUniqueInput;
3739
+ take?: number;
3740
+ skip?: number;
3741
+ distinct?: Prisma.ApprovalRequestScalarFieldEnum | Prisma.ApprovalRequestScalarFieldEnum[];
3742
+ };
3516
3743
  /**
3517
3744
  * Tenant without action
3518
3745
  */