@valentine-efagene/qshelter-common 2.0.86 → 2.0.87

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 (30) 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.d.ts +5 -0
  30. package/package.json +1 -1
@@ -0,0 +1,1383 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model QuestionnairePhase
5
+ *
6
+ */
7
+ export type QuestionnairePhaseModel = runtime.Types.Result.DefaultSelection<Prisma.$QuestionnairePhasePayload>;
8
+ export type AggregateQuestionnairePhase = {
9
+ _count: QuestionnairePhaseCountAggregateOutputType | null;
10
+ _avg: QuestionnairePhaseAvgAggregateOutputType | null;
11
+ _sum: QuestionnairePhaseSumAggregateOutputType | null;
12
+ _min: QuestionnairePhaseMinAggregateOutputType | null;
13
+ _max: QuestionnairePhaseMaxAggregateOutputType | null;
14
+ };
15
+ export type QuestionnairePhaseAvgAggregateOutputType = {
16
+ completedFieldsCount: number | null;
17
+ totalFieldsCount: number | null;
18
+ underwritingScore: number | null;
19
+ debtToIncomeRatio: number | null;
20
+ };
21
+ export type QuestionnairePhaseSumAggregateOutputType = {
22
+ completedFieldsCount: number | null;
23
+ totalFieldsCount: number | null;
24
+ underwritingScore: number | null;
25
+ debtToIncomeRatio: number | null;
26
+ };
27
+ export type QuestionnairePhaseMinAggregateOutputType = {
28
+ id: string | null;
29
+ phaseId: string | null;
30
+ completedFieldsCount: number | null;
31
+ totalFieldsCount: number | null;
32
+ underwritingScore: number | null;
33
+ debtToIncomeRatio: number | null;
34
+ underwritingDecision: string | null;
35
+ underwritingNotes: string | null;
36
+ createdAt: Date | null;
37
+ updatedAt: Date | null;
38
+ };
39
+ export type QuestionnairePhaseMaxAggregateOutputType = {
40
+ id: string | null;
41
+ phaseId: string | null;
42
+ completedFieldsCount: number | null;
43
+ totalFieldsCount: number | null;
44
+ underwritingScore: number | null;
45
+ debtToIncomeRatio: number | null;
46
+ underwritingDecision: string | null;
47
+ underwritingNotes: string | null;
48
+ createdAt: Date | null;
49
+ updatedAt: Date | null;
50
+ };
51
+ export type QuestionnairePhaseCountAggregateOutputType = {
52
+ id: number;
53
+ phaseId: number;
54
+ completedFieldsCount: number;
55
+ totalFieldsCount: number;
56
+ underwritingScore: number;
57
+ debtToIncomeRatio: number;
58
+ underwritingDecision: number;
59
+ underwritingNotes: number;
60
+ fieldsSnapshot: number;
61
+ createdAt: number;
62
+ updatedAt: number;
63
+ _all: number;
64
+ };
65
+ export type QuestionnairePhaseAvgAggregateInputType = {
66
+ completedFieldsCount?: true;
67
+ totalFieldsCount?: true;
68
+ underwritingScore?: true;
69
+ debtToIncomeRatio?: true;
70
+ };
71
+ export type QuestionnairePhaseSumAggregateInputType = {
72
+ completedFieldsCount?: true;
73
+ totalFieldsCount?: true;
74
+ underwritingScore?: true;
75
+ debtToIncomeRatio?: true;
76
+ };
77
+ export type QuestionnairePhaseMinAggregateInputType = {
78
+ id?: true;
79
+ phaseId?: true;
80
+ completedFieldsCount?: true;
81
+ totalFieldsCount?: true;
82
+ underwritingScore?: true;
83
+ debtToIncomeRatio?: true;
84
+ underwritingDecision?: true;
85
+ underwritingNotes?: true;
86
+ createdAt?: true;
87
+ updatedAt?: true;
88
+ };
89
+ export type QuestionnairePhaseMaxAggregateInputType = {
90
+ id?: true;
91
+ phaseId?: true;
92
+ completedFieldsCount?: true;
93
+ totalFieldsCount?: true;
94
+ underwritingScore?: true;
95
+ debtToIncomeRatio?: true;
96
+ underwritingDecision?: true;
97
+ underwritingNotes?: true;
98
+ createdAt?: true;
99
+ updatedAt?: true;
100
+ };
101
+ export type QuestionnairePhaseCountAggregateInputType = {
102
+ id?: true;
103
+ phaseId?: true;
104
+ completedFieldsCount?: true;
105
+ totalFieldsCount?: true;
106
+ underwritingScore?: true;
107
+ debtToIncomeRatio?: true;
108
+ underwritingDecision?: true;
109
+ underwritingNotes?: true;
110
+ fieldsSnapshot?: true;
111
+ createdAt?: true;
112
+ updatedAt?: true;
113
+ _all?: true;
114
+ };
115
+ export type QuestionnairePhaseAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
116
+ /**
117
+ * Filter which QuestionnairePhase to aggregate.
118
+ */
119
+ where?: Prisma.QuestionnairePhaseWhereInput;
120
+ /**
121
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
122
+ *
123
+ * Determine the order of QuestionnairePhases to fetch.
124
+ */
125
+ orderBy?: Prisma.QuestionnairePhaseOrderByWithRelationInput | Prisma.QuestionnairePhaseOrderByWithRelationInput[];
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.QuestionnairePhaseWhereUniqueInput;
132
+ /**
133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
134
+ *
135
+ * Take `±n` QuestionnairePhases 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` QuestionnairePhases.
142
+ */
143
+ skip?: number;
144
+ /**
145
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
146
+ *
147
+ * Count returned QuestionnairePhases
148
+ **/
149
+ _count?: true | QuestionnairePhaseCountAggregateInputType;
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?: QuestionnairePhaseAvgAggregateInputType;
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?: QuestionnairePhaseSumAggregateInputType;
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?: QuestionnairePhaseMinAggregateInputType;
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?: QuestionnairePhaseMaxAggregateInputType;
174
+ };
175
+ export type GetQuestionnairePhaseAggregateType<T extends QuestionnairePhaseAggregateArgs> = {
176
+ [P in keyof T & keyof AggregateQuestionnairePhase]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateQuestionnairePhase[P]> : Prisma.GetScalarType<T[P], AggregateQuestionnairePhase[P]>;
177
+ };
178
+ export type QuestionnairePhaseGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
179
+ where?: Prisma.QuestionnairePhaseWhereInput;
180
+ orderBy?: Prisma.QuestionnairePhaseOrderByWithAggregationInput | Prisma.QuestionnairePhaseOrderByWithAggregationInput[];
181
+ by: Prisma.QuestionnairePhaseScalarFieldEnum[] | Prisma.QuestionnairePhaseScalarFieldEnum;
182
+ having?: Prisma.QuestionnairePhaseScalarWhereWithAggregatesInput;
183
+ take?: number;
184
+ skip?: number;
185
+ _count?: QuestionnairePhaseCountAggregateInputType | true;
186
+ _avg?: QuestionnairePhaseAvgAggregateInputType;
187
+ _sum?: QuestionnairePhaseSumAggregateInputType;
188
+ _min?: QuestionnairePhaseMinAggregateInputType;
189
+ _max?: QuestionnairePhaseMaxAggregateInputType;
190
+ };
191
+ export type QuestionnairePhaseGroupByOutputType = {
192
+ id: string;
193
+ phaseId: string;
194
+ completedFieldsCount: number;
195
+ totalFieldsCount: number;
196
+ underwritingScore: number | null;
197
+ debtToIncomeRatio: number | null;
198
+ underwritingDecision: string | null;
199
+ underwritingNotes: string | null;
200
+ fieldsSnapshot: runtime.JsonValue | null;
201
+ createdAt: Date;
202
+ updatedAt: Date;
203
+ _count: QuestionnairePhaseCountAggregateOutputType | null;
204
+ _avg: QuestionnairePhaseAvgAggregateOutputType | null;
205
+ _sum: QuestionnairePhaseSumAggregateOutputType | null;
206
+ _min: QuestionnairePhaseMinAggregateOutputType | null;
207
+ _max: QuestionnairePhaseMaxAggregateOutputType | null;
208
+ };
209
+ type GetQuestionnairePhaseGroupByPayload<T extends QuestionnairePhaseGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<QuestionnairePhaseGroupByOutputType, T['by']> & {
210
+ [P in ((keyof T) & (keyof QuestionnairePhaseGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], QuestionnairePhaseGroupByOutputType[P]> : Prisma.GetScalarType<T[P], QuestionnairePhaseGroupByOutputType[P]>;
211
+ }>>;
212
+ export type QuestionnairePhaseWhereInput = {
213
+ AND?: Prisma.QuestionnairePhaseWhereInput | Prisma.QuestionnairePhaseWhereInput[];
214
+ OR?: Prisma.QuestionnairePhaseWhereInput[];
215
+ NOT?: Prisma.QuestionnairePhaseWhereInput | Prisma.QuestionnairePhaseWhereInput[];
216
+ id?: Prisma.StringFilter<"QuestionnairePhase"> | string;
217
+ phaseId?: Prisma.StringFilter<"QuestionnairePhase"> | string;
218
+ completedFieldsCount?: Prisma.IntFilter<"QuestionnairePhase"> | number;
219
+ totalFieldsCount?: Prisma.IntFilter<"QuestionnairePhase"> | number;
220
+ underwritingScore?: Prisma.FloatNullableFilter<"QuestionnairePhase"> | number | null;
221
+ debtToIncomeRatio?: Prisma.FloatNullableFilter<"QuestionnairePhase"> | number | null;
222
+ underwritingDecision?: Prisma.StringNullableFilter<"QuestionnairePhase"> | string | null;
223
+ underwritingNotes?: Prisma.StringNullableFilter<"QuestionnairePhase"> | string | null;
224
+ fieldsSnapshot?: Prisma.JsonNullableFilter<"QuestionnairePhase">;
225
+ createdAt?: Prisma.DateTimeFilter<"QuestionnairePhase"> | Date | string;
226
+ updatedAt?: Prisma.DateTimeFilter<"QuestionnairePhase"> | Date | string;
227
+ phase?: Prisma.XOR<Prisma.ContractPhaseScalarRelationFilter, Prisma.ContractPhaseWhereInput>;
228
+ fields?: Prisma.QuestionnaireFieldListRelationFilter;
229
+ };
230
+ export type QuestionnairePhaseOrderByWithRelationInput = {
231
+ id?: Prisma.SortOrder;
232
+ phaseId?: Prisma.SortOrder;
233
+ completedFieldsCount?: Prisma.SortOrder;
234
+ totalFieldsCount?: Prisma.SortOrder;
235
+ underwritingScore?: Prisma.SortOrderInput | Prisma.SortOrder;
236
+ debtToIncomeRatio?: Prisma.SortOrderInput | Prisma.SortOrder;
237
+ underwritingDecision?: Prisma.SortOrderInput | Prisma.SortOrder;
238
+ underwritingNotes?: Prisma.SortOrderInput | Prisma.SortOrder;
239
+ fieldsSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
240
+ createdAt?: Prisma.SortOrder;
241
+ updatedAt?: Prisma.SortOrder;
242
+ phase?: Prisma.ContractPhaseOrderByWithRelationInput;
243
+ fields?: Prisma.QuestionnaireFieldOrderByRelationAggregateInput;
244
+ _relevance?: Prisma.QuestionnairePhaseOrderByRelevanceInput;
245
+ };
246
+ export type QuestionnairePhaseWhereUniqueInput = Prisma.AtLeast<{
247
+ id?: string;
248
+ phaseId?: string;
249
+ AND?: Prisma.QuestionnairePhaseWhereInput | Prisma.QuestionnairePhaseWhereInput[];
250
+ OR?: Prisma.QuestionnairePhaseWhereInput[];
251
+ NOT?: Prisma.QuestionnairePhaseWhereInput | Prisma.QuestionnairePhaseWhereInput[];
252
+ completedFieldsCount?: Prisma.IntFilter<"QuestionnairePhase"> | number;
253
+ totalFieldsCount?: Prisma.IntFilter<"QuestionnairePhase"> | number;
254
+ underwritingScore?: Prisma.FloatNullableFilter<"QuestionnairePhase"> | number | null;
255
+ debtToIncomeRatio?: Prisma.FloatNullableFilter<"QuestionnairePhase"> | number | null;
256
+ underwritingDecision?: Prisma.StringNullableFilter<"QuestionnairePhase"> | string | null;
257
+ underwritingNotes?: Prisma.StringNullableFilter<"QuestionnairePhase"> | string | null;
258
+ fieldsSnapshot?: Prisma.JsonNullableFilter<"QuestionnairePhase">;
259
+ createdAt?: Prisma.DateTimeFilter<"QuestionnairePhase"> | Date | string;
260
+ updatedAt?: Prisma.DateTimeFilter<"QuestionnairePhase"> | Date | string;
261
+ phase?: Prisma.XOR<Prisma.ContractPhaseScalarRelationFilter, Prisma.ContractPhaseWhereInput>;
262
+ fields?: Prisma.QuestionnaireFieldListRelationFilter;
263
+ }, "id" | "phaseId">;
264
+ export type QuestionnairePhaseOrderByWithAggregationInput = {
265
+ id?: Prisma.SortOrder;
266
+ phaseId?: Prisma.SortOrder;
267
+ completedFieldsCount?: Prisma.SortOrder;
268
+ totalFieldsCount?: Prisma.SortOrder;
269
+ underwritingScore?: Prisma.SortOrderInput | Prisma.SortOrder;
270
+ debtToIncomeRatio?: Prisma.SortOrderInput | Prisma.SortOrder;
271
+ underwritingDecision?: Prisma.SortOrderInput | Prisma.SortOrder;
272
+ underwritingNotes?: Prisma.SortOrderInput | Prisma.SortOrder;
273
+ fieldsSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
274
+ createdAt?: Prisma.SortOrder;
275
+ updatedAt?: Prisma.SortOrder;
276
+ _count?: Prisma.QuestionnairePhaseCountOrderByAggregateInput;
277
+ _avg?: Prisma.QuestionnairePhaseAvgOrderByAggregateInput;
278
+ _max?: Prisma.QuestionnairePhaseMaxOrderByAggregateInput;
279
+ _min?: Prisma.QuestionnairePhaseMinOrderByAggregateInput;
280
+ _sum?: Prisma.QuestionnairePhaseSumOrderByAggregateInput;
281
+ };
282
+ export type QuestionnairePhaseScalarWhereWithAggregatesInput = {
283
+ AND?: Prisma.QuestionnairePhaseScalarWhereWithAggregatesInput | Prisma.QuestionnairePhaseScalarWhereWithAggregatesInput[];
284
+ OR?: Prisma.QuestionnairePhaseScalarWhereWithAggregatesInput[];
285
+ NOT?: Prisma.QuestionnairePhaseScalarWhereWithAggregatesInput | Prisma.QuestionnairePhaseScalarWhereWithAggregatesInput[];
286
+ id?: Prisma.StringWithAggregatesFilter<"QuestionnairePhase"> | string;
287
+ phaseId?: Prisma.StringWithAggregatesFilter<"QuestionnairePhase"> | string;
288
+ completedFieldsCount?: Prisma.IntWithAggregatesFilter<"QuestionnairePhase"> | number;
289
+ totalFieldsCount?: Prisma.IntWithAggregatesFilter<"QuestionnairePhase"> | number;
290
+ underwritingScore?: Prisma.FloatNullableWithAggregatesFilter<"QuestionnairePhase"> | number | null;
291
+ debtToIncomeRatio?: Prisma.FloatNullableWithAggregatesFilter<"QuestionnairePhase"> | number | null;
292
+ underwritingDecision?: Prisma.StringNullableWithAggregatesFilter<"QuestionnairePhase"> | string | null;
293
+ underwritingNotes?: Prisma.StringNullableWithAggregatesFilter<"QuestionnairePhase"> | string | null;
294
+ fieldsSnapshot?: Prisma.JsonNullableWithAggregatesFilter<"QuestionnairePhase">;
295
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"QuestionnairePhase"> | Date | string;
296
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"QuestionnairePhase"> | Date | string;
297
+ };
298
+ export type QuestionnairePhaseCreateInput = {
299
+ id?: string;
300
+ completedFieldsCount?: number;
301
+ totalFieldsCount?: number;
302
+ underwritingScore?: number | null;
303
+ debtToIncomeRatio?: number | null;
304
+ underwritingDecision?: string | null;
305
+ underwritingNotes?: string | null;
306
+ fieldsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
307
+ createdAt?: Date | string;
308
+ updatedAt?: Date | string;
309
+ phase: Prisma.ContractPhaseCreateNestedOneWithoutQuestionnairePhaseInput;
310
+ fields?: Prisma.QuestionnaireFieldCreateNestedManyWithoutQuestionnairePhaseInput;
311
+ };
312
+ export type QuestionnairePhaseUncheckedCreateInput = {
313
+ id?: string;
314
+ phaseId: string;
315
+ completedFieldsCount?: number;
316
+ totalFieldsCount?: number;
317
+ underwritingScore?: number | null;
318
+ debtToIncomeRatio?: number | null;
319
+ underwritingDecision?: string | null;
320
+ underwritingNotes?: string | null;
321
+ fieldsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
322
+ createdAt?: Date | string;
323
+ updatedAt?: Date | string;
324
+ fields?: Prisma.QuestionnaireFieldUncheckedCreateNestedManyWithoutQuestionnairePhaseInput;
325
+ };
326
+ export type QuestionnairePhaseUpdateInput = {
327
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
328
+ completedFieldsCount?: Prisma.IntFieldUpdateOperationsInput | number;
329
+ totalFieldsCount?: Prisma.IntFieldUpdateOperationsInput | number;
330
+ underwritingScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
331
+ debtToIncomeRatio?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
332
+ underwritingDecision?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
333
+ underwritingNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
334
+ fieldsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
335
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
336
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
337
+ phase?: Prisma.ContractPhaseUpdateOneRequiredWithoutQuestionnairePhaseNestedInput;
338
+ fields?: Prisma.QuestionnaireFieldUpdateManyWithoutQuestionnairePhaseNestedInput;
339
+ };
340
+ export type QuestionnairePhaseUncheckedUpdateInput = {
341
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
342
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
343
+ completedFieldsCount?: Prisma.IntFieldUpdateOperationsInput | number;
344
+ totalFieldsCount?: Prisma.IntFieldUpdateOperationsInput | number;
345
+ underwritingScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
346
+ debtToIncomeRatio?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
347
+ underwritingDecision?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
348
+ underwritingNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
349
+ fieldsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
350
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
351
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
352
+ fields?: Prisma.QuestionnaireFieldUncheckedUpdateManyWithoutQuestionnairePhaseNestedInput;
353
+ };
354
+ export type QuestionnairePhaseCreateManyInput = {
355
+ id?: string;
356
+ phaseId: string;
357
+ completedFieldsCount?: number;
358
+ totalFieldsCount?: number;
359
+ underwritingScore?: number | null;
360
+ debtToIncomeRatio?: number | null;
361
+ underwritingDecision?: string | null;
362
+ underwritingNotes?: string | null;
363
+ fieldsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
364
+ createdAt?: Date | string;
365
+ updatedAt?: Date | string;
366
+ };
367
+ export type QuestionnairePhaseUpdateManyMutationInput = {
368
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
369
+ completedFieldsCount?: Prisma.IntFieldUpdateOperationsInput | number;
370
+ totalFieldsCount?: Prisma.IntFieldUpdateOperationsInput | number;
371
+ underwritingScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
372
+ debtToIncomeRatio?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
373
+ underwritingDecision?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
374
+ underwritingNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
375
+ fieldsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
376
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
377
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
378
+ };
379
+ export type QuestionnairePhaseUncheckedUpdateManyInput = {
380
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
381
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
382
+ completedFieldsCount?: Prisma.IntFieldUpdateOperationsInput | number;
383
+ totalFieldsCount?: Prisma.IntFieldUpdateOperationsInput | number;
384
+ underwritingScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
385
+ debtToIncomeRatio?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
386
+ underwritingDecision?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
387
+ underwritingNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
388
+ fieldsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
389
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
390
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
391
+ };
392
+ export type QuestionnairePhaseNullableScalarRelationFilter = {
393
+ is?: Prisma.QuestionnairePhaseWhereInput | null;
394
+ isNot?: Prisma.QuestionnairePhaseWhereInput | null;
395
+ };
396
+ export type QuestionnairePhaseOrderByRelevanceInput = {
397
+ fields: Prisma.QuestionnairePhaseOrderByRelevanceFieldEnum | Prisma.QuestionnairePhaseOrderByRelevanceFieldEnum[];
398
+ sort: Prisma.SortOrder;
399
+ search: string;
400
+ };
401
+ export type QuestionnairePhaseCountOrderByAggregateInput = {
402
+ id?: Prisma.SortOrder;
403
+ phaseId?: Prisma.SortOrder;
404
+ completedFieldsCount?: Prisma.SortOrder;
405
+ totalFieldsCount?: Prisma.SortOrder;
406
+ underwritingScore?: Prisma.SortOrder;
407
+ debtToIncomeRatio?: Prisma.SortOrder;
408
+ underwritingDecision?: Prisma.SortOrder;
409
+ underwritingNotes?: Prisma.SortOrder;
410
+ fieldsSnapshot?: Prisma.SortOrder;
411
+ createdAt?: Prisma.SortOrder;
412
+ updatedAt?: Prisma.SortOrder;
413
+ };
414
+ export type QuestionnairePhaseAvgOrderByAggregateInput = {
415
+ completedFieldsCount?: Prisma.SortOrder;
416
+ totalFieldsCount?: Prisma.SortOrder;
417
+ underwritingScore?: Prisma.SortOrder;
418
+ debtToIncomeRatio?: Prisma.SortOrder;
419
+ };
420
+ export type QuestionnairePhaseMaxOrderByAggregateInput = {
421
+ id?: Prisma.SortOrder;
422
+ phaseId?: Prisma.SortOrder;
423
+ completedFieldsCount?: Prisma.SortOrder;
424
+ totalFieldsCount?: Prisma.SortOrder;
425
+ underwritingScore?: Prisma.SortOrder;
426
+ debtToIncomeRatio?: Prisma.SortOrder;
427
+ underwritingDecision?: Prisma.SortOrder;
428
+ underwritingNotes?: Prisma.SortOrder;
429
+ createdAt?: Prisma.SortOrder;
430
+ updatedAt?: Prisma.SortOrder;
431
+ };
432
+ export type QuestionnairePhaseMinOrderByAggregateInput = {
433
+ id?: Prisma.SortOrder;
434
+ phaseId?: Prisma.SortOrder;
435
+ completedFieldsCount?: Prisma.SortOrder;
436
+ totalFieldsCount?: Prisma.SortOrder;
437
+ underwritingScore?: Prisma.SortOrder;
438
+ debtToIncomeRatio?: Prisma.SortOrder;
439
+ underwritingDecision?: Prisma.SortOrder;
440
+ underwritingNotes?: Prisma.SortOrder;
441
+ createdAt?: Prisma.SortOrder;
442
+ updatedAt?: Prisma.SortOrder;
443
+ };
444
+ export type QuestionnairePhaseSumOrderByAggregateInput = {
445
+ completedFieldsCount?: Prisma.SortOrder;
446
+ totalFieldsCount?: Prisma.SortOrder;
447
+ underwritingScore?: Prisma.SortOrder;
448
+ debtToIncomeRatio?: Prisma.SortOrder;
449
+ };
450
+ export type QuestionnairePhaseScalarRelationFilter = {
451
+ is?: Prisma.QuestionnairePhaseWhereInput;
452
+ isNot?: Prisma.QuestionnairePhaseWhereInput;
453
+ };
454
+ export type QuestionnairePhaseCreateNestedOneWithoutPhaseInput = {
455
+ create?: Prisma.XOR<Prisma.QuestionnairePhaseCreateWithoutPhaseInput, Prisma.QuestionnairePhaseUncheckedCreateWithoutPhaseInput>;
456
+ connectOrCreate?: Prisma.QuestionnairePhaseCreateOrConnectWithoutPhaseInput;
457
+ connect?: Prisma.QuestionnairePhaseWhereUniqueInput;
458
+ };
459
+ export type QuestionnairePhaseUncheckedCreateNestedOneWithoutPhaseInput = {
460
+ create?: Prisma.XOR<Prisma.QuestionnairePhaseCreateWithoutPhaseInput, Prisma.QuestionnairePhaseUncheckedCreateWithoutPhaseInput>;
461
+ connectOrCreate?: Prisma.QuestionnairePhaseCreateOrConnectWithoutPhaseInput;
462
+ connect?: Prisma.QuestionnairePhaseWhereUniqueInput;
463
+ };
464
+ export type QuestionnairePhaseUpdateOneWithoutPhaseNestedInput = {
465
+ create?: Prisma.XOR<Prisma.QuestionnairePhaseCreateWithoutPhaseInput, Prisma.QuestionnairePhaseUncheckedCreateWithoutPhaseInput>;
466
+ connectOrCreate?: Prisma.QuestionnairePhaseCreateOrConnectWithoutPhaseInput;
467
+ upsert?: Prisma.QuestionnairePhaseUpsertWithoutPhaseInput;
468
+ disconnect?: Prisma.QuestionnairePhaseWhereInput | boolean;
469
+ delete?: Prisma.QuestionnairePhaseWhereInput | boolean;
470
+ connect?: Prisma.QuestionnairePhaseWhereUniqueInput;
471
+ update?: Prisma.XOR<Prisma.XOR<Prisma.QuestionnairePhaseUpdateToOneWithWhereWithoutPhaseInput, Prisma.QuestionnairePhaseUpdateWithoutPhaseInput>, Prisma.QuestionnairePhaseUncheckedUpdateWithoutPhaseInput>;
472
+ };
473
+ export type QuestionnairePhaseUncheckedUpdateOneWithoutPhaseNestedInput = {
474
+ create?: Prisma.XOR<Prisma.QuestionnairePhaseCreateWithoutPhaseInput, Prisma.QuestionnairePhaseUncheckedCreateWithoutPhaseInput>;
475
+ connectOrCreate?: Prisma.QuestionnairePhaseCreateOrConnectWithoutPhaseInput;
476
+ upsert?: Prisma.QuestionnairePhaseUpsertWithoutPhaseInput;
477
+ disconnect?: Prisma.QuestionnairePhaseWhereInput | boolean;
478
+ delete?: Prisma.QuestionnairePhaseWhereInput | boolean;
479
+ connect?: Prisma.QuestionnairePhaseWhereUniqueInput;
480
+ update?: Prisma.XOR<Prisma.XOR<Prisma.QuestionnairePhaseUpdateToOneWithWhereWithoutPhaseInput, Prisma.QuestionnairePhaseUpdateWithoutPhaseInput>, Prisma.QuestionnairePhaseUncheckedUpdateWithoutPhaseInput>;
481
+ };
482
+ export type QuestionnairePhaseCreateNestedOneWithoutFieldsInput = {
483
+ create?: Prisma.XOR<Prisma.QuestionnairePhaseCreateWithoutFieldsInput, Prisma.QuestionnairePhaseUncheckedCreateWithoutFieldsInput>;
484
+ connectOrCreate?: Prisma.QuestionnairePhaseCreateOrConnectWithoutFieldsInput;
485
+ connect?: Prisma.QuestionnairePhaseWhereUniqueInput;
486
+ };
487
+ export type QuestionnairePhaseUpdateOneRequiredWithoutFieldsNestedInput = {
488
+ create?: Prisma.XOR<Prisma.QuestionnairePhaseCreateWithoutFieldsInput, Prisma.QuestionnairePhaseUncheckedCreateWithoutFieldsInput>;
489
+ connectOrCreate?: Prisma.QuestionnairePhaseCreateOrConnectWithoutFieldsInput;
490
+ upsert?: Prisma.QuestionnairePhaseUpsertWithoutFieldsInput;
491
+ connect?: Prisma.QuestionnairePhaseWhereUniqueInput;
492
+ update?: Prisma.XOR<Prisma.XOR<Prisma.QuestionnairePhaseUpdateToOneWithWhereWithoutFieldsInput, Prisma.QuestionnairePhaseUpdateWithoutFieldsInput>, Prisma.QuestionnairePhaseUncheckedUpdateWithoutFieldsInput>;
493
+ };
494
+ export type QuestionnairePhaseCreateWithoutPhaseInput = {
495
+ id?: string;
496
+ completedFieldsCount?: number;
497
+ totalFieldsCount?: number;
498
+ underwritingScore?: number | null;
499
+ debtToIncomeRatio?: number | null;
500
+ underwritingDecision?: string | null;
501
+ underwritingNotes?: string | null;
502
+ fieldsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
503
+ createdAt?: Date | string;
504
+ updatedAt?: Date | string;
505
+ fields?: Prisma.QuestionnaireFieldCreateNestedManyWithoutQuestionnairePhaseInput;
506
+ };
507
+ export type QuestionnairePhaseUncheckedCreateWithoutPhaseInput = {
508
+ id?: string;
509
+ completedFieldsCount?: number;
510
+ totalFieldsCount?: number;
511
+ underwritingScore?: number | null;
512
+ debtToIncomeRatio?: number | null;
513
+ underwritingDecision?: string | null;
514
+ underwritingNotes?: string | null;
515
+ fieldsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
516
+ createdAt?: Date | string;
517
+ updatedAt?: Date | string;
518
+ fields?: Prisma.QuestionnaireFieldUncheckedCreateNestedManyWithoutQuestionnairePhaseInput;
519
+ };
520
+ export type QuestionnairePhaseCreateOrConnectWithoutPhaseInput = {
521
+ where: Prisma.QuestionnairePhaseWhereUniqueInput;
522
+ create: Prisma.XOR<Prisma.QuestionnairePhaseCreateWithoutPhaseInput, Prisma.QuestionnairePhaseUncheckedCreateWithoutPhaseInput>;
523
+ };
524
+ export type QuestionnairePhaseUpsertWithoutPhaseInput = {
525
+ update: Prisma.XOR<Prisma.QuestionnairePhaseUpdateWithoutPhaseInput, Prisma.QuestionnairePhaseUncheckedUpdateWithoutPhaseInput>;
526
+ create: Prisma.XOR<Prisma.QuestionnairePhaseCreateWithoutPhaseInput, Prisma.QuestionnairePhaseUncheckedCreateWithoutPhaseInput>;
527
+ where?: Prisma.QuestionnairePhaseWhereInput;
528
+ };
529
+ export type QuestionnairePhaseUpdateToOneWithWhereWithoutPhaseInput = {
530
+ where?: Prisma.QuestionnairePhaseWhereInput;
531
+ data: Prisma.XOR<Prisma.QuestionnairePhaseUpdateWithoutPhaseInput, Prisma.QuestionnairePhaseUncheckedUpdateWithoutPhaseInput>;
532
+ };
533
+ export type QuestionnairePhaseUpdateWithoutPhaseInput = {
534
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
535
+ completedFieldsCount?: Prisma.IntFieldUpdateOperationsInput | number;
536
+ totalFieldsCount?: Prisma.IntFieldUpdateOperationsInput | number;
537
+ underwritingScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
538
+ debtToIncomeRatio?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
539
+ underwritingDecision?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
540
+ underwritingNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
541
+ fieldsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
542
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
543
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
544
+ fields?: Prisma.QuestionnaireFieldUpdateManyWithoutQuestionnairePhaseNestedInput;
545
+ };
546
+ export type QuestionnairePhaseUncheckedUpdateWithoutPhaseInput = {
547
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
548
+ completedFieldsCount?: Prisma.IntFieldUpdateOperationsInput | number;
549
+ totalFieldsCount?: Prisma.IntFieldUpdateOperationsInput | number;
550
+ underwritingScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
551
+ debtToIncomeRatio?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
552
+ underwritingDecision?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
553
+ underwritingNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
554
+ fieldsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
555
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
556
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
557
+ fields?: Prisma.QuestionnaireFieldUncheckedUpdateManyWithoutQuestionnairePhaseNestedInput;
558
+ };
559
+ export type QuestionnairePhaseCreateWithoutFieldsInput = {
560
+ id?: string;
561
+ completedFieldsCount?: number;
562
+ totalFieldsCount?: number;
563
+ underwritingScore?: number | null;
564
+ debtToIncomeRatio?: number | null;
565
+ underwritingDecision?: string | null;
566
+ underwritingNotes?: string | null;
567
+ fieldsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
568
+ createdAt?: Date | string;
569
+ updatedAt?: Date | string;
570
+ phase: Prisma.ContractPhaseCreateNestedOneWithoutQuestionnairePhaseInput;
571
+ };
572
+ export type QuestionnairePhaseUncheckedCreateWithoutFieldsInput = {
573
+ id?: string;
574
+ phaseId: string;
575
+ completedFieldsCount?: number;
576
+ totalFieldsCount?: number;
577
+ underwritingScore?: number | null;
578
+ debtToIncomeRatio?: number | null;
579
+ underwritingDecision?: string | null;
580
+ underwritingNotes?: string | null;
581
+ fieldsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
582
+ createdAt?: Date | string;
583
+ updatedAt?: Date | string;
584
+ };
585
+ export type QuestionnairePhaseCreateOrConnectWithoutFieldsInput = {
586
+ where: Prisma.QuestionnairePhaseWhereUniqueInput;
587
+ create: Prisma.XOR<Prisma.QuestionnairePhaseCreateWithoutFieldsInput, Prisma.QuestionnairePhaseUncheckedCreateWithoutFieldsInput>;
588
+ };
589
+ export type QuestionnairePhaseUpsertWithoutFieldsInput = {
590
+ update: Prisma.XOR<Prisma.QuestionnairePhaseUpdateWithoutFieldsInput, Prisma.QuestionnairePhaseUncheckedUpdateWithoutFieldsInput>;
591
+ create: Prisma.XOR<Prisma.QuestionnairePhaseCreateWithoutFieldsInput, Prisma.QuestionnairePhaseUncheckedCreateWithoutFieldsInput>;
592
+ where?: Prisma.QuestionnairePhaseWhereInput;
593
+ };
594
+ export type QuestionnairePhaseUpdateToOneWithWhereWithoutFieldsInput = {
595
+ where?: Prisma.QuestionnairePhaseWhereInput;
596
+ data: Prisma.XOR<Prisma.QuestionnairePhaseUpdateWithoutFieldsInput, Prisma.QuestionnairePhaseUncheckedUpdateWithoutFieldsInput>;
597
+ };
598
+ export type QuestionnairePhaseUpdateWithoutFieldsInput = {
599
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
600
+ completedFieldsCount?: Prisma.IntFieldUpdateOperationsInput | number;
601
+ totalFieldsCount?: Prisma.IntFieldUpdateOperationsInput | number;
602
+ underwritingScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
603
+ debtToIncomeRatio?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
604
+ underwritingDecision?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
605
+ underwritingNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
606
+ fieldsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
607
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
608
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
609
+ phase?: Prisma.ContractPhaseUpdateOneRequiredWithoutQuestionnairePhaseNestedInput;
610
+ };
611
+ export type QuestionnairePhaseUncheckedUpdateWithoutFieldsInput = {
612
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
613
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
614
+ completedFieldsCount?: Prisma.IntFieldUpdateOperationsInput | number;
615
+ totalFieldsCount?: Prisma.IntFieldUpdateOperationsInput | number;
616
+ underwritingScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
617
+ debtToIncomeRatio?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
618
+ underwritingDecision?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
619
+ underwritingNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
620
+ fieldsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
621
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
622
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
623
+ };
624
+ /**
625
+ * Count Type QuestionnairePhaseCountOutputType
626
+ */
627
+ export type QuestionnairePhaseCountOutputType = {
628
+ fields: number;
629
+ };
630
+ export type QuestionnairePhaseCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
631
+ fields?: boolean | QuestionnairePhaseCountOutputTypeCountFieldsArgs;
632
+ };
633
+ /**
634
+ * QuestionnairePhaseCountOutputType without action
635
+ */
636
+ export type QuestionnairePhaseCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
637
+ /**
638
+ * Select specific fields to fetch from the QuestionnairePhaseCountOutputType
639
+ */
640
+ select?: Prisma.QuestionnairePhaseCountOutputTypeSelect<ExtArgs> | null;
641
+ };
642
+ /**
643
+ * QuestionnairePhaseCountOutputType without action
644
+ */
645
+ export type QuestionnairePhaseCountOutputTypeCountFieldsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
646
+ where?: Prisma.QuestionnaireFieldWhereInput;
647
+ };
648
+ export type QuestionnairePhaseSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
649
+ id?: boolean;
650
+ phaseId?: boolean;
651
+ completedFieldsCount?: boolean;
652
+ totalFieldsCount?: boolean;
653
+ underwritingScore?: boolean;
654
+ debtToIncomeRatio?: boolean;
655
+ underwritingDecision?: boolean;
656
+ underwritingNotes?: boolean;
657
+ fieldsSnapshot?: boolean;
658
+ createdAt?: boolean;
659
+ updatedAt?: boolean;
660
+ phase?: boolean | Prisma.ContractPhaseDefaultArgs<ExtArgs>;
661
+ fields?: boolean | Prisma.QuestionnairePhase$fieldsArgs<ExtArgs>;
662
+ _count?: boolean | Prisma.QuestionnairePhaseCountOutputTypeDefaultArgs<ExtArgs>;
663
+ }, ExtArgs["result"]["questionnairePhase"]>;
664
+ export type QuestionnairePhaseSelectScalar = {
665
+ id?: boolean;
666
+ phaseId?: boolean;
667
+ completedFieldsCount?: boolean;
668
+ totalFieldsCount?: boolean;
669
+ underwritingScore?: boolean;
670
+ debtToIncomeRatio?: boolean;
671
+ underwritingDecision?: boolean;
672
+ underwritingNotes?: boolean;
673
+ fieldsSnapshot?: boolean;
674
+ createdAt?: boolean;
675
+ updatedAt?: boolean;
676
+ };
677
+ export type QuestionnairePhaseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "phaseId" | "completedFieldsCount" | "totalFieldsCount" | "underwritingScore" | "debtToIncomeRatio" | "underwritingDecision" | "underwritingNotes" | "fieldsSnapshot" | "createdAt" | "updatedAt", ExtArgs["result"]["questionnairePhase"]>;
678
+ export type QuestionnairePhaseInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
679
+ phase?: boolean | Prisma.ContractPhaseDefaultArgs<ExtArgs>;
680
+ fields?: boolean | Prisma.QuestionnairePhase$fieldsArgs<ExtArgs>;
681
+ _count?: boolean | Prisma.QuestionnairePhaseCountOutputTypeDefaultArgs<ExtArgs>;
682
+ };
683
+ export type $QuestionnairePhasePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
684
+ name: "QuestionnairePhase";
685
+ objects: {
686
+ phase: Prisma.$ContractPhasePayload<ExtArgs>;
687
+ fields: Prisma.$QuestionnaireFieldPayload<ExtArgs>[];
688
+ };
689
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
690
+ id: string;
691
+ phaseId: string;
692
+ completedFieldsCount: number;
693
+ totalFieldsCount: number;
694
+ underwritingScore: number | null;
695
+ debtToIncomeRatio: number | null;
696
+ underwritingDecision: string | null;
697
+ underwritingNotes: string | null;
698
+ fieldsSnapshot: runtime.JsonValue | null;
699
+ createdAt: Date;
700
+ updatedAt: Date;
701
+ }, ExtArgs["result"]["questionnairePhase"]>;
702
+ composites: {};
703
+ };
704
+ export type QuestionnairePhaseGetPayload<S extends boolean | null | undefined | QuestionnairePhaseDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$QuestionnairePhasePayload, S>;
705
+ export type QuestionnairePhaseCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<QuestionnairePhaseFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
706
+ select?: QuestionnairePhaseCountAggregateInputType | true;
707
+ };
708
+ export interface QuestionnairePhaseDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
709
+ [K: symbol]: {
710
+ types: Prisma.TypeMap<ExtArgs>['model']['QuestionnairePhase'];
711
+ meta: {
712
+ name: 'QuestionnairePhase';
713
+ };
714
+ };
715
+ /**
716
+ * Find zero or one QuestionnairePhase that matches the filter.
717
+ * @param {QuestionnairePhaseFindUniqueArgs} args - Arguments to find a QuestionnairePhase
718
+ * @example
719
+ * // Get one QuestionnairePhase
720
+ * const questionnairePhase = await prisma.questionnairePhase.findUnique({
721
+ * where: {
722
+ * // ... provide filter here
723
+ * }
724
+ * })
725
+ */
726
+ findUnique<T extends QuestionnairePhaseFindUniqueArgs>(args: Prisma.SelectSubset<T, QuestionnairePhaseFindUniqueArgs<ExtArgs>>): Prisma.Prisma__QuestionnairePhaseClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePhasePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
727
+ /**
728
+ * Find one QuestionnairePhase that matches the filter or throw an error with `error.code='P2025'`
729
+ * if no matches were found.
730
+ * @param {QuestionnairePhaseFindUniqueOrThrowArgs} args - Arguments to find a QuestionnairePhase
731
+ * @example
732
+ * // Get one QuestionnairePhase
733
+ * const questionnairePhase = await prisma.questionnairePhase.findUniqueOrThrow({
734
+ * where: {
735
+ * // ... provide filter here
736
+ * }
737
+ * })
738
+ */
739
+ findUniqueOrThrow<T extends QuestionnairePhaseFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, QuestionnairePhaseFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__QuestionnairePhaseClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePhasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
740
+ /**
741
+ * Find the first QuestionnairePhase that matches the filter.
742
+ * Note, that providing `undefined` is treated as the value not being there.
743
+ * Read more here: https://pris.ly/d/null-undefined
744
+ * @param {QuestionnairePhaseFindFirstArgs} args - Arguments to find a QuestionnairePhase
745
+ * @example
746
+ * // Get one QuestionnairePhase
747
+ * const questionnairePhase = await prisma.questionnairePhase.findFirst({
748
+ * where: {
749
+ * // ... provide filter here
750
+ * }
751
+ * })
752
+ */
753
+ findFirst<T extends QuestionnairePhaseFindFirstArgs>(args?: Prisma.SelectSubset<T, QuestionnairePhaseFindFirstArgs<ExtArgs>>): Prisma.Prisma__QuestionnairePhaseClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePhasePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
754
+ /**
755
+ * Find the first QuestionnairePhase that matches the filter or
756
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
757
+ * Note, that providing `undefined` is treated as the value not being there.
758
+ * Read more here: https://pris.ly/d/null-undefined
759
+ * @param {QuestionnairePhaseFindFirstOrThrowArgs} args - Arguments to find a QuestionnairePhase
760
+ * @example
761
+ * // Get one QuestionnairePhase
762
+ * const questionnairePhase = await prisma.questionnairePhase.findFirstOrThrow({
763
+ * where: {
764
+ * // ... provide filter here
765
+ * }
766
+ * })
767
+ */
768
+ findFirstOrThrow<T extends QuestionnairePhaseFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, QuestionnairePhaseFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__QuestionnairePhaseClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePhasePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
769
+ /**
770
+ * Find zero or more QuestionnairePhases that matches the filter.
771
+ * Note, that providing `undefined` is treated as the value not being there.
772
+ * Read more here: https://pris.ly/d/null-undefined
773
+ * @param {QuestionnairePhaseFindManyArgs} args - Arguments to filter and select certain fields only.
774
+ * @example
775
+ * // Get all QuestionnairePhases
776
+ * const questionnairePhases = await prisma.questionnairePhase.findMany()
777
+ *
778
+ * // Get first 10 QuestionnairePhases
779
+ * const questionnairePhases = await prisma.questionnairePhase.findMany({ take: 10 })
780
+ *
781
+ * // Only select the `id`
782
+ * const questionnairePhaseWithIdOnly = await prisma.questionnairePhase.findMany({ select: { id: true } })
783
+ *
784
+ */
785
+ findMany<T extends QuestionnairePhaseFindManyArgs>(args?: Prisma.SelectSubset<T, QuestionnairePhaseFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$QuestionnairePhasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
786
+ /**
787
+ * Create a QuestionnairePhase.
788
+ * @param {QuestionnairePhaseCreateArgs} args - Arguments to create a QuestionnairePhase.
789
+ * @example
790
+ * // Create one QuestionnairePhase
791
+ * const QuestionnairePhase = await prisma.questionnairePhase.create({
792
+ * data: {
793
+ * // ... data to create a QuestionnairePhase
794
+ * }
795
+ * })
796
+ *
797
+ */
798
+ create<T extends QuestionnairePhaseCreateArgs>(args: Prisma.SelectSubset<T, QuestionnairePhaseCreateArgs<ExtArgs>>): Prisma.Prisma__QuestionnairePhaseClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePhasePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
799
+ /**
800
+ * Create many QuestionnairePhases.
801
+ * @param {QuestionnairePhaseCreateManyArgs} args - Arguments to create many QuestionnairePhases.
802
+ * @example
803
+ * // Create many QuestionnairePhases
804
+ * const questionnairePhase = await prisma.questionnairePhase.createMany({
805
+ * data: [
806
+ * // ... provide data here
807
+ * ]
808
+ * })
809
+ *
810
+ */
811
+ createMany<T extends QuestionnairePhaseCreateManyArgs>(args?: Prisma.SelectSubset<T, QuestionnairePhaseCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
812
+ /**
813
+ * Delete a QuestionnairePhase.
814
+ * @param {QuestionnairePhaseDeleteArgs} args - Arguments to delete one QuestionnairePhase.
815
+ * @example
816
+ * // Delete one QuestionnairePhase
817
+ * const QuestionnairePhase = await prisma.questionnairePhase.delete({
818
+ * where: {
819
+ * // ... filter to delete one QuestionnairePhase
820
+ * }
821
+ * })
822
+ *
823
+ */
824
+ delete<T extends QuestionnairePhaseDeleteArgs>(args: Prisma.SelectSubset<T, QuestionnairePhaseDeleteArgs<ExtArgs>>): Prisma.Prisma__QuestionnairePhaseClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePhasePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
825
+ /**
826
+ * Update one QuestionnairePhase.
827
+ * @param {QuestionnairePhaseUpdateArgs} args - Arguments to update one QuestionnairePhase.
828
+ * @example
829
+ * // Update one QuestionnairePhase
830
+ * const questionnairePhase = await prisma.questionnairePhase.update({
831
+ * where: {
832
+ * // ... provide filter here
833
+ * },
834
+ * data: {
835
+ * // ... provide data here
836
+ * }
837
+ * })
838
+ *
839
+ */
840
+ update<T extends QuestionnairePhaseUpdateArgs>(args: Prisma.SelectSubset<T, QuestionnairePhaseUpdateArgs<ExtArgs>>): Prisma.Prisma__QuestionnairePhaseClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePhasePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
841
+ /**
842
+ * Delete zero or more QuestionnairePhases.
843
+ * @param {QuestionnairePhaseDeleteManyArgs} args - Arguments to filter QuestionnairePhases to delete.
844
+ * @example
845
+ * // Delete a few QuestionnairePhases
846
+ * const { count } = await prisma.questionnairePhase.deleteMany({
847
+ * where: {
848
+ * // ... provide filter here
849
+ * }
850
+ * })
851
+ *
852
+ */
853
+ deleteMany<T extends QuestionnairePhaseDeleteManyArgs>(args?: Prisma.SelectSubset<T, QuestionnairePhaseDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
854
+ /**
855
+ * Update zero or more QuestionnairePhases.
856
+ * Note, that providing `undefined` is treated as the value not being there.
857
+ * Read more here: https://pris.ly/d/null-undefined
858
+ * @param {QuestionnairePhaseUpdateManyArgs} args - Arguments to update one or more rows.
859
+ * @example
860
+ * // Update many QuestionnairePhases
861
+ * const questionnairePhase = await prisma.questionnairePhase.updateMany({
862
+ * where: {
863
+ * // ... provide filter here
864
+ * },
865
+ * data: {
866
+ * // ... provide data here
867
+ * }
868
+ * })
869
+ *
870
+ */
871
+ updateMany<T extends QuestionnairePhaseUpdateManyArgs>(args: Prisma.SelectSubset<T, QuestionnairePhaseUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
872
+ /**
873
+ * Create or update one QuestionnairePhase.
874
+ * @param {QuestionnairePhaseUpsertArgs} args - Arguments to update or create a QuestionnairePhase.
875
+ * @example
876
+ * // Update or create a QuestionnairePhase
877
+ * const questionnairePhase = await prisma.questionnairePhase.upsert({
878
+ * create: {
879
+ * // ... data to create a QuestionnairePhase
880
+ * },
881
+ * update: {
882
+ * // ... in case it already exists, update
883
+ * },
884
+ * where: {
885
+ * // ... the filter for the QuestionnairePhase we want to update
886
+ * }
887
+ * })
888
+ */
889
+ upsert<T extends QuestionnairePhaseUpsertArgs>(args: Prisma.SelectSubset<T, QuestionnairePhaseUpsertArgs<ExtArgs>>): Prisma.Prisma__QuestionnairePhaseClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePhasePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
890
+ /**
891
+ * Count the number of QuestionnairePhases.
892
+ * Note, that providing `undefined` is treated as the value not being there.
893
+ * Read more here: https://pris.ly/d/null-undefined
894
+ * @param {QuestionnairePhaseCountArgs} args - Arguments to filter QuestionnairePhases to count.
895
+ * @example
896
+ * // Count the number of QuestionnairePhases
897
+ * const count = await prisma.questionnairePhase.count({
898
+ * where: {
899
+ * // ... the filter for the QuestionnairePhases we want to count
900
+ * }
901
+ * })
902
+ **/
903
+ count<T extends QuestionnairePhaseCountArgs>(args?: Prisma.Subset<T, QuestionnairePhaseCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], QuestionnairePhaseCountAggregateOutputType> : number>;
904
+ /**
905
+ * Allows you to perform aggregations operations on a QuestionnairePhase.
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 {QuestionnairePhaseAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
909
+ * @example
910
+ * // Ordered by age ascending
911
+ * // Where email contains prisma.io
912
+ * // Limited to the 10 users
913
+ * const aggregations = await prisma.user.aggregate({
914
+ * _avg: {
915
+ * age: true,
916
+ * },
917
+ * where: {
918
+ * email: {
919
+ * contains: "prisma.io",
920
+ * },
921
+ * },
922
+ * orderBy: {
923
+ * age: "asc",
924
+ * },
925
+ * take: 10,
926
+ * })
927
+ **/
928
+ aggregate<T extends QuestionnairePhaseAggregateArgs>(args: Prisma.Subset<T, QuestionnairePhaseAggregateArgs>): Prisma.PrismaPromise<GetQuestionnairePhaseAggregateType<T>>;
929
+ /**
930
+ * Group by QuestionnairePhase.
931
+ * Note, that providing `undefined` is treated as the value not being there.
932
+ * Read more here: https://pris.ly/d/null-undefined
933
+ * @param {QuestionnairePhaseGroupByArgs} args - Group by arguments.
934
+ * @example
935
+ * // Group by city, order by createdAt, get count
936
+ * const result = await prisma.user.groupBy({
937
+ * by: ['city', 'createdAt'],
938
+ * orderBy: {
939
+ * createdAt: true
940
+ * },
941
+ * _count: {
942
+ * _all: true
943
+ * },
944
+ * })
945
+ *
946
+ **/
947
+ groupBy<T extends QuestionnairePhaseGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
948
+ orderBy: QuestionnairePhaseGroupByArgs['orderBy'];
949
+ } : {
950
+ orderBy?: QuestionnairePhaseGroupByArgs['orderBy'];
951
+ }, 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 ? {
952
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
953
+ Error,
954
+ 'Field ',
955
+ P,
956
+ ` in "having" needs to be provided in "by"`
957
+ ];
958
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
959
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
960
+ }[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 ? {} : {
961
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
962
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
963
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
964
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, QuestionnairePhaseGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetQuestionnairePhaseGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
965
+ /**
966
+ * Fields of the QuestionnairePhase model
967
+ */
968
+ readonly fields: QuestionnairePhaseFieldRefs;
969
+ }
970
+ /**
971
+ * The delegate class that acts as a "Promise-like" for QuestionnairePhase.
972
+ * Why is this prefixed with `Prisma__`?
973
+ * Because we want to prevent naming conflicts as mentioned in
974
+ * https://github.com/prisma/prisma-client-js/issues/707
975
+ */
976
+ export interface Prisma__QuestionnairePhaseClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
977
+ readonly [Symbol.toStringTag]: "PrismaPromise";
978
+ 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>;
979
+ fields<T extends Prisma.QuestionnairePhase$fieldsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.QuestionnairePhase$fieldsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$QuestionnaireFieldPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
980
+ /**
981
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
982
+ * @param onfulfilled The callback to execute when the Promise is resolved.
983
+ * @param onrejected The callback to execute when the Promise is rejected.
984
+ * @returns A Promise for the completion of which ever callback is executed.
985
+ */
986
+ 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>;
987
+ /**
988
+ * Attaches a callback for only the rejection of the Promise.
989
+ * @param onrejected The callback to execute when the Promise is rejected.
990
+ * @returns A Promise for the completion of the callback.
991
+ */
992
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
993
+ /**
994
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
995
+ * resolved value cannot be modified from the callback.
996
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
997
+ * @returns A Promise for the completion of the callback.
998
+ */
999
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1000
+ }
1001
+ /**
1002
+ * Fields of the QuestionnairePhase model
1003
+ */
1004
+ export interface QuestionnairePhaseFieldRefs {
1005
+ readonly id: Prisma.FieldRef<"QuestionnairePhase", 'String'>;
1006
+ readonly phaseId: Prisma.FieldRef<"QuestionnairePhase", 'String'>;
1007
+ readonly completedFieldsCount: Prisma.FieldRef<"QuestionnairePhase", 'Int'>;
1008
+ readonly totalFieldsCount: Prisma.FieldRef<"QuestionnairePhase", 'Int'>;
1009
+ readonly underwritingScore: Prisma.FieldRef<"QuestionnairePhase", 'Float'>;
1010
+ readonly debtToIncomeRatio: Prisma.FieldRef<"QuestionnairePhase", 'Float'>;
1011
+ readonly underwritingDecision: Prisma.FieldRef<"QuestionnairePhase", 'String'>;
1012
+ readonly underwritingNotes: Prisma.FieldRef<"QuestionnairePhase", 'String'>;
1013
+ readonly fieldsSnapshot: Prisma.FieldRef<"QuestionnairePhase", 'Json'>;
1014
+ readonly createdAt: Prisma.FieldRef<"QuestionnairePhase", 'DateTime'>;
1015
+ readonly updatedAt: Prisma.FieldRef<"QuestionnairePhase", 'DateTime'>;
1016
+ }
1017
+ /**
1018
+ * QuestionnairePhase findUnique
1019
+ */
1020
+ export type QuestionnairePhaseFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1021
+ /**
1022
+ * Select specific fields to fetch from the QuestionnairePhase
1023
+ */
1024
+ select?: Prisma.QuestionnairePhaseSelect<ExtArgs> | null;
1025
+ /**
1026
+ * Omit specific fields from the QuestionnairePhase
1027
+ */
1028
+ omit?: Prisma.QuestionnairePhaseOmit<ExtArgs> | null;
1029
+ /**
1030
+ * Choose, which related nodes to fetch as well
1031
+ */
1032
+ include?: Prisma.QuestionnairePhaseInclude<ExtArgs> | null;
1033
+ /**
1034
+ * Filter, which QuestionnairePhase to fetch.
1035
+ */
1036
+ where: Prisma.QuestionnairePhaseWhereUniqueInput;
1037
+ };
1038
+ /**
1039
+ * QuestionnairePhase findUniqueOrThrow
1040
+ */
1041
+ export type QuestionnairePhaseFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1042
+ /**
1043
+ * Select specific fields to fetch from the QuestionnairePhase
1044
+ */
1045
+ select?: Prisma.QuestionnairePhaseSelect<ExtArgs> | null;
1046
+ /**
1047
+ * Omit specific fields from the QuestionnairePhase
1048
+ */
1049
+ omit?: Prisma.QuestionnairePhaseOmit<ExtArgs> | null;
1050
+ /**
1051
+ * Choose, which related nodes to fetch as well
1052
+ */
1053
+ include?: Prisma.QuestionnairePhaseInclude<ExtArgs> | null;
1054
+ /**
1055
+ * Filter, which QuestionnairePhase to fetch.
1056
+ */
1057
+ where: Prisma.QuestionnairePhaseWhereUniqueInput;
1058
+ };
1059
+ /**
1060
+ * QuestionnairePhase findFirst
1061
+ */
1062
+ export type QuestionnairePhaseFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1063
+ /**
1064
+ * Select specific fields to fetch from the QuestionnairePhase
1065
+ */
1066
+ select?: Prisma.QuestionnairePhaseSelect<ExtArgs> | null;
1067
+ /**
1068
+ * Omit specific fields from the QuestionnairePhase
1069
+ */
1070
+ omit?: Prisma.QuestionnairePhaseOmit<ExtArgs> | null;
1071
+ /**
1072
+ * Choose, which related nodes to fetch as well
1073
+ */
1074
+ include?: Prisma.QuestionnairePhaseInclude<ExtArgs> | null;
1075
+ /**
1076
+ * Filter, which QuestionnairePhase to fetch.
1077
+ */
1078
+ where?: Prisma.QuestionnairePhaseWhereInput;
1079
+ /**
1080
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1081
+ *
1082
+ * Determine the order of QuestionnairePhases to fetch.
1083
+ */
1084
+ orderBy?: Prisma.QuestionnairePhaseOrderByWithRelationInput | Prisma.QuestionnairePhaseOrderByWithRelationInput[];
1085
+ /**
1086
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1087
+ *
1088
+ * Sets the position for searching for QuestionnairePhases.
1089
+ */
1090
+ cursor?: Prisma.QuestionnairePhaseWhereUniqueInput;
1091
+ /**
1092
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1093
+ *
1094
+ * Take `±n` QuestionnairePhases from the position of the cursor.
1095
+ */
1096
+ take?: number;
1097
+ /**
1098
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1099
+ *
1100
+ * Skip the first `n` QuestionnairePhases.
1101
+ */
1102
+ skip?: number;
1103
+ /**
1104
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1105
+ *
1106
+ * Filter by unique combinations of QuestionnairePhases.
1107
+ */
1108
+ distinct?: Prisma.QuestionnairePhaseScalarFieldEnum | Prisma.QuestionnairePhaseScalarFieldEnum[];
1109
+ };
1110
+ /**
1111
+ * QuestionnairePhase findFirstOrThrow
1112
+ */
1113
+ export type QuestionnairePhaseFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1114
+ /**
1115
+ * Select specific fields to fetch from the QuestionnairePhase
1116
+ */
1117
+ select?: Prisma.QuestionnairePhaseSelect<ExtArgs> | null;
1118
+ /**
1119
+ * Omit specific fields from the QuestionnairePhase
1120
+ */
1121
+ omit?: Prisma.QuestionnairePhaseOmit<ExtArgs> | null;
1122
+ /**
1123
+ * Choose, which related nodes to fetch as well
1124
+ */
1125
+ include?: Prisma.QuestionnairePhaseInclude<ExtArgs> | null;
1126
+ /**
1127
+ * Filter, which QuestionnairePhase to fetch.
1128
+ */
1129
+ where?: Prisma.QuestionnairePhaseWhereInput;
1130
+ /**
1131
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1132
+ *
1133
+ * Determine the order of QuestionnairePhases to fetch.
1134
+ */
1135
+ orderBy?: Prisma.QuestionnairePhaseOrderByWithRelationInput | Prisma.QuestionnairePhaseOrderByWithRelationInput[];
1136
+ /**
1137
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1138
+ *
1139
+ * Sets the position for searching for QuestionnairePhases.
1140
+ */
1141
+ cursor?: Prisma.QuestionnairePhaseWhereUniqueInput;
1142
+ /**
1143
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1144
+ *
1145
+ * Take `±n` QuestionnairePhases from the position of the cursor.
1146
+ */
1147
+ take?: number;
1148
+ /**
1149
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1150
+ *
1151
+ * Skip the first `n` QuestionnairePhases.
1152
+ */
1153
+ skip?: number;
1154
+ /**
1155
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1156
+ *
1157
+ * Filter by unique combinations of QuestionnairePhases.
1158
+ */
1159
+ distinct?: Prisma.QuestionnairePhaseScalarFieldEnum | Prisma.QuestionnairePhaseScalarFieldEnum[];
1160
+ };
1161
+ /**
1162
+ * QuestionnairePhase findMany
1163
+ */
1164
+ export type QuestionnairePhaseFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1165
+ /**
1166
+ * Select specific fields to fetch from the QuestionnairePhase
1167
+ */
1168
+ select?: Prisma.QuestionnairePhaseSelect<ExtArgs> | null;
1169
+ /**
1170
+ * Omit specific fields from the QuestionnairePhase
1171
+ */
1172
+ omit?: Prisma.QuestionnairePhaseOmit<ExtArgs> | null;
1173
+ /**
1174
+ * Choose, which related nodes to fetch as well
1175
+ */
1176
+ include?: Prisma.QuestionnairePhaseInclude<ExtArgs> | null;
1177
+ /**
1178
+ * Filter, which QuestionnairePhases to fetch.
1179
+ */
1180
+ where?: Prisma.QuestionnairePhaseWhereInput;
1181
+ /**
1182
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1183
+ *
1184
+ * Determine the order of QuestionnairePhases to fetch.
1185
+ */
1186
+ orderBy?: Prisma.QuestionnairePhaseOrderByWithRelationInput | Prisma.QuestionnairePhaseOrderByWithRelationInput[];
1187
+ /**
1188
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1189
+ *
1190
+ * Sets the position for listing QuestionnairePhases.
1191
+ */
1192
+ cursor?: Prisma.QuestionnairePhaseWhereUniqueInput;
1193
+ /**
1194
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1195
+ *
1196
+ * Take `±n` QuestionnairePhases from the position of the cursor.
1197
+ */
1198
+ take?: number;
1199
+ /**
1200
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1201
+ *
1202
+ * Skip the first `n` QuestionnairePhases.
1203
+ */
1204
+ skip?: number;
1205
+ distinct?: Prisma.QuestionnairePhaseScalarFieldEnum | Prisma.QuestionnairePhaseScalarFieldEnum[];
1206
+ };
1207
+ /**
1208
+ * QuestionnairePhase create
1209
+ */
1210
+ export type QuestionnairePhaseCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1211
+ /**
1212
+ * Select specific fields to fetch from the QuestionnairePhase
1213
+ */
1214
+ select?: Prisma.QuestionnairePhaseSelect<ExtArgs> | null;
1215
+ /**
1216
+ * Omit specific fields from the QuestionnairePhase
1217
+ */
1218
+ omit?: Prisma.QuestionnairePhaseOmit<ExtArgs> | null;
1219
+ /**
1220
+ * Choose, which related nodes to fetch as well
1221
+ */
1222
+ include?: Prisma.QuestionnairePhaseInclude<ExtArgs> | null;
1223
+ /**
1224
+ * The data needed to create a QuestionnairePhase.
1225
+ */
1226
+ data: Prisma.XOR<Prisma.QuestionnairePhaseCreateInput, Prisma.QuestionnairePhaseUncheckedCreateInput>;
1227
+ };
1228
+ /**
1229
+ * QuestionnairePhase createMany
1230
+ */
1231
+ export type QuestionnairePhaseCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1232
+ /**
1233
+ * The data used to create many QuestionnairePhases.
1234
+ */
1235
+ data: Prisma.QuestionnairePhaseCreateManyInput | Prisma.QuestionnairePhaseCreateManyInput[];
1236
+ skipDuplicates?: boolean;
1237
+ };
1238
+ /**
1239
+ * QuestionnairePhase update
1240
+ */
1241
+ export type QuestionnairePhaseUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1242
+ /**
1243
+ * Select specific fields to fetch from the QuestionnairePhase
1244
+ */
1245
+ select?: Prisma.QuestionnairePhaseSelect<ExtArgs> | null;
1246
+ /**
1247
+ * Omit specific fields from the QuestionnairePhase
1248
+ */
1249
+ omit?: Prisma.QuestionnairePhaseOmit<ExtArgs> | null;
1250
+ /**
1251
+ * Choose, which related nodes to fetch as well
1252
+ */
1253
+ include?: Prisma.QuestionnairePhaseInclude<ExtArgs> | null;
1254
+ /**
1255
+ * The data needed to update a QuestionnairePhase.
1256
+ */
1257
+ data: Prisma.XOR<Prisma.QuestionnairePhaseUpdateInput, Prisma.QuestionnairePhaseUncheckedUpdateInput>;
1258
+ /**
1259
+ * Choose, which QuestionnairePhase to update.
1260
+ */
1261
+ where: Prisma.QuestionnairePhaseWhereUniqueInput;
1262
+ };
1263
+ /**
1264
+ * QuestionnairePhase updateMany
1265
+ */
1266
+ export type QuestionnairePhaseUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1267
+ /**
1268
+ * The data used to update QuestionnairePhases.
1269
+ */
1270
+ data: Prisma.XOR<Prisma.QuestionnairePhaseUpdateManyMutationInput, Prisma.QuestionnairePhaseUncheckedUpdateManyInput>;
1271
+ /**
1272
+ * Filter which QuestionnairePhases to update
1273
+ */
1274
+ where?: Prisma.QuestionnairePhaseWhereInput;
1275
+ /**
1276
+ * Limit how many QuestionnairePhases to update.
1277
+ */
1278
+ limit?: number;
1279
+ };
1280
+ /**
1281
+ * QuestionnairePhase upsert
1282
+ */
1283
+ export type QuestionnairePhaseUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1284
+ /**
1285
+ * Select specific fields to fetch from the QuestionnairePhase
1286
+ */
1287
+ select?: Prisma.QuestionnairePhaseSelect<ExtArgs> | null;
1288
+ /**
1289
+ * Omit specific fields from the QuestionnairePhase
1290
+ */
1291
+ omit?: Prisma.QuestionnairePhaseOmit<ExtArgs> | null;
1292
+ /**
1293
+ * Choose, which related nodes to fetch as well
1294
+ */
1295
+ include?: Prisma.QuestionnairePhaseInclude<ExtArgs> | null;
1296
+ /**
1297
+ * The filter to search for the QuestionnairePhase to update in case it exists.
1298
+ */
1299
+ where: Prisma.QuestionnairePhaseWhereUniqueInput;
1300
+ /**
1301
+ * In case the QuestionnairePhase found by the `where` argument doesn't exist, create a new QuestionnairePhase with this data.
1302
+ */
1303
+ create: Prisma.XOR<Prisma.QuestionnairePhaseCreateInput, Prisma.QuestionnairePhaseUncheckedCreateInput>;
1304
+ /**
1305
+ * In case the QuestionnairePhase was found with the provided `where` argument, update it with this data.
1306
+ */
1307
+ update: Prisma.XOR<Prisma.QuestionnairePhaseUpdateInput, Prisma.QuestionnairePhaseUncheckedUpdateInput>;
1308
+ };
1309
+ /**
1310
+ * QuestionnairePhase delete
1311
+ */
1312
+ export type QuestionnairePhaseDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1313
+ /**
1314
+ * Select specific fields to fetch from the QuestionnairePhase
1315
+ */
1316
+ select?: Prisma.QuestionnairePhaseSelect<ExtArgs> | null;
1317
+ /**
1318
+ * Omit specific fields from the QuestionnairePhase
1319
+ */
1320
+ omit?: Prisma.QuestionnairePhaseOmit<ExtArgs> | null;
1321
+ /**
1322
+ * Choose, which related nodes to fetch as well
1323
+ */
1324
+ include?: Prisma.QuestionnairePhaseInclude<ExtArgs> | null;
1325
+ /**
1326
+ * Filter which QuestionnairePhase to delete.
1327
+ */
1328
+ where: Prisma.QuestionnairePhaseWhereUniqueInput;
1329
+ };
1330
+ /**
1331
+ * QuestionnairePhase deleteMany
1332
+ */
1333
+ export type QuestionnairePhaseDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1334
+ /**
1335
+ * Filter which QuestionnairePhases to delete
1336
+ */
1337
+ where?: Prisma.QuestionnairePhaseWhereInput;
1338
+ /**
1339
+ * Limit how many QuestionnairePhases to delete.
1340
+ */
1341
+ limit?: number;
1342
+ };
1343
+ /**
1344
+ * QuestionnairePhase.fields
1345
+ */
1346
+ export type QuestionnairePhase$fieldsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1347
+ /**
1348
+ * Select specific fields to fetch from the QuestionnaireField
1349
+ */
1350
+ select?: Prisma.QuestionnaireFieldSelect<ExtArgs> | null;
1351
+ /**
1352
+ * Omit specific fields from the QuestionnaireField
1353
+ */
1354
+ omit?: Prisma.QuestionnaireFieldOmit<ExtArgs> | null;
1355
+ /**
1356
+ * Choose, which related nodes to fetch as well
1357
+ */
1358
+ include?: Prisma.QuestionnaireFieldInclude<ExtArgs> | null;
1359
+ where?: Prisma.QuestionnaireFieldWhereInput;
1360
+ orderBy?: Prisma.QuestionnaireFieldOrderByWithRelationInput | Prisma.QuestionnaireFieldOrderByWithRelationInput[];
1361
+ cursor?: Prisma.QuestionnaireFieldWhereUniqueInput;
1362
+ take?: number;
1363
+ skip?: number;
1364
+ distinct?: Prisma.QuestionnaireFieldScalarFieldEnum | Prisma.QuestionnaireFieldScalarFieldEnum[];
1365
+ };
1366
+ /**
1367
+ * QuestionnairePhase without action
1368
+ */
1369
+ export type QuestionnairePhaseDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1370
+ /**
1371
+ * Select specific fields to fetch from the QuestionnairePhase
1372
+ */
1373
+ select?: Prisma.QuestionnairePhaseSelect<ExtArgs> | null;
1374
+ /**
1375
+ * Omit specific fields from the QuestionnairePhase
1376
+ */
1377
+ omit?: Prisma.QuestionnairePhaseOmit<ExtArgs> | null;
1378
+ /**
1379
+ * Choose, which related nodes to fetch as well
1380
+ */
1381
+ include?: Prisma.QuestionnairePhaseInclude<ExtArgs> | null;
1382
+ };
1383
+ export {};