@valentine-efagene/qshelter-common 2.0.86 → 2.0.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/generated/client/browser.d.ts +25 -0
  2. package/dist/generated/client/client.d.ts +25 -0
  3. package/dist/generated/client/commonInputTypes.d.ts +30 -0
  4. package/dist/generated/client/enums.d.ts +18 -0
  5. package/dist/generated/client/enums.js +17 -0
  6. package/dist/generated/client/internal/class.d.ts +55 -0
  7. package/dist/generated/client/internal/class.js +2 -2
  8. package/dist/generated/client/internal/prismaNamespace.d.ts +469 -42
  9. package/dist/generated/client/internal/prismaNamespace.js +118 -40
  10. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +129 -41
  11. package/dist/generated/client/internal/prismaNamespaceBrowser.js +118 -40
  12. package/dist/generated/client/models/Contract.d.ts +303 -1574
  13. package/dist/generated/client/models/ContractInstallment.d.ts +77 -77
  14. package/dist/generated/client/models/ContractPhase.d.ts +339 -1376
  15. package/dist/generated/client/models/DocumentationPhase.d.ts +1649 -0
  16. package/dist/generated/client/models/DocumentationPhase.js +1 -0
  17. package/dist/generated/client/models/DocumentationStep.d.ts +126 -387
  18. package/dist/generated/client/models/PaymentMethodPhaseField.d.ts +1378 -0
  19. package/dist/generated/client/models/PaymentMethodPhaseField.js +1 -0
  20. package/dist/generated/client/models/PaymentPhase.d.ts +1566 -0
  21. package/dist/generated/client/models/PaymentPhase.js +1 -0
  22. package/dist/generated/client/models/PaymentPlan.d.ts +53 -53
  23. package/dist/generated/client/models/PropertyPaymentMethodPhase.d.ts +171 -0
  24. package/dist/generated/client/models/PropertyTransferRequest.d.ts +196 -70
  25. package/dist/generated/client/models/QuestionnaireField.d.ts +1495 -0
  26. package/dist/generated/client/models/QuestionnaireField.js +1 -0
  27. package/dist/generated/client/models/QuestionnairePhase.d.ts +1383 -0
  28. package/dist/generated/client/models/QuestionnairePhase.js +1 -0
  29. package/dist/generated/client/models/index.d.ts +5 -0
  30. package/dist/generated/client/models/index.js +5 -0
  31. package/dist/generated/client/models.d.ts +5 -0
  32. package/dist/src/events/index.d.ts +2 -0
  33. package/dist/src/events/index.js +3 -0
  34. package/dist/src/events/policies/index.d.ts +2 -0
  35. package/dist/src/events/policies/index.js +2 -0
  36. package/dist/src/events/policies/policy-event.d.ts +89 -0
  37. package/dist/src/events/policies/policy-event.js +22 -0
  38. package/dist/src/events/policies/policy-publisher.d.ts +60 -0
  39. package/dist/src/events/policies/policy-publisher.js +128 -0
  40. package/package.json +1 -1
@@ -0,0 +1,1566 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model PaymentPhase
5
+ *
6
+ */
7
+ export type PaymentPhaseModel = runtime.Types.Result.DefaultSelection<Prisma.$PaymentPhasePayload>;
8
+ export type AggregatePaymentPhase = {
9
+ _count: PaymentPhaseCountAggregateOutputType | null;
10
+ _avg: PaymentPhaseAvgAggregateOutputType | null;
11
+ _sum: PaymentPhaseSumAggregateOutputType | null;
12
+ _min: PaymentPhaseMinAggregateOutputType | null;
13
+ _max: PaymentPhaseMaxAggregateOutputType | null;
14
+ };
15
+ export type PaymentPhaseAvgAggregateOutputType = {
16
+ totalAmount: number | null;
17
+ paidAmount: number | null;
18
+ interestRate: number | null;
19
+ minimumCompletionPercentage: number | null;
20
+ };
21
+ export type PaymentPhaseSumAggregateOutputType = {
22
+ totalAmount: number | null;
23
+ paidAmount: number | null;
24
+ interestRate: number | null;
25
+ minimumCompletionPercentage: number | null;
26
+ };
27
+ export type PaymentPhaseMinAggregateOutputType = {
28
+ id: string | null;
29
+ phaseId: string | null;
30
+ paymentPlanId: string | null;
31
+ totalAmount: number | null;
32
+ paidAmount: number | null;
33
+ interestRate: number | null;
34
+ collectFunds: boolean | null;
35
+ minimumCompletionPercentage: number | null;
36
+ createdAt: Date | null;
37
+ updatedAt: Date | null;
38
+ };
39
+ export type PaymentPhaseMaxAggregateOutputType = {
40
+ id: string | null;
41
+ phaseId: string | null;
42
+ paymentPlanId: string | null;
43
+ totalAmount: number | null;
44
+ paidAmount: number | null;
45
+ interestRate: number | null;
46
+ collectFunds: boolean | null;
47
+ minimumCompletionPercentage: number | null;
48
+ createdAt: Date | null;
49
+ updatedAt: Date | null;
50
+ };
51
+ export type PaymentPhaseCountAggregateOutputType = {
52
+ id: number;
53
+ phaseId: number;
54
+ paymentPlanId: number;
55
+ totalAmount: number;
56
+ paidAmount: number;
57
+ interestRate: number;
58
+ collectFunds: number;
59
+ minimumCompletionPercentage: number;
60
+ paymentPlanSnapshot: number;
61
+ createdAt: number;
62
+ updatedAt: number;
63
+ _all: number;
64
+ };
65
+ export type PaymentPhaseAvgAggregateInputType = {
66
+ totalAmount?: true;
67
+ paidAmount?: true;
68
+ interestRate?: true;
69
+ minimumCompletionPercentage?: true;
70
+ };
71
+ export type PaymentPhaseSumAggregateInputType = {
72
+ totalAmount?: true;
73
+ paidAmount?: true;
74
+ interestRate?: true;
75
+ minimumCompletionPercentage?: true;
76
+ };
77
+ export type PaymentPhaseMinAggregateInputType = {
78
+ id?: true;
79
+ phaseId?: true;
80
+ paymentPlanId?: true;
81
+ totalAmount?: true;
82
+ paidAmount?: true;
83
+ interestRate?: true;
84
+ collectFunds?: true;
85
+ minimumCompletionPercentage?: true;
86
+ createdAt?: true;
87
+ updatedAt?: true;
88
+ };
89
+ export type PaymentPhaseMaxAggregateInputType = {
90
+ id?: true;
91
+ phaseId?: true;
92
+ paymentPlanId?: true;
93
+ totalAmount?: true;
94
+ paidAmount?: true;
95
+ interestRate?: true;
96
+ collectFunds?: true;
97
+ minimumCompletionPercentage?: true;
98
+ createdAt?: true;
99
+ updatedAt?: true;
100
+ };
101
+ export type PaymentPhaseCountAggregateInputType = {
102
+ id?: true;
103
+ phaseId?: true;
104
+ paymentPlanId?: true;
105
+ totalAmount?: true;
106
+ paidAmount?: true;
107
+ interestRate?: true;
108
+ collectFunds?: true;
109
+ minimumCompletionPercentage?: true;
110
+ paymentPlanSnapshot?: true;
111
+ createdAt?: true;
112
+ updatedAt?: true;
113
+ _all?: true;
114
+ };
115
+ export type PaymentPhaseAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
116
+ /**
117
+ * Filter which PaymentPhase to aggregate.
118
+ */
119
+ where?: Prisma.PaymentPhaseWhereInput;
120
+ /**
121
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
122
+ *
123
+ * Determine the order of PaymentPhases to fetch.
124
+ */
125
+ orderBy?: Prisma.PaymentPhaseOrderByWithRelationInput | Prisma.PaymentPhaseOrderByWithRelationInput[];
126
+ /**
127
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
128
+ *
129
+ * Sets the start position
130
+ */
131
+ cursor?: Prisma.PaymentPhaseWhereUniqueInput;
132
+ /**
133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
134
+ *
135
+ * Take `±n` PaymentPhases from the position of the cursor.
136
+ */
137
+ take?: number;
138
+ /**
139
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
140
+ *
141
+ * Skip the first `n` PaymentPhases.
142
+ */
143
+ skip?: number;
144
+ /**
145
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
146
+ *
147
+ * Count returned PaymentPhases
148
+ **/
149
+ _count?: true | PaymentPhaseCountAggregateInputType;
150
+ /**
151
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
152
+ *
153
+ * Select which fields to average
154
+ **/
155
+ _avg?: PaymentPhaseAvgAggregateInputType;
156
+ /**
157
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
158
+ *
159
+ * Select which fields to sum
160
+ **/
161
+ _sum?: PaymentPhaseSumAggregateInputType;
162
+ /**
163
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
164
+ *
165
+ * Select which fields to find the minimum value
166
+ **/
167
+ _min?: PaymentPhaseMinAggregateInputType;
168
+ /**
169
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
170
+ *
171
+ * Select which fields to find the maximum value
172
+ **/
173
+ _max?: PaymentPhaseMaxAggregateInputType;
174
+ };
175
+ export type GetPaymentPhaseAggregateType<T extends PaymentPhaseAggregateArgs> = {
176
+ [P in keyof T & keyof AggregatePaymentPhase]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregatePaymentPhase[P]> : Prisma.GetScalarType<T[P], AggregatePaymentPhase[P]>;
177
+ };
178
+ export type PaymentPhaseGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
179
+ where?: Prisma.PaymentPhaseWhereInput;
180
+ orderBy?: Prisma.PaymentPhaseOrderByWithAggregationInput | Prisma.PaymentPhaseOrderByWithAggregationInput[];
181
+ by: Prisma.PaymentPhaseScalarFieldEnum[] | Prisma.PaymentPhaseScalarFieldEnum;
182
+ having?: Prisma.PaymentPhaseScalarWhereWithAggregatesInput;
183
+ take?: number;
184
+ skip?: number;
185
+ _count?: PaymentPhaseCountAggregateInputType | true;
186
+ _avg?: PaymentPhaseAvgAggregateInputType;
187
+ _sum?: PaymentPhaseSumAggregateInputType;
188
+ _min?: PaymentPhaseMinAggregateInputType;
189
+ _max?: PaymentPhaseMaxAggregateInputType;
190
+ };
191
+ export type PaymentPhaseGroupByOutputType = {
192
+ id: string;
193
+ phaseId: string;
194
+ paymentPlanId: string | null;
195
+ totalAmount: number;
196
+ paidAmount: number;
197
+ interestRate: number;
198
+ collectFunds: boolean;
199
+ minimumCompletionPercentage: number | null;
200
+ paymentPlanSnapshot: runtime.JsonValue | null;
201
+ createdAt: Date;
202
+ updatedAt: Date;
203
+ _count: PaymentPhaseCountAggregateOutputType | null;
204
+ _avg: PaymentPhaseAvgAggregateOutputType | null;
205
+ _sum: PaymentPhaseSumAggregateOutputType | null;
206
+ _min: PaymentPhaseMinAggregateOutputType | null;
207
+ _max: PaymentPhaseMaxAggregateOutputType | null;
208
+ };
209
+ type GetPaymentPhaseGroupByPayload<T extends PaymentPhaseGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<PaymentPhaseGroupByOutputType, T['by']> & {
210
+ [P in ((keyof T) & (keyof PaymentPhaseGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], PaymentPhaseGroupByOutputType[P]> : Prisma.GetScalarType<T[P], PaymentPhaseGroupByOutputType[P]>;
211
+ }>>;
212
+ export type PaymentPhaseWhereInput = {
213
+ AND?: Prisma.PaymentPhaseWhereInput | Prisma.PaymentPhaseWhereInput[];
214
+ OR?: Prisma.PaymentPhaseWhereInput[];
215
+ NOT?: Prisma.PaymentPhaseWhereInput | Prisma.PaymentPhaseWhereInput[];
216
+ id?: Prisma.StringFilter<"PaymentPhase"> | string;
217
+ phaseId?: Prisma.StringFilter<"PaymentPhase"> | string;
218
+ paymentPlanId?: Prisma.StringNullableFilter<"PaymentPhase"> | string | null;
219
+ totalAmount?: Prisma.FloatFilter<"PaymentPhase"> | number;
220
+ paidAmount?: Prisma.FloatFilter<"PaymentPhase"> | number;
221
+ interestRate?: Prisma.FloatFilter<"PaymentPhase"> | number;
222
+ collectFunds?: Prisma.BoolFilter<"PaymentPhase"> | boolean;
223
+ minimumCompletionPercentage?: Prisma.FloatNullableFilter<"PaymentPhase"> | number | null;
224
+ paymentPlanSnapshot?: Prisma.JsonNullableFilter<"PaymentPhase">;
225
+ createdAt?: Prisma.DateTimeFilter<"PaymentPhase"> | Date | string;
226
+ updatedAt?: Prisma.DateTimeFilter<"PaymentPhase"> | Date | string;
227
+ phase?: Prisma.XOR<Prisma.ContractPhaseScalarRelationFilter, Prisma.ContractPhaseWhereInput>;
228
+ paymentPlan?: Prisma.XOR<Prisma.PaymentPlanNullableScalarRelationFilter, Prisma.PaymentPlanWhereInput> | null;
229
+ installments?: Prisma.ContractInstallmentListRelationFilter;
230
+ };
231
+ export type PaymentPhaseOrderByWithRelationInput = {
232
+ id?: Prisma.SortOrder;
233
+ phaseId?: Prisma.SortOrder;
234
+ paymentPlanId?: Prisma.SortOrderInput | Prisma.SortOrder;
235
+ totalAmount?: Prisma.SortOrder;
236
+ paidAmount?: Prisma.SortOrder;
237
+ interestRate?: Prisma.SortOrder;
238
+ collectFunds?: Prisma.SortOrder;
239
+ minimumCompletionPercentage?: Prisma.SortOrderInput | Prisma.SortOrder;
240
+ paymentPlanSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
241
+ createdAt?: Prisma.SortOrder;
242
+ updatedAt?: Prisma.SortOrder;
243
+ phase?: Prisma.ContractPhaseOrderByWithRelationInput;
244
+ paymentPlan?: Prisma.PaymentPlanOrderByWithRelationInput;
245
+ installments?: Prisma.ContractInstallmentOrderByRelationAggregateInput;
246
+ _relevance?: Prisma.PaymentPhaseOrderByRelevanceInput;
247
+ };
248
+ export type PaymentPhaseWhereUniqueInput = Prisma.AtLeast<{
249
+ id?: string;
250
+ phaseId?: string;
251
+ AND?: Prisma.PaymentPhaseWhereInput | Prisma.PaymentPhaseWhereInput[];
252
+ OR?: Prisma.PaymentPhaseWhereInput[];
253
+ NOT?: Prisma.PaymentPhaseWhereInput | Prisma.PaymentPhaseWhereInput[];
254
+ paymentPlanId?: Prisma.StringNullableFilter<"PaymentPhase"> | string | null;
255
+ totalAmount?: Prisma.FloatFilter<"PaymentPhase"> | number;
256
+ paidAmount?: Prisma.FloatFilter<"PaymentPhase"> | number;
257
+ interestRate?: Prisma.FloatFilter<"PaymentPhase"> | number;
258
+ collectFunds?: Prisma.BoolFilter<"PaymentPhase"> | boolean;
259
+ minimumCompletionPercentage?: Prisma.FloatNullableFilter<"PaymentPhase"> | number | null;
260
+ paymentPlanSnapshot?: Prisma.JsonNullableFilter<"PaymentPhase">;
261
+ createdAt?: Prisma.DateTimeFilter<"PaymentPhase"> | Date | string;
262
+ updatedAt?: Prisma.DateTimeFilter<"PaymentPhase"> | Date | string;
263
+ phase?: Prisma.XOR<Prisma.ContractPhaseScalarRelationFilter, Prisma.ContractPhaseWhereInput>;
264
+ paymentPlan?: Prisma.XOR<Prisma.PaymentPlanNullableScalarRelationFilter, Prisma.PaymentPlanWhereInput> | null;
265
+ installments?: Prisma.ContractInstallmentListRelationFilter;
266
+ }, "id" | "phaseId">;
267
+ export type PaymentPhaseOrderByWithAggregationInput = {
268
+ id?: Prisma.SortOrder;
269
+ phaseId?: Prisma.SortOrder;
270
+ paymentPlanId?: Prisma.SortOrderInput | Prisma.SortOrder;
271
+ totalAmount?: Prisma.SortOrder;
272
+ paidAmount?: Prisma.SortOrder;
273
+ interestRate?: Prisma.SortOrder;
274
+ collectFunds?: Prisma.SortOrder;
275
+ minimumCompletionPercentage?: Prisma.SortOrderInput | Prisma.SortOrder;
276
+ paymentPlanSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
277
+ createdAt?: Prisma.SortOrder;
278
+ updatedAt?: Prisma.SortOrder;
279
+ _count?: Prisma.PaymentPhaseCountOrderByAggregateInput;
280
+ _avg?: Prisma.PaymentPhaseAvgOrderByAggregateInput;
281
+ _max?: Prisma.PaymentPhaseMaxOrderByAggregateInput;
282
+ _min?: Prisma.PaymentPhaseMinOrderByAggregateInput;
283
+ _sum?: Prisma.PaymentPhaseSumOrderByAggregateInput;
284
+ };
285
+ export type PaymentPhaseScalarWhereWithAggregatesInput = {
286
+ AND?: Prisma.PaymentPhaseScalarWhereWithAggregatesInput | Prisma.PaymentPhaseScalarWhereWithAggregatesInput[];
287
+ OR?: Prisma.PaymentPhaseScalarWhereWithAggregatesInput[];
288
+ NOT?: Prisma.PaymentPhaseScalarWhereWithAggregatesInput | Prisma.PaymentPhaseScalarWhereWithAggregatesInput[];
289
+ id?: Prisma.StringWithAggregatesFilter<"PaymentPhase"> | string;
290
+ phaseId?: Prisma.StringWithAggregatesFilter<"PaymentPhase"> | string;
291
+ paymentPlanId?: Prisma.StringNullableWithAggregatesFilter<"PaymentPhase"> | string | null;
292
+ totalAmount?: Prisma.FloatWithAggregatesFilter<"PaymentPhase"> | number;
293
+ paidAmount?: Prisma.FloatWithAggregatesFilter<"PaymentPhase"> | number;
294
+ interestRate?: Prisma.FloatWithAggregatesFilter<"PaymentPhase"> | number;
295
+ collectFunds?: Prisma.BoolWithAggregatesFilter<"PaymentPhase"> | boolean;
296
+ minimumCompletionPercentage?: Prisma.FloatNullableWithAggregatesFilter<"PaymentPhase"> | number | null;
297
+ paymentPlanSnapshot?: Prisma.JsonNullableWithAggregatesFilter<"PaymentPhase">;
298
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"PaymentPhase"> | Date | string;
299
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"PaymentPhase"> | Date | string;
300
+ };
301
+ export type PaymentPhaseCreateInput = {
302
+ id?: string;
303
+ totalAmount: number;
304
+ paidAmount?: number;
305
+ interestRate?: number;
306
+ collectFunds?: boolean;
307
+ minimumCompletionPercentage?: number | null;
308
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
309
+ createdAt?: Date | string;
310
+ updatedAt?: Date | string;
311
+ phase: Prisma.ContractPhaseCreateNestedOneWithoutPaymentPhaseInput;
312
+ paymentPlan?: Prisma.PaymentPlanCreateNestedOneWithoutPaymentPhasesInput;
313
+ installments?: Prisma.ContractInstallmentCreateNestedManyWithoutPaymentPhaseInput;
314
+ };
315
+ export type PaymentPhaseUncheckedCreateInput = {
316
+ id?: string;
317
+ phaseId: string;
318
+ paymentPlanId?: string | null;
319
+ totalAmount: number;
320
+ paidAmount?: number;
321
+ interestRate?: number;
322
+ collectFunds?: boolean;
323
+ minimumCompletionPercentage?: number | null;
324
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
325
+ createdAt?: Date | string;
326
+ updatedAt?: Date | string;
327
+ installments?: Prisma.ContractInstallmentUncheckedCreateNestedManyWithoutPaymentPhaseInput;
328
+ };
329
+ export type PaymentPhaseUpdateInput = {
330
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
331
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
332
+ paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
333
+ interestRate?: Prisma.FloatFieldUpdateOperationsInput | number;
334
+ collectFunds?: Prisma.BoolFieldUpdateOperationsInput | boolean;
335
+ minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
336
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
337
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
338
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
339
+ phase?: Prisma.ContractPhaseUpdateOneRequiredWithoutPaymentPhaseNestedInput;
340
+ paymentPlan?: Prisma.PaymentPlanUpdateOneWithoutPaymentPhasesNestedInput;
341
+ installments?: Prisma.ContractInstallmentUpdateManyWithoutPaymentPhaseNestedInput;
342
+ };
343
+ export type PaymentPhaseUncheckedUpdateInput = {
344
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
345
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
346
+ paymentPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
347
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
348
+ paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
349
+ interestRate?: Prisma.FloatFieldUpdateOperationsInput | number;
350
+ collectFunds?: Prisma.BoolFieldUpdateOperationsInput | boolean;
351
+ minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
352
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
353
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
354
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
355
+ installments?: Prisma.ContractInstallmentUncheckedUpdateManyWithoutPaymentPhaseNestedInput;
356
+ };
357
+ export type PaymentPhaseCreateManyInput = {
358
+ id?: string;
359
+ phaseId: string;
360
+ paymentPlanId?: string | null;
361
+ totalAmount: number;
362
+ paidAmount?: number;
363
+ interestRate?: number;
364
+ collectFunds?: boolean;
365
+ minimumCompletionPercentage?: number | null;
366
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
367
+ createdAt?: Date | string;
368
+ updatedAt?: Date | string;
369
+ };
370
+ export type PaymentPhaseUpdateManyMutationInput = {
371
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
372
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
373
+ paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
374
+ interestRate?: Prisma.FloatFieldUpdateOperationsInput | number;
375
+ collectFunds?: Prisma.BoolFieldUpdateOperationsInput | boolean;
376
+ minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
377
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
378
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
379
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
380
+ };
381
+ export type PaymentPhaseUncheckedUpdateManyInput = {
382
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
383
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
384
+ paymentPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
385
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
386
+ paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
387
+ interestRate?: Prisma.FloatFieldUpdateOperationsInput | number;
388
+ collectFunds?: Prisma.BoolFieldUpdateOperationsInput | boolean;
389
+ minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
390
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
391
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
392
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
393
+ };
394
+ export type PaymentPhaseListRelationFilter = {
395
+ every?: Prisma.PaymentPhaseWhereInput;
396
+ some?: Prisma.PaymentPhaseWhereInput;
397
+ none?: Prisma.PaymentPhaseWhereInput;
398
+ };
399
+ export type PaymentPhaseOrderByRelationAggregateInput = {
400
+ _count?: Prisma.SortOrder;
401
+ };
402
+ export type PaymentPhaseNullableScalarRelationFilter = {
403
+ is?: Prisma.PaymentPhaseWhereInput | null;
404
+ isNot?: Prisma.PaymentPhaseWhereInput | null;
405
+ };
406
+ export type PaymentPhaseOrderByRelevanceInput = {
407
+ fields: Prisma.PaymentPhaseOrderByRelevanceFieldEnum | Prisma.PaymentPhaseOrderByRelevanceFieldEnum[];
408
+ sort: Prisma.SortOrder;
409
+ search: string;
410
+ };
411
+ export type PaymentPhaseCountOrderByAggregateInput = {
412
+ id?: Prisma.SortOrder;
413
+ phaseId?: Prisma.SortOrder;
414
+ paymentPlanId?: Prisma.SortOrder;
415
+ totalAmount?: Prisma.SortOrder;
416
+ paidAmount?: Prisma.SortOrder;
417
+ interestRate?: Prisma.SortOrder;
418
+ collectFunds?: Prisma.SortOrder;
419
+ minimumCompletionPercentage?: Prisma.SortOrder;
420
+ paymentPlanSnapshot?: Prisma.SortOrder;
421
+ createdAt?: Prisma.SortOrder;
422
+ updatedAt?: Prisma.SortOrder;
423
+ };
424
+ export type PaymentPhaseAvgOrderByAggregateInput = {
425
+ totalAmount?: Prisma.SortOrder;
426
+ paidAmount?: Prisma.SortOrder;
427
+ interestRate?: Prisma.SortOrder;
428
+ minimumCompletionPercentage?: Prisma.SortOrder;
429
+ };
430
+ export type PaymentPhaseMaxOrderByAggregateInput = {
431
+ id?: Prisma.SortOrder;
432
+ phaseId?: Prisma.SortOrder;
433
+ paymentPlanId?: Prisma.SortOrder;
434
+ totalAmount?: Prisma.SortOrder;
435
+ paidAmount?: Prisma.SortOrder;
436
+ interestRate?: Prisma.SortOrder;
437
+ collectFunds?: Prisma.SortOrder;
438
+ minimumCompletionPercentage?: Prisma.SortOrder;
439
+ createdAt?: Prisma.SortOrder;
440
+ updatedAt?: Prisma.SortOrder;
441
+ };
442
+ export type PaymentPhaseMinOrderByAggregateInput = {
443
+ id?: Prisma.SortOrder;
444
+ phaseId?: Prisma.SortOrder;
445
+ paymentPlanId?: Prisma.SortOrder;
446
+ totalAmount?: Prisma.SortOrder;
447
+ paidAmount?: Prisma.SortOrder;
448
+ interestRate?: Prisma.SortOrder;
449
+ collectFunds?: Prisma.SortOrder;
450
+ minimumCompletionPercentage?: Prisma.SortOrder;
451
+ createdAt?: Prisma.SortOrder;
452
+ updatedAt?: Prisma.SortOrder;
453
+ };
454
+ export type PaymentPhaseSumOrderByAggregateInput = {
455
+ totalAmount?: Prisma.SortOrder;
456
+ paidAmount?: Prisma.SortOrder;
457
+ interestRate?: Prisma.SortOrder;
458
+ minimumCompletionPercentage?: Prisma.SortOrder;
459
+ };
460
+ export type PaymentPhaseScalarRelationFilter = {
461
+ is?: Prisma.PaymentPhaseWhereInput;
462
+ isNot?: Prisma.PaymentPhaseWhereInput;
463
+ };
464
+ export type PaymentPhaseCreateNestedManyWithoutPaymentPlanInput = {
465
+ create?: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutPaymentPlanInput, Prisma.PaymentPhaseUncheckedCreateWithoutPaymentPlanInput> | Prisma.PaymentPhaseCreateWithoutPaymentPlanInput[] | Prisma.PaymentPhaseUncheckedCreateWithoutPaymentPlanInput[];
466
+ connectOrCreate?: Prisma.PaymentPhaseCreateOrConnectWithoutPaymentPlanInput | Prisma.PaymentPhaseCreateOrConnectWithoutPaymentPlanInput[];
467
+ createMany?: Prisma.PaymentPhaseCreateManyPaymentPlanInputEnvelope;
468
+ connect?: Prisma.PaymentPhaseWhereUniqueInput | Prisma.PaymentPhaseWhereUniqueInput[];
469
+ };
470
+ export type PaymentPhaseUncheckedCreateNestedManyWithoutPaymentPlanInput = {
471
+ create?: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutPaymentPlanInput, Prisma.PaymentPhaseUncheckedCreateWithoutPaymentPlanInput> | Prisma.PaymentPhaseCreateWithoutPaymentPlanInput[] | Prisma.PaymentPhaseUncheckedCreateWithoutPaymentPlanInput[];
472
+ connectOrCreate?: Prisma.PaymentPhaseCreateOrConnectWithoutPaymentPlanInput | Prisma.PaymentPhaseCreateOrConnectWithoutPaymentPlanInput[];
473
+ createMany?: Prisma.PaymentPhaseCreateManyPaymentPlanInputEnvelope;
474
+ connect?: Prisma.PaymentPhaseWhereUniqueInput | Prisma.PaymentPhaseWhereUniqueInput[];
475
+ };
476
+ export type PaymentPhaseUpdateManyWithoutPaymentPlanNestedInput = {
477
+ create?: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutPaymentPlanInput, Prisma.PaymentPhaseUncheckedCreateWithoutPaymentPlanInput> | Prisma.PaymentPhaseCreateWithoutPaymentPlanInput[] | Prisma.PaymentPhaseUncheckedCreateWithoutPaymentPlanInput[];
478
+ connectOrCreate?: Prisma.PaymentPhaseCreateOrConnectWithoutPaymentPlanInput | Prisma.PaymentPhaseCreateOrConnectWithoutPaymentPlanInput[];
479
+ upsert?: Prisma.PaymentPhaseUpsertWithWhereUniqueWithoutPaymentPlanInput | Prisma.PaymentPhaseUpsertWithWhereUniqueWithoutPaymentPlanInput[];
480
+ createMany?: Prisma.PaymentPhaseCreateManyPaymentPlanInputEnvelope;
481
+ set?: Prisma.PaymentPhaseWhereUniqueInput | Prisma.PaymentPhaseWhereUniqueInput[];
482
+ disconnect?: Prisma.PaymentPhaseWhereUniqueInput | Prisma.PaymentPhaseWhereUniqueInput[];
483
+ delete?: Prisma.PaymentPhaseWhereUniqueInput | Prisma.PaymentPhaseWhereUniqueInput[];
484
+ connect?: Prisma.PaymentPhaseWhereUniqueInput | Prisma.PaymentPhaseWhereUniqueInput[];
485
+ update?: Prisma.PaymentPhaseUpdateWithWhereUniqueWithoutPaymentPlanInput | Prisma.PaymentPhaseUpdateWithWhereUniqueWithoutPaymentPlanInput[];
486
+ updateMany?: Prisma.PaymentPhaseUpdateManyWithWhereWithoutPaymentPlanInput | Prisma.PaymentPhaseUpdateManyWithWhereWithoutPaymentPlanInput[];
487
+ deleteMany?: Prisma.PaymentPhaseScalarWhereInput | Prisma.PaymentPhaseScalarWhereInput[];
488
+ };
489
+ export type PaymentPhaseUncheckedUpdateManyWithoutPaymentPlanNestedInput = {
490
+ create?: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutPaymentPlanInput, Prisma.PaymentPhaseUncheckedCreateWithoutPaymentPlanInput> | Prisma.PaymentPhaseCreateWithoutPaymentPlanInput[] | Prisma.PaymentPhaseUncheckedCreateWithoutPaymentPlanInput[];
491
+ connectOrCreate?: Prisma.PaymentPhaseCreateOrConnectWithoutPaymentPlanInput | Prisma.PaymentPhaseCreateOrConnectWithoutPaymentPlanInput[];
492
+ upsert?: Prisma.PaymentPhaseUpsertWithWhereUniqueWithoutPaymentPlanInput | Prisma.PaymentPhaseUpsertWithWhereUniqueWithoutPaymentPlanInput[];
493
+ createMany?: Prisma.PaymentPhaseCreateManyPaymentPlanInputEnvelope;
494
+ set?: Prisma.PaymentPhaseWhereUniqueInput | Prisma.PaymentPhaseWhereUniqueInput[];
495
+ disconnect?: Prisma.PaymentPhaseWhereUniqueInput | Prisma.PaymentPhaseWhereUniqueInput[];
496
+ delete?: Prisma.PaymentPhaseWhereUniqueInput | Prisma.PaymentPhaseWhereUniqueInput[];
497
+ connect?: Prisma.PaymentPhaseWhereUniqueInput | Prisma.PaymentPhaseWhereUniqueInput[];
498
+ update?: Prisma.PaymentPhaseUpdateWithWhereUniqueWithoutPaymentPlanInput | Prisma.PaymentPhaseUpdateWithWhereUniqueWithoutPaymentPlanInput[];
499
+ updateMany?: Prisma.PaymentPhaseUpdateManyWithWhereWithoutPaymentPlanInput | Prisma.PaymentPhaseUpdateManyWithWhereWithoutPaymentPlanInput[];
500
+ deleteMany?: Prisma.PaymentPhaseScalarWhereInput | Prisma.PaymentPhaseScalarWhereInput[];
501
+ };
502
+ export type PaymentPhaseCreateNestedOneWithoutPhaseInput = {
503
+ create?: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutPhaseInput, Prisma.PaymentPhaseUncheckedCreateWithoutPhaseInput>;
504
+ connectOrCreate?: Prisma.PaymentPhaseCreateOrConnectWithoutPhaseInput;
505
+ connect?: Prisma.PaymentPhaseWhereUniqueInput;
506
+ };
507
+ export type PaymentPhaseUncheckedCreateNestedOneWithoutPhaseInput = {
508
+ create?: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutPhaseInput, Prisma.PaymentPhaseUncheckedCreateWithoutPhaseInput>;
509
+ connectOrCreate?: Prisma.PaymentPhaseCreateOrConnectWithoutPhaseInput;
510
+ connect?: Prisma.PaymentPhaseWhereUniqueInput;
511
+ };
512
+ export type PaymentPhaseUpdateOneWithoutPhaseNestedInput = {
513
+ create?: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutPhaseInput, Prisma.PaymentPhaseUncheckedCreateWithoutPhaseInput>;
514
+ connectOrCreate?: Prisma.PaymentPhaseCreateOrConnectWithoutPhaseInput;
515
+ upsert?: Prisma.PaymentPhaseUpsertWithoutPhaseInput;
516
+ disconnect?: Prisma.PaymentPhaseWhereInput | boolean;
517
+ delete?: Prisma.PaymentPhaseWhereInput | boolean;
518
+ connect?: Prisma.PaymentPhaseWhereUniqueInput;
519
+ update?: Prisma.XOR<Prisma.XOR<Prisma.PaymentPhaseUpdateToOneWithWhereWithoutPhaseInput, Prisma.PaymentPhaseUpdateWithoutPhaseInput>, Prisma.PaymentPhaseUncheckedUpdateWithoutPhaseInput>;
520
+ };
521
+ export type PaymentPhaseUncheckedUpdateOneWithoutPhaseNestedInput = {
522
+ create?: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutPhaseInput, Prisma.PaymentPhaseUncheckedCreateWithoutPhaseInput>;
523
+ connectOrCreate?: Prisma.PaymentPhaseCreateOrConnectWithoutPhaseInput;
524
+ upsert?: Prisma.PaymentPhaseUpsertWithoutPhaseInput;
525
+ disconnect?: Prisma.PaymentPhaseWhereInput | boolean;
526
+ delete?: Prisma.PaymentPhaseWhereInput | boolean;
527
+ connect?: Prisma.PaymentPhaseWhereUniqueInput;
528
+ update?: Prisma.XOR<Prisma.XOR<Prisma.PaymentPhaseUpdateToOneWithWhereWithoutPhaseInput, Prisma.PaymentPhaseUpdateWithoutPhaseInput>, Prisma.PaymentPhaseUncheckedUpdateWithoutPhaseInput>;
529
+ };
530
+ export type PaymentPhaseCreateNestedOneWithoutInstallmentsInput = {
531
+ create?: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutInstallmentsInput, Prisma.PaymentPhaseUncheckedCreateWithoutInstallmentsInput>;
532
+ connectOrCreate?: Prisma.PaymentPhaseCreateOrConnectWithoutInstallmentsInput;
533
+ connect?: Prisma.PaymentPhaseWhereUniqueInput;
534
+ };
535
+ export type PaymentPhaseUpdateOneRequiredWithoutInstallmentsNestedInput = {
536
+ create?: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutInstallmentsInput, Prisma.PaymentPhaseUncheckedCreateWithoutInstallmentsInput>;
537
+ connectOrCreate?: Prisma.PaymentPhaseCreateOrConnectWithoutInstallmentsInput;
538
+ upsert?: Prisma.PaymentPhaseUpsertWithoutInstallmentsInput;
539
+ connect?: Prisma.PaymentPhaseWhereUniqueInput;
540
+ update?: Prisma.XOR<Prisma.XOR<Prisma.PaymentPhaseUpdateToOneWithWhereWithoutInstallmentsInput, Prisma.PaymentPhaseUpdateWithoutInstallmentsInput>, Prisma.PaymentPhaseUncheckedUpdateWithoutInstallmentsInput>;
541
+ };
542
+ export type PaymentPhaseCreateWithoutPaymentPlanInput = {
543
+ id?: string;
544
+ totalAmount: number;
545
+ paidAmount?: number;
546
+ interestRate?: number;
547
+ collectFunds?: boolean;
548
+ minimumCompletionPercentage?: number | null;
549
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
550
+ createdAt?: Date | string;
551
+ updatedAt?: Date | string;
552
+ phase: Prisma.ContractPhaseCreateNestedOneWithoutPaymentPhaseInput;
553
+ installments?: Prisma.ContractInstallmentCreateNestedManyWithoutPaymentPhaseInput;
554
+ };
555
+ export type PaymentPhaseUncheckedCreateWithoutPaymentPlanInput = {
556
+ id?: string;
557
+ phaseId: string;
558
+ totalAmount: number;
559
+ paidAmount?: number;
560
+ interestRate?: number;
561
+ collectFunds?: boolean;
562
+ minimumCompletionPercentage?: number | null;
563
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
564
+ createdAt?: Date | string;
565
+ updatedAt?: Date | string;
566
+ installments?: Prisma.ContractInstallmentUncheckedCreateNestedManyWithoutPaymentPhaseInput;
567
+ };
568
+ export type PaymentPhaseCreateOrConnectWithoutPaymentPlanInput = {
569
+ where: Prisma.PaymentPhaseWhereUniqueInput;
570
+ create: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutPaymentPlanInput, Prisma.PaymentPhaseUncheckedCreateWithoutPaymentPlanInput>;
571
+ };
572
+ export type PaymentPhaseCreateManyPaymentPlanInputEnvelope = {
573
+ data: Prisma.PaymentPhaseCreateManyPaymentPlanInput | Prisma.PaymentPhaseCreateManyPaymentPlanInput[];
574
+ skipDuplicates?: boolean;
575
+ };
576
+ export type PaymentPhaseUpsertWithWhereUniqueWithoutPaymentPlanInput = {
577
+ where: Prisma.PaymentPhaseWhereUniqueInput;
578
+ update: Prisma.XOR<Prisma.PaymentPhaseUpdateWithoutPaymentPlanInput, Prisma.PaymentPhaseUncheckedUpdateWithoutPaymentPlanInput>;
579
+ create: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutPaymentPlanInput, Prisma.PaymentPhaseUncheckedCreateWithoutPaymentPlanInput>;
580
+ };
581
+ export type PaymentPhaseUpdateWithWhereUniqueWithoutPaymentPlanInput = {
582
+ where: Prisma.PaymentPhaseWhereUniqueInput;
583
+ data: Prisma.XOR<Prisma.PaymentPhaseUpdateWithoutPaymentPlanInput, Prisma.PaymentPhaseUncheckedUpdateWithoutPaymentPlanInput>;
584
+ };
585
+ export type PaymentPhaseUpdateManyWithWhereWithoutPaymentPlanInput = {
586
+ where: Prisma.PaymentPhaseScalarWhereInput;
587
+ data: Prisma.XOR<Prisma.PaymentPhaseUpdateManyMutationInput, Prisma.PaymentPhaseUncheckedUpdateManyWithoutPaymentPlanInput>;
588
+ };
589
+ export type PaymentPhaseScalarWhereInput = {
590
+ AND?: Prisma.PaymentPhaseScalarWhereInput | Prisma.PaymentPhaseScalarWhereInput[];
591
+ OR?: Prisma.PaymentPhaseScalarWhereInput[];
592
+ NOT?: Prisma.PaymentPhaseScalarWhereInput | Prisma.PaymentPhaseScalarWhereInput[];
593
+ id?: Prisma.StringFilter<"PaymentPhase"> | string;
594
+ phaseId?: Prisma.StringFilter<"PaymentPhase"> | string;
595
+ paymentPlanId?: Prisma.StringNullableFilter<"PaymentPhase"> | string | null;
596
+ totalAmount?: Prisma.FloatFilter<"PaymentPhase"> | number;
597
+ paidAmount?: Prisma.FloatFilter<"PaymentPhase"> | number;
598
+ interestRate?: Prisma.FloatFilter<"PaymentPhase"> | number;
599
+ collectFunds?: Prisma.BoolFilter<"PaymentPhase"> | boolean;
600
+ minimumCompletionPercentage?: Prisma.FloatNullableFilter<"PaymentPhase"> | number | null;
601
+ paymentPlanSnapshot?: Prisma.JsonNullableFilter<"PaymentPhase">;
602
+ createdAt?: Prisma.DateTimeFilter<"PaymentPhase"> | Date | string;
603
+ updatedAt?: Prisma.DateTimeFilter<"PaymentPhase"> | Date | string;
604
+ };
605
+ export type PaymentPhaseCreateWithoutPhaseInput = {
606
+ id?: string;
607
+ totalAmount: number;
608
+ paidAmount?: number;
609
+ interestRate?: number;
610
+ collectFunds?: boolean;
611
+ minimumCompletionPercentage?: number | null;
612
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
613
+ createdAt?: Date | string;
614
+ updatedAt?: Date | string;
615
+ paymentPlan?: Prisma.PaymentPlanCreateNestedOneWithoutPaymentPhasesInput;
616
+ installments?: Prisma.ContractInstallmentCreateNestedManyWithoutPaymentPhaseInput;
617
+ };
618
+ export type PaymentPhaseUncheckedCreateWithoutPhaseInput = {
619
+ id?: string;
620
+ paymentPlanId?: string | null;
621
+ totalAmount: number;
622
+ paidAmount?: number;
623
+ interestRate?: number;
624
+ collectFunds?: boolean;
625
+ minimumCompletionPercentage?: number | null;
626
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
627
+ createdAt?: Date | string;
628
+ updatedAt?: Date | string;
629
+ installments?: Prisma.ContractInstallmentUncheckedCreateNestedManyWithoutPaymentPhaseInput;
630
+ };
631
+ export type PaymentPhaseCreateOrConnectWithoutPhaseInput = {
632
+ where: Prisma.PaymentPhaseWhereUniqueInput;
633
+ create: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutPhaseInput, Prisma.PaymentPhaseUncheckedCreateWithoutPhaseInput>;
634
+ };
635
+ export type PaymentPhaseUpsertWithoutPhaseInput = {
636
+ update: Prisma.XOR<Prisma.PaymentPhaseUpdateWithoutPhaseInput, Prisma.PaymentPhaseUncheckedUpdateWithoutPhaseInput>;
637
+ create: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutPhaseInput, Prisma.PaymentPhaseUncheckedCreateWithoutPhaseInput>;
638
+ where?: Prisma.PaymentPhaseWhereInput;
639
+ };
640
+ export type PaymentPhaseUpdateToOneWithWhereWithoutPhaseInput = {
641
+ where?: Prisma.PaymentPhaseWhereInput;
642
+ data: Prisma.XOR<Prisma.PaymentPhaseUpdateWithoutPhaseInput, Prisma.PaymentPhaseUncheckedUpdateWithoutPhaseInput>;
643
+ };
644
+ export type PaymentPhaseUpdateWithoutPhaseInput = {
645
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
646
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
647
+ paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
648
+ interestRate?: Prisma.FloatFieldUpdateOperationsInput | number;
649
+ collectFunds?: Prisma.BoolFieldUpdateOperationsInput | boolean;
650
+ minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
651
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
652
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
653
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
654
+ paymentPlan?: Prisma.PaymentPlanUpdateOneWithoutPaymentPhasesNestedInput;
655
+ installments?: Prisma.ContractInstallmentUpdateManyWithoutPaymentPhaseNestedInput;
656
+ };
657
+ export type PaymentPhaseUncheckedUpdateWithoutPhaseInput = {
658
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
659
+ paymentPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
660
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
661
+ paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
662
+ interestRate?: Prisma.FloatFieldUpdateOperationsInput | number;
663
+ collectFunds?: Prisma.BoolFieldUpdateOperationsInput | boolean;
664
+ minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
665
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
666
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
667
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
668
+ installments?: Prisma.ContractInstallmentUncheckedUpdateManyWithoutPaymentPhaseNestedInput;
669
+ };
670
+ export type PaymentPhaseCreateWithoutInstallmentsInput = {
671
+ id?: string;
672
+ totalAmount: number;
673
+ paidAmount?: number;
674
+ interestRate?: number;
675
+ collectFunds?: boolean;
676
+ minimumCompletionPercentage?: number | null;
677
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
678
+ createdAt?: Date | string;
679
+ updatedAt?: Date | string;
680
+ phase: Prisma.ContractPhaseCreateNestedOneWithoutPaymentPhaseInput;
681
+ paymentPlan?: Prisma.PaymentPlanCreateNestedOneWithoutPaymentPhasesInput;
682
+ };
683
+ export type PaymentPhaseUncheckedCreateWithoutInstallmentsInput = {
684
+ id?: string;
685
+ phaseId: string;
686
+ paymentPlanId?: string | null;
687
+ totalAmount: number;
688
+ paidAmount?: number;
689
+ interestRate?: number;
690
+ collectFunds?: boolean;
691
+ minimumCompletionPercentage?: number | null;
692
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
693
+ createdAt?: Date | string;
694
+ updatedAt?: Date | string;
695
+ };
696
+ export type PaymentPhaseCreateOrConnectWithoutInstallmentsInput = {
697
+ where: Prisma.PaymentPhaseWhereUniqueInput;
698
+ create: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutInstallmentsInput, Prisma.PaymentPhaseUncheckedCreateWithoutInstallmentsInput>;
699
+ };
700
+ export type PaymentPhaseUpsertWithoutInstallmentsInput = {
701
+ update: Prisma.XOR<Prisma.PaymentPhaseUpdateWithoutInstallmentsInput, Prisma.PaymentPhaseUncheckedUpdateWithoutInstallmentsInput>;
702
+ create: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutInstallmentsInput, Prisma.PaymentPhaseUncheckedCreateWithoutInstallmentsInput>;
703
+ where?: Prisma.PaymentPhaseWhereInput;
704
+ };
705
+ export type PaymentPhaseUpdateToOneWithWhereWithoutInstallmentsInput = {
706
+ where?: Prisma.PaymentPhaseWhereInput;
707
+ data: Prisma.XOR<Prisma.PaymentPhaseUpdateWithoutInstallmentsInput, Prisma.PaymentPhaseUncheckedUpdateWithoutInstallmentsInput>;
708
+ };
709
+ export type PaymentPhaseUpdateWithoutInstallmentsInput = {
710
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
711
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
712
+ paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
713
+ interestRate?: Prisma.FloatFieldUpdateOperationsInput | number;
714
+ collectFunds?: Prisma.BoolFieldUpdateOperationsInput | boolean;
715
+ minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
716
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
717
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
718
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
719
+ phase?: Prisma.ContractPhaseUpdateOneRequiredWithoutPaymentPhaseNestedInput;
720
+ paymentPlan?: Prisma.PaymentPlanUpdateOneWithoutPaymentPhasesNestedInput;
721
+ };
722
+ export type PaymentPhaseUncheckedUpdateWithoutInstallmentsInput = {
723
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
724
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
725
+ paymentPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
726
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
727
+ paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
728
+ interestRate?: Prisma.FloatFieldUpdateOperationsInput | number;
729
+ collectFunds?: Prisma.BoolFieldUpdateOperationsInput | boolean;
730
+ minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
731
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
732
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
733
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
734
+ };
735
+ export type PaymentPhaseCreateManyPaymentPlanInput = {
736
+ id?: string;
737
+ phaseId: string;
738
+ totalAmount: number;
739
+ paidAmount?: number;
740
+ interestRate?: number;
741
+ collectFunds?: boolean;
742
+ minimumCompletionPercentage?: number | null;
743
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
744
+ createdAt?: Date | string;
745
+ updatedAt?: Date | string;
746
+ };
747
+ export type PaymentPhaseUpdateWithoutPaymentPlanInput = {
748
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
749
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
750
+ paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
751
+ interestRate?: Prisma.FloatFieldUpdateOperationsInput | number;
752
+ collectFunds?: Prisma.BoolFieldUpdateOperationsInput | boolean;
753
+ minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
754
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
755
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
756
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
757
+ phase?: Prisma.ContractPhaseUpdateOneRequiredWithoutPaymentPhaseNestedInput;
758
+ installments?: Prisma.ContractInstallmentUpdateManyWithoutPaymentPhaseNestedInput;
759
+ };
760
+ export type PaymentPhaseUncheckedUpdateWithoutPaymentPlanInput = {
761
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
762
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
763
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
764
+ paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
765
+ interestRate?: Prisma.FloatFieldUpdateOperationsInput | number;
766
+ collectFunds?: Prisma.BoolFieldUpdateOperationsInput | boolean;
767
+ minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
768
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
769
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
770
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
771
+ installments?: Prisma.ContractInstallmentUncheckedUpdateManyWithoutPaymentPhaseNestedInput;
772
+ };
773
+ export type PaymentPhaseUncheckedUpdateManyWithoutPaymentPlanInput = {
774
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
775
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
776
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
777
+ paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
778
+ interestRate?: Prisma.FloatFieldUpdateOperationsInput | number;
779
+ collectFunds?: Prisma.BoolFieldUpdateOperationsInput | boolean;
780
+ minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
781
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
782
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
783
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
784
+ };
785
+ /**
786
+ * Count Type PaymentPhaseCountOutputType
787
+ */
788
+ export type PaymentPhaseCountOutputType = {
789
+ installments: number;
790
+ };
791
+ export type PaymentPhaseCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
792
+ installments?: boolean | PaymentPhaseCountOutputTypeCountInstallmentsArgs;
793
+ };
794
+ /**
795
+ * PaymentPhaseCountOutputType without action
796
+ */
797
+ export type PaymentPhaseCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
798
+ /**
799
+ * Select specific fields to fetch from the PaymentPhaseCountOutputType
800
+ */
801
+ select?: Prisma.PaymentPhaseCountOutputTypeSelect<ExtArgs> | null;
802
+ };
803
+ /**
804
+ * PaymentPhaseCountOutputType without action
805
+ */
806
+ export type PaymentPhaseCountOutputTypeCountInstallmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
807
+ where?: Prisma.ContractInstallmentWhereInput;
808
+ };
809
+ export type PaymentPhaseSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
810
+ id?: boolean;
811
+ phaseId?: boolean;
812
+ paymentPlanId?: boolean;
813
+ totalAmount?: boolean;
814
+ paidAmount?: boolean;
815
+ interestRate?: boolean;
816
+ collectFunds?: boolean;
817
+ minimumCompletionPercentage?: boolean;
818
+ paymentPlanSnapshot?: boolean;
819
+ createdAt?: boolean;
820
+ updatedAt?: boolean;
821
+ phase?: boolean | Prisma.ContractPhaseDefaultArgs<ExtArgs>;
822
+ paymentPlan?: boolean | Prisma.PaymentPhase$paymentPlanArgs<ExtArgs>;
823
+ installments?: boolean | Prisma.PaymentPhase$installmentsArgs<ExtArgs>;
824
+ _count?: boolean | Prisma.PaymentPhaseCountOutputTypeDefaultArgs<ExtArgs>;
825
+ }, ExtArgs["result"]["paymentPhase"]>;
826
+ export type PaymentPhaseSelectScalar = {
827
+ id?: boolean;
828
+ phaseId?: boolean;
829
+ paymentPlanId?: boolean;
830
+ totalAmount?: boolean;
831
+ paidAmount?: boolean;
832
+ interestRate?: boolean;
833
+ collectFunds?: boolean;
834
+ minimumCompletionPercentage?: boolean;
835
+ paymentPlanSnapshot?: boolean;
836
+ createdAt?: boolean;
837
+ updatedAt?: boolean;
838
+ };
839
+ export type PaymentPhaseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "phaseId" | "paymentPlanId" | "totalAmount" | "paidAmount" | "interestRate" | "collectFunds" | "minimumCompletionPercentage" | "paymentPlanSnapshot" | "createdAt" | "updatedAt", ExtArgs["result"]["paymentPhase"]>;
840
+ export type PaymentPhaseInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
841
+ phase?: boolean | Prisma.ContractPhaseDefaultArgs<ExtArgs>;
842
+ paymentPlan?: boolean | Prisma.PaymentPhase$paymentPlanArgs<ExtArgs>;
843
+ installments?: boolean | Prisma.PaymentPhase$installmentsArgs<ExtArgs>;
844
+ _count?: boolean | Prisma.PaymentPhaseCountOutputTypeDefaultArgs<ExtArgs>;
845
+ };
846
+ export type $PaymentPhasePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
847
+ name: "PaymentPhase";
848
+ objects: {
849
+ phase: Prisma.$ContractPhasePayload<ExtArgs>;
850
+ paymentPlan: Prisma.$PaymentPlanPayload<ExtArgs> | null;
851
+ installments: Prisma.$ContractInstallmentPayload<ExtArgs>[];
852
+ };
853
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
854
+ id: string;
855
+ phaseId: string;
856
+ paymentPlanId: string | null;
857
+ totalAmount: number;
858
+ paidAmount: number;
859
+ interestRate: number;
860
+ collectFunds: boolean;
861
+ minimumCompletionPercentage: number | null;
862
+ paymentPlanSnapshot: runtime.JsonValue | null;
863
+ createdAt: Date;
864
+ updatedAt: Date;
865
+ }, ExtArgs["result"]["paymentPhase"]>;
866
+ composites: {};
867
+ };
868
+ export type PaymentPhaseGetPayload<S extends boolean | null | undefined | PaymentPhaseDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PaymentPhasePayload, S>;
869
+ export type PaymentPhaseCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<PaymentPhaseFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
870
+ select?: PaymentPhaseCountAggregateInputType | true;
871
+ };
872
+ export interface PaymentPhaseDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
873
+ [K: symbol]: {
874
+ types: Prisma.TypeMap<ExtArgs>['model']['PaymentPhase'];
875
+ meta: {
876
+ name: 'PaymentPhase';
877
+ };
878
+ };
879
+ /**
880
+ * Find zero or one PaymentPhase that matches the filter.
881
+ * @param {PaymentPhaseFindUniqueArgs} args - Arguments to find a PaymentPhase
882
+ * @example
883
+ * // Get one PaymentPhase
884
+ * const paymentPhase = await prisma.paymentPhase.findUnique({
885
+ * where: {
886
+ * // ... provide filter here
887
+ * }
888
+ * })
889
+ */
890
+ findUnique<T extends PaymentPhaseFindUniqueArgs>(args: Prisma.SelectSubset<T, PaymentPhaseFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PaymentPhaseClient<runtime.Types.Result.GetResult<Prisma.$PaymentPhasePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
891
+ /**
892
+ * Find one PaymentPhase that matches the filter or throw an error with `error.code='P2025'`
893
+ * if no matches were found.
894
+ * @param {PaymentPhaseFindUniqueOrThrowArgs} args - Arguments to find a PaymentPhase
895
+ * @example
896
+ * // Get one PaymentPhase
897
+ * const paymentPhase = await prisma.paymentPhase.findUniqueOrThrow({
898
+ * where: {
899
+ * // ... provide filter here
900
+ * }
901
+ * })
902
+ */
903
+ findUniqueOrThrow<T extends PaymentPhaseFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PaymentPhaseFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PaymentPhaseClient<runtime.Types.Result.GetResult<Prisma.$PaymentPhasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
904
+ /**
905
+ * Find the first PaymentPhase that matches the filter.
906
+ * Note, that providing `undefined` is treated as the value not being there.
907
+ * Read more here: https://pris.ly/d/null-undefined
908
+ * @param {PaymentPhaseFindFirstArgs} args - Arguments to find a PaymentPhase
909
+ * @example
910
+ * // Get one PaymentPhase
911
+ * const paymentPhase = await prisma.paymentPhase.findFirst({
912
+ * where: {
913
+ * // ... provide filter here
914
+ * }
915
+ * })
916
+ */
917
+ findFirst<T extends PaymentPhaseFindFirstArgs>(args?: Prisma.SelectSubset<T, PaymentPhaseFindFirstArgs<ExtArgs>>): Prisma.Prisma__PaymentPhaseClient<runtime.Types.Result.GetResult<Prisma.$PaymentPhasePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
918
+ /**
919
+ * Find the first PaymentPhase that matches the filter or
920
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
921
+ * Note, that providing `undefined` is treated as the value not being there.
922
+ * Read more here: https://pris.ly/d/null-undefined
923
+ * @param {PaymentPhaseFindFirstOrThrowArgs} args - Arguments to find a PaymentPhase
924
+ * @example
925
+ * // Get one PaymentPhase
926
+ * const paymentPhase = await prisma.paymentPhase.findFirstOrThrow({
927
+ * where: {
928
+ * // ... provide filter here
929
+ * }
930
+ * })
931
+ */
932
+ findFirstOrThrow<T extends PaymentPhaseFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PaymentPhaseFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PaymentPhaseClient<runtime.Types.Result.GetResult<Prisma.$PaymentPhasePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
933
+ /**
934
+ * Find zero or more PaymentPhases that matches the filter.
935
+ * Note, that providing `undefined` is treated as the value not being there.
936
+ * Read more here: https://pris.ly/d/null-undefined
937
+ * @param {PaymentPhaseFindManyArgs} args - Arguments to filter and select certain fields only.
938
+ * @example
939
+ * // Get all PaymentPhases
940
+ * const paymentPhases = await prisma.paymentPhase.findMany()
941
+ *
942
+ * // Get first 10 PaymentPhases
943
+ * const paymentPhases = await prisma.paymentPhase.findMany({ take: 10 })
944
+ *
945
+ * // Only select the `id`
946
+ * const paymentPhaseWithIdOnly = await prisma.paymentPhase.findMany({ select: { id: true } })
947
+ *
948
+ */
949
+ findMany<T extends PaymentPhaseFindManyArgs>(args?: Prisma.SelectSubset<T, PaymentPhaseFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentPhasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
950
+ /**
951
+ * Create a PaymentPhase.
952
+ * @param {PaymentPhaseCreateArgs} args - Arguments to create a PaymentPhase.
953
+ * @example
954
+ * // Create one PaymentPhase
955
+ * const PaymentPhase = await prisma.paymentPhase.create({
956
+ * data: {
957
+ * // ... data to create a PaymentPhase
958
+ * }
959
+ * })
960
+ *
961
+ */
962
+ create<T extends PaymentPhaseCreateArgs>(args: Prisma.SelectSubset<T, PaymentPhaseCreateArgs<ExtArgs>>): Prisma.Prisma__PaymentPhaseClient<runtime.Types.Result.GetResult<Prisma.$PaymentPhasePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
963
+ /**
964
+ * Create many PaymentPhases.
965
+ * @param {PaymentPhaseCreateManyArgs} args - Arguments to create many PaymentPhases.
966
+ * @example
967
+ * // Create many PaymentPhases
968
+ * const paymentPhase = await prisma.paymentPhase.createMany({
969
+ * data: [
970
+ * // ... provide data here
971
+ * ]
972
+ * })
973
+ *
974
+ */
975
+ createMany<T extends PaymentPhaseCreateManyArgs>(args?: Prisma.SelectSubset<T, PaymentPhaseCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
976
+ /**
977
+ * Delete a PaymentPhase.
978
+ * @param {PaymentPhaseDeleteArgs} args - Arguments to delete one PaymentPhase.
979
+ * @example
980
+ * // Delete one PaymentPhase
981
+ * const PaymentPhase = await prisma.paymentPhase.delete({
982
+ * where: {
983
+ * // ... filter to delete one PaymentPhase
984
+ * }
985
+ * })
986
+ *
987
+ */
988
+ delete<T extends PaymentPhaseDeleteArgs>(args: Prisma.SelectSubset<T, PaymentPhaseDeleteArgs<ExtArgs>>): Prisma.Prisma__PaymentPhaseClient<runtime.Types.Result.GetResult<Prisma.$PaymentPhasePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
989
+ /**
990
+ * Update one PaymentPhase.
991
+ * @param {PaymentPhaseUpdateArgs} args - Arguments to update one PaymentPhase.
992
+ * @example
993
+ * // Update one PaymentPhase
994
+ * const paymentPhase = await prisma.paymentPhase.update({
995
+ * where: {
996
+ * // ... provide filter here
997
+ * },
998
+ * data: {
999
+ * // ... provide data here
1000
+ * }
1001
+ * })
1002
+ *
1003
+ */
1004
+ update<T extends PaymentPhaseUpdateArgs>(args: Prisma.SelectSubset<T, PaymentPhaseUpdateArgs<ExtArgs>>): Prisma.Prisma__PaymentPhaseClient<runtime.Types.Result.GetResult<Prisma.$PaymentPhasePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1005
+ /**
1006
+ * Delete zero or more PaymentPhases.
1007
+ * @param {PaymentPhaseDeleteManyArgs} args - Arguments to filter PaymentPhases to delete.
1008
+ * @example
1009
+ * // Delete a few PaymentPhases
1010
+ * const { count } = await prisma.paymentPhase.deleteMany({
1011
+ * where: {
1012
+ * // ... provide filter here
1013
+ * }
1014
+ * })
1015
+ *
1016
+ */
1017
+ deleteMany<T extends PaymentPhaseDeleteManyArgs>(args?: Prisma.SelectSubset<T, PaymentPhaseDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1018
+ /**
1019
+ * Update zero or more PaymentPhases.
1020
+ * Note, that providing `undefined` is treated as the value not being there.
1021
+ * Read more here: https://pris.ly/d/null-undefined
1022
+ * @param {PaymentPhaseUpdateManyArgs} args - Arguments to update one or more rows.
1023
+ * @example
1024
+ * // Update many PaymentPhases
1025
+ * const paymentPhase = await prisma.paymentPhase.updateMany({
1026
+ * where: {
1027
+ * // ... provide filter here
1028
+ * },
1029
+ * data: {
1030
+ * // ... provide data here
1031
+ * }
1032
+ * })
1033
+ *
1034
+ */
1035
+ updateMany<T extends PaymentPhaseUpdateManyArgs>(args: Prisma.SelectSubset<T, PaymentPhaseUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1036
+ /**
1037
+ * Create or update one PaymentPhase.
1038
+ * @param {PaymentPhaseUpsertArgs} args - Arguments to update or create a PaymentPhase.
1039
+ * @example
1040
+ * // Update or create a PaymentPhase
1041
+ * const paymentPhase = await prisma.paymentPhase.upsert({
1042
+ * create: {
1043
+ * // ... data to create a PaymentPhase
1044
+ * },
1045
+ * update: {
1046
+ * // ... in case it already exists, update
1047
+ * },
1048
+ * where: {
1049
+ * // ... the filter for the PaymentPhase we want to update
1050
+ * }
1051
+ * })
1052
+ */
1053
+ upsert<T extends PaymentPhaseUpsertArgs>(args: Prisma.SelectSubset<T, PaymentPhaseUpsertArgs<ExtArgs>>): Prisma.Prisma__PaymentPhaseClient<runtime.Types.Result.GetResult<Prisma.$PaymentPhasePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1054
+ /**
1055
+ * Count the number of PaymentPhases.
1056
+ * Note, that providing `undefined` is treated as the value not being there.
1057
+ * Read more here: https://pris.ly/d/null-undefined
1058
+ * @param {PaymentPhaseCountArgs} args - Arguments to filter PaymentPhases to count.
1059
+ * @example
1060
+ * // Count the number of PaymentPhases
1061
+ * const count = await prisma.paymentPhase.count({
1062
+ * where: {
1063
+ * // ... the filter for the PaymentPhases we want to count
1064
+ * }
1065
+ * })
1066
+ **/
1067
+ count<T extends PaymentPhaseCountArgs>(args?: Prisma.Subset<T, PaymentPhaseCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], PaymentPhaseCountAggregateOutputType> : number>;
1068
+ /**
1069
+ * Allows you to perform aggregations operations on a PaymentPhase.
1070
+ * Note, that providing `undefined` is treated as the value not being there.
1071
+ * Read more here: https://pris.ly/d/null-undefined
1072
+ * @param {PaymentPhaseAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1073
+ * @example
1074
+ * // Ordered by age ascending
1075
+ * // Where email contains prisma.io
1076
+ * // Limited to the 10 users
1077
+ * const aggregations = await prisma.user.aggregate({
1078
+ * _avg: {
1079
+ * age: true,
1080
+ * },
1081
+ * where: {
1082
+ * email: {
1083
+ * contains: "prisma.io",
1084
+ * },
1085
+ * },
1086
+ * orderBy: {
1087
+ * age: "asc",
1088
+ * },
1089
+ * take: 10,
1090
+ * })
1091
+ **/
1092
+ aggregate<T extends PaymentPhaseAggregateArgs>(args: Prisma.Subset<T, PaymentPhaseAggregateArgs>): Prisma.PrismaPromise<GetPaymentPhaseAggregateType<T>>;
1093
+ /**
1094
+ * Group by PaymentPhase.
1095
+ * Note, that providing `undefined` is treated as the value not being there.
1096
+ * Read more here: https://pris.ly/d/null-undefined
1097
+ * @param {PaymentPhaseGroupByArgs} args - Group by arguments.
1098
+ * @example
1099
+ * // Group by city, order by createdAt, get count
1100
+ * const result = await prisma.user.groupBy({
1101
+ * by: ['city', 'createdAt'],
1102
+ * orderBy: {
1103
+ * createdAt: true
1104
+ * },
1105
+ * _count: {
1106
+ * _all: true
1107
+ * },
1108
+ * })
1109
+ *
1110
+ **/
1111
+ groupBy<T extends PaymentPhaseGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1112
+ orderBy: PaymentPhaseGroupByArgs['orderBy'];
1113
+ } : {
1114
+ orderBy?: PaymentPhaseGroupByArgs['orderBy'];
1115
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
1116
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1117
+ Error,
1118
+ 'Field ',
1119
+ P,
1120
+ ` in "having" needs to be provided in "by"`
1121
+ ];
1122
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1123
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1124
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1125
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1126
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1127
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1128
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, PaymentPhaseGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPaymentPhaseGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1129
+ /**
1130
+ * Fields of the PaymentPhase model
1131
+ */
1132
+ readonly fields: PaymentPhaseFieldRefs;
1133
+ }
1134
+ /**
1135
+ * The delegate class that acts as a "Promise-like" for PaymentPhase.
1136
+ * Why is this prefixed with `Prisma__`?
1137
+ * Because we want to prevent naming conflicts as mentioned in
1138
+ * https://github.com/prisma/prisma-client-js/issues/707
1139
+ */
1140
+ export interface Prisma__PaymentPhaseClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1141
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1142
+ phase<T extends Prisma.ContractPhaseDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ContractPhaseDefaultArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseClient<runtime.Types.Result.GetResult<Prisma.$ContractPhasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1143
+ paymentPlan<T extends Prisma.PaymentPhase$paymentPlanArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PaymentPhase$paymentPlanArgs<ExtArgs>>): Prisma.Prisma__PaymentPlanClient<runtime.Types.Result.GetResult<Prisma.$PaymentPlanPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1144
+ installments<T extends Prisma.PaymentPhase$installmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PaymentPhase$installmentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractInstallmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1145
+ /**
1146
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1147
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1148
+ * @param onrejected The callback to execute when the Promise is rejected.
1149
+ * @returns A Promise for the completion of which ever callback is executed.
1150
+ */
1151
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
1152
+ /**
1153
+ * Attaches a callback for only the rejection of the Promise.
1154
+ * @param onrejected The callback to execute when the Promise is rejected.
1155
+ * @returns A Promise for the completion of the callback.
1156
+ */
1157
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1158
+ /**
1159
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1160
+ * resolved value cannot be modified from the callback.
1161
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1162
+ * @returns A Promise for the completion of the callback.
1163
+ */
1164
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1165
+ }
1166
+ /**
1167
+ * Fields of the PaymentPhase model
1168
+ */
1169
+ export interface PaymentPhaseFieldRefs {
1170
+ readonly id: Prisma.FieldRef<"PaymentPhase", 'String'>;
1171
+ readonly phaseId: Prisma.FieldRef<"PaymentPhase", 'String'>;
1172
+ readonly paymentPlanId: Prisma.FieldRef<"PaymentPhase", 'String'>;
1173
+ readonly totalAmount: Prisma.FieldRef<"PaymentPhase", 'Float'>;
1174
+ readonly paidAmount: Prisma.FieldRef<"PaymentPhase", 'Float'>;
1175
+ readonly interestRate: Prisma.FieldRef<"PaymentPhase", 'Float'>;
1176
+ readonly collectFunds: Prisma.FieldRef<"PaymentPhase", 'Boolean'>;
1177
+ readonly minimumCompletionPercentage: Prisma.FieldRef<"PaymentPhase", 'Float'>;
1178
+ readonly paymentPlanSnapshot: Prisma.FieldRef<"PaymentPhase", 'Json'>;
1179
+ readonly createdAt: Prisma.FieldRef<"PaymentPhase", 'DateTime'>;
1180
+ readonly updatedAt: Prisma.FieldRef<"PaymentPhase", 'DateTime'>;
1181
+ }
1182
+ /**
1183
+ * PaymentPhase findUnique
1184
+ */
1185
+ export type PaymentPhaseFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1186
+ /**
1187
+ * Select specific fields to fetch from the PaymentPhase
1188
+ */
1189
+ select?: Prisma.PaymentPhaseSelect<ExtArgs> | null;
1190
+ /**
1191
+ * Omit specific fields from the PaymentPhase
1192
+ */
1193
+ omit?: Prisma.PaymentPhaseOmit<ExtArgs> | null;
1194
+ /**
1195
+ * Choose, which related nodes to fetch as well
1196
+ */
1197
+ include?: Prisma.PaymentPhaseInclude<ExtArgs> | null;
1198
+ /**
1199
+ * Filter, which PaymentPhase to fetch.
1200
+ */
1201
+ where: Prisma.PaymentPhaseWhereUniqueInput;
1202
+ };
1203
+ /**
1204
+ * PaymentPhase findUniqueOrThrow
1205
+ */
1206
+ export type PaymentPhaseFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1207
+ /**
1208
+ * Select specific fields to fetch from the PaymentPhase
1209
+ */
1210
+ select?: Prisma.PaymentPhaseSelect<ExtArgs> | null;
1211
+ /**
1212
+ * Omit specific fields from the PaymentPhase
1213
+ */
1214
+ omit?: Prisma.PaymentPhaseOmit<ExtArgs> | null;
1215
+ /**
1216
+ * Choose, which related nodes to fetch as well
1217
+ */
1218
+ include?: Prisma.PaymentPhaseInclude<ExtArgs> | null;
1219
+ /**
1220
+ * Filter, which PaymentPhase to fetch.
1221
+ */
1222
+ where: Prisma.PaymentPhaseWhereUniqueInput;
1223
+ };
1224
+ /**
1225
+ * PaymentPhase findFirst
1226
+ */
1227
+ export type PaymentPhaseFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1228
+ /**
1229
+ * Select specific fields to fetch from the PaymentPhase
1230
+ */
1231
+ select?: Prisma.PaymentPhaseSelect<ExtArgs> | null;
1232
+ /**
1233
+ * Omit specific fields from the PaymentPhase
1234
+ */
1235
+ omit?: Prisma.PaymentPhaseOmit<ExtArgs> | null;
1236
+ /**
1237
+ * Choose, which related nodes to fetch as well
1238
+ */
1239
+ include?: Prisma.PaymentPhaseInclude<ExtArgs> | null;
1240
+ /**
1241
+ * Filter, which PaymentPhase to fetch.
1242
+ */
1243
+ where?: Prisma.PaymentPhaseWhereInput;
1244
+ /**
1245
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1246
+ *
1247
+ * Determine the order of PaymentPhases to fetch.
1248
+ */
1249
+ orderBy?: Prisma.PaymentPhaseOrderByWithRelationInput | Prisma.PaymentPhaseOrderByWithRelationInput[];
1250
+ /**
1251
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1252
+ *
1253
+ * Sets the position for searching for PaymentPhases.
1254
+ */
1255
+ cursor?: Prisma.PaymentPhaseWhereUniqueInput;
1256
+ /**
1257
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1258
+ *
1259
+ * Take `±n` PaymentPhases from the position of the cursor.
1260
+ */
1261
+ take?: number;
1262
+ /**
1263
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1264
+ *
1265
+ * Skip the first `n` PaymentPhases.
1266
+ */
1267
+ skip?: number;
1268
+ /**
1269
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1270
+ *
1271
+ * Filter by unique combinations of PaymentPhases.
1272
+ */
1273
+ distinct?: Prisma.PaymentPhaseScalarFieldEnum | Prisma.PaymentPhaseScalarFieldEnum[];
1274
+ };
1275
+ /**
1276
+ * PaymentPhase findFirstOrThrow
1277
+ */
1278
+ export type PaymentPhaseFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1279
+ /**
1280
+ * Select specific fields to fetch from the PaymentPhase
1281
+ */
1282
+ select?: Prisma.PaymentPhaseSelect<ExtArgs> | null;
1283
+ /**
1284
+ * Omit specific fields from the PaymentPhase
1285
+ */
1286
+ omit?: Prisma.PaymentPhaseOmit<ExtArgs> | null;
1287
+ /**
1288
+ * Choose, which related nodes to fetch as well
1289
+ */
1290
+ include?: Prisma.PaymentPhaseInclude<ExtArgs> | null;
1291
+ /**
1292
+ * Filter, which PaymentPhase to fetch.
1293
+ */
1294
+ where?: Prisma.PaymentPhaseWhereInput;
1295
+ /**
1296
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1297
+ *
1298
+ * Determine the order of PaymentPhases to fetch.
1299
+ */
1300
+ orderBy?: Prisma.PaymentPhaseOrderByWithRelationInput | Prisma.PaymentPhaseOrderByWithRelationInput[];
1301
+ /**
1302
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1303
+ *
1304
+ * Sets the position for searching for PaymentPhases.
1305
+ */
1306
+ cursor?: Prisma.PaymentPhaseWhereUniqueInput;
1307
+ /**
1308
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1309
+ *
1310
+ * Take `±n` PaymentPhases from the position of the cursor.
1311
+ */
1312
+ take?: number;
1313
+ /**
1314
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1315
+ *
1316
+ * Skip the first `n` PaymentPhases.
1317
+ */
1318
+ skip?: number;
1319
+ /**
1320
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1321
+ *
1322
+ * Filter by unique combinations of PaymentPhases.
1323
+ */
1324
+ distinct?: Prisma.PaymentPhaseScalarFieldEnum | Prisma.PaymentPhaseScalarFieldEnum[];
1325
+ };
1326
+ /**
1327
+ * PaymentPhase findMany
1328
+ */
1329
+ export type PaymentPhaseFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1330
+ /**
1331
+ * Select specific fields to fetch from the PaymentPhase
1332
+ */
1333
+ select?: Prisma.PaymentPhaseSelect<ExtArgs> | null;
1334
+ /**
1335
+ * Omit specific fields from the PaymentPhase
1336
+ */
1337
+ omit?: Prisma.PaymentPhaseOmit<ExtArgs> | null;
1338
+ /**
1339
+ * Choose, which related nodes to fetch as well
1340
+ */
1341
+ include?: Prisma.PaymentPhaseInclude<ExtArgs> | null;
1342
+ /**
1343
+ * Filter, which PaymentPhases to fetch.
1344
+ */
1345
+ where?: Prisma.PaymentPhaseWhereInput;
1346
+ /**
1347
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1348
+ *
1349
+ * Determine the order of PaymentPhases to fetch.
1350
+ */
1351
+ orderBy?: Prisma.PaymentPhaseOrderByWithRelationInput | Prisma.PaymentPhaseOrderByWithRelationInput[];
1352
+ /**
1353
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1354
+ *
1355
+ * Sets the position for listing PaymentPhases.
1356
+ */
1357
+ cursor?: Prisma.PaymentPhaseWhereUniqueInput;
1358
+ /**
1359
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1360
+ *
1361
+ * Take `±n` PaymentPhases from the position of the cursor.
1362
+ */
1363
+ take?: number;
1364
+ /**
1365
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1366
+ *
1367
+ * Skip the first `n` PaymentPhases.
1368
+ */
1369
+ skip?: number;
1370
+ distinct?: Prisma.PaymentPhaseScalarFieldEnum | Prisma.PaymentPhaseScalarFieldEnum[];
1371
+ };
1372
+ /**
1373
+ * PaymentPhase create
1374
+ */
1375
+ export type PaymentPhaseCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1376
+ /**
1377
+ * Select specific fields to fetch from the PaymentPhase
1378
+ */
1379
+ select?: Prisma.PaymentPhaseSelect<ExtArgs> | null;
1380
+ /**
1381
+ * Omit specific fields from the PaymentPhase
1382
+ */
1383
+ omit?: Prisma.PaymentPhaseOmit<ExtArgs> | null;
1384
+ /**
1385
+ * Choose, which related nodes to fetch as well
1386
+ */
1387
+ include?: Prisma.PaymentPhaseInclude<ExtArgs> | null;
1388
+ /**
1389
+ * The data needed to create a PaymentPhase.
1390
+ */
1391
+ data: Prisma.XOR<Prisma.PaymentPhaseCreateInput, Prisma.PaymentPhaseUncheckedCreateInput>;
1392
+ };
1393
+ /**
1394
+ * PaymentPhase createMany
1395
+ */
1396
+ export type PaymentPhaseCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1397
+ /**
1398
+ * The data used to create many PaymentPhases.
1399
+ */
1400
+ data: Prisma.PaymentPhaseCreateManyInput | Prisma.PaymentPhaseCreateManyInput[];
1401
+ skipDuplicates?: boolean;
1402
+ };
1403
+ /**
1404
+ * PaymentPhase update
1405
+ */
1406
+ export type PaymentPhaseUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1407
+ /**
1408
+ * Select specific fields to fetch from the PaymentPhase
1409
+ */
1410
+ select?: Prisma.PaymentPhaseSelect<ExtArgs> | null;
1411
+ /**
1412
+ * Omit specific fields from the PaymentPhase
1413
+ */
1414
+ omit?: Prisma.PaymentPhaseOmit<ExtArgs> | null;
1415
+ /**
1416
+ * Choose, which related nodes to fetch as well
1417
+ */
1418
+ include?: Prisma.PaymentPhaseInclude<ExtArgs> | null;
1419
+ /**
1420
+ * The data needed to update a PaymentPhase.
1421
+ */
1422
+ data: Prisma.XOR<Prisma.PaymentPhaseUpdateInput, Prisma.PaymentPhaseUncheckedUpdateInput>;
1423
+ /**
1424
+ * Choose, which PaymentPhase to update.
1425
+ */
1426
+ where: Prisma.PaymentPhaseWhereUniqueInput;
1427
+ };
1428
+ /**
1429
+ * PaymentPhase updateMany
1430
+ */
1431
+ export type PaymentPhaseUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1432
+ /**
1433
+ * The data used to update PaymentPhases.
1434
+ */
1435
+ data: Prisma.XOR<Prisma.PaymentPhaseUpdateManyMutationInput, Prisma.PaymentPhaseUncheckedUpdateManyInput>;
1436
+ /**
1437
+ * Filter which PaymentPhases to update
1438
+ */
1439
+ where?: Prisma.PaymentPhaseWhereInput;
1440
+ /**
1441
+ * Limit how many PaymentPhases to update.
1442
+ */
1443
+ limit?: number;
1444
+ };
1445
+ /**
1446
+ * PaymentPhase upsert
1447
+ */
1448
+ export type PaymentPhaseUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1449
+ /**
1450
+ * Select specific fields to fetch from the PaymentPhase
1451
+ */
1452
+ select?: Prisma.PaymentPhaseSelect<ExtArgs> | null;
1453
+ /**
1454
+ * Omit specific fields from the PaymentPhase
1455
+ */
1456
+ omit?: Prisma.PaymentPhaseOmit<ExtArgs> | null;
1457
+ /**
1458
+ * Choose, which related nodes to fetch as well
1459
+ */
1460
+ include?: Prisma.PaymentPhaseInclude<ExtArgs> | null;
1461
+ /**
1462
+ * The filter to search for the PaymentPhase to update in case it exists.
1463
+ */
1464
+ where: Prisma.PaymentPhaseWhereUniqueInput;
1465
+ /**
1466
+ * In case the PaymentPhase found by the `where` argument doesn't exist, create a new PaymentPhase with this data.
1467
+ */
1468
+ create: Prisma.XOR<Prisma.PaymentPhaseCreateInput, Prisma.PaymentPhaseUncheckedCreateInput>;
1469
+ /**
1470
+ * In case the PaymentPhase was found with the provided `where` argument, update it with this data.
1471
+ */
1472
+ update: Prisma.XOR<Prisma.PaymentPhaseUpdateInput, Prisma.PaymentPhaseUncheckedUpdateInput>;
1473
+ };
1474
+ /**
1475
+ * PaymentPhase delete
1476
+ */
1477
+ export type PaymentPhaseDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1478
+ /**
1479
+ * Select specific fields to fetch from the PaymentPhase
1480
+ */
1481
+ select?: Prisma.PaymentPhaseSelect<ExtArgs> | null;
1482
+ /**
1483
+ * Omit specific fields from the PaymentPhase
1484
+ */
1485
+ omit?: Prisma.PaymentPhaseOmit<ExtArgs> | null;
1486
+ /**
1487
+ * Choose, which related nodes to fetch as well
1488
+ */
1489
+ include?: Prisma.PaymentPhaseInclude<ExtArgs> | null;
1490
+ /**
1491
+ * Filter which PaymentPhase to delete.
1492
+ */
1493
+ where: Prisma.PaymentPhaseWhereUniqueInput;
1494
+ };
1495
+ /**
1496
+ * PaymentPhase deleteMany
1497
+ */
1498
+ export type PaymentPhaseDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1499
+ /**
1500
+ * Filter which PaymentPhases to delete
1501
+ */
1502
+ where?: Prisma.PaymentPhaseWhereInput;
1503
+ /**
1504
+ * Limit how many PaymentPhases to delete.
1505
+ */
1506
+ limit?: number;
1507
+ };
1508
+ /**
1509
+ * PaymentPhase.paymentPlan
1510
+ */
1511
+ export type PaymentPhase$paymentPlanArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1512
+ /**
1513
+ * Select specific fields to fetch from the PaymentPlan
1514
+ */
1515
+ select?: Prisma.PaymentPlanSelect<ExtArgs> | null;
1516
+ /**
1517
+ * Omit specific fields from the PaymentPlan
1518
+ */
1519
+ omit?: Prisma.PaymentPlanOmit<ExtArgs> | null;
1520
+ /**
1521
+ * Choose, which related nodes to fetch as well
1522
+ */
1523
+ include?: Prisma.PaymentPlanInclude<ExtArgs> | null;
1524
+ where?: Prisma.PaymentPlanWhereInput;
1525
+ };
1526
+ /**
1527
+ * PaymentPhase.installments
1528
+ */
1529
+ export type PaymentPhase$installmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1530
+ /**
1531
+ * Select specific fields to fetch from the ContractInstallment
1532
+ */
1533
+ select?: Prisma.ContractInstallmentSelect<ExtArgs> | null;
1534
+ /**
1535
+ * Omit specific fields from the ContractInstallment
1536
+ */
1537
+ omit?: Prisma.ContractInstallmentOmit<ExtArgs> | null;
1538
+ /**
1539
+ * Choose, which related nodes to fetch as well
1540
+ */
1541
+ include?: Prisma.ContractInstallmentInclude<ExtArgs> | null;
1542
+ where?: Prisma.ContractInstallmentWhereInput;
1543
+ orderBy?: Prisma.ContractInstallmentOrderByWithRelationInput | Prisma.ContractInstallmentOrderByWithRelationInput[];
1544
+ cursor?: Prisma.ContractInstallmentWhereUniqueInput;
1545
+ take?: number;
1546
+ skip?: number;
1547
+ distinct?: Prisma.ContractInstallmentScalarFieldEnum | Prisma.ContractInstallmentScalarFieldEnum[];
1548
+ };
1549
+ /**
1550
+ * PaymentPhase without action
1551
+ */
1552
+ export type PaymentPhaseDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1553
+ /**
1554
+ * Select specific fields to fetch from the PaymentPhase
1555
+ */
1556
+ select?: Prisma.PaymentPhaseSelect<ExtArgs> | null;
1557
+ /**
1558
+ * Omit specific fields from the PaymentPhase
1559
+ */
1560
+ omit?: Prisma.PaymentPhaseOmit<ExtArgs> | null;
1561
+ /**
1562
+ * Choose, which related nodes to fetch as well
1563
+ */
1564
+ include?: Prisma.PaymentPhaseInclude<ExtArgs> | null;
1565
+ };
1566
+ export {};