@valentine-efagene/qshelter-common 2.0.114 → 2.0.116

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.
@@ -23,6 +23,7 @@ export type ApplicationPhaseMinAggregateOutputType = {
23
23
  id: string | null;
24
24
  tenantId: string | null;
25
25
  applicationId: string | null;
26
+ phaseTemplateId: string | null;
26
27
  name: string | null;
27
28
  description: string | null;
28
29
  phaseCategory: $Enums.PhaseCategory | null;
@@ -42,6 +43,7 @@ export type ApplicationPhaseMaxAggregateOutputType = {
42
43
  id: string | null;
43
44
  tenantId: string | null;
44
45
  applicationId: string | null;
46
+ phaseTemplateId: string | null;
45
47
  name: string | null;
46
48
  description: string | null;
47
49
  phaseCategory: $Enums.PhaseCategory | null;
@@ -61,6 +63,7 @@ export type ApplicationPhaseCountAggregateOutputType = {
61
63
  id: number;
62
64
  tenantId: number;
63
65
  applicationId: number;
66
+ phaseTemplateId: number;
64
67
  name: number;
65
68
  description: number;
66
69
  phaseCategory: number;
@@ -87,6 +90,7 @@ export type ApplicationPhaseMinAggregateInputType = {
87
90
  id?: true;
88
91
  tenantId?: true;
89
92
  applicationId?: true;
93
+ phaseTemplateId?: true;
90
94
  name?: true;
91
95
  description?: true;
92
96
  phaseCategory?: true;
@@ -106,6 +110,7 @@ export type ApplicationPhaseMaxAggregateInputType = {
106
110
  id?: true;
107
111
  tenantId?: true;
108
112
  applicationId?: true;
113
+ phaseTemplateId?: true;
109
114
  name?: true;
110
115
  description?: true;
111
116
  phaseCategory?: true;
@@ -125,6 +130,7 @@ export type ApplicationPhaseCountAggregateInputType = {
125
130
  id?: true;
126
131
  tenantId?: true;
127
132
  applicationId?: true;
133
+ phaseTemplateId?: true;
128
134
  name?: true;
129
135
  description?: true;
130
136
  phaseCategory?: true;
@@ -221,6 +227,7 @@ export type ApplicationPhaseGroupByOutputType = {
221
227
  id: string;
222
228
  tenantId: string;
223
229
  applicationId: string;
230
+ phaseTemplateId: string | null;
224
231
  name: string;
225
232
  description: string | null;
226
233
  phaseCategory: $Enums.PhaseCategory;
@@ -251,6 +258,7 @@ export type ApplicationPhaseWhereInput = {
251
258
  id?: Prisma.StringFilter<"ApplicationPhase"> | string;
252
259
  tenantId?: Prisma.StringFilter<"ApplicationPhase"> | string;
253
260
  applicationId?: Prisma.StringFilter<"ApplicationPhase"> | string;
261
+ phaseTemplateId?: Prisma.StringNullableFilter<"ApplicationPhase"> | string | null;
254
262
  name?: Prisma.StringFilter<"ApplicationPhase"> | string;
255
263
  description?: Prisma.StringNullableFilter<"ApplicationPhase"> | string | null;
256
264
  phaseCategory?: Prisma.EnumPhaseCategoryFilter<"ApplicationPhase"> | $Enums.PhaseCategory;
@@ -267,6 +275,7 @@ export type ApplicationPhaseWhereInput = {
267
275
  updatedAt?: Prisma.DateTimeFilter<"ApplicationPhase"> | Date | string;
268
276
  tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
269
277
  application?: Prisma.XOR<Prisma.ApplicationScalarRelationFilter, Prisma.ApplicationWhereInput>;
278
+ phaseTemplate?: Prisma.XOR<Prisma.PropertyPaymentMethodPhaseNullableScalarRelationFilter, Prisma.PropertyPaymentMethodPhaseWhereInput> | null;
270
279
  questionnairePhase?: Prisma.XOR<Prisma.QuestionnairePhaseNullableScalarRelationFilter, Prisma.QuestionnairePhaseWhereInput> | null;
271
280
  documentationPhase?: Prisma.XOR<Prisma.DocumentationPhaseNullableScalarRelationFilter, Prisma.DocumentationPhaseWhereInput> | null;
272
281
  paymentPhase?: Prisma.XOR<Prisma.PaymentPhaseNullableScalarRelationFilter, Prisma.PaymentPhaseWhereInput> | null;
@@ -277,6 +286,7 @@ export type ApplicationPhaseOrderByWithRelationInput = {
277
286
  id?: Prisma.SortOrder;
278
287
  tenantId?: Prisma.SortOrder;
279
288
  applicationId?: Prisma.SortOrder;
289
+ phaseTemplateId?: Prisma.SortOrderInput | Prisma.SortOrder;
280
290
  name?: Prisma.SortOrder;
281
291
  description?: Prisma.SortOrderInput | Prisma.SortOrder;
282
292
  phaseCategory?: Prisma.SortOrder;
@@ -293,6 +303,7 @@ export type ApplicationPhaseOrderByWithRelationInput = {
293
303
  updatedAt?: Prisma.SortOrder;
294
304
  tenant?: Prisma.TenantOrderByWithRelationInput;
295
305
  application?: Prisma.ApplicationOrderByWithRelationInput;
306
+ phaseTemplate?: Prisma.PropertyPaymentMethodPhaseOrderByWithRelationInput;
296
307
  questionnairePhase?: Prisma.QuestionnairePhaseOrderByWithRelationInput;
297
308
  documentationPhase?: Prisma.DocumentationPhaseOrderByWithRelationInput;
298
309
  paymentPhase?: Prisma.PaymentPhaseOrderByWithRelationInput;
@@ -307,6 +318,7 @@ export type ApplicationPhaseWhereUniqueInput = Prisma.AtLeast<{
307
318
  NOT?: Prisma.ApplicationPhaseWhereInput | Prisma.ApplicationPhaseWhereInput[];
308
319
  tenantId?: Prisma.StringFilter<"ApplicationPhase"> | string;
309
320
  applicationId?: Prisma.StringFilter<"ApplicationPhase"> | string;
321
+ phaseTemplateId?: Prisma.StringNullableFilter<"ApplicationPhase"> | string | null;
310
322
  name?: Prisma.StringFilter<"ApplicationPhase"> | string;
311
323
  description?: Prisma.StringNullableFilter<"ApplicationPhase"> | string | null;
312
324
  phaseCategory?: Prisma.EnumPhaseCategoryFilter<"ApplicationPhase"> | $Enums.PhaseCategory;
@@ -323,6 +335,7 @@ export type ApplicationPhaseWhereUniqueInput = Prisma.AtLeast<{
323
335
  updatedAt?: Prisma.DateTimeFilter<"ApplicationPhase"> | Date | string;
324
336
  tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
325
337
  application?: Prisma.XOR<Prisma.ApplicationScalarRelationFilter, Prisma.ApplicationWhereInput>;
338
+ phaseTemplate?: Prisma.XOR<Prisma.PropertyPaymentMethodPhaseNullableScalarRelationFilter, Prisma.PropertyPaymentMethodPhaseWhereInput> | null;
326
339
  questionnairePhase?: Prisma.XOR<Prisma.QuestionnairePhaseNullableScalarRelationFilter, Prisma.QuestionnairePhaseWhereInput> | null;
327
340
  documentationPhase?: Prisma.XOR<Prisma.DocumentationPhaseNullableScalarRelationFilter, Prisma.DocumentationPhaseWhereInput> | null;
328
341
  paymentPhase?: Prisma.XOR<Prisma.PaymentPhaseNullableScalarRelationFilter, Prisma.PaymentPhaseWhereInput> | null;
@@ -333,6 +346,7 @@ export type ApplicationPhaseOrderByWithAggregationInput = {
333
346
  id?: Prisma.SortOrder;
334
347
  tenantId?: Prisma.SortOrder;
335
348
  applicationId?: Prisma.SortOrder;
349
+ phaseTemplateId?: Prisma.SortOrderInput | Prisma.SortOrder;
336
350
  name?: Prisma.SortOrder;
337
351
  description?: Prisma.SortOrderInput | Prisma.SortOrder;
338
352
  phaseCategory?: Prisma.SortOrder;
@@ -360,6 +374,7 @@ export type ApplicationPhaseScalarWhereWithAggregatesInput = {
360
374
  id?: Prisma.StringWithAggregatesFilter<"ApplicationPhase"> | string;
361
375
  tenantId?: Prisma.StringWithAggregatesFilter<"ApplicationPhase"> | string;
362
376
  applicationId?: Prisma.StringWithAggregatesFilter<"ApplicationPhase"> | string;
377
+ phaseTemplateId?: Prisma.StringNullableWithAggregatesFilter<"ApplicationPhase"> | string | null;
363
378
  name?: Prisma.StringWithAggregatesFilter<"ApplicationPhase"> | string;
364
379
  description?: Prisma.StringNullableWithAggregatesFilter<"ApplicationPhase"> | string | null;
365
380
  phaseCategory?: Prisma.EnumPhaseCategoryWithAggregatesFilter<"ApplicationPhase"> | $Enums.PhaseCategory;
@@ -393,6 +408,7 @@ export type ApplicationPhaseCreateInput = {
393
408
  updatedAt?: Date | string;
394
409
  tenant: Prisma.TenantCreateNestedOneWithoutApplicationPhasesInput;
395
410
  application: Prisma.ApplicationCreateNestedOneWithoutPhasesInput;
411
+ phaseTemplate?: Prisma.PropertyPaymentMethodPhaseCreateNestedOneWithoutApplicationPhasesInput;
396
412
  questionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutPhaseInput;
397
413
  documentationPhase?: Prisma.DocumentationPhaseCreateNestedOneWithoutPhaseInput;
398
414
  paymentPhase?: Prisma.PaymentPhaseCreateNestedOneWithoutPhaseInput;
@@ -403,6 +419,7 @@ export type ApplicationPhaseUncheckedCreateInput = {
403
419
  id?: string;
404
420
  tenantId: string;
405
421
  applicationId: string;
422
+ phaseTemplateId?: string | null;
406
423
  name: string;
407
424
  description?: string | null;
408
425
  phaseCategory: $Enums.PhaseCategory;
@@ -441,6 +458,7 @@ export type ApplicationPhaseUpdateInput = {
441
458
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
442
459
  tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationPhasesNestedInput;
443
460
  application?: Prisma.ApplicationUpdateOneRequiredWithoutPhasesNestedInput;
461
+ phaseTemplate?: Prisma.PropertyPaymentMethodPhaseUpdateOneWithoutApplicationPhasesNestedInput;
444
462
  questionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutPhaseNestedInput;
445
463
  documentationPhase?: Prisma.DocumentationPhaseUpdateOneWithoutPhaseNestedInput;
446
464
  paymentPhase?: Prisma.PaymentPhaseUpdateOneWithoutPhaseNestedInput;
@@ -451,6 +469,7 @@ export type ApplicationPhaseUncheckedUpdateInput = {
451
469
  id?: Prisma.StringFieldUpdateOperationsInput | string;
452
470
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
453
471
  applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
472
+ phaseTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
454
473
  name?: Prisma.StringFieldUpdateOperationsInput | string;
455
474
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
456
475
  phaseCategory?: Prisma.EnumPhaseCategoryFieldUpdateOperationsInput | $Enums.PhaseCategory;
@@ -475,6 +494,7 @@ export type ApplicationPhaseCreateManyInput = {
475
494
  id?: string;
476
495
  tenantId: string;
477
496
  applicationId: string;
497
+ phaseTemplateId?: string | null;
478
498
  name: string;
479
499
  description?: string | null;
480
500
  phaseCategory: $Enums.PhaseCategory;
@@ -511,6 +531,7 @@ export type ApplicationPhaseUncheckedUpdateManyInput = {
511
531
  id?: Prisma.StringFieldUpdateOperationsInput | string;
512
532
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
513
533
  applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
534
+ phaseTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
514
535
  name?: Prisma.StringFieldUpdateOperationsInput | string;
515
536
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
516
537
  phaseCategory?: Prisma.EnumPhaseCategoryFieldUpdateOperationsInput | $Enums.PhaseCategory;
@@ -547,6 +568,7 @@ export type ApplicationPhaseCountOrderByAggregateInput = {
547
568
  id?: Prisma.SortOrder;
548
569
  tenantId?: Prisma.SortOrder;
549
570
  applicationId?: Prisma.SortOrder;
571
+ phaseTemplateId?: Prisma.SortOrder;
550
572
  name?: Prisma.SortOrder;
551
573
  description?: Prisma.SortOrder;
552
574
  phaseCategory?: Prisma.SortOrder;
@@ -569,6 +591,7 @@ export type ApplicationPhaseMaxOrderByAggregateInput = {
569
591
  id?: Prisma.SortOrder;
570
592
  tenantId?: Prisma.SortOrder;
571
593
  applicationId?: Prisma.SortOrder;
594
+ phaseTemplateId?: Prisma.SortOrder;
572
595
  name?: Prisma.SortOrder;
573
596
  description?: Prisma.SortOrder;
574
597
  phaseCategory?: Prisma.SortOrder;
@@ -588,6 +611,7 @@ export type ApplicationPhaseMinOrderByAggregateInput = {
588
611
  id?: Prisma.SortOrder;
589
612
  tenantId?: Prisma.SortOrder;
590
613
  applicationId?: Prisma.SortOrder;
614
+ phaseTemplateId?: Prisma.SortOrder;
591
615
  name?: Prisma.SortOrder;
592
616
  description?: Prisma.SortOrder;
593
617
  phaseCategory?: Prisma.SortOrder;
@@ -648,6 +672,44 @@ export type ApplicationPhaseUncheckedUpdateManyWithoutTenantNestedInput = {
648
672
  updateMany?: Prisma.ApplicationPhaseUpdateManyWithWhereWithoutTenantInput | Prisma.ApplicationPhaseUpdateManyWithWhereWithoutTenantInput[];
649
673
  deleteMany?: Prisma.ApplicationPhaseScalarWhereInput | Prisma.ApplicationPhaseScalarWhereInput[];
650
674
  };
675
+ export type ApplicationPhaseCreateNestedManyWithoutPhaseTemplateInput = {
676
+ create?: Prisma.XOR<Prisma.ApplicationPhaseCreateWithoutPhaseTemplateInput, Prisma.ApplicationPhaseUncheckedCreateWithoutPhaseTemplateInput> | Prisma.ApplicationPhaseCreateWithoutPhaseTemplateInput[] | Prisma.ApplicationPhaseUncheckedCreateWithoutPhaseTemplateInput[];
677
+ connectOrCreate?: Prisma.ApplicationPhaseCreateOrConnectWithoutPhaseTemplateInput | Prisma.ApplicationPhaseCreateOrConnectWithoutPhaseTemplateInput[];
678
+ createMany?: Prisma.ApplicationPhaseCreateManyPhaseTemplateInputEnvelope;
679
+ connect?: Prisma.ApplicationPhaseWhereUniqueInput | Prisma.ApplicationPhaseWhereUniqueInput[];
680
+ };
681
+ export type ApplicationPhaseUncheckedCreateNestedManyWithoutPhaseTemplateInput = {
682
+ create?: Prisma.XOR<Prisma.ApplicationPhaseCreateWithoutPhaseTemplateInput, Prisma.ApplicationPhaseUncheckedCreateWithoutPhaseTemplateInput> | Prisma.ApplicationPhaseCreateWithoutPhaseTemplateInput[] | Prisma.ApplicationPhaseUncheckedCreateWithoutPhaseTemplateInput[];
683
+ connectOrCreate?: Prisma.ApplicationPhaseCreateOrConnectWithoutPhaseTemplateInput | Prisma.ApplicationPhaseCreateOrConnectWithoutPhaseTemplateInput[];
684
+ createMany?: Prisma.ApplicationPhaseCreateManyPhaseTemplateInputEnvelope;
685
+ connect?: Prisma.ApplicationPhaseWhereUniqueInput | Prisma.ApplicationPhaseWhereUniqueInput[];
686
+ };
687
+ export type ApplicationPhaseUpdateManyWithoutPhaseTemplateNestedInput = {
688
+ create?: Prisma.XOR<Prisma.ApplicationPhaseCreateWithoutPhaseTemplateInput, Prisma.ApplicationPhaseUncheckedCreateWithoutPhaseTemplateInput> | Prisma.ApplicationPhaseCreateWithoutPhaseTemplateInput[] | Prisma.ApplicationPhaseUncheckedCreateWithoutPhaseTemplateInput[];
689
+ connectOrCreate?: Prisma.ApplicationPhaseCreateOrConnectWithoutPhaseTemplateInput | Prisma.ApplicationPhaseCreateOrConnectWithoutPhaseTemplateInput[];
690
+ upsert?: Prisma.ApplicationPhaseUpsertWithWhereUniqueWithoutPhaseTemplateInput | Prisma.ApplicationPhaseUpsertWithWhereUniqueWithoutPhaseTemplateInput[];
691
+ createMany?: Prisma.ApplicationPhaseCreateManyPhaseTemplateInputEnvelope;
692
+ set?: Prisma.ApplicationPhaseWhereUniqueInput | Prisma.ApplicationPhaseWhereUniqueInput[];
693
+ disconnect?: Prisma.ApplicationPhaseWhereUniqueInput | Prisma.ApplicationPhaseWhereUniqueInput[];
694
+ delete?: Prisma.ApplicationPhaseWhereUniqueInput | Prisma.ApplicationPhaseWhereUniqueInput[];
695
+ connect?: Prisma.ApplicationPhaseWhereUniqueInput | Prisma.ApplicationPhaseWhereUniqueInput[];
696
+ update?: Prisma.ApplicationPhaseUpdateWithWhereUniqueWithoutPhaseTemplateInput | Prisma.ApplicationPhaseUpdateWithWhereUniqueWithoutPhaseTemplateInput[];
697
+ updateMany?: Prisma.ApplicationPhaseUpdateManyWithWhereWithoutPhaseTemplateInput | Prisma.ApplicationPhaseUpdateManyWithWhereWithoutPhaseTemplateInput[];
698
+ deleteMany?: Prisma.ApplicationPhaseScalarWhereInput | Prisma.ApplicationPhaseScalarWhereInput[];
699
+ };
700
+ export type ApplicationPhaseUncheckedUpdateManyWithoutPhaseTemplateNestedInput = {
701
+ create?: Prisma.XOR<Prisma.ApplicationPhaseCreateWithoutPhaseTemplateInput, Prisma.ApplicationPhaseUncheckedCreateWithoutPhaseTemplateInput> | Prisma.ApplicationPhaseCreateWithoutPhaseTemplateInput[] | Prisma.ApplicationPhaseUncheckedCreateWithoutPhaseTemplateInput[];
702
+ connectOrCreate?: Prisma.ApplicationPhaseCreateOrConnectWithoutPhaseTemplateInput | Prisma.ApplicationPhaseCreateOrConnectWithoutPhaseTemplateInput[];
703
+ upsert?: Prisma.ApplicationPhaseUpsertWithWhereUniqueWithoutPhaseTemplateInput | Prisma.ApplicationPhaseUpsertWithWhereUniqueWithoutPhaseTemplateInput[];
704
+ createMany?: Prisma.ApplicationPhaseCreateManyPhaseTemplateInputEnvelope;
705
+ set?: Prisma.ApplicationPhaseWhereUniqueInput | Prisma.ApplicationPhaseWhereUniqueInput[];
706
+ disconnect?: Prisma.ApplicationPhaseWhereUniqueInput | Prisma.ApplicationPhaseWhereUniqueInput[];
707
+ delete?: Prisma.ApplicationPhaseWhereUniqueInput | Prisma.ApplicationPhaseWhereUniqueInput[];
708
+ connect?: Prisma.ApplicationPhaseWhereUniqueInput | Prisma.ApplicationPhaseWhereUniqueInput[];
709
+ update?: Prisma.ApplicationPhaseUpdateWithWhereUniqueWithoutPhaseTemplateInput | Prisma.ApplicationPhaseUpdateWithWhereUniqueWithoutPhaseTemplateInput[];
710
+ updateMany?: Prisma.ApplicationPhaseUpdateManyWithWhereWithoutPhaseTemplateInput | Prisma.ApplicationPhaseUpdateManyWithWhereWithoutPhaseTemplateInput[];
711
+ deleteMany?: Prisma.ApplicationPhaseScalarWhereInput | Prisma.ApplicationPhaseScalarWhereInput[];
712
+ };
651
713
  export type ApplicationPhaseCreateNestedOneWithoutCurrentForApplicationsInput = {
652
714
  create?: Prisma.XOR<Prisma.ApplicationPhaseCreateWithoutCurrentForApplicationsInput, Prisma.ApplicationPhaseUncheckedCreateWithoutCurrentForApplicationsInput>;
653
715
  connectOrCreate?: Prisma.ApplicationPhaseCreateOrConnectWithoutCurrentForApplicationsInput;
@@ -770,6 +832,7 @@ export type ApplicationPhaseCreateWithoutTenantInput = {
770
832
  createdAt?: Date | string;
771
833
  updatedAt?: Date | string;
772
834
  application: Prisma.ApplicationCreateNestedOneWithoutPhasesInput;
835
+ phaseTemplate?: Prisma.PropertyPaymentMethodPhaseCreateNestedOneWithoutApplicationPhasesInput;
773
836
  questionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutPhaseInput;
774
837
  documentationPhase?: Prisma.DocumentationPhaseCreateNestedOneWithoutPhaseInput;
775
838
  paymentPhase?: Prisma.PaymentPhaseCreateNestedOneWithoutPhaseInput;
@@ -779,6 +842,7 @@ export type ApplicationPhaseCreateWithoutTenantInput = {
779
842
  export type ApplicationPhaseUncheckedCreateWithoutTenantInput = {
780
843
  id?: string;
781
844
  applicationId: string;
845
+ phaseTemplateId?: string | null;
782
846
  name: string;
783
847
  description?: string | null;
784
848
  phaseCategory: $Enums.PhaseCategory;
@@ -827,6 +891,7 @@ export type ApplicationPhaseScalarWhereInput = {
827
891
  id?: Prisma.StringFilter<"ApplicationPhase"> | string;
828
892
  tenantId?: Prisma.StringFilter<"ApplicationPhase"> | string;
829
893
  applicationId?: Prisma.StringFilter<"ApplicationPhase"> | string;
894
+ phaseTemplateId?: Prisma.StringNullableFilter<"ApplicationPhase"> | string | null;
830
895
  name?: Prisma.StringFilter<"ApplicationPhase"> | string;
831
896
  description?: Prisma.StringNullableFilter<"ApplicationPhase"> | string | null;
832
897
  phaseCategory?: Prisma.EnumPhaseCategoryFilter<"ApplicationPhase"> | $Enums.PhaseCategory;
@@ -842,6 +907,75 @@ export type ApplicationPhaseScalarWhereInput = {
842
907
  createdAt?: Prisma.DateTimeFilter<"ApplicationPhase"> | Date | string;
843
908
  updatedAt?: Prisma.DateTimeFilter<"ApplicationPhase"> | Date | string;
844
909
  };
910
+ export type ApplicationPhaseCreateWithoutPhaseTemplateInput = {
911
+ id?: string;
912
+ name: string;
913
+ description?: string | null;
914
+ phaseCategory: $Enums.PhaseCategory;
915
+ phaseType: $Enums.PhaseType;
916
+ order: number;
917
+ status?: $Enums.PhaseStatus;
918
+ dueDate?: Date | string | null;
919
+ startDate?: Date | string | null;
920
+ endDate?: Date | string | null;
921
+ activatedAt?: Date | string | null;
922
+ completedAt?: Date | string | null;
923
+ requiresPreviousPhaseCompletion?: boolean;
924
+ createdAt?: Date | string;
925
+ updatedAt?: Date | string;
926
+ tenant: Prisma.TenantCreateNestedOneWithoutApplicationPhasesInput;
927
+ application: Prisma.ApplicationCreateNestedOneWithoutPhasesInput;
928
+ questionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutPhaseInput;
929
+ documentationPhase?: Prisma.DocumentationPhaseCreateNestedOneWithoutPhaseInput;
930
+ paymentPhase?: Prisma.PaymentPhaseCreateNestedOneWithoutPhaseInput;
931
+ payments?: Prisma.ApplicationPaymentCreateNestedManyWithoutPhaseInput;
932
+ currentForApplications?: Prisma.ApplicationCreateNestedManyWithoutCurrentPhaseInput;
933
+ };
934
+ export type ApplicationPhaseUncheckedCreateWithoutPhaseTemplateInput = {
935
+ id?: string;
936
+ tenantId: string;
937
+ applicationId: string;
938
+ name: string;
939
+ description?: string | null;
940
+ phaseCategory: $Enums.PhaseCategory;
941
+ phaseType: $Enums.PhaseType;
942
+ order: number;
943
+ status?: $Enums.PhaseStatus;
944
+ dueDate?: Date | string | null;
945
+ startDate?: Date | string | null;
946
+ endDate?: Date | string | null;
947
+ activatedAt?: Date | string | null;
948
+ completedAt?: Date | string | null;
949
+ requiresPreviousPhaseCompletion?: boolean;
950
+ createdAt?: Date | string;
951
+ updatedAt?: Date | string;
952
+ questionnairePhase?: Prisma.QuestionnairePhaseUncheckedCreateNestedOneWithoutPhaseInput;
953
+ documentationPhase?: Prisma.DocumentationPhaseUncheckedCreateNestedOneWithoutPhaseInput;
954
+ paymentPhase?: Prisma.PaymentPhaseUncheckedCreateNestedOneWithoutPhaseInput;
955
+ payments?: Prisma.ApplicationPaymentUncheckedCreateNestedManyWithoutPhaseInput;
956
+ currentForApplications?: Prisma.ApplicationUncheckedCreateNestedManyWithoutCurrentPhaseInput;
957
+ };
958
+ export type ApplicationPhaseCreateOrConnectWithoutPhaseTemplateInput = {
959
+ where: Prisma.ApplicationPhaseWhereUniqueInput;
960
+ create: Prisma.XOR<Prisma.ApplicationPhaseCreateWithoutPhaseTemplateInput, Prisma.ApplicationPhaseUncheckedCreateWithoutPhaseTemplateInput>;
961
+ };
962
+ export type ApplicationPhaseCreateManyPhaseTemplateInputEnvelope = {
963
+ data: Prisma.ApplicationPhaseCreateManyPhaseTemplateInput | Prisma.ApplicationPhaseCreateManyPhaseTemplateInput[];
964
+ skipDuplicates?: boolean;
965
+ };
966
+ export type ApplicationPhaseUpsertWithWhereUniqueWithoutPhaseTemplateInput = {
967
+ where: Prisma.ApplicationPhaseWhereUniqueInput;
968
+ update: Prisma.XOR<Prisma.ApplicationPhaseUpdateWithoutPhaseTemplateInput, Prisma.ApplicationPhaseUncheckedUpdateWithoutPhaseTemplateInput>;
969
+ create: Prisma.XOR<Prisma.ApplicationPhaseCreateWithoutPhaseTemplateInput, Prisma.ApplicationPhaseUncheckedCreateWithoutPhaseTemplateInput>;
970
+ };
971
+ export type ApplicationPhaseUpdateWithWhereUniqueWithoutPhaseTemplateInput = {
972
+ where: Prisma.ApplicationPhaseWhereUniqueInput;
973
+ data: Prisma.XOR<Prisma.ApplicationPhaseUpdateWithoutPhaseTemplateInput, Prisma.ApplicationPhaseUncheckedUpdateWithoutPhaseTemplateInput>;
974
+ };
975
+ export type ApplicationPhaseUpdateManyWithWhereWithoutPhaseTemplateInput = {
976
+ where: Prisma.ApplicationPhaseScalarWhereInput;
977
+ data: Prisma.XOR<Prisma.ApplicationPhaseUpdateManyMutationInput, Prisma.ApplicationPhaseUncheckedUpdateManyWithoutPhaseTemplateInput>;
978
+ };
845
979
  export type ApplicationPhaseCreateWithoutCurrentForApplicationsInput = {
846
980
  id?: string;
847
981
  name: string;
@@ -860,6 +994,7 @@ export type ApplicationPhaseCreateWithoutCurrentForApplicationsInput = {
860
994
  updatedAt?: Date | string;
861
995
  tenant: Prisma.TenantCreateNestedOneWithoutApplicationPhasesInput;
862
996
  application: Prisma.ApplicationCreateNestedOneWithoutPhasesInput;
997
+ phaseTemplate?: Prisma.PropertyPaymentMethodPhaseCreateNestedOneWithoutApplicationPhasesInput;
863
998
  questionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutPhaseInput;
864
999
  documentationPhase?: Prisma.DocumentationPhaseCreateNestedOneWithoutPhaseInput;
865
1000
  paymentPhase?: Prisma.PaymentPhaseCreateNestedOneWithoutPhaseInput;
@@ -869,6 +1004,7 @@ export type ApplicationPhaseUncheckedCreateWithoutCurrentForApplicationsInput =
869
1004
  id?: string;
870
1005
  tenantId: string;
871
1006
  applicationId: string;
1007
+ phaseTemplateId?: string | null;
872
1008
  name: string;
873
1009
  description?: string | null;
874
1010
  phaseCategory: $Enums.PhaseCategory;
@@ -909,6 +1045,7 @@ export type ApplicationPhaseCreateWithoutApplicationInput = {
909
1045
  createdAt?: Date | string;
910
1046
  updatedAt?: Date | string;
911
1047
  tenant: Prisma.TenantCreateNestedOneWithoutApplicationPhasesInput;
1048
+ phaseTemplate?: Prisma.PropertyPaymentMethodPhaseCreateNestedOneWithoutApplicationPhasesInput;
912
1049
  questionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutPhaseInput;
913
1050
  documentationPhase?: Prisma.DocumentationPhaseCreateNestedOneWithoutPhaseInput;
914
1051
  paymentPhase?: Prisma.PaymentPhaseCreateNestedOneWithoutPhaseInput;
@@ -918,6 +1055,7 @@ export type ApplicationPhaseCreateWithoutApplicationInput = {
918
1055
  export type ApplicationPhaseUncheckedCreateWithoutApplicationInput = {
919
1056
  id?: string;
920
1057
  tenantId: string;
1058
+ phaseTemplateId?: string | null;
921
1059
  name: string;
922
1060
  description?: string | null;
923
1061
  phaseCategory: $Enums.PhaseCategory;
@@ -973,6 +1111,7 @@ export type ApplicationPhaseUpdateWithoutCurrentForApplicationsInput = {
973
1111
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
974
1112
  tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationPhasesNestedInput;
975
1113
  application?: Prisma.ApplicationUpdateOneRequiredWithoutPhasesNestedInput;
1114
+ phaseTemplate?: Prisma.PropertyPaymentMethodPhaseUpdateOneWithoutApplicationPhasesNestedInput;
976
1115
  questionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutPhaseNestedInput;
977
1116
  documentationPhase?: Prisma.DocumentationPhaseUpdateOneWithoutPhaseNestedInput;
978
1117
  paymentPhase?: Prisma.PaymentPhaseUpdateOneWithoutPhaseNestedInput;
@@ -982,6 +1121,7 @@ export type ApplicationPhaseUncheckedUpdateWithoutCurrentForApplicationsInput =
982
1121
  id?: Prisma.StringFieldUpdateOperationsInput | string;
983
1122
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
984
1123
  applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1124
+ phaseTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
985
1125
  name?: Prisma.StringFieldUpdateOperationsInput | string;
986
1126
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
987
1127
  phaseCategory?: Prisma.EnumPhaseCategoryFieldUpdateOperationsInput | $Enums.PhaseCategory;
@@ -1032,6 +1172,7 @@ export type ApplicationPhaseCreateWithoutQuestionnairePhaseInput = {
1032
1172
  updatedAt?: Date | string;
1033
1173
  tenant: Prisma.TenantCreateNestedOneWithoutApplicationPhasesInput;
1034
1174
  application: Prisma.ApplicationCreateNestedOneWithoutPhasesInput;
1175
+ phaseTemplate?: Prisma.PropertyPaymentMethodPhaseCreateNestedOneWithoutApplicationPhasesInput;
1035
1176
  documentationPhase?: Prisma.DocumentationPhaseCreateNestedOneWithoutPhaseInput;
1036
1177
  paymentPhase?: Prisma.PaymentPhaseCreateNestedOneWithoutPhaseInput;
1037
1178
  payments?: Prisma.ApplicationPaymentCreateNestedManyWithoutPhaseInput;
@@ -1041,6 +1182,7 @@ export type ApplicationPhaseUncheckedCreateWithoutQuestionnairePhaseInput = {
1041
1182
  id?: string;
1042
1183
  tenantId: string;
1043
1184
  applicationId: string;
1185
+ phaseTemplateId?: string | null;
1044
1186
  name: string;
1045
1187
  description?: string | null;
1046
1188
  phaseCategory: $Enums.PhaseCategory;
@@ -1091,6 +1233,7 @@ export type ApplicationPhaseUpdateWithoutQuestionnairePhaseInput = {
1091
1233
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1092
1234
  tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationPhasesNestedInput;
1093
1235
  application?: Prisma.ApplicationUpdateOneRequiredWithoutPhasesNestedInput;
1236
+ phaseTemplate?: Prisma.PropertyPaymentMethodPhaseUpdateOneWithoutApplicationPhasesNestedInput;
1094
1237
  documentationPhase?: Prisma.DocumentationPhaseUpdateOneWithoutPhaseNestedInput;
1095
1238
  paymentPhase?: Prisma.PaymentPhaseUpdateOneWithoutPhaseNestedInput;
1096
1239
  payments?: Prisma.ApplicationPaymentUpdateManyWithoutPhaseNestedInput;
@@ -1100,6 +1243,7 @@ export type ApplicationPhaseUncheckedUpdateWithoutQuestionnairePhaseInput = {
1100
1243
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1101
1244
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1102
1245
  applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1246
+ phaseTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1103
1247
  name?: Prisma.StringFieldUpdateOperationsInput | string;
1104
1248
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1105
1249
  phaseCategory?: Prisma.EnumPhaseCategoryFieldUpdateOperationsInput | $Enums.PhaseCategory;
@@ -1137,6 +1281,7 @@ export type ApplicationPhaseCreateWithoutDocumentationPhaseInput = {
1137
1281
  updatedAt?: Date | string;
1138
1282
  tenant: Prisma.TenantCreateNestedOneWithoutApplicationPhasesInput;
1139
1283
  application: Prisma.ApplicationCreateNestedOneWithoutPhasesInput;
1284
+ phaseTemplate?: Prisma.PropertyPaymentMethodPhaseCreateNestedOneWithoutApplicationPhasesInput;
1140
1285
  questionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutPhaseInput;
1141
1286
  paymentPhase?: Prisma.PaymentPhaseCreateNestedOneWithoutPhaseInput;
1142
1287
  payments?: Prisma.ApplicationPaymentCreateNestedManyWithoutPhaseInput;
@@ -1146,6 +1291,7 @@ export type ApplicationPhaseUncheckedCreateWithoutDocumentationPhaseInput = {
1146
1291
  id?: string;
1147
1292
  tenantId: string;
1148
1293
  applicationId: string;
1294
+ phaseTemplateId?: string | null;
1149
1295
  name: string;
1150
1296
  description?: string | null;
1151
1297
  phaseCategory: $Enums.PhaseCategory;
@@ -1196,6 +1342,7 @@ export type ApplicationPhaseUpdateWithoutDocumentationPhaseInput = {
1196
1342
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1197
1343
  tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationPhasesNestedInput;
1198
1344
  application?: Prisma.ApplicationUpdateOneRequiredWithoutPhasesNestedInput;
1345
+ phaseTemplate?: Prisma.PropertyPaymentMethodPhaseUpdateOneWithoutApplicationPhasesNestedInput;
1199
1346
  questionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutPhaseNestedInput;
1200
1347
  paymentPhase?: Prisma.PaymentPhaseUpdateOneWithoutPhaseNestedInput;
1201
1348
  payments?: Prisma.ApplicationPaymentUpdateManyWithoutPhaseNestedInput;
@@ -1205,6 +1352,7 @@ export type ApplicationPhaseUncheckedUpdateWithoutDocumentationPhaseInput = {
1205
1352
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1206
1353
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1207
1354
  applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1355
+ phaseTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1208
1356
  name?: Prisma.StringFieldUpdateOperationsInput | string;
1209
1357
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1210
1358
  phaseCategory?: Prisma.EnumPhaseCategoryFieldUpdateOperationsInput | $Enums.PhaseCategory;
@@ -1242,6 +1390,7 @@ export type ApplicationPhaseCreateWithoutPaymentPhaseInput = {
1242
1390
  updatedAt?: Date | string;
1243
1391
  tenant: Prisma.TenantCreateNestedOneWithoutApplicationPhasesInput;
1244
1392
  application: Prisma.ApplicationCreateNestedOneWithoutPhasesInput;
1393
+ phaseTemplate?: Prisma.PropertyPaymentMethodPhaseCreateNestedOneWithoutApplicationPhasesInput;
1245
1394
  questionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutPhaseInput;
1246
1395
  documentationPhase?: Prisma.DocumentationPhaseCreateNestedOneWithoutPhaseInput;
1247
1396
  payments?: Prisma.ApplicationPaymentCreateNestedManyWithoutPhaseInput;
@@ -1251,6 +1400,7 @@ export type ApplicationPhaseUncheckedCreateWithoutPaymentPhaseInput = {
1251
1400
  id?: string;
1252
1401
  tenantId: string;
1253
1402
  applicationId: string;
1403
+ phaseTemplateId?: string | null;
1254
1404
  name: string;
1255
1405
  description?: string | null;
1256
1406
  phaseCategory: $Enums.PhaseCategory;
@@ -1301,6 +1451,7 @@ export type ApplicationPhaseUpdateWithoutPaymentPhaseInput = {
1301
1451
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1302
1452
  tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationPhasesNestedInput;
1303
1453
  application?: Prisma.ApplicationUpdateOneRequiredWithoutPhasesNestedInput;
1454
+ phaseTemplate?: Prisma.PropertyPaymentMethodPhaseUpdateOneWithoutApplicationPhasesNestedInput;
1304
1455
  questionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutPhaseNestedInput;
1305
1456
  documentationPhase?: Prisma.DocumentationPhaseUpdateOneWithoutPhaseNestedInput;
1306
1457
  payments?: Prisma.ApplicationPaymentUpdateManyWithoutPhaseNestedInput;
@@ -1310,6 +1461,7 @@ export type ApplicationPhaseUncheckedUpdateWithoutPaymentPhaseInput = {
1310
1461
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1311
1462
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1312
1463
  applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1464
+ phaseTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1313
1465
  name?: Prisma.StringFieldUpdateOperationsInput | string;
1314
1466
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1315
1467
  phaseCategory?: Prisma.EnumPhaseCategoryFieldUpdateOperationsInput | $Enums.PhaseCategory;
@@ -1347,6 +1499,7 @@ export type ApplicationPhaseCreateWithoutPaymentsInput = {
1347
1499
  updatedAt?: Date | string;
1348
1500
  tenant: Prisma.TenantCreateNestedOneWithoutApplicationPhasesInput;
1349
1501
  application: Prisma.ApplicationCreateNestedOneWithoutPhasesInput;
1502
+ phaseTemplate?: Prisma.PropertyPaymentMethodPhaseCreateNestedOneWithoutApplicationPhasesInput;
1350
1503
  questionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutPhaseInput;
1351
1504
  documentationPhase?: Prisma.DocumentationPhaseCreateNestedOneWithoutPhaseInput;
1352
1505
  paymentPhase?: Prisma.PaymentPhaseCreateNestedOneWithoutPhaseInput;
@@ -1356,6 +1509,7 @@ export type ApplicationPhaseUncheckedCreateWithoutPaymentsInput = {
1356
1509
  id?: string;
1357
1510
  tenantId: string;
1358
1511
  applicationId: string;
1512
+ phaseTemplateId?: string | null;
1359
1513
  name: string;
1360
1514
  description?: string | null;
1361
1515
  phaseCategory: $Enums.PhaseCategory;
@@ -1406,6 +1560,7 @@ export type ApplicationPhaseUpdateWithoutPaymentsInput = {
1406
1560
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1407
1561
  tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationPhasesNestedInput;
1408
1562
  application?: Prisma.ApplicationUpdateOneRequiredWithoutPhasesNestedInput;
1563
+ phaseTemplate?: Prisma.PropertyPaymentMethodPhaseUpdateOneWithoutApplicationPhasesNestedInput;
1409
1564
  questionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutPhaseNestedInput;
1410
1565
  documentationPhase?: Prisma.DocumentationPhaseUpdateOneWithoutPhaseNestedInput;
1411
1566
  paymentPhase?: Prisma.PaymentPhaseUpdateOneWithoutPhaseNestedInput;
@@ -1415,6 +1570,7 @@ export type ApplicationPhaseUncheckedUpdateWithoutPaymentsInput = {
1415
1570
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1416
1571
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1417
1572
  applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1573
+ phaseTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1418
1574
  name?: Prisma.StringFieldUpdateOperationsInput | string;
1419
1575
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1420
1576
  phaseCategory?: Prisma.EnumPhaseCategoryFieldUpdateOperationsInput | $Enums.PhaseCategory;
@@ -1437,6 +1593,7 @@ export type ApplicationPhaseUncheckedUpdateWithoutPaymentsInput = {
1437
1593
  export type ApplicationPhaseCreateManyTenantInput = {
1438
1594
  id?: string;
1439
1595
  applicationId: string;
1596
+ phaseTemplateId?: string | null;
1440
1597
  name: string;
1441
1598
  description?: string | null;
1442
1599
  phaseCategory: $Enums.PhaseCategory;
@@ -1469,6 +1626,7 @@ export type ApplicationPhaseUpdateWithoutTenantInput = {
1469
1626
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1470
1627
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1471
1628
  application?: Prisma.ApplicationUpdateOneRequiredWithoutPhasesNestedInput;
1629
+ phaseTemplate?: Prisma.PropertyPaymentMethodPhaseUpdateOneWithoutApplicationPhasesNestedInput;
1472
1630
  questionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutPhaseNestedInput;
1473
1631
  documentationPhase?: Prisma.DocumentationPhaseUpdateOneWithoutPhaseNestedInput;
1474
1632
  paymentPhase?: Prisma.PaymentPhaseUpdateOneWithoutPhaseNestedInput;
@@ -1478,6 +1636,7 @@ export type ApplicationPhaseUpdateWithoutTenantInput = {
1478
1636
  export type ApplicationPhaseUncheckedUpdateWithoutTenantInput = {
1479
1637
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1480
1638
  applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1639
+ phaseTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1481
1640
  name?: Prisma.StringFieldUpdateOperationsInput | string;
1482
1641
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1483
1642
  phaseCategory?: Prisma.EnumPhaseCategoryFieldUpdateOperationsInput | $Enums.PhaseCategory;
@@ -1501,6 +1660,93 @@ export type ApplicationPhaseUncheckedUpdateWithoutTenantInput = {
1501
1660
  export type ApplicationPhaseUncheckedUpdateManyWithoutTenantInput = {
1502
1661
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1503
1662
  applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1663
+ phaseTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1664
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1665
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1666
+ phaseCategory?: Prisma.EnumPhaseCategoryFieldUpdateOperationsInput | $Enums.PhaseCategory;
1667
+ phaseType?: Prisma.EnumPhaseTypeFieldUpdateOperationsInput | $Enums.PhaseType;
1668
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
1669
+ status?: Prisma.EnumPhaseStatusFieldUpdateOperationsInput | $Enums.PhaseStatus;
1670
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1671
+ startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1672
+ endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1673
+ activatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1674
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1675
+ requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1676
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1677
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1678
+ };
1679
+ export type ApplicationPhaseCreateManyPhaseTemplateInput = {
1680
+ id?: string;
1681
+ tenantId: string;
1682
+ applicationId: string;
1683
+ name: string;
1684
+ description?: string | null;
1685
+ phaseCategory: $Enums.PhaseCategory;
1686
+ phaseType: $Enums.PhaseType;
1687
+ order: number;
1688
+ status?: $Enums.PhaseStatus;
1689
+ dueDate?: Date | string | null;
1690
+ startDate?: Date | string | null;
1691
+ endDate?: Date | string | null;
1692
+ activatedAt?: Date | string | null;
1693
+ completedAt?: Date | string | null;
1694
+ requiresPreviousPhaseCompletion?: boolean;
1695
+ createdAt?: Date | string;
1696
+ updatedAt?: Date | string;
1697
+ };
1698
+ export type ApplicationPhaseUpdateWithoutPhaseTemplateInput = {
1699
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1700
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1701
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1702
+ phaseCategory?: Prisma.EnumPhaseCategoryFieldUpdateOperationsInput | $Enums.PhaseCategory;
1703
+ phaseType?: Prisma.EnumPhaseTypeFieldUpdateOperationsInput | $Enums.PhaseType;
1704
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
1705
+ status?: Prisma.EnumPhaseStatusFieldUpdateOperationsInput | $Enums.PhaseStatus;
1706
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1707
+ startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1708
+ endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1709
+ activatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1710
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1711
+ requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1712
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1713
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1714
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationPhasesNestedInput;
1715
+ application?: Prisma.ApplicationUpdateOneRequiredWithoutPhasesNestedInput;
1716
+ questionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutPhaseNestedInput;
1717
+ documentationPhase?: Prisma.DocumentationPhaseUpdateOneWithoutPhaseNestedInput;
1718
+ paymentPhase?: Prisma.PaymentPhaseUpdateOneWithoutPhaseNestedInput;
1719
+ payments?: Prisma.ApplicationPaymentUpdateManyWithoutPhaseNestedInput;
1720
+ currentForApplications?: Prisma.ApplicationUpdateManyWithoutCurrentPhaseNestedInput;
1721
+ };
1722
+ export type ApplicationPhaseUncheckedUpdateWithoutPhaseTemplateInput = {
1723
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1724
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1725
+ applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1726
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1727
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1728
+ phaseCategory?: Prisma.EnumPhaseCategoryFieldUpdateOperationsInput | $Enums.PhaseCategory;
1729
+ phaseType?: Prisma.EnumPhaseTypeFieldUpdateOperationsInput | $Enums.PhaseType;
1730
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
1731
+ status?: Prisma.EnumPhaseStatusFieldUpdateOperationsInput | $Enums.PhaseStatus;
1732
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1733
+ startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1734
+ endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1735
+ activatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1736
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1737
+ requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1738
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1739
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1740
+ questionnairePhase?: Prisma.QuestionnairePhaseUncheckedUpdateOneWithoutPhaseNestedInput;
1741
+ documentationPhase?: Prisma.DocumentationPhaseUncheckedUpdateOneWithoutPhaseNestedInput;
1742
+ paymentPhase?: Prisma.PaymentPhaseUncheckedUpdateOneWithoutPhaseNestedInput;
1743
+ payments?: Prisma.ApplicationPaymentUncheckedUpdateManyWithoutPhaseNestedInput;
1744
+ currentForApplications?: Prisma.ApplicationUncheckedUpdateManyWithoutCurrentPhaseNestedInput;
1745
+ };
1746
+ export type ApplicationPhaseUncheckedUpdateManyWithoutPhaseTemplateInput = {
1747
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1748
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1749
+ applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1504
1750
  name?: Prisma.StringFieldUpdateOperationsInput | string;
1505
1751
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1506
1752
  phaseCategory?: Prisma.EnumPhaseCategoryFieldUpdateOperationsInput | $Enums.PhaseCategory;
@@ -1519,6 +1765,7 @@ export type ApplicationPhaseUncheckedUpdateManyWithoutTenantInput = {
1519
1765
  export type ApplicationPhaseCreateManyApplicationInput = {
1520
1766
  id?: string;
1521
1767
  tenantId: string;
1768
+ phaseTemplateId?: string | null;
1522
1769
  name: string;
1523
1770
  description?: string | null;
1524
1771
  phaseCategory: $Enums.PhaseCategory;
@@ -1551,6 +1798,7 @@ export type ApplicationPhaseUpdateWithoutApplicationInput = {
1551
1798
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1552
1799
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1553
1800
  tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationPhasesNestedInput;
1801
+ phaseTemplate?: Prisma.PropertyPaymentMethodPhaseUpdateOneWithoutApplicationPhasesNestedInput;
1554
1802
  questionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutPhaseNestedInput;
1555
1803
  documentationPhase?: Prisma.DocumentationPhaseUpdateOneWithoutPhaseNestedInput;
1556
1804
  paymentPhase?: Prisma.PaymentPhaseUpdateOneWithoutPhaseNestedInput;
@@ -1560,6 +1808,7 @@ export type ApplicationPhaseUpdateWithoutApplicationInput = {
1560
1808
  export type ApplicationPhaseUncheckedUpdateWithoutApplicationInput = {
1561
1809
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1562
1810
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1811
+ phaseTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1563
1812
  name?: Prisma.StringFieldUpdateOperationsInput | string;
1564
1813
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1565
1814
  phaseCategory?: Prisma.EnumPhaseCategoryFieldUpdateOperationsInput | $Enums.PhaseCategory;
@@ -1583,6 +1832,7 @@ export type ApplicationPhaseUncheckedUpdateWithoutApplicationInput = {
1583
1832
  export type ApplicationPhaseUncheckedUpdateManyWithoutApplicationInput = {
1584
1833
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1585
1834
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1835
+ phaseTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1586
1836
  name?: Prisma.StringFieldUpdateOperationsInput | string;
1587
1837
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1588
1838
  phaseCategory?: Prisma.EnumPhaseCategoryFieldUpdateOperationsInput | $Enums.PhaseCategory;
@@ -1634,6 +1884,7 @@ export type ApplicationPhaseSelect<ExtArgs extends runtime.Types.Extensions.Inte
1634
1884
  id?: boolean;
1635
1885
  tenantId?: boolean;
1636
1886
  applicationId?: boolean;
1887
+ phaseTemplateId?: boolean;
1637
1888
  name?: boolean;
1638
1889
  description?: boolean;
1639
1890
  phaseCategory?: boolean;
@@ -1650,6 +1901,7 @@ export type ApplicationPhaseSelect<ExtArgs extends runtime.Types.Extensions.Inte
1650
1901
  updatedAt?: boolean;
1651
1902
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
1652
1903
  application?: boolean | Prisma.ApplicationDefaultArgs<ExtArgs>;
1904
+ phaseTemplate?: boolean | Prisma.ApplicationPhase$phaseTemplateArgs<ExtArgs>;
1653
1905
  questionnairePhase?: boolean | Prisma.ApplicationPhase$questionnairePhaseArgs<ExtArgs>;
1654
1906
  documentationPhase?: boolean | Prisma.ApplicationPhase$documentationPhaseArgs<ExtArgs>;
1655
1907
  paymentPhase?: boolean | Prisma.ApplicationPhase$paymentPhaseArgs<ExtArgs>;
@@ -1661,6 +1913,7 @@ export type ApplicationPhaseSelectScalar = {
1661
1913
  id?: boolean;
1662
1914
  tenantId?: boolean;
1663
1915
  applicationId?: boolean;
1916
+ phaseTemplateId?: boolean;
1664
1917
  name?: boolean;
1665
1918
  description?: boolean;
1666
1919
  phaseCategory?: boolean;
@@ -1676,10 +1929,11 @@ export type ApplicationPhaseSelectScalar = {
1676
1929
  createdAt?: boolean;
1677
1930
  updatedAt?: boolean;
1678
1931
  };
1679
- export type ApplicationPhaseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "applicationId" | "name" | "description" | "phaseCategory" | "phaseType" | "order" | "status" | "dueDate" | "startDate" | "endDate" | "activatedAt" | "completedAt" | "requiresPreviousPhaseCompletion" | "createdAt" | "updatedAt", ExtArgs["result"]["applicationPhase"]>;
1932
+ export type ApplicationPhaseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "applicationId" | "phaseTemplateId" | "name" | "description" | "phaseCategory" | "phaseType" | "order" | "status" | "dueDate" | "startDate" | "endDate" | "activatedAt" | "completedAt" | "requiresPreviousPhaseCompletion" | "createdAt" | "updatedAt", ExtArgs["result"]["applicationPhase"]>;
1680
1933
  export type ApplicationPhaseInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1681
1934
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
1682
1935
  application?: boolean | Prisma.ApplicationDefaultArgs<ExtArgs>;
1936
+ phaseTemplate?: boolean | Prisma.ApplicationPhase$phaseTemplateArgs<ExtArgs>;
1683
1937
  questionnairePhase?: boolean | Prisma.ApplicationPhase$questionnairePhaseArgs<ExtArgs>;
1684
1938
  documentationPhase?: boolean | Prisma.ApplicationPhase$documentationPhaseArgs<ExtArgs>;
1685
1939
  paymentPhase?: boolean | Prisma.ApplicationPhase$paymentPhaseArgs<ExtArgs>;
@@ -1692,6 +1946,7 @@ export type $ApplicationPhasePayload<ExtArgs extends runtime.Types.Extensions.In
1692
1946
  objects: {
1693
1947
  tenant: Prisma.$TenantPayload<ExtArgs>;
1694
1948
  application: Prisma.$ApplicationPayload<ExtArgs>;
1949
+ phaseTemplate: Prisma.$PropertyPaymentMethodPhasePayload<ExtArgs> | null;
1695
1950
  questionnairePhase: Prisma.$QuestionnairePhasePayload<ExtArgs> | null;
1696
1951
  documentationPhase: Prisma.$DocumentationPhasePayload<ExtArgs> | null;
1697
1952
  paymentPhase: Prisma.$PaymentPhasePayload<ExtArgs> | null;
@@ -1702,6 +1957,7 @@ export type $ApplicationPhasePayload<ExtArgs extends runtime.Types.Extensions.In
1702
1957
  id: string;
1703
1958
  tenantId: string;
1704
1959
  applicationId: string;
1960
+ phaseTemplateId: string | null;
1705
1961
  name: string;
1706
1962
  description: string | null;
1707
1963
  phaseCategory: $Enums.PhaseCategory;
@@ -1995,6 +2251,7 @@ export interface Prisma__ApplicationPhaseClient<T, Null = never, ExtArgs extends
1995
2251
  readonly [Symbol.toStringTag]: "PrismaPromise";
1996
2252
  tenant<T extends Prisma.TenantDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TenantDefaultArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1997
2253
  application<T extends Prisma.ApplicationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApplicationDefaultArgs<ExtArgs>>): Prisma.Prisma__ApplicationClient<runtime.Types.Result.GetResult<Prisma.$ApplicationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
2254
+ phaseTemplate<T extends Prisma.ApplicationPhase$phaseTemplateArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApplicationPhase$phaseTemplateArgs<ExtArgs>>): Prisma.Prisma__PropertyPaymentMethodPhaseClient<runtime.Types.Result.GetResult<Prisma.$PropertyPaymentMethodPhasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1998
2255
  questionnairePhase<T extends Prisma.ApplicationPhase$questionnairePhaseArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApplicationPhase$questionnairePhaseArgs<ExtArgs>>): Prisma.Prisma__QuestionnairePhaseClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePhasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1999
2256
  documentationPhase<T extends Prisma.ApplicationPhase$documentationPhaseArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApplicationPhase$documentationPhaseArgs<ExtArgs>>): Prisma.Prisma__DocumentationPhaseClient<runtime.Types.Result.GetResult<Prisma.$DocumentationPhasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2000
2257
  paymentPhase<T extends Prisma.ApplicationPhase$paymentPhaseArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApplicationPhase$paymentPhaseArgs<ExtArgs>>): Prisma.Prisma__PaymentPhaseClient<runtime.Types.Result.GetResult<Prisma.$PaymentPhasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
@@ -2028,6 +2285,7 @@ export interface ApplicationPhaseFieldRefs {
2028
2285
  readonly id: Prisma.FieldRef<"ApplicationPhase", 'String'>;
2029
2286
  readonly tenantId: Prisma.FieldRef<"ApplicationPhase", 'String'>;
2030
2287
  readonly applicationId: Prisma.FieldRef<"ApplicationPhase", 'String'>;
2288
+ readonly phaseTemplateId: Prisma.FieldRef<"ApplicationPhase", 'String'>;
2031
2289
  readonly name: Prisma.FieldRef<"ApplicationPhase", 'String'>;
2032
2290
  readonly description: Prisma.FieldRef<"ApplicationPhase", 'String'>;
2033
2291
  readonly phaseCategory: Prisma.FieldRef<"ApplicationPhase", 'PhaseCategory'>;
@@ -2369,6 +2627,24 @@ export type ApplicationPhaseDeleteManyArgs<ExtArgs extends runtime.Types.Extensi
2369
2627
  */
2370
2628
  limit?: number;
2371
2629
  };
2630
+ /**
2631
+ * ApplicationPhase.phaseTemplate
2632
+ */
2633
+ export type ApplicationPhase$phaseTemplateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2634
+ /**
2635
+ * Select specific fields to fetch from the PropertyPaymentMethodPhase
2636
+ */
2637
+ select?: Prisma.PropertyPaymentMethodPhaseSelect<ExtArgs> | null;
2638
+ /**
2639
+ * Omit specific fields from the PropertyPaymentMethodPhase
2640
+ */
2641
+ omit?: Prisma.PropertyPaymentMethodPhaseOmit<ExtArgs> | null;
2642
+ /**
2643
+ * Choose, which related nodes to fetch as well
2644
+ */
2645
+ include?: Prisma.PropertyPaymentMethodPhaseInclude<ExtArgs> | null;
2646
+ where?: Prisma.PropertyPaymentMethodPhaseWhereInput;
2647
+ };
2372
2648
  /**
2373
2649
  * ApplicationPhase.questionnairePhase
2374
2650
  */