@valentine-efagene/qshelter-common 2.0.56 → 2.0.58
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.
- package/dist/generated/client/enums.d.ts +3 -0
- package/dist/generated/client/enums.js +4 -1
- package/dist/generated/client/internal/class.js +2 -2
- package/dist/generated/client/internal/prismaNamespace.d.ts +6 -0
- package/dist/generated/client/internal/prismaNamespace.js +7 -1
- package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +6 -0
- package/dist/generated/client/internal/prismaNamespaceBrowser.js +7 -1
- package/dist/generated/client/models/ContractPhase.d.ts +345 -1
- package/dist/generated/client/models/DocumentationStep.d.ts +337 -1
- package/package.json +1 -1
- package/prisma/migrations/20260105081842_unify_contract_events/migration.sql +37 -0
- package/prisma/migrations/20260105085337_simplify_los_remove_prequalification/migration.sql +1 -0
- package/prisma/migrations/20260105094604_workflow_tracking_current_step/migration.sql +14 -0
- package/prisma/schema.prisma +28 -1
|
@@ -47,6 +47,7 @@ export type ContractPhaseMinAggregateOutputType = {
|
|
|
47
47
|
phaseType: $Enums.PhaseType | null;
|
|
48
48
|
order: number | null;
|
|
49
49
|
status: $Enums.PhaseStatus | null;
|
|
50
|
+
currentStepId: string | null;
|
|
50
51
|
totalAmount: number | null;
|
|
51
52
|
paidAmount: number | null;
|
|
52
53
|
remainingAmount: number | null;
|
|
@@ -77,6 +78,7 @@ export type ContractPhaseMaxAggregateOutputType = {
|
|
|
77
78
|
phaseType: $Enums.PhaseType | null;
|
|
78
79
|
order: number | null;
|
|
79
80
|
status: $Enums.PhaseStatus | null;
|
|
81
|
+
currentStepId: string | null;
|
|
80
82
|
totalAmount: number | null;
|
|
81
83
|
paidAmount: number | null;
|
|
82
84
|
remainingAmount: number | null;
|
|
@@ -107,6 +109,7 @@ export type ContractPhaseCountAggregateOutputType = {
|
|
|
107
109
|
phaseType: number;
|
|
108
110
|
order: number;
|
|
109
111
|
status: number;
|
|
112
|
+
currentStepId: number;
|
|
110
113
|
totalAmount: number;
|
|
111
114
|
paidAmount: number;
|
|
112
115
|
remainingAmount: number;
|
|
@@ -165,6 +168,7 @@ export type ContractPhaseMinAggregateInputType = {
|
|
|
165
168
|
phaseType?: true;
|
|
166
169
|
order?: true;
|
|
167
170
|
status?: true;
|
|
171
|
+
currentStepId?: true;
|
|
168
172
|
totalAmount?: true;
|
|
169
173
|
paidAmount?: true;
|
|
170
174
|
remainingAmount?: true;
|
|
@@ -195,6 +199,7 @@ export type ContractPhaseMaxAggregateInputType = {
|
|
|
195
199
|
phaseType?: true;
|
|
196
200
|
order?: true;
|
|
197
201
|
status?: true;
|
|
202
|
+
currentStepId?: true;
|
|
198
203
|
totalAmount?: true;
|
|
199
204
|
paidAmount?: true;
|
|
200
205
|
remainingAmount?: true;
|
|
@@ -225,6 +230,7 @@ export type ContractPhaseCountAggregateInputType = {
|
|
|
225
230
|
phaseType?: true;
|
|
226
231
|
order?: true;
|
|
227
232
|
status?: true;
|
|
233
|
+
currentStepId?: true;
|
|
228
234
|
totalAmount?: true;
|
|
229
235
|
paidAmount?: true;
|
|
230
236
|
remainingAmount?: true;
|
|
@@ -335,6 +341,7 @@ export type ContractPhaseGroupByOutputType = {
|
|
|
335
341
|
phaseType: $Enums.PhaseType;
|
|
336
342
|
order: number;
|
|
337
343
|
status: $Enums.PhaseStatus;
|
|
344
|
+
currentStepId: string | null;
|
|
338
345
|
totalAmount: number | null;
|
|
339
346
|
paidAmount: number;
|
|
340
347
|
remainingAmount: number | null;
|
|
@@ -379,6 +386,7 @@ export type ContractPhaseWhereInput = {
|
|
|
379
386
|
phaseType?: Prisma.EnumPhaseTypeFilter<"ContractPhase"> | $Enums.PhaseType;
|
|
380
387
|
order?: Prisma.IntFilter<"ContractPhase"> | number;
|
|
381
388
|
status?: Prisma.EnumPhaseStatusFilter<"ContractPhase"> | $Enums.PhaseStatus;
|
|
389
|
+
currentStepId?: Prisma.StringNullableFilter<"ContractPhase"> | string | null;
|
|
382
390
|
totalAmount?: Prisma.FloatNullableFilter<"ContractPhase"> | number | null;
|
|
383
391
|
paidAmount?: Prisma.FloatFilter<"ContractPhase"> | number;
|
|
384
392
|
remainingAmount?: Prisma.FloatNullableFilter<"ContractPhase"> | number | null;
|
|
@@ -403,6 +411,7 @@ export type ContractPhaseWhereInput = {
|
|
|
403
411
|
updatedAt?: Prisma.DateTimeFilter<"ContractPhase"> | Date | string;
|
|
404
412
|
contract?: Prisma.XOR<Prisma.ContractScalarRelationFilter, Prisma.ContractWhereInput>;
|
|
405
413
|
paymentPlan?: Prisma.XOR<Prisma.PaymentPlanNullableScalarRelationFilter, Prisma.PaymentPlanWhereInput> | null;
|
|
414
|
+
currentStep?: Prisma.XOR<Prisma.DocumentationStepNullableScalarRelationFilter, Prisma.DocumentationStepWhereInput> | null;
|
|
406
415
|
installments?: Prisma.ContractInstallmentListRelationFilter;
|
|
407
416
|
payments?: Prisma.ContractPaymentListRelationFilter;
|
|
408
417
|
steps?: Prisma.DocumentationStepListRelationFilter;
|
|
@@ -417,6 +426,7 @@ export type ContractPhaseOrderByWithRelationInput = {
|
|
|
417
426
|
phaseType?: Prisma.SortOrder;
|
|
418
427
|
order?: Prisma.SortOrder;
|
|
419
428
|
status?: Prisma.SortOrder;
|
|
429
|
+
currentStepId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
420
430
|
totalAmount?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
421
431
|
paidAmount?: Prisma.SortOrder;
|
|
422
432
|
remainingAmount?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
@@ -441,6 +451,7 @@ export type ContractPhaseOrderByWithRelationInput = {
|
|
|
441
451
|
updatedAt?: Prisma.SortOrder;
|
|
442
452
|
contract?: Prisma.ContractOrderByWithRelationInput;
|
|
443
453
|
paymentPlan?: Prisma.PaymentPlanOrderByWithRelationInput;
|
|
454
|
+
currentStep?: Prisma.DocumentationStepOrderByWithRelationInput;
|
|
444
455
|
installments?: Prisma.ContractInstallmentOrderByRelationAggregateInput;
|
|
445
456
|
payments?: Prisma.ContractPaymentOrderByRelationAggregateInput;
|
|
446
457
|
steps?: Prisma.DocumentationStepOrderByRelationAggregateInput;
|
|
@@ -459,6 +470,7 @@ export type ContractPhaseWhereUniqueInput = Prisma.AtLeast<{
|
|
|
459
470
|
phaseType?: Prisma.EnumPhaseTypeFilter<"ContractPhase"> | $Enums.PhaseType;
|
|
460
471
|
order?: Prisma.IntFilter<"ContractPhase"> | number;
|
|
461
472
|
status?: Prisma.EnumPhaseStatusFilter<"ContractPhase"> | $Enums.PhaseStatus;
|
|
473
|
+
currentStepId?: Prisma.StringNullableFilter<"ContractPhase"> | string | null;
|
|
462
474
|
totalAmount?: Prisma.FloatNullableFilter<"ContractPhase"> | number | null;
|
|
463
475
|
paidAmount?: Prisma.FloatFilter<"ContractPhase"> | number;
|
|
464
476
|
remainingAmount?: Prisma.FloatNullableFilter<"ContractPhase"> | number | null;
|
|
@@ -483,6 +495,7 @@ export type ContractPhaseWhereUniqueInput = Prisma.AtLeast<{
|
|
|
483
495
|
updatedAt?: Prisma.DateTimeFilter<"ContractPhase"> | Date | string;
|
|
484
496
|
contract?: Prisma.XOR<Prisma.ContractScalarRelationFilter, Prisma.ContractWhereInput>;
|
|
485
497
|
paymentPlan?: Prisma.XOR<Prisma.PaymentPlanNullableScalarRelationFilter, Prisma.PaymentPlanWhereInput> | null;
|
|
498
|
+
currentStep?: Prisma.XOR<Prisma.DocumentationStepNullableScalarRelationFilter, Prisma.DocumentationStepWhereInput> | null;
|
|
486
499
|
installments?: Prisma.ContractInstallmentListRelationFilter;
|
|
487
500
|
payments?: Prisma.ContractPaymentListRelationFilter;
|
|
488
501
|
steps?: Prisma.DocumentationStepListRelationFilter;
|
|
@@ -497,6 +510,7 @@ export type ContractPhaseOrderByWithAggregationInput = {
|
|
|
497
510
|
phaseType?: Prisma.SortOrder;
|
|
498
511
|
order?: Prisma.SortOrder;
|
|
499
512
|
status?: Prisma.SortOrder;
|
|
513
|
+
currentStepId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
500
514
|
totalAmount?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
501
515
|
paidAmount?: Prisma.SortOrder;
|
|
502
516
|
remainingAmount?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
@@ -538,6 +552,7 @@ export type ContractPhaseScalarWhereWithAggregatesInput = {
|
|
|
538
552
|
phaseType?: Prisma.EnumPhaseTypeWithAggregatesFilter<"ContractPhase"> | $Enums.PhaseType;
|
|
539
553
|
order?: Prisma.IntWithAggregatesFilter<"ContractPhase"> | number;
|
|
540
554
|
status?: Prisma.EnumPhaseStatusWithAggregatesFilter<"ContractPhase"> | $Enums.PhaseStatus;
|
|
555
|
+
currentStepId?: Prisma.StringNullableWithAggregatesFilter<"ContractPhase"> | string | null;
|
|
541
556
|
totalAmount?: Prisma.FloatNullableWithAggregatesFilter<"ContractPhase"> | number | null;
|
|
542
557
|
paidAmount?: Prisma.FloatWithAggregatesFilter<"ContractPhase"> | number;
|
|
543
558
|
remainingAmount?: Prisma.FloatNullableWithAggregatesFilter<"ContractPhase"> | number | null;
|
|
@@ -593,6 +608,7 @@ export type ContractPhaseCreateInput = {
|
|
|
593
608
|
updatedAt?: Date | string;
|
|
594
609
|
contract: Prisma.ContractCreateNestedOneWithoutPhasesInput;
|
|
595
610
|
paymentPlan?: Prisma.PaymentPlanCreateNestedOneWithoutContractPhasesInput;
|
|
611
|
+
currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
|
|
596
612
|
installments?: Prisma.ContractInstallmentCreateNestedManyWithoutPhaseInput;
|
|
597
613
|
payments?: Prisma.ContractPaymentCreateNestedManyWithoutPhaseInput;
|
|
598
614
|
steps?: Prisma.DocumentationStepCreateNestedManyWithoutPhaseInput;
|
|
@@ -607,6 +623,7 @@ export type ContractPhaseUncheckedCreateInput = {
|
|
|
607
623
|
phaseType: $Enums.PhaseType;
|
|
608
624
|
order: number;
|
|
609
625
|
status?: $Enums.PhaseStatus;
|
|
626
|
+
currentStepId?: string | null;
|
|
610
627
|
totalAmount?: number | null;
|
|
611
628
|
paidAmount?: number;
|
|
612
629
|
remainingAmount?: number | null;
|
|
@@ -665,6 +682,7 @@ export type ContractPhaseUpdateInput = {
|
|
|
665
682
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
666
683
|
contract?: Prisma.ContractUpdateOneRequiredWithoutPhasesNestedInput;
|
|
667
684
|
paymentPlan?: Prisma.PaymentPlanUpdateOneWithoutContractPhasesNestedInput;
|
|
685
|
+
currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
|
|
668
686
|
installments?: Prisma.ContractInstallmentUpdateManyWithoutPhaseNestedInput;
|
|
669
687
|
payments?: Prisma.ContractPaymentUpdateManyWithoutPhaseNestedInput;
|
|
670
688
|
steps?: Prisma.DocumentationStepUpdateManyWithoutPhaseNestedInput;
|
|
@@ -679,6 +697,7 @@ export type ContractPhaseUncheckedUpdateInput = {
|
|
|
679
697
|
phaseType?: Prisma.EnumPhaseTypeFieldUpdateOperationsInput | $Enums.PhaseType;
|
|
680
698
|
order?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
681
699
|
status?: Prisma.EnumPhaseStatusFieldUpdateOperationsInput | $Enums.PhaseStatus;
|
|
700
|
+
currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
682
701
|
totalAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
683
702
|
paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
684
703
|
remainingAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
@@ -715,6 +734,7 @@ export type ContractPhaseCreateManyInput = {
|
|
|
715
734
|
phaseType: $Enums.PhaseType;
|
|
716
735
|
order: number;
|
|
717
736
|
status?: $Enums.PhaseStatus;
|
|
737
|
+
currentStepId?: string | null;
|
|
718
738
|
totalAmount?: number | null;
|
|
719
739
|
paidAmount?: number;
|
|
720
740
|
remainingAmount?: number | null;
|
|
@@ -779,6 +799,7 @@ export type ContractPhaseUncheckedUpdateManyInput = {
|
|
|
779
799
|
phaseType?: Prisma.EnumPhaseTypeFieldUpdateOperationsInput | $Enums.PhaseType;
|
|
780
800
|
order?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
781
801
|
status?: Prisma.EnumPhaseStatusFieldUpdateOperationsInput | $Enums.PhaseStatus;
|
|
802
|
+
currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
782
803
|
totalAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
783
804
|
paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
784
805
|
remainingAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
@@ -825,6 +846,7 @@ export type ContractPhaseCountOrderByAggregateInput = {
|
|
|
825
846
|
phaseType?: Prisma.SortOrder;
|
|
826
847
|
order?: Prisma.SortOrder;
|
|
827
848
|
status?: Prisma.SortOrder;
|
|
849
|
+
currentStepId?: Prisma.SortOrder;
|
|
828
850
|
totalAmount?: Prisma.SortOrder;
|
|
829
851
|
paidAmount?: Prisma.SortOrder;
|
|
830
852
|
remainingAmount?: Prisma.SortOrder;
|
|
@@ -870,6 +892,7 @@ export type ContractPhaseMaxOrderByAggregateInput = {
|
|
|
870
892
|
phaseType?: Prisma.SortOrder;
|
|
871
893
|
order?: Prisma.SortOrder;
|
|
872
894
|
status?: Prisma.SortOrder;
|
|
895
|
+
currentStepId?: Prisma.SortOrder;
|
|
873
896
|
totalAmount?: Prisma.SortOrder;
|
|
874
897
|
paidAmount?: Prisma.SortOrder;
|
|
875
898
|
remainingAmount?: Prisma.SortOrder;
|
|
@@ -900,6 +923,7 @@ export type ContractPhaseMinOrderByAggregateInput = {
|
|
|
900
923
|
phaseType?: Prisma.SortOrder;
|
|
901
924
|
order?: Prisma.SortOrder;
|
|
902
925
|
status?: Prisma.SortOrder;
|
|
926
|
+
currentStepId?: Prisma.SortOrder;
|
|
903
927
|
totalAmount?: Prisma.SortOrder;
|
|
904
928
|
paidAmount?: Prisma.SortOrder;
|
|
905
929
|
remainingAmount?: Prisma.SortOrder;
|
|
@@ -1024,6 +1048,18 @@ export type ContractPhaseCreateNestedOneWithoutStepsInput = {
|
|
|
1024
1048
|
connectOrCreate?: Prisma.ContractPhaseCreateOrConnectWithoutStepsInput;
|
|
1025
1049
|
connect?: Prisma.ContractPhaseWhereUniqueInput;
|
|
1026
1050
|
};
|
|
1051
|
+
export type ContractPhaseCreateNestedManyWithoutCurrentStepInput = {
|
|
1052
|
+
create?: Prisma.XOR<Prisma.ContractPhaseCreateWithoutCurrentStepInput, Prisma.ContractPhaseUncheckedCreateWithoutCurrentStepInput> | Prisma.ContractPhaseCreateWithoutCurrentStepInput[] | Prisma.ContractPhaseUncheckedCreateWithoutCurrentStepInput[];
|
|
1053
|
+
connectOrCreate?: Prisma.ContractPhaseCreateOrConnectWithoutCurrentStepInput | Prisma.ContractPhaseCreateOrConnectWithoutCurrentStepInput[];
|
|
1054
|
+
createMany?: Prisma.ContractPhaseCreateManyCurrentStepInputEnvelope;
|
|
1055
|
+
connect?: Prisma.ContractPhaseWhereUniqueInput | Prisma.ContractPhaseWhereUniqueInput[];
|
|
1056
|
+
};
|
|
1057
|
+
export type ContractPhaseUncheckedCreateNestedManyWithoutCurrentStepInput = {
|
|
1058
|
+
create?: Prisma.XOR<Prisma.ContractPhaseCreateWithoutCurrentStepInput, Prisma.ContractPhaseUncheckedCreateWithoutCurrentStepInput> | Prisma.ContractPhaseCreateWithoutCurrentStepInput[] | Prisma.ContractPhaseUncheckedCreateWithoutCurrentStepInput[];
|
|
1059
|
+
connectOrCreate?: Prisma.ContractPhaseCreateOrConnectWithoutCurrentStepInput | Prisma.ContractPhaseCreateOrConnectWithoutCurrentStepInput[];
|
|
1060
|
+
createMany?: Prisma.ContractPhaseCreateManyCurrentStepInputEnvelope;
|
|
1061
|
+
connect?: Prisma.ContractPhaseWhereUniqueInput | Prisma.ContractPhaseWhereUniqueInput[];
|
|
1062
|
+
};
|
|
1027
1063
|
export type ContractPhaseUpdateOneRequiredWithoutStepsNestedInput = {
|
|
1028
1064
|
create?: Prisma.XOR<Prisma.ContractPhaseCreateWithoutStepsInput, Prisma.ContractPhaseUncheckedCreateWithoutStepsInput>;
|
|
1029
1065
|
connectOrCreate?: Prisma.ContractPhaseCreateOrConnectWithoutStepsInput;
|
|
@@ -1031,6 +1067,32 @@ export type ContractPhaseUpdateOneRequiredWithoutStepsNestedInput = {
|
|
|
1031
1067
|
connect?: Prisma.ContractPhaseWhereUniqueInput;
|
|
1032
1068
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ContractPhaseUpdateToOneWithWhereWithoutStepsInput, Prisma.ContractPhaseUpdateWithoutStepsInput>, Prisma.ContractPhaseUncheckedUpdateWithoutStepsInput>;
|
|
1033
1069
|
};
|
|
1070
|
+
export type ContractPhaseUpdateManyWithoutCurrentStepNestedInput = {
|
|
1071
|
+
create?: Prisma.XOR<Prisma.ContractPhaseCreateWithoutCurrentStepInput, Prisma.ContractPhaseUncheckedCreateWithoutCurrentStepInput> | Prisma.ContractPhaseCreateWithoutCurrentStepInput[] | Prisma.ContractPhaseUncheckedCreateWithoutCurrentStepInput[];
|
|
1072
|
+
connectOrCreate?: Prisma.ContractPhaseCreateOrConnectWithoutCurrentStepInput | Prisma.ContractPhaseCreateOrConnectWithoutCurrentStepInput[];
|
|
1073
|
+
upsert?: Prisma.ContractPhaseUpsertWithWhereUniqueWithoutCurrentStepInput | Prisma.ContractPhaseUpsertWithWhereUniqueWithoutCurrentStepInput[];
|
|
1074
|
+
createMany?: Prisma.ContractPhaseCreateManyCurrentStepInputEnvelope;
|
|
1075
|
+
set?: Prisma.ContractPhaseWhereUniqueInput | Prisma.ContractPhaseWhereUniqueInput[];
|
|
1076
|
+
disconnect?: Prisma.ContractPhaseWhereUniqueInput | Prisma.ContractPhaseWhereUniqueInput[];
|
|
1077
|
+
delete?: Prisma.ContractPhaseWhereUniqueInput | Prisma.ContractPhaseWhereUniqueInput[];
|
|
1078
|
+
connect?: Prisma.ContractPhaseWhereUniqueInput | Prisma.ContractPhaseWhereUniqueInput[];
|
|
1079
|
+
update?: Prisma.ContractPhaseUpdateWithWhereUniqueWithoutCurrentStepInput | Prisma.ContractPhaseUpdateWithWhereUniqueWithoutCurrentStepInput[];
|
|
1080
|
+
updateMany?: Prisma.ContractPhaseUpdateManyWithWhereWithoutCurrentStepInput | Prisma.ContractPhaseUpdateManyWithWhereWithoutCurrentStepInput[];
|
|
1081
|
+
deleteMany?: Prisma.ContractPhaseScalarWhereInput | Prisma.ContractPhaseScalarWhereInput[];
|
|
1082
|
+
};
|
|
1083
|
+
export type ContractPhaseUncheckedUpdateManyWithoutCurrentStepNestedInput = {
|
|
1084
|
+
create?: Prisma.XOR<Prisma.ContractPhaseCreateWithoutCurrentStepInput, Prisma.ContractPhaseUncheckedCreateWithoutCurrentStepInput> | Prisma.ContractPhaseCreateWithoutCurrentStepInput[] | Prisma.ContractPhaseUncheckedCreateWithoutCurrentStepInput[];
|
|
1085
|
+
connectOrCreate?: Prisma.ContractPhaseCreateOrConnectWithoutCurrentStepInput | Prisma.ContractPhaseCreateOrConnectWithoutCurrentStepInput[];
|
|
1086
|
+
upsert?: Prisma.ContractPhaseUpsertWithWhereUniqueWithoutCurrentStepInput | Prisma.ContractPhaseUpsertWithWhereUniqueWithoutCurrentStepInput[];
|
|
1087
|
+
createMany?: Prisma.ContractPhaseCreateManyCurrentStepInputEnvelope;
|
|
1088
|
+
set?: Prisma.ContractPhaseWhereUniqueInput | Prisma.ContractPhaseWhereUniqueInput[];
|
|
1089
|
+
disconnect?: Prisma.ContractPhaseWhereUniqueInput | Prisma.ContractPhaseWhereUniqueInput[];
|
|
1090
|
+
delete?: Prisma.ContractPhaseWhereUniqueInput | Prisma.ContractPhaseWhereUniqueInput[];
|
|
1091
|
+
connect?: Prisma.ContractPhaseWhereUniqueInput | Prisma.ContractPhaseWhereUniqueInput[];
|
|
1092
|
+
update?: Prisma.ContractPhaseUpdateWithWhereUniqueWithoutCurrentStepInput | Prisma.ContractPhaseUpdateWithWhereUniqueWithoutCurrentStepInput[];
|
|
1093
|
+
updateMany?: Prisma.ContractPhaseUpdateManyWithWhereWithoutCurrentStepInput | Prisma.ContractPhaseUpdateManyWithWhereWithoutCurrentStepInput[];
|
|
1094
|
+
deleteMany?: Prisma.ContractPhaseScalarWhereInput | Prisma.ContractPhaseScalarWhereInput[];
|
|
1095
|
+
};
|
|
1034
1096
|
export type ContractPhaseCreateNestedOneWithoutInstallmentsInput = {
|
|
1035
1097
|
create?: Prisma.XOR<Prisma.ContractPhaseCreateWithoutInstallmentsInput, Prisma.ContractPhaseUncheckedCreateWithoutInstallmentsInput>;
|
|
1036
1098
|
connectOrCreate?: Prisma.ContractPhaseCreateOrConnectWithoutInstallmentsInput;
|
|
@@ -1088,6 +1150,7 @@ export type ContractPhaseCreateWithoutPaymentPlanInput = {
|
|
|
1088
1150
|
createdAt?: Date | string;
|
|
1089
1151
|
updatedAt?: Date | string;
|
|
1090
1152
|
contract: Prisma.ContractCreateNestedOneWithoutPhasesInput;
|
|
1153
|
+
currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
|
|
1091
1154
|
installments?: Prisma.ContractInstallmentCreateNestedManyWithoutPhaseInput;
|
|
1092
1155
|
payments?: Prisma.ContractPaymentCreateNestedManyWithoutPhaseInput;
|
|
1093
1156
|
steps?: Prisma.DocumentationStepCreateNestedManyWithoutPhaseInput;
|
|
@@ -1101,6 +1164,7 @@ export type ContractPhaseUncheckedCreateWithoutPaymentPlanInput = {
|
|
|
1101
1164
|
phaseType: $Enums.PhaseType;
|
|
1102
1165
|
order: number;
|
|
1103
1166
|
status?: $Enums.PhaseStatus;
|
|
1167
|
+
currentStepId?: string | null;
|
|
1104
1168
|
totalAmount?: number | null;
|
|
1105
1169
|
paidAmount?: number;
|
|
1106
1170
|
remainingAmount?: number | null;
|
|
@@ -1161,6 +1225,7 @@ export type ContractPhaseScalarWhereInput = {
|
|
|
1161
1225
|
phaseType?: Prisma.EnumPhaseTypeFilter<"ContractPhase"> | $Enums.PhaseType;
|
|
1162
1226
|
order?: Prisma.IntFilter<"ContractPhase"> | number;
|
|
1163
1227
|
status?: Prisma.EnumPhaseStatusFilter<"ContractPhase"> | $Enums.PhaseStatus;
|
|
1228
|
+
currentStepId?: Prisma.StringNullableFilter<"ContractPhase"> | string | null;
|
|
1164
1229
|
totalAmount?: Prisma.FloatNullableFilter<"ContractPhase"> | number | null;
|
|
1165
1230
|
paidAmount?: Prisma.FloatFilter<"ContractPhase"> | number;
|
|
1166
1231
|
remainingAmount?: Prisma.FloatNullableFilter<"ContractPhase"> | number | null;
|
|
@@ -1215,6 +1280,7 @@ export type ContractPhaseCreateWithoutContractInput = {
|
|
|
1215
1280
|
createdAt?: Date | string;
|
|
1216
1281
|
updatedAt?: Date | string;
|
|
1217
1282
|
paymentPlan?: Prisma.PaymentPlanCreateNestedOneWithoutContractPhasesInput;
|
|
1283
|
+
currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
|
|
1218
1284
|
installments?: Prisma.ContractInstallmentCreateNestedManyWithoutPhaseInput;
|
|
1219
1285
|
payments?: Prisma.ContractPaymentCreateNestedManyWithoutPhaseInput;
|
|
1220
1286
|
steps?: Prisma.DocumentationStepCreateNestedManyWithoutPhaseInput;
|
|
@@ -1228,6 +1294,7 @@ export type ContractPhaseUncheckedCreateWithoutContractInput = {
|
|
|
1228
1294
|
phaseType: $Enums.PhaseType;
|
|
1229
1295
|
order: number;
|
|
1230
1296
|
status?: $Enums.PhaseStatus;
|
|
1297
|
+
currentStepId?: string | null;
|
|
1231
1298
|
totalAmount?: number | null;
|
|
1232
1299
|
paidAmount?: number;
|
|
1233
1300
|
remainingAmount?: number | null;
|
|
@@ -1307,6 +1374,7 @@ export type ContractPhaseCreateWithoutStepsInput = {
|
|
|
1307
1374
|
updatedAt?: Date | string;
|
|
1308
1375
|
contract: Prisma.ContractCreateNestedOneWithoutPhasesInput;
|
|
1309
1376
|
paymentPlan?: Prisma.PaymentPlanCreateNestedOneWithoutContractPhasesInput;
|
|
1377
|
+
currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
|
|
1310
1378
|
installments?: Prisma.ContractInstallmentCreateNestedManyWithoutPhaseInput;
|
|
1311
1379
|
payments?: Prisma.ContractPaymentCreateNestedManyWithoutPhaseInput;
|
|
1312
1380
|
};
|
|
@@ -1320,6 +1388,7 @@ export type ContractPhaseUncheckedCreateWithoutStepsInput = {
|
|
|
1320
1388
|
phaseType: $Enums.PhaseType;
|
|
1321
1389
|
order: number;
|
|
1322
1390
|
status?: $Enums.PhaseStatus;
|
|
1391
|
+
currentStepId?: string | null;
|
|
1323
1392
|
totalAmount?: number | null;
|
|
1324
1393
|
paidAmount?: number;
|
|
1325
1394
|
remainingAmount?: number | null;
|
|
@@ -1349,6 +1418,86 @@ export type ContractPhaseCreateOrConnectWithoutStepsInput = {
|
|
|
1349
1418
|
where: Prisma.ContractPhaseWhereUniqueInput;
|
|
1350
1419
|
create: Prisma.XOR<Prisma.ContractPhaseCreateWithoutStepsInput, Prisma.ContractPhaseUncheckedCreateWithoutStepsInput>;
|
|
1351
1420
|
};
|
|
1421
|
+
export type ContractPhaseCreateWithoutCurrentStepInput = {
|
|
1422
|
+
id?: string;
|
|
1423
|
+
name: string;
|
|
1424
|
+
description?: string | null;
|
|
1425
|
+
phaseCategory: $Enums.PhaseCategory;
|
|
1426
|
+
phaseType: $Enums.PhaseType;
|
|
1427
|
+
order: number;
|
|
1428
|
+
status?: $Enums.PhaseStatus;
|
|
1429
|
+
totalAmount?: number | null;
|
|
1430
|
+
paidAmount?: number;
|
|
1431
|
+
remainingAmount?: number | null;
|
|
1432
|
+
interestRate?: number | null;
|
|
1433
|
+
collectFunds?: boolean;
|
|
1434
|
+
approvedDocumentsCount?: number;
|
|
1435
|
+
requiredDocumentsCount?: number;
|
|
1436
|
+
completedStepsCount?: number;
|
|
1437
|
+
totalStepsCount?: number;
|
|
1438
|
+
dueDate?: Date | string | null;
|
|
1439
|
+
startDate?: Date | string | null;
|
|
1440
|
+
endDate?: Date | string | null;
|
|
1441
|
+
activatedAt?: Date | string | null;
|
|
1442
|
+
completedAt?: Date | string | null;
|
|
1443
|
+
requiresPreviousPhaseCompletion?: boolean;
|
|
1444
|
+
minimumCompletionPercentage?: number | null;
|
|
1445
|
+
completionCriterion?: $Enums.CompletionCriterion | null;
|
|
1446
|
+
paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
1447
|
+
stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
1448
|
+
requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
1449
|
+
createdAt?: Date | string;
|
|
1450
|
+
updatedAt?: Date | string;
|
|
1451
|
+
contract: Prisma.ContractCreateNestedOneWithoutPhasesInput;
|
|
1452
|
+
paymentPlan?: Prisma.PaymentPlanCreateNestedOneWithoutContractPhasesInput;
|
|
1453
|
+
installments?: Prisma.ContractInstallmentCreateNestedManyWithoutPhaseInput;
|
|
1454
|
+
payments?: Prisma.ContractPaymentCreateNestedManyWithoutPhaseInput;
|
|
1455
|
+
steps?: Prisma.DocumentationStepCreateNestedManyWithoutPhaseInput;
|
|
1456
|
+
};
|
|
1457
|
+
export type ContractPhaseUncheckedCreateWithoutCurrentStepInput = {
|
|
1458
|
+
id?: string;
|
|
1459
|
+
contractId: string;
|
|
1460
|
+
paymentPlanId?: string | null;
|
|
1461
|
+
name: string;
|
|
1462
|
+
description?: string | null;
|
|
1463
|
+
phaseCategory: $Enums.PhaseCategory;
|
|
1464
|
+
phaseType: $Enums.PhaseType;
|
|
1465
|
+
order: number;
|
|
1466
|
+
status?: $Enums.PhaseStatus;
|
|
1467
|
+
totalAmount?: number | null;
|
|
1468
|
+
paidAmount?: number;
|
|
1469
|
+
remainingAmount?: number | null;
|
|
1470
|
+
interestRate?: number | null;
|
|
1471
|
+
collectFunds?: boolean;
|
|
1472
|
+
approvedDocumentsCount?: number;
|
|
1473
|
+
requiredDocumentsCount?: number;
|
|
1474
|
+
completedStepsCount?: number;
|
|
1475
|
+
totalStepsCount?: number;
|
|
1476
|
+
dueDate?: Date | string | null;
|
|
1477
|
+
startDate?: Date | string | null;
|
|
1478
|
+
endDate?: Date | string | null;
|
|
1479
|
+
activatedAt?: Date | string | null;
|
|
1480
|
+
completedAt?: Date | string | null;
|
|
1481
|
+
requiresPreviousPhaseCompletion?: boolean;
|
|
1482
|
+
minimumCompletionPercentage?: number | null;
|
|
1483
|
+
completionCriterion?: $Enums.CompletionCriterion | null;
|
|
1484
|
+
paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
1485
|
+
stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
1486
|
+
requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
1487
|
+
createdAt?: Date | string;
|
|
1488
|
+
updatedAt?: Date | string;
|
|
1489
|
+
installments?: Prisma.ContractInstallmentUncheckedCreateNestedManyWithoutPhaseInput;
|
|
1490
|
+
payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutPhaseInput;
|
|
1491
|
+
steps?: Prisma.DocumentationStepUncheckedCreateNestedManyWithoutPhaseInput;
|
|
1492
|
+
};
|
|
1493
|
+
export type ContractPhaseCreateOrConnectWithoutCurrentStepInput = {
|
|
1494
|
+
where: Prisma.ContractPhaseWhereUniqueInput;
|
|
1495
|
+
create: Prisma.XOR<Prisma.ContractPhaseCreateWithoutCurrentStepInput, Prisma.ContractPhaseUncheckedCreateWithoutCurrentStepInput>;
|
|
1496
|
+
};
|
|
1497
|
+
export type ContractPhaseCreateManyCurrentStepInputEnvelope = {
|
|
1498
|
+
data: Prisma.ContractPhaseCreateManyCurrentStepInput | Prisma.ContractPhaseCreateManyCurrentStepInput[];
|
|
1499
|
+
skipDuplicates?: boolean;
|
|
1500
|
+
};
|
|
1352
1501
|
export type ContractPhaseUpsertWithoutStepsInput = {
|
|
1353
1502
|
update: Prisma.XOR<Prisma.ContractPhaseUpdateWithoutStepsInput, Prisma.ContractPhaseUncheckedUpdateWithoutStepsInput>;
|
|
1354
1503
|
create: Prisma.XOR<Prisma.ContractPhaseCreateWithoutStepsInput, Prisma.ContractPhaseUncheckedCreateWithoutStepsInput>;
|
|
@@ -1390,6 +1539,7 @@ export type ContractPhaseUpdateWithoutStepsInput = {
|
|
|
1390
1539
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1391
1540
|
contract?: Prisma.ContractUpdateOneRequiredWithoutPhasesNestedInput;
|
|
1392
1541
|
paymentPlan?: Prisma.PaymentPlanUpdateOneWithoutContractPhasesNestedInput;
|
|
1542
|
+
currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
|
|
1393
1543
|
installments?: Prisma.ContractInstallmentUpdateManyWithoutPhaseNestedInput;
|
|
1394
1544
|
payments?: Prisma.ContractPaymentUpdateManyWithoutPhaseNestedInput;
|
|
1395
1545
|
};
|
|
@@ -1403,6 +1553,7 @@ export type ContractPhaseUncheckedUpdateWithoutStepsInput = {
|
|
|
1403
1553
|
phaseType?: Prisma.EnumPhaseTypeFieldUpdateOperationsInput | $Enums.PhaseType;
|
|
1404
1554
|
order?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
1405
1555
|
status?: Prisma.EnumPhaseStatusFieldUpdateOperationsInput | $Enums.PhaseStatus;
|
|
1556
|
+
currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1406
1557
|
totalAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1407
1558
|
paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1408
1559
|
remainingAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
@@ -1428,6 +1579,19 @@ export type ContractPhaseUncheckedUpdateWithoutStepsInput = {
|
|
|
1428
1579
|
installments?: Prisma.ContractInstallmentUncheckedUpdateManyWithoutPhaseNestedInput;
|
|
1429
1580
|
payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutPhaseNestedInput;
|
|
1430
1581
|
};
|
|
1582
|
+
export type ContractPhaseUpsertWithWhereUniqueWithoutCurrentStepInput = {
|
|
1583
|
+
where: Prisma.ContractPhaseWhereUniqueInput;
|
|
1584
|
+
update: Prisma.XOR<Prisma.ContractPhaseUpdateWithoutCurrentStepInput, Prisma.ContractPhaseUncheckedUpdateWithoutCurrentStepInput>;
|
|
1585
|
+
create: Prisma.XOR<Prisma.ContractPhaseCreateWithoutCurrentStepInput, Prisma.ContractPhaseUncheckedCreateWithoutCurrentStepInput>;
|
|
1586
|
+
};
|
|
1587
|
+
export type ContractPhaseUpdateWithWhereUniqueWithoutCurrentStepInput = {
|
|
1588
|
+
where: Prisma.ContractPhaseWhereUniqueInput;
|
|
1589
|
+
data: Prisma.XOR<Prisma.ContractPhaseUpdateWithoutCurrentStepInput, Prisma.ContractPhaseUncheckedUpdateWithoutCurrentStepInput>;
|
|
1590
|
+
};
|
|
1591
|
+
export type ContractPhaseUpdateManyWithWhereWithoutCurrentStepInput = {
|
|
1592
|
+
where: Prisma.ContractPhaseScalarWhereInput;
|
|
1593
|
+
data: Prisma.XOR<Prisma.ContractPhaseUpdateManyMutationInput, Prisma.ContractPhaseUncheckedUpdateManyWithoutCurrentStepInput>;
|
|
1594
|
+
};
|
|
1431
1595
|
export type ContractPhaseCreateWithoutInstallmentsInput = {
|
|
1432
1596
|
id?: string;
|
|
1433
1597
|
name: string;
|
|
@@ -1460,6 +1624,7 @@ export type ContractPhaseCreateWithoutInstallmentsInput = {
|
|
|
1460
1624
|
updatedAt?: Date | string;
|
|
1461
1625
|
contract: Prisma.ContractCreateNestedOneWithoutPhasesInput;
|
|
1462
1626
|
paymentPlan?: Prisma.PaymentPlanCreateNestedOneWithoutContractPhasesInput;
|
|
1627
|
+
currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
|
|
1463
1628
|
payments?: Prisma.ContractPaymentCreateNestedManyWithoutPhaseInput;
|
|
1464
1629
|
steps?: Prisma.DocumentationStepCreateNestedManyWithoutPhaseInput;
|
|
1465
1630
|
};
|
|
@@ -1473,6 +1638,7 @@ export type ContractPhaseUncheckedCreateWithoutInstallmentsInput = {
|
|
|
1473
1638
|
phaseType: $Enums.PhaseType;
|
|
1474
1639
|
order: number;
|
|
1475
1640
|
status?: $Enums.PhaseStatus;
|
|
1641
|
+
currentStepId?: string | null;
|
|
1476
1642
|
totalAmount?: number | null;
|
|
1477
1643
|
paidAmount?: number;
|
|
1478
1644
|
remainingAmount?: number | null;
|
|
@@ -1543,6 +1709,7 @@ export type ContractPhaseUpdateWithoutInstallmentsInput = {
|
|
|
1543
1709
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1544
1710
|
contract?: Prisma.ContractUpdateOneRequiredWithoutPhasesNestedInput;
|
|
1545
1711
|
paymentPlan?: Prisma.PaymentPlanUpdateOneWithoutContractPhasesNestedInput;
|
|
1712
|
+
currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
|
|
1546
1713
|
payments?: Prisma.ContractPaymentUpdateManyWithoutPhaseNestedInput;
|
|
1547
1714
|
steps?: Prisma.DocumentationStepUpdateManyWithoutPhaseNestedInput;
|
|
1548
1715
|
};
|
|
@@ -1556,6 +1723,7 @@ export type ContractPhaseUncheckedUpdateWithoutInstallmentsInput = {
|
|
|
1556
1723
|
phaseType?: Prisma.EnumPhaseTypeFieldUpdateOperationsInput | $Enums.PhaseType;
|
|
1557
1724
|
order?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
1558
1725
|
status?: Prisma.EnumPhaseStatusFieldUpdateOperationsInput | $Enums.PhaseStatus;
|
|
1726
|
+
currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1559
1727
|
totalAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1560
1728
|
paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1561
1729
|
remainingAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
@@ -1613,6 +1781,7 @@ export type ContractPhaseCreateWithoutPaymentsInput = {
|
|
|
1613
1781
|
updatedAt?: Date | string;
|
|
1614
1782
|
contract: Prisma.ContractCreateNestedOneWithoutPhasesInput;
|
|
1615
1783
|
paymentPlan?: Prisma.PaymentPlanCreateNestedOneWithoutContractPhasesInput;
|
|
1784
|
+
currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
|
|
1616
1785
|
installments?: Prisma.ContractInstallmentCreateNestedManyWithoutPhaseInput;
|
|
1617
1786
|
steps?: Prisma.DocumentationStepCreateNestedManyWithoutPhaseInput;
|
|
1618
1787
|
};
|
|
@@ -1626,6 +1795,7 @@ export type ContractPhaseUncheckedCreateWithoutPaymentsInput = {
|
|
|
1626
1795
|
phaseType: $Enums.PhaseType;
|
|
1627
1796
|
order: number;
|
|
1628
1797
|
status?: $Enums.PhaseStatus;
|
|
1798
|
+
currentStepId?: string | null;
|
|
1629
1799
|
totalAmount?: number | null;
|
|
1630
1800
|
paidAmount?: number;
|
|
1631
1801
|
remainingAmount?: number | null;
|
|
@@ -1696,6 +1866,7 @@ export type ContractPhaseUpdateWithoutPaymentsInput = {
|
|
|
1696
1866
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1697
1867
|
contract?: Prisma.ContractUpdateOneRequiredWithoutPhasesNestedInput;
|
|
1698
1868
|
paymentPlan?: Prisma.PaymentPlanUpdateOneWithoutContractPhasesNestedInput;
|
|
1869
|
+
currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
|
|
1699
1870
|
installments?: Prisma.ContractInstallmentUpdateManyWithoutPhaseNestedInput;
|
|
1700
1871
|
steps?: Prisma.DocumentationStepUpdateManyWithoutPhaseNestedInput;
|
|
1701
1872
|
};
|
|
@@ -1709,6 +1880,7 @@ export type ContractPhaseUncheckedUpdateWithoutPaymentsInput = {
|
|
|
1709
1880
|
phaseType?: Prisma.EnumPhaseTypeFieldUpdateOperationsInput | $Enums.PhaseType;
|
|
1710
1881
|
order?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
1711
1882
|
status?: Prisma.EnumPhaseStatusFieldUpdateOperationsInput | $Enums.PhaseStatus;
|
|
1883
|
+
currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1712
1884
|
totalAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1713
1885
|
paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1714
1886
|
remainingAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
@@ -1743,6 +1915,7 @@ export type ContractPhaseCreateManyPaymentPlanInput = {
|
|
|
1743
1915
|
phaseType: $Enums.PhaseType;
|
|
1744
1916
|
order: number;
|
|
1745
1917
|
status?: $Enums.PhaseStatus;
|
|
1918
|
+
currentStepId?: string | null;
|
|
1746
1919
|
totalAmount?: number | null;
|
|
1747
1920
|
paidAmount?: number;
|
|
1748
1921
|
remainingAmount?: number | null;
|
|
@@ -1797,6 +1970,7 @@ export type ContractPhaseUpdateWithoutPaymentPlanInput = {
|
|
|
1797
1970
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1798
1971
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1799
1972
|
contract?: Prisma.ContractUpdateOneRequiredWithoutPhasesNestedInput;
|
|
1973
|
+
currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
|
|
1800
1974
|
installments?: Prisma.ContractInstallmentUpdateManyWithoutPhaseNestedInput;
|
|
1801
1975
|
payments?: Prisma.ContractPaymentUpdateManyWithoutPhaseNestedInput;
|
|
1802
1976
|
steps?: Prisma.DocumentationStepUpdateManyWithoutPhaseNestedInput;
|
|
@@ -1810,6 +1984,7 @@ export type ContractPhaseUncheckedUpdateWithoutPaymentPlanInput = {
|
|
|
1810
1984
|
phaseType?: Prisma.EnumPhaseTypeFieldUpdateOperationsInput | $Enums.PhaseType;
|
|
1811
1985
|
order?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
1812
1986
|
status?: Prisma.EnumPhaseStatusFieldUpdateOperationsInput | $Enums.PhaseStatus;
|
|
1987
|
+
currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1813
1988
|
totalAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1814
1989
|
paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1815
1990
|
remainingAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
@@ -1845,6 +2020,7 @@ export type ContractPhaseUncheckedUpdateManyWithoutPaymentPlanInput = {
|
|
|
1845
2020
|
phaseType?: Prisma.EnumPhaseTypeFieldUpdateOperationsInput | $Enums.PhaseType;
|
|
1846
2021
|
order?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
1847
2022
|
status?: Prisma.EnumPhaseStatusFieldUpdateOperationsInput | $Enums.PhaseStatus;
|
|
2023
|
+
currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1848
2024
|
totalAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1849
2025
|
paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1850
2026
|
remainingAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
@@ -1877,6 +2053,7 @@ export type ContractPhaseCreateManyContractInput = {
|
|
|
1877
2053
|
phaseType: $Enums.PhaseType;
|
|
1878
2054
|
order: number;
|
|
1879
2055
|
status?: $Enums.PhaseStatus;
|
|
2056
|
+
currentStepId?: string | null;
|
|
1880
2057
|
totalAmount?: number | null;
|
|
1881
2058
|
paidAmount?: number;
|
|
1882
2059
|
remainingAmount?: number | null;
|
|
@@ -1931,6 +2108,7 @@ export type ContractPhaseUpdateWithoutContractInput = {
|
|
|
1931
2108
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1932
2109
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1933
2110
|
paymentPlan?: Prisma.PaymentPlanUpdateOneWithoutContractPhasesNestedInput;
|
|
2111
|
+
currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
|
|
1934
2112
|
installments?: Prisma.ContractInstallmentUpdateManyWithoutPhaseNestedInput;
|
|
1935
2113
|
payments?: Prisma.ContractPaymentUpdateManyWithoutPhaseNestedInput;
|
|
1936
2114
|
steps?: Prisma.DocumentationStepUpdateManyWithoutPhaseNestedInput;
|
|
@@ -1944,6 +2122,7 @@ export type ContractPhaseUncheckedUpdateWithoutContractInput = {
|
|
|
1944
2122
|
phaseType?: Prisma.EnumPhaseTypeFieldUpdateOperationsInput | $Enums.PhaseType;
|
|
1945
2123
|
order?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
1946
2124
|
status?: Prisma.EnumPhaseStatusFieldUpdateOperationsInput | $Enums.PhaseStatus;
|
|
2125
|
+
currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1947
2126
|
totalAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1948
2127
|
paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1949
2128
|
remainingAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
@@ -1979,6 +2158,145 @@ export type ContractPhaseUncheckedUpdateManyWithoutContractInput = {
|
|
|
1979
2158
|
phaseType?: Prisma.EnumPhaseTypeFieldUpdateOperationsInput | $Enums.PhaseType;
|
|
1980
2159
|
order?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
1981
2160
|
status?: Prisma.EnumPhaseStatusFieldUpdateOperationsInput | $Enums.PhaseStatus;
|
|
2161
|
+
currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2162
|
+
totalAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2163
|
+
paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2164
|
+
remainingAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2165
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2166
|
+
collectFunds?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
2167
|
+
approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
2168
|
+
requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
2169
|
+
completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
2170
|
+
totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
2171
|
+
dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2172
|
+
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2173
|
+
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2174
|
+
activatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2175
|
+
completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2176
|
+
requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
2177
|
+
minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2178
|
+
completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
|
|
2179
|
+
paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
2180
|
+
stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
2181
|
+
requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
2182
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2183
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2184
|
+
};
|
|
2185
|
+
export type ContractPhaseCreateManyCurrentStepInput = {
|
|
2186
|
+
id?: string;
|
|
2187
|
+
contractId: string;
|
|
2188
|
+
paymentPlanId?: string | null;
|
|
2189
|
+
name: string;
|
|
2190
|
+
description?: string | null;
|
|
2191
|
+
phaseCategory: $Enums.PhaseCategory;
|
|
2192
|
+
phaseType: $Enums.PhaseType;
|
|
2193
|
+
order: number;
|
|
2194
|
+
status?: $Enums.PhaseStatus;
|
|
2195
|
+
totalAmount?: number | null;
|
|
2196
|
+
paidAmount?: number;
|
|
2197
|
+
remainingAmount?: number | null;
|
|
2198
|
+
interestRate?: number | null;
|
|
2199
|
+
collectFunds?: boolean;
|
|
2200
|
+
approvedDocumentsCount?: number;
|
|
2201
|
+
requiredDocumentsCount?: number;
|
|
2202
|
+
completedStepsCount?: number;
|
|
2203
|
+
totalStepsCount?: number;
|
|
2204
|
+
dueDate?: Date | string | null;
|
|
2205
|
+
startDate?: Date | string | null;
|
|
2206
|
+
endDate?: Date | string | null;
|
|
2207
|
+
activatedAt?: Date | string | null;
|
|
2208
|
+
completedAt?: Date | string | null;
|
|
2209
|
+
requiresPreviousPhaseCompletion?: boolean;
|
|
2210
|
+
minimumCompletionPercentage?: number | null;
|
|
2211
|
+
completionCriterion?: $Enums.CompletionCriterion | null;
|
|
2212
|
+
paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
2213
|
+
stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
2214
|
+
requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
2215
|
+
createdAt?: Date | string;
|
|
2216
|
+
updatedAt?: Date | string;
|
|
2217
|
+
};
|
|
2218
|
+
export type ContractPhaseUpdateWithoutCurrentStepInput = {
|
|
2219
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2220
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2221
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2222
|
+
phaseCategory?: Prisma.EnumPhaseCategoryFieldUpdateOperationsInput | $Enums.PhaseCategory;
|
|
2223
|
+
phaseType?: Prisma.EnumPhaseTypeFieldUpdateOperationsInput | $Enums.PhaseType;
|
|
2224
|
+
order?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
2225
|
+
status?: Prisma.EnumPhaseStatusFieldUpdateOperationsInput | $Enums.PhaseStatus;
|
|
2226
|
+
totalAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2227
|
+
paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2228
|
+
remainingAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2229
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2230
|
+
collectFunds?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
2231
|
+
approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
2232
|
+
requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
2233
|
+
completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
2234
|
+
totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
2235
|
+
dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2236
|
+
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2237
|
+
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2238
|
+
activatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2239
|
+
completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2240
|
+
requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
2241
|
+
minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2242
|
+
completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
|
|
2243
|
+
paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
2244
|
+
stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
2245
|
+
requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
2246
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2247
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2248
|
+
contract?: Prisma.ContractUpdateOneRequiredWithoutPhasesNestedInput;
|
|
2249
|
+
paymentPlan?: Prisma.PaymentPlanUpdateOneWithoutContractPhasesNestedInput;
|
|
2250
|
+
installments?: Prisma.ContractInstallmentUpdateManyWithoutPhaseNestedInput;
|
|
2251
|
+
payments?: Prisma.ContractPaymentUpdateManyWithoutPhaseNestedInput;
|
|
2252
|
+
steps?: Prisma.DocumentationStepUpdateManyWithoutPhaseNestedInput;
|
|
2253
|
+
};
|
|
2254
|
+
export type ContractPhaseUncheckedUpdateWithoutCurrentStepInput = {
|
|
2255
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2256
|
+
contractId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2257
|
+
paymentPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2258
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2259
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2260
|
+
phaseCategory?: Prisma.EnumPhaseCategoryFieldUpdateOperationsInput | $Enums.PhaseCategory;
|
|
2261
|
+
phaseType?: Prisma.EnumPhaseTypeFieldUpdateOperationsInput | $Enums.PhaseType;
|
|
2262
|
+
order?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
2263
|
+
status?: Prisma.EnumPhaseStatusFieldUpdateOperationsInput | $Enums.PhaseStatus;
|
|
2264
|
+
totalAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2265
|
+
paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2266
|
+
remainingAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2267
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2268
|
+
collectFunds?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
2269
|
+
approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
2270
|
+
requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
2271
|
+
completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
2272
|
+
totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
2273
|
+
dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2274
|
+
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2275
|
+
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2276
|
+
activatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2277
|
+
completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2278
|
+
requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
2279
|
+
minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2280
|
+
completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
|
|
2281
|
+
paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
2282
|
+
stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
2283
|
+
requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
2284
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2285
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2286
|
+
installments?: Prisma.ContractInstallmentUncheckedUpdateManyWithoutPhaseNestedInput;
|
|
2287
|
+
payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutPhaseNestedInput;
|
|
2288
|
+
steps?: Prisma.DocumentationStepUncheckedUpdateManyWithoutPhaseNestedInput;
|
|
2289
|
+
};
|
|
2290
|
+
export type ContractPhaseUncheckedUpdateManyWithoutCurrentStepInput = {
|
|
2291
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2292
|
+
contractId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2293
|
+
paymentPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2294
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2295
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2296
|
+
phaseCategory?: Prisma.EnumPhaseCategoryFieldUpdateOperationsInput | $Enums.PhaseCategory;
|
|
2297
|
+
phaseType?: Prisma.EnumPhaseTypeFieldUpdateOperationsInput | $Enums.PhaseType;
|
|
2298
|
+
order?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
2299
|
+
status?: Prisma.EnumPhaseStatusFieldUpdateOperationsInput | $Enums.PhaseStatus;
|
|
1982
2300
|
totalAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1983
2301
|
paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1984
2302
|
remainingAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
@@ -2052,6 +2370,7 @@ export type ContractPhaseSelect<ExtArgs extends runtime.Types.Extensions.Interna
|
|
|
2052
2370
|
phaseType?: boolean;
|
|
2053
2371
|
order?: boolean;
|
|
2054
2372
|
status?: boolean;
|
|
2373
|
+
currentStepId?: boolean;
|
|
2055
2374
|
totalAmount?: boolean;
|
|
2056
2375
|
paidAmount?: boolean;
|
|
2057
2376
|
remainingAmount?: boolean;
|
|
@@ -2076,6 +2395,7 @@ export type ContractPhaseSelect<ExtArgs extends runtime.Types.Extensions.Interna
|
|
|
2076
2395
|
updatedAt?: boolean;
|
|
2077
2396
|
contract?: boolean | Prisma.ContractDefaultArgs<ExtArgs>;
|
|
2078
2397
|
paymentPlan?: boolean | Prisma.ContractPhase$paymentPlanArgs<ExtArgs>;
|
|
2398
|
+
currentStep?: boolean | Prisma.ContractPhase$currentStepArgs<ExtArgs>;
|
|
2079
2399
|
installments?: boolean | Prisma.ContractPhase$installmentsArgs<ExtArgs>;
|
|
2080
2400
|
payments?: boolean | Prisma.ContractPhase$paymentsArgs<ExtArgs>;
|
|
2081
2401
|
steps?: boolean | Prisma.ContractPhase$stepsArgs<ExtArgs>;
|
|
@@ -2091,6 +2411,7 @@ export type ContractPhaseSelectScalar = {
|
|
|
2091
2411
|
phaseType?: boolean;
|
|
2092
2412
|
order?: boolean;
|
|
2093
2413
|
status?: boolean;
|
|
2414
|
+
currentStepId?: boolean;
|
|
2094
2415
|
totalAmount?: boolean;
|
|
2095
2416
|
paidAmount?: boolean;
|
|
2096
2417
|
remainingAmount?: boolean;
|
|
@@ -2114,10 +2435,11 @@ export type ContractPhaseSelectScalar = {
|
|
|
2114
2435
|
createdAt?: boolean;
|
|
2115
2436
|
updatedAt?: boolean;
|
|
2116
2437
|
};
|
|
2117
|
-
export type ContractPhaseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "contractId" | "paymentPlanId" | "name" | "description" | "phaseCategory" | "phaseType" | "order" | "status" | "totalAmount" | "paidAmount" | "remainingAmount" | "interestRate" | "collectFunds" | "approvedDocumentsCount" | "requiredDocumentsCount" | "completedStepsCount" | "totalStepsCount" | "dueDate" | "startDate" | "endDate" | "activatedAt" | "completedAt" | "requiresPreviousPhaseCompletion" | "minimumCompletionPercentage" | "completionCriterion" | "paymentPlanSnapshot" | "stepDefinitionsSnapshot" | "requiredDocumentSnapshot" | "createdAt" | "updatedAt", ExtArgs["result"]["contractPhase"]>;
|
|
2438
|
+
export type ContractPhaseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "contractId" | "paymentPlanId" | "name" | "description" | "phaseCategory" | "phaseType" | "order" | "status" | "currentStepId" | "totalAmount" | "paidAmount" | "remainingAmount" | "interestRate" | "collectFunds" | "approvedDocumentsCount" | "requiredDocumentsCount" | "completedStepsCount" | "totalStepsCount" | "dueDate" | "startDate" | "endDate" | "activatedAt" | "completedAt" | "requiresPreviousPhaseCompletion" | "minimumCompletionPercentage" | "completionCriterion" | "paymentPlanSnapshot" | "stepDefinitionsSnapshot" | "requiredDocumentSnapshot" | "createdAt" | "updatedAt", ExtArgs["result"]["contractPhase"]>;
|
|
2118
2439
|
export type ContractPhaseInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2119
2440
|
contract?: boolean | Prisma.ContractDefaultArgs<ExtArgs>;
|
|
2120
2441
|
paymentPlan?: boolean | Prisma.ContractPhase$paymentPlanArgs<ExtArgs>;
|
|
2442
|
+
currentStep?: boolean | Prisma.ContractPhase$currentStepArgs<ExtArgs>;
|
|
2121
2443
|
installments?: boolean | Prisma.ContractPhase$installmentsArgs<ExtArgs>;
|
|
2122
2444
|
payments?: boolean | Prisma.ContractPhase$paymentsArgs<ExtArgs>;
|
|
2123
2445
|
steps?: boolean | Prisma.ContractPhase$stepsArgs<ExtArgs>;
|
|
@@ -2128,6 +2450,7 @@ export type $ContractPhasePayload<ExtArgs extends runtime.Types.Extensions.Inter
|
|
|
2128
2450
|
objects: {
|
|
2129
2451
|
contract: Prisma.$ContractPayload<ExtArgs>;
|
|
2130
2452
|
paymentPlan: Prisma.$PaymentPlanPayload<ExtArgs> | null;
|
|
2453
|
+
currentStep: Prisma.$DocumentationStepPayload<ExtArgs> | null;
|
|
2131
2454
|
installments: Prisma.$ContractInstallmentPayload<ExtArgs>[];
|
|
2132
2455
|
payments: Prisma.$ContractPaymentPayload<ExtArgs>[];
|
|
2133
2456
|
steps: Prisma.$DocumentationStepPayload<ExtArgs>[];
|
|
@@ -2142,6 +2465,7 @@ export type $ContractPhasePayload<ExtArgs extends runtime.Types.Extensions.Inter
|
|
|
2142
2465
|
phaseType: $Enums.PhaseType;
|
|
2143
2466
|
order: number;
|
|
2144
2467
|
status: $Enums.PhaseStatus;
|
|
2468
|
+
currentStepId: string | null;
|
|
2145
2469
|
totalAmount: number | null;
|
|
2146
2470
|
paidAmount: number;
|
|
2147
2471
|
remainingAmount: number | null;
|
|
@@ -2443,6 +2767,7 @@ export interface Prisma__ContractPhaseClient<T, Null = never, ExtArgs extends ru
|
|
|
2443
2767
|
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
2444
2768
|
contract<T extends Prisma.ContractDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ContractDefaultArgs<ExtArgs>>): Prisma.Prisma__ContractClient<runtime.Types.Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
2445
2769
|
paymentPlan<T extends Prisma.ContractPhase$paymentPlanArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ContractPhase$paymentPlanArgs<ExtArgs>>): Prisma.Prisma__PaymentPlanClient<runtime.Types.Result.GetResult<Prisma.$PaymentPlanPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
2770
|
+
currentStep<T extends Prisma.ContractPhase$currentStepArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ContractPhase$currentStepArgs<ExtArgs>>): Prisma.Prisma__DocumentationStepClient<runtime.Types.Result.GetResult<Prisma.$DocumentationStepPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
2446
2771
|
installments<T extends Prisma.ContractPhase$installmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ContractPhase$installmentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractInstallmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
2447
2772
|
payments<T extends Prisma.ContractPhase$paymentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ContractPhase$paymentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractPaymentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
2448
2773
|
steps<T extends Prisma.ContractPhase$stepsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ContractPhase$stepsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DocumentationStepPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
@@ -2480,6 +2805,7 @@ export interface ContractPhaseFieldRefs {
|
|
|
2480
2805
|
readonly phaseType: Prisma.FieldRef<"ContractPhase", 'PhaseType'>;
|
|
2481
2806
|
readonly order: Prisma.FieldRef<"ContractPhase", 'Int'>;
|
|
2482
2807
|
readonly status: Prisma.FieldRef<"ContractPhase", 'PhaseStatus'>;
|
|
2808
|
+
readonly currentStepId: Prisma.FieldRef<"ContractPhase", 'String'>;
|
|
2483
2809
|
readonly totalAmount: Prisma.FieldRef<"ContractPhase", 'Float'>;
|
|
2484
2810
|
readonly paidAmount: Prisma.FieldRef<"ContractPhase", 'Float'>;
|
|
2485
2811
|
readonly remainingAmount: Prisma.FieldRef<"ContractPhase", 'Float'>;
|
|
@@ -2847,6 +3173,24 @@ export type ContractPhase$paymentPlanArgs<ExtArgs extends runtime.Types.Extensio
|
|
|
2847
3173
|
include?: Prisma.PaymentPlanInclude<ExtArgs> | null;
|
|
2848
3174
|
where?: Prisma.PaymentPlanWhereInput;
|
|
2849
3175
|
};
|
|
3176
|
+
/**
|
|
3177
|
+
* ContractPhase.currentStep
|
|
3178
|
+
*/
|
|
3179
|
+
export type ContractPhase$currentStepArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3180
|
+
/**
|
|
3181
|
+
* Select specific fields to fetch from the DocumentationStep
|
|
3182
|
+
*/
|
|
3183
|
+
select?: Prisma.DocumentationStepSelect<ExtArgs> | null;
|
|
3184
|
+
/**
|
|
3185
|
+
* Omit specific fields from the DocumentationStep
|
|
3186
|
+
*/
|
|
3187
|
+
omit?: Prisma.DocumentationStepOmit<ExtArgs> | null;
|
|
3188
|
+
/**
|
|
3189
|
+
* Choose, which related nodes to fetch as well
|
|
3190
|
+
*/
|
|
3191
|
+
include?: Prisma.DocumentationStepInclude<ExtArgs> | null;
|
|
3192
|
+
where?: Prisma.DocumentationStepWhereInput;
|
|
3193
|
+
};
|
|
2850
3194
|
/**
|
|
2851
3195
|
* ContractPhase.installments
|
|
2852
3196
|
*/
|