@valentine-efagene/qshelter-common 2.0.48 → 2.0.49

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.
@@ -0,0 +1,1819 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as $Enums from "../enums.js";
3
+ import type * as Prisma from "../internal/prismaNamespace.js";
4
+ /**
5
+ * Model DocumentationStep
6
+ *
7
+ */
8
+ export type DocumentationStepModel = runtime.Types.Result.DefaultSelection<Prisma.$DocumentationStepPayload>;
9
+ export type AggregateDocumentationStep = {
10
+ _count: DocumentationStepCountAggregateOutputType | null;
11
+ _avg: DocumentationStepAvgAggregateOutputType | null;
12
+ _sum: DocumentationStepSumAggregateOutputType | null;
13
+ _min: DocumentationStepMinAggregateOutputType | null;
14
+ _max: DocumentationStepMaxAggregateOutputType | null;
15
+ };
16
+ export type DocumentationStepAvgAggregateOutputType = {
17
+ order: number | null;
18
+ };
19
+ export type DocumentationStepSumAggregateOutputType = {
20
+ order: number | null;
21
+ };
22
+ export type DocumentationStepMinAggregateOutputType = {
23
+ id: string | null;
24
+ phaseId: string | null;
25
+ name: string | null;
26
+ description: string | null;
27
+ stepType: $Enums.StepType | null;
28
+ order: number | null;
29
+ status: $Enums.StepStatus | null;
30
+ assigneeId: string | null;
31
+ dueDate: Date | null;
32
+ completedAt: Date | null;
33
+ createdAt: Date | null;
34
+ updatedAt: Date | null;
35
+ };
36
+ export type DocumentationStepMaxAggregateOutputType = {
37
+ id: string | null;
38
+ phaseId: string | null;
39
+ name: string | null;
40
+ description: string | null;
41
+ stepType: $Enums.StepType | null;
42
+ order: number | null;
43
+ status: $Enums.StepStatus | null;
44
+ assigneeId: string | null;
45
+ dueDate: Date | null;
46
+ completedAt: Date | null;
47
+ createdAt: Date | null;
48
+ updatedAt: Date | null;
49
+ };
50
+ export type DocumentationStepCountAggregateOutputType = {
51
+ id: number;
52
+ phaseId: number;
53
+ name: number;
54
+ description: number;
55
+ stepType: number;
56
+ order: number;
57
+ status: number;
58
+ metadata: number;
59
+ assigneeId: number;
60
+ dueDate: number;
61
+ completedAt: number;
62
+ createdAt: number;
63
+ updatedAt: number;
64
+ _all: number;
65
+ };
66
+ export type DocumentationStepAvgAggregateInputType = {
67
+ order?: true;
68
+ };
69
+ export type DocumentationStepSumAggregateInputType = {
70
+ order?: true;
71
+ };
72
+ export type DocumentationStepMinAggregateInputType = {
73
+ id?: true;
74
+ phaseId?: true;
75
+ name?: true;
76
+ description?: true;
77
+ stepType?: true;
78
+ order?: true;
79
+ status?: true;
80
+ assigneeId?: true;
81
+ dueDate?: true;
82
+ completedAt?: true;
83
+ createdAt?: true;
84
+ updatedAt?: true;
85
+ };
86
+ export type DocumentationStepMaxAggregateInputType = {
87
+ id?: true;
88
+ phaseId?: true;
89
+ name?: true;
90
+ description?: true;
91
+ stepType?: true;
92
+ order?: true;
93
+ status?: true;
94
+ assigneeId?: true;
95
+ dueDate?: true;
96
+ completedAt?: true;
97
+ createdAt?: true;
98
+ updatedAt?: true;
99
+ };
100
+ export type DocumentationStepCountAggregateInputType = {
101
+ id?: true;
102
+ phaseId?: true;
103
+ name?: true;
104
+ description?: true;
105
+ stepType?: true;
106
+ order?: true;
107
+ status?: true;
108
+ metadata?: true;
109
+ assigneeId?: true;
110
+ dueDate?: true;
111
+ completedAt?: true;
112
+ createdAt?: true;
113
+ updatedAt?: true;
114
+ _all?: true;
115
+ };
116
+ export type DocumentationStepAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
117
+ /**
118
+ * Filter which DocumentationStep to aggregate.
119
+ */
120
+ where?: Prisma.DocumentationStepWhereInput;
121
+ /**
122
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
123
+ *
124
+ * Determine the order of DocumentationSteps to fetch.
125
+ */
126
+ orderBy?: Prisma.DocumentationStepOrderByWithRelationInput | Prisma.DocumentationStepOrderByWithRelationInput[];
127
+ /**
128
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
129
+ *
130
+ * Sets the start position
131
+ */
132
+ cursor?: Prisma.DocumentationStepWhereUniqueInput;
133
+ /**
134
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
135
+ *
136
+ * Take `±n` DocumentationSteps from the position of the cursor.
137
+ */
138
+ take?: number;
139
+ /**
140
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
141
+ *
142
+ * Skip the first `n` DocumentationSteps.
143
+ */
144
+ skip?: number;
145
+ /**
146
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
147
+ *
148
+ * Count returned DocumentationSteps
149
+ **/
150
+ _count?: true | DocumentationStepCountAggregateInputType;
151
+ /**
152
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
153
+ *
154
+ * Select which fields to average
155
+ **/
156
+ _avg?: DocumentationStepAvgAggregateInputType;
157
+ /**
158
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
159
+ *
160
+ * Select which fields to sum
161
+ **/
162
+ _sum?: DocumentationStepSumAggregateInputType;
163
+ /**
164
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
165
+ *
166
+ * Select which fields to find the minimum value
167
+ **/
168
+ _min?: DocumentationStepMinAggregateInputType;
169
+ /**
170
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
171
+ *
172
+ * Select which fields to find the maximum value
173
+ **/
174
+ _max?: DocumentationStepMaxAggregateInputType;
175
+ };
176
+ export type GetDocumentationStepAggregateType<T extends DocumentationStepAggregateArgs> = {
177
+ [P in keyof T & keyof AggregateDocumentationStep]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateDocumentationStep[P]> : Prisma.GetScalarType<T[P], AggregateDocumentationStep[P]>;
178
+ };
179
+ export type DocumentationStepGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
180
+ where?: Prisma.DocumentationStepWhereInput;
181
+ orderBy?: Prisma.DocumentationStepOrderByWithAggregationInput | Prisma.DocumentationStepOrderByWithAggregationInput[];
182
+ by: Prisma.DocumentationStepScalarFieldEnum[] | Prisma.DocumentationStepScalarFieldEnum;
183
+ having?: Prisma.DocumentationStepScalarWhereWithAggregatesInput;
184
+ take?: number;
185
+ skip?: number;
186
+ _count?: DocumentationStepCountAggregateInputType | true;
187
+ _avg?: DocumentationStepAvgAggregateInputType;
188
+ _sum?: DocumentationStepSumAggregateInputType;
189
+ _min?: DocumentationStepMinAggregateInputType;
190
+ _max?: DocumentationStepMaxAggregateInputType;
191
+ };
192
+ export type DocumentationStepGroupByOutputType = {
193
+ id: string;
194
+ phaseId: string;
195
+ name: string;
196
+ description: string | null;
197
+ stepType: $Enums.StepType;
198
+ order: number;
199
+ status: $Enums.StepStatus;
200
+ metadata: runtime.JsonValue | null;
201
+ assigneeId: string | null;
202
+ dueDate: Date | null;
203
+ completedAt: Date | null;
204
+ createdAt: Date;
205
+ updatedAt: Date;
206
+ _count: DocumentationStepCountAggregateOutputType | null;
207
+ _avg: DocumentationStepAvgAggregateOutputType | null;
208
+ _sum: DocumentationStepSumAggregateOutputType | null;
209
+ _min: DocumentationStepMinAggregateOutputType | null;
210
+ _max: DocumentationStepMaxAggregateOutputType | null;
211
+ };
212
+ type GetDocumentationStepGroupByPayload<T extends DocumentationStepGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<DocumentationStepGroupByOutputType, T['by']> & {
213
+ [P in ((keyof T) & (keyof DocumentationStepGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], DocumentationStepGroupByOutputType[P]> : Prisma.GetScalarType<T[P], DocumentationStepGroupByOutputType[P]>;
214
+ }>>;
215
+ export type DocumentationStepWhereInput = {
216
+ AND?: Prisma.DocumentationStepWhereInput | Prisma.DocumentationStepWhereInput[];
217
+ OR?: Prisma.DocumentationStepWhereInput[];
218
+ NOT?: Prisma.DocumentationStepWhereInput | Prisma.DocumentationStepWhereInput[];
219
+ id?: Prisma.StringFilter<"DocumentationStep"> | string;
220
+ phaseId?: Prisma.StringFilter<"DocumentationStep"> | string;
221
+ name?: Prisma.StringFilter<"DocumentationStep"> | string;
222
+ description?: Prisma.StringNullableFilter<"DocumentationStep"> | string | null;
223
+ stepType?: Prisma.EnumStepTypeFilter<"DocumentationStep"> | $Enums.StepType;
224
+ order?: Prisma.IntFilter<"DocumentationStep"> | number;
225
+ status?: Prisma.EnumStepStatusFilter<"DocumentationStep"> | $Enums.StepStatus;
226
+ metadata?: Prisma.JsonNullableFilter<"DocumentationStep">;
227
+ assigneeId?: Prisma.StringNullableFilter<"DocumentationStep"> | string | null;
228
+ dueDate?: Prisma.DateTimeNullableFilter<"DocumentationStep"> | Date | string | null;
229
+ completedAt?: Prisma.DateTimeNullableFilter<"DocumentationStep"> | Date | string | null;
230
+ createdAt?: Prisma.DateTimeFilter<"DocumentationStep"> | Date | string;
231
+ updatedAt?: Prisma.DateTimeFilter<"DocumentationStep"> | Date | string;
232
+ phase?: Prisma.XOR<Prisma.ContractPhaseScalarRelationFilter, Prisma.ContractPhaseWhereInput>;
233
+ assignee?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
234
+ requiredDocuments?: Prisma.DocumentationStepDocumentListRelationFilter;
235
+ approvals?: Prisma.DocumentationStepApprovalListRelationFilter;
236
+ };
237
+ export type DocumentationStepOrderByWithRelationInput = {
238
+ id?: Prisma.SortOrder;
239
+ phaseId?: Prisma.SortOrder;
240
+ name?: Prisma.SortOrder;
241
+ description?: Prisma.SortOrderInput | Prisma.SortOrder;
242
+ stepType?: Prisma.SortOrder;
243
+ order?: Prisma.SortOrder;
244
+ status?: Prisma.SortOrder;
245
+ metadata?: Prisma.SortOrderInput | Prisma.SortOrder;
246
+ assigneeId?: Prisma.SortOrderInput | Prisma.SortOrder;
247
+ dueDate?: Prisma.SortOrderInput | Prisma.SortOrder;
248
+ completedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
249
+ createdAt?: Prisma.SortOrder;
250
+ updatedAt?: Prisma.SortOrder;
251
+ phase?: Prisma.ContractPhaseOrderByWithRelationInput;
252
+ assignee?: Prisma.UserOrderByWithRelationInput;
253
+ requiredDocuments?: Prisma.DocumentationStepDocumentOrderByRelationAggregateInput;
254
+ approvals?: Prisma.DocumentationStepApprovalOrderByRelationAggregateInput;
255
+ _relevance?: Prisma.DocumentationStepOrderByRelevanceInput;
256
+ };
257
+ export type DocumentationStepWhereUniqueInput = Prisma.AtLeast<{
258
+ id?: string;
259
+ AND?: Prisma.DocumentationStepWhereInput | Prisma.DocumentationStepWhereInput[];
260
+ OR?: Prisma.DocumentationStepWhereInput[];
261
+ NOT?: Prisma.DocumentationStepWhereInput | Prisma.DocumentationStepWhereInput[];
262
+ phaseId?: Prisma.StringFilter<"DocumentationStep"> | string;
263
+ name?: Prisma.StringFilter<"DocumentationStep"> | string;
264
+ description?: Prisma.StringNullableFilter<"DocumentationStep"> | string | null;
265
+ stepType?: Prisma.EnumStepTypeFilter<"DocumentationStep"> | $Enums.StepType;
266
+ order?: Prisma.IntFilter<"DocumentationStep"> | number;
267
+ status?: Prisma.EnumStepStatusFilter<"DocumentationStep"> | $Enums.StepStatus;
268
+ metadata?: Prisma.JsonNullableFilter<"DocumentationStep">;
269
+ assigneeId?: Prisma.StringNullableFilter<"DocumentationStep"> | string | null;
270
+ dueDate?: Prisma.DateTimeNullableFilter<"DocumentationStep"> | Date | string | null;
271
+ completedAt?: Prisma.DateTimeNullableFilter<"DocumentationStep"> | Date | string | null;
272
+ createdAt?: Prisma.DateTimeFilter<"DocumentationStep"> | Date | string;
273
+ updatedAt?: Prisma.DateTimeFilter<"DocumentationStep"> | Date | string;
274
+ phase?: Prisma.XOR<Prisma.ContractPhaseScalarRelationFilter, Prisma.ContractPhaseWhereInput>;
275
+ assignee?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
276
+ requiredDocuments?: Prisma.DocumentationStepDocumentListRelationFilter;
277
+ approvals?: Prisma.DocumentationStepApprovalListRelationFilter;
278
+ }, "id">;
279
+ export type DocumentationStepOrderByWithAggregationInput = {
280
+ id?: Prisma.SortOrder;
281
+ phaseId?: Prisma.SortOrder;
282
+ name?: Prisma.SortOrder;
283
+ description?: Prisma.SortOrderInput | Prisma.SortOrder;
284
+ stepType?: Prisma.SortOrder;
285
+ order?: Prisma.SortOrder;
286
+ status?: Prisma.SortOrder;
287
+ metadata?: Prisma.SortOrderInput | Prisma.SortOrder;
288
+ assigneeId?: Prisma.SortOrderInput | Prisma.SortOrder;
289
+ dueDate?: Prisma.SortOrderInput | Prisma.SortOrder;
290
+ completedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
291
+ createdAt?: Prisma.SortOrder;
292
+ updatedAt?: Prisma.SortOrder;
293
+ _count?: Prisma.DocumentationStepCountOrderByAggregateInput;
294
+ _avg?: Prisma.DocumentationStepAvgOrderByAggregateInput;
295
+ _max?: Prisma.DocumentationStepMaxOrderByAggregateInput;
296
+ _min?: Prisma.DocumentationStepMinOrderByAggregateInput;
297
+ _sum?: Prisma.DocumentationStepSumOrderByAggregateInput;
298
+ };
299
+ export type DocumentationStepScalarWhereWithAggregatesInput = {
300
+ AND?: Prisma.DocumentationStepScalarWhereWithAggregatesInput | Prisma.DocumentationStepScalarWhereWithAggregatesInput[];
301
+ OR?: Prisma.DocumentationStepScalarWhereWithAggregatesInput[];
302
+ NOT?: Prisma.DocumentationStepScalarWhereWithAggregatesInput | Prisma.DocumentationStepScalarWhereWithAggregatesInput[];
303
+ id?: Prisma.StringWithAggregatesFilter<"DocumentationStep"> | string;
304
+ phaseId?: Prisma.StringWithAggregatesFilter<"DocumentationStep"> | string;
305
+ name?: Prisma.StringWithAggregatesFilter<"DocumentationStep"> | string;
306
+ description?: Prisma.StringNullableWithAggregatesFilter<"DocumentationStep"> | string | null;
307
+ stepType?: Prisma.EnumStepTypeWithAggregatesFilter<"DocumentationStep"> | $Enums.StepType;
308
+ order?: Prisma.IntWithAggregatesFilter<"DocumentationStep"> | number;
309
+ status?: Prisma.EnumStepStatusWithAggregatesFilter<"DocumentationStep"> | $Enums.StepStatus;
310
+ metadata?: Prisma.JsonNullableWithAggregatesFilter<"DocumentationStep">;
311
+ assigneeId?: Prisma.StringNullableWithAggregatesFilter<"DocumentationStep"> | string | null;
312
+ dueDate?: Prisma.DateTimeNullableWithAggregatesFilter<"DocumentationStep"> | Date | string | null;
313
+ completedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"DocumentationStep"> | Date | string | null;
314
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"DocumentationStep"> | Date | string;
315
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"DocumentationStep"> | Date | string;
316
+ };
317
+ export type DocumentationStepCreateInput = {
318
+ id?: string;
319
+ name: string;
320
+ description?: string | null;
321
+ stepType: $Enums.StepType;
322
+ order: number;
323
+ status?: $Enums.StepStatus;
324
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
325
+ dueDate?: Date | string | null;
326
+ completedAt?: Date | string | null;
327
+ createdAt?: Date | string;
328
+ updatedAt?: Date | string;
329
+ phase: Prisma.ContractPhaseCreateNestedOneWithoutStepsInput;
330
+ assignee?: Prisma.UserCreateNestedOneWithoutAssignedStepsInput;
331
+ requiredDocuments?: Prisma.DocumentationStepDocumentCreateNestedManyWithoutStepInput;
332
+ approvals?: Prisma.DocumentationStepApprovalCreateNestedManyWithoutStepInput;
333
+ };
334
+ export type DocumentationStepUncheckedCreateInput = {
335
+ id?: string;
336
+ phaseId: string;
337
+ name: string;
338
+ description?: string | null;
339
+ stepType: $Enums.StepType;
340
+ order: number;
341
+ status?: $Enums.StepStatus;
342
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
343
+ assigneeId?: string | null;
344
+ dueDate?: Date | string | null;
345
+ completedAt?: Date | string | null;
346
+ createdAt?: Date | string;
347
+ updatedAt?: Date | string;
348
+ requiredDocuments?: Prisma.DocumentationStepDocumentUncheckedCreateNestedManyWithoutStepInput;
349
+ approvals?: Prisma.DocumentationStepApprovalUncheckedCreateNestedManyWithoutStepInput;
350
+ };
351
+ export type DocumentationStepUpdateInput = {
352
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
353
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
354
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
355
+ stepType?: Prisma.EnumStepTypeFieldUpdateOperationsInput | $Enums.StepType;
356
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
357
+ status?: Prisma.EnumStepStatusFieldUpdateOperationsInput | $Enums.StepStatus;
358
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
359
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
360
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
361
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
362
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
363
+ phase?: Prisma.ContractPhaseUpdateOneRequiredWithoutStepsNestedInput;
364
+ assignee?: Prisma.UserUpdateOneWithoutAssignedStepsNestedInput;
365
+ requiredDocuments?: Prisma.DocumentationStepDocumentUpdateManyWithoutStepNestedInput;
366
+ approvals?: Prisma.DocumentationStepApprovalUpdateManyWithoutStepNestedInput;
367
+ };
368
+ export type DocumentationStepUncheckedUpdateInput = {
369
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
370
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
371
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
372
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
373
+ stepType?: Prisma.EnumStepTypeFieldUpdateOperationsInput | $Enums.StepType;
374
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
375
+ status?: Prisma.EnumStepStatusFieldUpdateOperationsInput | $Enums.StepStatus;
376
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
377
+ assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
378
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
379
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
380
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
381
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
382
+ requiredDocuments?: Prisma.DocumentationStepDocumentUncheckedUpdateManyWithoutStepNestedInput;
383
+ approvals?: Prisma.DocumentationStepApprovalUncheckedUpdateManyWithoutStepNestedInput;
384
+ };
385
+ export type DocumentationStepCreateManyInput = {
386
+ id?: string;
387
+ phaseId: string;
388
+ name: string;
389
+ description?: string | null;
390
+ stepType: $Enums.StepType;
391
+ order: number;
392
+ status?: $Enums.StepStatus;
393
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
394
+ assigneeId?: string | null;
395
+ dueDate?: Date | string | null;
396
+ completedAt?: Date | string | null;
397
+ createdAt?: Date | string;
398
+ updatedAt?: Date | string;
399
+ };
400
+ export type DocumentationStepUpdateManyMutationInput = {
401
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
402
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
403
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
404
+ stepType?: Prisma.EnumStepTypeFieldUpdateOperationsInput | $Enums.StepType;
405
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
406
+ status?: Prisma.EnumStepStatusFieldUpdateOperationsInput | $Enums.StepStatus;
407
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
408
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
409
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
410
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
411
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
412
+ };
413
+ export type DocumentationStepUncheckedUpdateManyInput = {
414
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
415
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
416
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
417
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
418
+ stepType?: Prisma.EnumStepTypeFieldUpdateOperationsInput | $Enums.StepType;
419
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
420
+ status?: Prisma.EnumStepStatusFieldUpdateOperationsInput | $Enums.StepStatus;
421
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
422
+ assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
423
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
424
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
425
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
426
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
427
+ };
428
+ export type DocumentationStepListRelationFilter = {
429
+ every?: Prisma.DocumentationStepWhereInput;
430
+ some?: Prisma.DocumentationStepWhereInput;
431
+ none?: Prisma.DocumentationStepWhereInput;
432
+ };
433
+ export type DocumentationStepOrderByRelationAggregateInput = {
434
+ _count?: Prisma.SortOrder;
435
+ };
436
+ export type DocumentationStepOrderByRelevanceInput = {
437
+ fields: Prisma.DocumentationStepOrderByRelevanceFieldEnum | Prisma.DocumentationStepOrderByRelevanceFieldEnum[];
438
+ sort: Prisma.SortOrder;
439
+ search: string;
440
+ };
441
+ export type DocumentationStepCountOrderByAggregateInput = {
442
+ id?: Prisma.SortOrder;
443
+ phaseId?: Prisma.SortOrder;
444
+ name?: Prisma.SortOrder;
445
+ description?: Prisma.SortOrder;
446
+ stepType?: Prisma.SortOrder;
447
+ order?: Prisma.SortOrder;
448
+ status?: Prisma.SortOrder;
449
+ metadata?: Prisma.SortOrder;
450
+ assigneeId?: Prisma.SortOrder;
451
+ dueDate?: Prisma.SortOrder;
452
+ completedAt?: Prisma.SortOrder;
453
+ createdAt?: Prisma.SortOrder;
454
+ updatedAt?: Prisma.SortOrder;
455
+ };
456
+ export type DocumentationStepAvgOrderByAggregateInput = {
457
+ order?: Prisma.SortOrder;
458
+ };
459
+ export type DocumentationStepMaxOrderByAggregateInput = {
460
+ id?: Prisma.SortOrder;
461
+ phaseId?: Prisma.SortOrder;
462
+ name?: Prisma.SortOrder;
463
+ description?: Prisma.SortOrder;
464
+ stepType?: Prisma.SortOrder;
465
+ order?: Prisma.SortOrder;
466
+ status?: Prisma.SortOrder;
467
+ assigneeId?: Prisma.SortOrder;
468
+ dueDate?: Prisma.SortOrder;
469
+ completedAt?: Prisma.SortOrder;
470
+ createdAt?: Prisma.SortOrder;
471
+ updatedAt?: Prisma.SortOrder;
472
+ };
473
+ export type DocumentationStepMinOrderByAggregateInput = {
474
+ id?: Prisma.SortOrder;
475
+ phaseId?: Prisma.SortOrder;
476
+ name?: Prisma.SortOrder;
477
+ description?: Prisma.SortOrder;
478
+ stepType?: Prisma.SortOrder;
479
+ order?: Prisma.SortOrder;
480
+ status?: Prisma.SortOrder;
481
+ assigneeId?: Prisma.SortOrder;
482
+ dueDate?: Prisma.SortOrder;
483
+ completedAt?: Prisma.SortOrder;
484
+ createdAt?: Prisma.SortOrder;
485
+ updatedAt?: Prisma.SortOrder;
486
+ };
487
+ export type DocumentationStepSumOrderByAggregateInput = {
488
+ order?: Prisma.SortOrder;
489
+ };
490
+ export type DocumentationStepScalarRelationFilter = {
491
+ is?: Prisma.DocumentationStepWhereInput;
492
+ isNot?: Prisma.DocumentationStepWhereInput;
493
+ };
494
+ export type DocumentationStepCreateNestedManyWithoutAssigneeInput = {
495
+ create?: Prisma.XOR<Prisma.DocumentationStepCreateWithoutAssigneeInput, Prisma.DocumentationStepUncheckedCreateWithoutAssigneeInput> | Prisma.DocumentationStepCreateWithoutAssigneeInput[] | Prisma.DocumentationStepUncheckedCreateWithoutAssigneeInput[];
496
+ connectOrCreate?: Prisma.DocumentationStepCreateOrConnectWithoutAssigneeInput | Prisma.DocumentationStepCreateOrConnectWithoutAssigneeInput[];
497
+ createMany?: Prisma.DocumentationStepCreateManyAssigneeInputEnvelope;
498
+ connect?: Prisma.DocumentationStepWhereUniqueInput | Prisma.DocumentationStepWhereUniqueInput[];
499
+ };
500
+ export type DocumentationStepUncheckedCreateNestedManyWithoutAssigneeInput = {
501
+ create?: Prisma.XOR<Prisma.DocumentationStepCreateWithoutAssigneeInput, Prisma.DocumentationStepUncheckedCreateWithoutAssigneeInput> | Prisma.DocumentationStepCreateWithoutAssigneeInput[] | Prisma.DocumentationStepUncheckedCreateWithoutAssigneeInput[];
502
+ connectOrCreate?: Prisma.DocumentationStepCreateOrConnectWithoutAssigneeInput | Prisma.DocumentationStepCreateOrConnectWithoutAssigneeInput[];
503
+ createMany?: Prisma.DocumentationStepCreateManyAssigneeInputEnvelope;
504
+ connect?: Prisma.DocumentationStepWhereUniqueInput | Prisma.DocumentationStepWhereUniqueInput[];
505
+ };
506
+ export type DocumentationStepUpdateManyWithoutAssigneeNestedInput = {
507
+ create?: Prisma.XOR<Prisma.DocumentationStepCreateWithoutAssigneeInput, Prisma.DocumentationStepUncheckedCreateWithoutAssigneeInput> | Prisma.DocumentationStepCreateWithoutAssigneeInput[] | Prisma.DocumentationStepUncheckedCreateWithoutAssigneeInput[];
508
+ connectOrCreate?: Prisma.DocumentationStepCreateOrConnectWithoutAssigneeInput | Prisma.DocumentationStepCreateOrConnectWithoutAssigneeInput[];
509
+ upsert?: Prisma.DocumentationStepUpsertWithWhereUniqueWithoutAssigneeInput | Prisma.DocumentationStepUpsertWithWhereUniqueWithoutAssigneeInput[];
510
+ createMany?: Prisma.DocumentationStepCreateManyAssigneeInputEnvelope;
511
+ set?: Prisma.DocumentationStepWhereUniqueInput | Prisma.DocumentationStepWhereUniqueInput[];
512
+ disconnect?: Prisma.DocumentationStepWhereUniqueInput | Prisma.DocumentationStepWhereUniqueInput[];
513
+ delete?: Prisma.DocumentationStepWhereUniqueInput | Prisma.DocumentationStepWhereUniqueInput[];
514
+ connect?: Prisma.DocumentationStepWhereUniqueInput | Prisma.DocumentationStepWhereUniqueInput[];
515
+ update?: Prisma.DocumentationStepUpdateWithWhereUniqueWithoutAssigneeInput | Prisma.DocumentationStepUpdateWithWhereUniqueWithoutAssigneeInput[];
516
+ updateMany?: Prisma.DocumentationStepUpdateManyWithWhereWithoutAssigneeInput | Prisma.DocumentationStepUpdateManyWithWhereWithoutAssigneeInput[];
517
+ deleteMany?: Prisma.DocumentationStepScalarWhereInput | Prisma.DocumentationStepScalarWhereInput[];
518
+ };
519
+ export type DocumentationStepUncheckedUpdateManyWithoutAssigneeNestedInput = {
520
+ create?: Prisma.XOR<Prisma.DocumentationStepCreateWithoutAssigneeInput, Prisma.DocumentationStepUncheckedCreateWithoutAssigneeInput> | Prisma.DocumentationStepCreateWithoutAssigneeInput[] | Prisma.DocumentationStepUncheckedCreateWithoutAssigneeInput[];
521
+ connectOrCreate?: Prisma.DocumentationStepCreateOrConnectWithoutAssigneeInput | Prisma.DocumentationStepCreateOrConnectWithoutAssigneeInput[];
522
+ upsert?: Prisma.DocumentationStepUpsertWithWhereUniqueWithoutAssigneeInput | Prisma.DocumentationStepUpsertWithWhereUniqueWithoutAssigneeInput[];
523
+ createMany?: Prisma.DocumentationStepCreateManyAssigneeInputEnvelope;
524
+ set?: Prisma.DocumentationStepWhereUniqueInput | Prisma.DocumentationStepWhereUniqueInput[];
525
+ disconnect?: Prisma.DocumentationStepWhereUniqueInput | Prisma.DocumentationStepWhereUniqueInput[];
526
+ delete?: Prisma.DocumentationStepWhereUniqueInput | Prisma.DocumentationStepWhereUniqueInput[];
527
+ connect?: Prisma.DocumentationStepWhereUniqueInput | Prisma.DocumentationStepWhereUniqueInput[];
528
+ update?: Prisma.DocumentationStepUpdateWithWhereUniqueWithoutAssigneeInput | Prisma.DocumentationStepUpdateWithWhereUniqueWithoutAssigneeInput[];
529
+ updateMany?: Prisma.DocumentationStepUpdateManyWithWhereWithoutAssigneeInput | Prisma.DocumentationStepUpdateManyWithWhereWithoutAssigneeInput[];
530
+ deleteMany?: Prisma.DocumentationStepScalarWhereInput | Prisma.DocumentationStepScalarWhereInput[];
531
+ };
532
+ export type DocumentationStepCreateNestedManyWithoutPhaseInput = {
533
+ create?: Prisma.XOR<Prisma.DocumentationStepCreateWithoutPhaseInput, Prisma.DocumentationStepUncheckedCreateWithoutPhaseInput> | Prisma.DocumentationStepCreateWithoutPhaseInput[] | Prisma.DocumentationStepUncheckedCreateWithoutPhaseInput[];
534
+ connectOrCreate?: Prisma.DocumentationStepCreateOrConnectWithoutPhaseInput | Prisma.DocumentationStepCreateOrConnectWithoutPhaseInput[];
535
+ createMany?: Prisma.DocumentationStepCreateManyPhaseInputEnvelope;
536
+ connect?: Prisma.DocumentationStepWhereUniqueInput | Prisma.DocumentationStepWhereUniqueInput[];
537
+ };
538
+ export type DocumentationStepUncheckedCreateNestedManyWithoutPhaseInput = {
539
+ create?: Prisma.XOR<Prisma.DocumentationStepCreateWithoutPhaseInput, Prisma.DocumentationStepUncheckedCreateWithoutPhaseInput> | Prisma.DocumentationStepCreateWithoutPhaseInput[] | Prisma.DocumentationStepUncheckedCreateWithoutPhaseInput[];
540
+ connectOrCreate?: Prisma.DocumentationStepCreateOrConnectWithoutPhaseInput | Prisma.DocumentationStepCreateOrConnectWithoutPhaseInput[];
541
+ createMany?: Prisma.DocumentationStepCreateManyPhaseInputEnvelope;
542
+ connect?: Prisma.DocumentationStepWhereUniqueInput | Prisma.DocumentationStepWhereUniqueInput[];
543
+ };
544
+ export type DocumentationStepUpdateManyWithoutPhaseNestedInput = {
545
+ create?: Prisma.XOR<Prisma.DocumentationStepCreateWithoutPhaseInput, Prisma.DocumentationStepUncheckedCreateWithoutPhaseInput> | Prisma.DocumentationStepCreateWithoutPhaseInput[] | Prisma.DocumentationStepUncheckedCreateWithoutPhaseInput[];
546
+ connectOrCreate?: Prisma.DocumentationStepCreateOrConnectWithoutPhaseInput | Prisma.DocumentationStepCreateOrConnectWithoutPhaseInput[];
547
+ upsert?: Prisma.DocumentationStepUpsertWithWhereUniqueWithoutPhaseInput | Prisma.DocumentationStepUpsertWithWhereUniqueWithoutPhaseInput[];
548
+ createMany?: Prisma.DocumentationStepCreateManyPhaseInputEnvelope;
549
+ set?: Prisma.DocumentationStepWhereUniqueInput | Prisma.DocumentationStepWhereUniqueInput[];
550
+ disconnect?: Prisma.DocumentationStepWhereUniqueInput | Prisma.DocumentationStepWhereUniqueInput[];
551
+ delete?: Prisma.DocumentationStepWhereUniqueInput | Prisma.DocumentationStepWhereUniqueInput[];
552
+ connect?: Prisma.DocumentationStepWhereUniqueInput | Prisma.DocumentationStepWhereUniqueInput[];
553
+ update?: Prisma.DocumentationStepUpdateWithWhereUniqueWithoutPhaseInput | Prisma.DocumentationStepUpdateWithWhereUniqueWithoutPhaseInput[];
554
+ updateMany?: Prisma.DocumentationStepUpdateManyWithWhereWithoutPhaseInput | Prisma.DocumentationStepUpdateManyWithWhereWithoutPhaseInput[];
555
+ deleteMany?: Prisma.DocumentationStepScalarWhereInput | Prisma.DocumentationStepScalarWhereInput[];
556
+ };
557
+ export type DocumentationStepUncheckedUpdateManyWithoutPhaseNestedInput = {
558
+ create?: Prisma.XOR<Prisma.DocumentationStepCreateWithoutPhaseInput, Prisma.DocumentationStepUncheckedCreateWithoutPhaseInput> | Prisma.DocumentationStepCreateWithoutPhaseInput[] | Prisma.DocumentationStepUncheckedCreateWithoutPhaseInput[];
559
+ connectOrCreate?: Prisma.DocumentationStepCreateOrConnectWithoutPhaseInput | Prisma.DocumentationStepCreateOrConnectWithoutPhaseInput[];
560
+ upsert?: Prisma.DocumentationStepUpsertWithWhereUniqueWithoutPhaseInput | Prisma.DocumentationStepUpsertWithWhereUniqueWithoutPhaseInput[];
561
+ createMany?: Prisma.DocumentationStepCreateManyPhaseInputEnvelope;
562
+ set?: Prisma.DocumentationStepWhereUniqueInput | Prisma.DocumentationStepWhereUniqueInput[];
563
+ disconnect?: Prisma.DocumentationStepWhereUniqueInput | Prisma.DocumentationStepWhereUniqueInput[];
564
+ delete?: Prisma.DocumentationStepWhereUniqueInput | Prisma.DocumentationStepWhereUniqueInput[];
565
+ connect?: Prisma.DocumentationStepWhereUniqueInput | Prisma.DocumentationStepWhereUniqueInput[];
566
+ update?: Prisma.DocumentationStepUpdateWithWhereUniqueWithoutPhaseInput | Prisma.DocumentationStepUpdateWithWhereUniqueWithoutPhaseInput[];
567
+ updateMany?: Prisma.DocumentationStepUpdateManyWithWhereWithoutPhaseInput | Prisma.DocumentationStepUpdateManyWithWhereWithoutPhaseInput[];
568
+ deleteMany?: Prisma.DocumentationStepScalarWhereInput | Prisma.DocumentationStepScalarWhereInput[];
569
+ };
570
+ export type EnumStepStatusFieldUpdateOperationsInput = {
571
+ set?: $Enums.StepStatus;
572
+ };
573
+ export type DocumentationStepCreateNestedOneWithoutRequiredDocumentsInput = {
574
+ create?: Prisma.XOR<Prisma.DocumentationStepCreateWithoutRequiredDocumentsInput, Prisma.DocumentationStepUncheckedCreateWithoutRequiredDocumentsInput>;
575
+ connectOrCreate?: Prisma.DocumentationStepCreateOrConnectWithoutRequiredDocumentsInput;
576
+ connect?: Prisma.DocumentationStepWhereUniqueInput;
577
+ };
578
+ export type DocumentationStepUpdateOneRequiredWithoutRequiredDocumentsNestedInput = {
579
+ create?: Prisma.XOR<Prisma.DocumentationStepCreateWithoutRequiredDocumentsInput, Prisma.DocumentationStepUncheckedCreateWithoutRequiredDocumentsInput>;
580
+ connectOrCreate?: Prisma.DocumentationStepCreateOrConnectWithoutRequiredDocumentsInput;
581
+ upsert?: Prisma.DocumentationStepUpsertWithoutRequiredDocumentsInput;
582
+ connect?: Prisma.DocumentationStepWhereUniqueInput;
583
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DocumentationStepUpdateToOneWithWhereWithoutRequiredDocumentsInput, Prisma.DocumentationStepUpdateWithoutRequiredDocumentsInput>, Prisma.DocumentationStepUncheckedUpdateWithoutRequiredDocumentsInput>;
584
+ };
585
+ export type DocumentationStepCreateNestedOneWithoutApprovalsInput = {
586
+ create?: Prisma.XOR<Prisma.DocumentationStepCreateWithoutApprovalsInput, Prisma.DocumentationStepUncheckedCreateWithoutApprovalsInput>;
587
+ connectOrCreate?: Prisma.DocumentationStepCreateOrConnectWithoutApprovalsInput;
588
+ connect?: Prisma.DocumentationStepWhereUniqueInput;
589
+ };
590
+ export type DocumentationStepUpdateOneRequiredWithoutApprovalsNestedInput = {
591
+ create?: Prisma.XOR<Prisma.DocumentationStepCreateWithoutApprovalsInput, Prisma.DocumentationStepUncheckedCreateWithoutApprovalsInput>;
592
+ connectOrCreate?: Prisma.DocumentationStepCreateOrConnectWithoutApprovalsInput;
593
+ upsert?: Prisma.DocumentationStepUpsertWithoutApprovalsInput;
594
+ connect?: Prisma.DocumentationStepWhereUniqueInput;
595
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DocumentationStepUpdateToOneWithWhereWithoutApprovalsInput, Prisma.DocumentationStepUpdateWithoutApprovalsInput>, Prisma.DocumentationStepUncheckedUpdateWithoutApprovalsInput>;
596
+ };
597
+ export type DocumentationStepCreateWithoutAssigneeInput = {
598
+ id?: string;
599
+ name: string;
600
+ description?: string | null;
601
+ stepType: $Enums.StepType;
602
+ order: number;
603
+ status?: $Enums.StepStatus;
604
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
605
+ dueDate?: Date | string | null;
606
+ completedAt?: Date | string | null;
607
+ createdAt?: Date | string;
608
+ updatedAt?: Date | string;
609
+ phase: Prisma.ContractPhaseCreateNestedOneWithoutStepsInput;
610
+ requiredDocuments?: Prisma.DocumentationStepDocumentCreateNestedManyWithoutStepInput;
611
+ approvals?: Prisma.DocumentationStepApprovalCreateNestedManyWithoutStepInput;
612
+ };
613
+ export type DocumentationStepUncheckedCreateWithoutAssigneeInput = {
614
+ id?: string;
615
+ phaseId: string;
616
+ name: string;
617
+ description?: string | null;
618
+ stepType: $Enums.StepType;
619
+ order: number;
620
+ status?: $Enums.StepStatus;
621
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
622
+ dueDate?: Date | string | null;
623
+ completedAt?: Date | string | null;
624
+ createdAt?: Date | string;
625
+ updatedAt?: Date | string;
626
+ requiredDocuments?: Prisma.DocumentationStepDocumentUncheckedCreateNestedManyWithoutStepInput;
627
+ approvals?: Prisma.DocumentationStepApprovalUncheckedCreateNestedManyWithoutStepInput;
628
+ };
629
+ export type DocumentationStepCreateOrConnectWithoutAssigneeInput = {
630
+ where: Prisma.DocumentationStepWhereUniqueInput;
631
+ create: Prisma.XOR<Prisma.DocumentationStepCreateWithoutAssigneeInput, Prisma.DocumentationStepUncheckedCreateWithoutAssigneeInput>;
632
+ };
633
+ export type DocumentationStepCreateManyAssigneeInputEnvelope = {
634
+ data: Prisma.DocumentationStepCreateManyAssigneeInput | Prisma.DocumentationStepCreateManyAssigneeInput[];
635
+ skipDuplicates?: boolean;
636
+ };
637
+ export type DocumentationStepUpsertWithWhereUniqueWithoutAssigneeInput = {
638
+ where: Prisma.DocumentationStepWhereUniqueInput;
639
+ update: Prisma.XOR<Prisma.DocumentationStepUpdateWithoutAssigneeInput, Prisma.DocumentationStepUncheckedUpdateWithoutAssigneeInput>;
640
+ create: Prisma.XOR<Prisma.DocumentationStepCreateWithoutAssigneeInput, Prisma.DocumentationStepUncheckedCreateWithoutAssigneeInput>;
641
+ };
642
+ export type DocumentationStepUpdateWithWhereUniqueWithoutAssigneeInput = {
643
+ where: Prisma.DocumentationStepWhereUniqueInput;
644
+ data: Prisma.XOR<Prisma.DocumentationStepUpdateWithoutAssigneeInput, Prisma.DocumentationStepUncheckedUpdateWithoutAssigneeInput>;
645
+ };
646
+ export type DocumentationStepUpdateManyWithWhereWithoutAssigneeInput = {
647
+ where: Prisma.DocumentationStepScalarWhereInput;
648
+ data: Prisma.XOR<Prisma.DocumentationStepUpdateManyMutationInput, Prisma.DocumentationStepUncheckedUpdateManyWithoutAssigneeInput>;
649
+ };
650
+ export type DocumentationStepScalarWhereInput = {
651
+ AND?: Prisma.DocumentationStepScalarWhereInput | Prisma.DocumentationStepScalarWhereInput[];
652
+ OR?: Prisma.DocumentationStepScalarWhereInput[];
653
+ NOT?: Prisma.DocumentationStepScalarWhereInput | Prisma.DocumentationStepScalarWhereInput[];
654
+ id?: Prisma.StringFilter<"DocumentationStep"> | string;
655
+ phaseId?: Prisma.StringFilter<"DocumentationStep"> | string;
656
+ name?: Prisma.StringFilter<"DocumentationStep"> | string;
657
+ description?: Prisma.StringNullableFilter<"DocumentationStep"> | string | null;
658
+ stepType?: Prisma.EnumStepTypeFilter<"DocumentationStep"> | $Enums.StepType;
659
+ order?: Prisma.IntFilter<"DocumentationStep"> | number;
660
+ status?: Prisma.EnumStepStatusFilter<"DocumentationStep"> | $Enums.StepStatus;
661
+ metadata?: Prisma.JsonNullableFilter<"DocumentationStep">;
662
+ assigneeId?: Prisma.StringNullableFilter<"DocumentationStep"> | string | null;
663
+ dueDate?: Prisma.DateTimeNullableFilter<"DocumentationStep"> | Date | string | null;
664
+ completedAt?: Prisma.DateTimeNullableFilter<"DocumentationStep"> | Date | string | null;
665
+ createdAt?: Prisma.DateTimeFilter<"DocumentationStep"> | Date | string;
666
+ updatedAt?: Prisma.DateTimeFilter<"DocumentationStep"> | Date | string;
667
+ };
668
+ export type DocumentationStepCreateWithoutPhaseInput = {
669
+ id?: string;
670
+ name: string;
671
+ description?: string | null;
672
+ stepType: $Enums.StepType;
673
+ order: number;
674
+ status?: $Enums.StepStatus;
675
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
676
+ dueDate?: Date | string | null;
677
+ completedAt?: Date | string | null;
678
+ createdAt?: Date | string;
679
+ updatedAt?: Date | string;
680
+ assignee?: Prisma.UserCreateNestedOneWithoutAssignedStepsInput;
681
+ requiredDocuments?: Prisma.DocumentationStepDocumentCreateNestedManyWithoutStepInput;
682
+ approvals?: Prisma.DocumentationStepApprovalCreateNestedManyWithoutStepInput;
683
+ };
684
+ export type DocumentationStepUncheckedCreateWithoutPhaseInput = {
685
+ id?: string;
686
+ name: string;
687
+ description?: string | null;
688
+ stepType: $Enums.StepType;
689
+ order: number;
690
+ status?: $Enums.StepStatus;
691
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
692
+ assigneeId?: string | null;
693
+ dueDate?: Date | string | null;
694
+ completedAt?: Date | string | null;
695
+ createdAt?: Date | string;
696
+ updatedAt?: Date | string;
697
+ requiredDocuments?: Prisma.DocumentationStepDocumentUncheckedCreateNestedManyWithoutStepInput;
698
+ approvals?: Prisma.DocumentationStepApprovalUncheckedCreateNestedManyWithoutStepInput;
699
+ };
700
+ export type DocumentationStepCreateOrConnectWithoutPhaseInput = {
701
+ where: Prisma.DocumentationStepWhereUniqueInput;
702
+ create: Prisma.XOR<Prisma.DocumentationStepCreateWithoutPhaseInput, Prisma.DocumentationStepUncheckedCreateWithoutPhaseInput>;
703
+ };
704
+ export type DocumentationStepCreateManyPhaseInputEnvelope = {
705
+ data: Prisma.DocumentationStepCreateManyPhaseInput | Prisma.DocumentationStepCreateManyPhaseInput[];
706
+ skipDuplicates?: boolean;
707
+ };
708
+ export type DocumentationStepUpsertWithWhereUniqueWithoutPhaseInput = {
709
+ where: Prisma.DocumentationStepWhereUniqueInput;
710
+ update: Prisma.XOR<Prisma.DocumentationStepUpdateWithoutPhaseInput, Prisma.DocumentationStepUncheckedUpdateWithoutPhaseInput>;
711
+ create: Prisma.XOR<Prisma.DocumentationStepCreateWithoutPhaseInput, Prisma.DocumentationStepUncheckedCreateWithoutPhaseInput>;
712
+ };
713
+ export type DocumentationStepUpdateWithWhereUniqueWithoutPhaseInput = {
714
+ where: Prisma.DocumentationStepWhereUniqueInput;
715
+ data: Prisma.XOR<Prisma.DocumentationStepUpdateWithoutPhaseInput, Prisma.DocumentationStepUncheckedUpdateWithoutPhaseInput>;
716
+ };
717
+ export type DocumentationStepUpdateManyWithWhereWithoutPhaseInput = {
718
+ where: Prisma.DocumentationStepScalarWhereInput;
719
+ data: Prisma.XOR<Prisma.DocumentationStepUpdateManyMutationInput, Prisma.DocumentationStepUncheckedUpdateManyWithoutPhaseInput>;
720
+ };
721
+ export type DocumentationStepCreateWithoutRequiredDocumentsInput = {
722
+ id?: string;
723
+ name: string;
724
+ description?: string | null;
725
+ stepType: $Enums.StepType;
726
+ order: number;
727
+ status?: $Enums.StepStatus;
728
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
729
+ dueDate?: Date | string | null;
730
+ completedAt?: Date | string | null;
731
+ createdAt?: Date | string;
732
+ updatedAt?: Date | string;
733
+ phase: Prisma.ContractPhaseCreateNestedOneWithoutStepsInput;
734
+ assignee?: Prisma.UserCreateNestedOneWithoutAssignedStepsInput;
735
+ approvals?: Prisma.DocumentationStepApprovalCreateNestedManyWithoutStepInput;
736
+ };
737
+ export type DocumentationStepUncheckedCreateWithoutRequiredDocumentsInput = {
738
+ id?: string;
739
+ phaseId: string;
740
+ name: string;
741
+ description?: string | null;
742
+ stepType: $Enums.StepType;
743
+ order: number;
744
+ status?: $Enums.StepStatus;
745
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
746
+ assigneeId?: string | null;
747
+ dueDate?: Date | string | null;
748
+ completedAt?: Date | string | null;
749
+ createdAt?: Date | string;
750
+ updatedAt?: Date | string;
751
+ approvals?: Prisma.DocumentationStepApprovalUncheckedCreateNestedManyWithoutStepInput;
752
+ };
753
+ export type DocumentationStepCreateOrConnectWithoutRequiredDocumentsInput = {
754
+ where: Prisma.DocumentationStepWhereUniqueInput;
755
+ create: Prisma.XOR<Prisma.DocumentationStepCreateWithoutRequiredDocumentsInput, Prisma.DocumentationStepUncheckedCreateWithoutRequiredDocumentsInput>;
756
+ };
757
+ export type DocumentationStepUpsertWithoutRequiredDocumentsInput = {
758
+ update: Prisma.XOR<Prisma.DocumentationStepUpdateWithoutRequiredDocumentsInput, Prisma.DocumentationStepUncheckedUpdateWithoutRequiredDocumentsInput>;
759
+ create: Prisma.XOR<Prisma.DocumentationStepCreateWithoutRequiredDocumentsInput, Prisma.DocumentationStepUncheckedCreateWithoutRequiredDocumentsInput>;
760
+ where?: Prisma.DocumentationStepWhereInput;
761
+ };
762
+ export type DocumentationStepUpdateToOneWithWhereWithoutRequiredDocumentsInput = {
763
+ where?: Prisma.DocumentationStepWhereInput;
764
+ data: Prisma.XOR<Prisma.DocumentationStepUpdateWithoutRequiredDocumentsInput, Prisma.DocumentationStepUncheckedUpdateWithoutRequiredDocumentsInput>;
765
+ };
766
+ export type DocumentationStepUpdateWithoutRequiredDocumentsInput = {
767
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
768
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
769
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
770
+ stepType?: Prisma.EnumStepTypeFieldUpdateOperationsInput | $Enums.StepType;
771
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
772
+ status?: Prisma.EnumStepStatusFieldUpdateOperationsInput | $Enums.StepStatus;
773
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
774
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
775
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
776
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
777
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
778
+ phase?: Prisma.ContractPhaseUpdateOneRequiredWithoutStepsNestedInput;
779
+ assignee?: Prisma.UserUpdateOneWithoutAssignedStepsNestedInput;
780
+ approvals?: Prisma.DocumentationStepApprovalUpdateManyWithoutStepNestedInput;
781
+ };
782
+ export type DocumentationStepUncheckedUpdateWithoutRequiredDocumentsInput = {
783
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
784
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
785
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
786
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
787
+ stepType?: Prisma.EnumStepTypeFieldUpdateOperationsInput | $Enums.StepType;
788
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
789
+ status?: Prisma.EnumStepStatusFieldUpdateOperationsInput | $Enums.StepStatus;
790
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
791
+ assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
792
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
793
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
794
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
795
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
796
+ approvals?: Prisma.DocumentationStepApprovalUncheckedUpdateManyWithoutStepNestedInput;
797
+ };
798
+ export type DocumentationStepCreateWithoutApprovalsInput = {
799
+ id?: string;
800
+ name: string;
801
+ description?: string | null;
802
+ stepType: $Enums.StepType;
803
+ order: number;
804
+ status?: $Enums.StepStatus;
805
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
806
+ dueDate?: Date | string | null;
807
+ completedAt?: Date | string | null;
808
+ createdAt?: Date | string;
809
+ updatedAt?: Date | string;
810
+ phase: Prisma.ContractPhaseCreateNestedOneWithoutStepsInput;
811
+ assignee?: Prisma.UserCreateNestedOneWithoutAssignedStepsInput;
812
+ requiredDocuments?: Prisma.DocumentationStepDocumentCreateNestedManyWithoutStepInput;
813
+ };
814
+ export type DocumentationStepUncheckedCreateWithoutApprovalsInput = {
815
+ id?: string;
816
+ phaseId: string;
817
+ name: string;
818
+ description?: string | null;
819
+ stepType: $Enums.StepType;
820
+ order: number;
821
+ status?: $Enums.StepStatus;
822
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
823
+ assigneeId?: string | null;
824
+ dueDate?: Date | string | null;
825
+ completedAt?: Date | string | null;
826
+ createdAt?: Date | string;
827
+ updatedAt?: Date | string;
828
+ requiredDocuments?: Prisma.DocumentationStepDocumentUncheckedCreateNestedManyWithoutStepInput;
829
+ };
830
+ export type DocumentationStepCreateOrConnectWithoutApprovalsInput = {
831
+ where: Prisma.DocumentationStepWhereUniqueInput;
832
+ create: Prisma.XOR<Prisma.DocumentationStepCreateWithoutApprovalsInput, Prisma.DocumentationStepUncheckedCreateWithoutApprovalsInput>;
833
+ };
834
+ export type DocumentationStepUpsertWithoutApprovalsInput = {
835
+ update: Prisma.XOR<Prisma.DocumentationStepUpdateWithoutApprovalsInput, Prisma.DocumentationStepUncheckedUpdateWithoutApprovalsInput>;
836
+ create: Prisma.XOR<Prisma.DocumentationStepCreateWithoutApprovalsInput, Prisma.DocumentationStepUncheckedCreateWithoutApprovalsInput>;
837
+ where?: Prisma.DocumentationStepWhereInput;
838
+ };
839
+ export type DocumentationStepUpdateToOneWithWhereWithoutApprovalsInput = {
840
+ where?: Prisma.DocumentationStepWhereInput;
841
+ data: Prisma.XOR<Prisma.DocumentationStepUpdateWithoutApprovalsInput, Prisma.DocumentationStepUncheckedUpdateWithoutApprovalsInput>;
842
+ };
843
+ export type DocumentationStepUpdateWithoutApprovalsInput = {
844
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
845
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
846
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
847
+ stepType?: Prisma.EnumStepTypeFieldUpdateOperationsInput | $Enums.StepType;
848
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
849
+ status?: Prisma.EnumStepStatusFieldUpdateOperationsInput | $Enums.StepStatus;
850
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
851
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
852
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
853
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
854
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
855
+ phase?: Prisma.ContractPhaseUpdateOneRequiredWithoutStepsNestedInput;
856
+ assignee?: Prisma.UserUpdateOneWithoutAssignedStepsNestedInput;
857
+ requiredDocuments?: Prisma.DocumentationStepDocumentUpdateManyWithoutStepNestedInput;
858
+ };
859
+ export type DocumentationStepUncheckedUpdateWithoutApprovalsInput = {
860
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
861
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
862
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
863
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
864
+ stepType?: Prisma.EnumStepTypeFieldUpdateOperationsInput | $Enums.StepType;
865
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
866
+ status?: Prisma.EnumStepStatusFieldUpdateOperationsInput | $Enums.StepStatus;
867
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
868
+ assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
869
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
870
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
871
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
872
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
873
+ requiredDocuments?: Prisma.DocumentationStepDocumentUncheckedUpdateManyWithoutStepNestedInput;
874
+ };
875
+ export type DocumentationStepCreateManyAssigneeInput = {
876
+ id?: string;
877
+ phaseId: string;
878
+ name: string;
879
+ description?: string | null;
880
+ stepType: $Enums.StepType;
881
+ order: number;
882
+ status?: $Enums.StepStatus;
883
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
884
+ dueDate?: Date | string | null;
885
+ completedAt?: Date | string | null;
886
+ createdAt?: Date | string;
887
+ updatedAt?: Date | string;
888
+ };
889
+ export type DocumentationStepUpdateWithoutAssigneeInput = {
890
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
891
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
892
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
893
+ stepType?: Prisma.EnumStepTypeFieldUpdateOperationsInput | $Enums.StepType;
894
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
895
+ status?: Prisma.EnumStepStatusFieldUpdateOperationsInput | $Enums.StepStatus;
896
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
897
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
898
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
899
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
900
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
901
+ phase?: Prisma.ContractPhaseUpdateOneRequiredWithoutStepsNestedInput;
902
+ requiredDocuments?: Prisma.DocumentationStepDocumentUpdateManyWithoutStepNestedInput;
903
+ approvals?: Prisma.DocumentationStepApprovalUpdateManyWithoutStepNestedInput;
904
+ };
905
+ export type DocumentationStepUncheckedUpdateWithoutAssigneeInput = {
906
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
907
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
908
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
909
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
910
+ stepType?: Prisma.EnumStepTypeFieldUpdateOperationsInput | $Enums.StepType;
911
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
912
+ status?: Prisma.EnumStepStatusFieldUpdateOperationsInput | $Enums.StepStatus;
913
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
914
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
915
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
916
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
917
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
918
+ requiredDocuments?: Prisma.DocumentationStepDocumentUncheckedUpdateManyWithoutStepNestedInput;
919
+ approvals?: Prisma.DocumentationStepApprovalUncheckedUpdateManyWithoutStepNestedInput;
920
+ };
921
+ export type DocumentationStepUncheckedUpdateManyWithoutAssigneeInput = {
922
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
923
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
924
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
925
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
926
+ stepType?: Prisma.EnumStepTypeFieldUpdateOperationsInput | $Enums.StepType;
927
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
928
+ status?: Prisma.EnumStepStatusFieldUpdateOperationsInput | $Enums.StepStatus;
929
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
930
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
931
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
932
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
933
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
934
+ };
935
+ export type DocumentationStepCreateManyPhaseInput = {
936
+ id?: string;
937
+ name: string;
938
+ description?: string | null;
939
+ stepType: $Enums.StepType;
940
+ order: number;
941
+ status?: $Enums.StepStatus;
942
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
943
+ assigneeId?: string | null;
944
+ dueDate?: Date | string | null;
945
+ completedAt?: Date | string | null;
946
+ createdAt?: Date | string;
947
+ updatedAt?: Date | string;
948
+ };
949
+ export type DocumentationStepUpdateWithoutPhaseInput = {
950
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
951
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
952
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
953
+ stepType?: Prisma.EnumStepTypeFieldUpdateOperationsInput | $Enums.StepType;
954
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
955
+ status?: Prisma.EnumStepStatusFieldUpdateOperationsInput | $Enums.StepStatus;
956
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
957
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
958
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
959
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
960
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
961
+ assignee?: Prisma.UserUpdateOneWithoutAssignedStepsNestedInput;
962
+ requiredDocuments?: Prisma.DocumentationStepDocumentUpdateManyWithoutStepNestedInput;
963
+ approvals?: Prisma.DocumentationStepApprovalUpdateManyWithoutStepNestedInput;
964
+ };
965
+ export type DocumentationStepUncheckedUpdateWithoutPhaseInput = {
966
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
967
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
968
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
969
+ stepType?: Prisma.EnumStepTypeFieldUpdateOperationsInput | $Enums.StepType;
970
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
971
+ status?: Prisma.EnumStepStatusFieldUpdateOperationsInput | $Enums.StepStatus;
972
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
973
+ assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
974
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
975
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
976
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
977
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
978
+ requiredDocuments?: Prisma.DocumentationStepDocumentUncheckedUpdateManyWithoutStepNestedInput;
979
+ approvals?: Prisma.DocumentationStepApprovalUncheckedUpdateManyWithoutStepNestedInput;
980
+ };
981
+ export type DocumentationStepUncheckedUpdateManyWithoutPhaseInput = {
982
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
983
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
984
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
985
+ stepType?: Prisma.EnumStepTypeFieldUpdateOperationsInput | $Enums.StepType;
986
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
987
+ status?: Prisma.EnumStepStatusFieldUpdateOperationsInput | $Enums.StepStatus;
988
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
989
+ assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
990
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
991
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
992
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
993
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
994
+ };
995
+ /**
996
+ * Count Type DocumentationStepCountOutputType
997
+ */
998
+ export type DocumentationStepCountOutputType = {
999
+ requiredDocuments: number;
1000
+ approvals: number;
1001
+ };
1002
+ export type DocumentationStepCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1003
+ requiredDocuments?: boolean | DocumentationStepCountOutputTypeCountRequiredDocumentsArgs;
1004
+ approvals?: boolean | DocumentationStepCountOutputTypeCountApprovalsArgs;
1005
+ };
1006
+ /**
1007
+ * DocumentationStepCountOutputType without action
1008
+ */
1009
+ export type DocumentationStepCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1010
+ /**
1011
+ * Select specific fields to fetch from the DocumentationStepCountOutputType
1012
+ */
1013
+ select?: Prisma.DocumentationStepCountOutputTypeSelect<ExtArgs> | null;
1014
+ };
1015
+ /**
1016
+ * DocumentationStepCountOutputType without action
1017
+ */
1018
+ export type DocumentationStepCountOutputTypeCountRequiredDocumentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1019
+ where?: Prisma.DocumentationStepDocumentWhereInput;
1020
+ };
1021
+ /**
1022
+ * DocumentationStepCountOutputType without action
1023
+ */
1024
+ export type DocumentationStepCountOutputTypeCountApprovalsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1025
+ where?: Prisma.DocumentationStepApprovalWhereInput;
1026
+ };
1027
+ export type DocumentationStepSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1028
+ id?: boolean;
1029
+ phaseId?: boolean;
1030
+ name?: boolean;
1031
+ description?: boolean;
1032
+ stepType?: boolean;
1033
+ order?: boolean;
1034
+ status?: boolean;
1035
+ metadata?: boolean;
1036
+ assigneeId?: boolean;
1037
+ dueDate?: boolean;
1038
+ completedAt?: boolean;
1039
+ createdAt?: boolean;
1040
+ updatedAt?: boolean;
1041
+ phase?: boolean | Prisma.ContractPhaseDefaultArgs<ExtArgs>;
1042
+ assignee?: boolean | Prisma.DocumentationStep$assigneeArgs<ExtArgs>;
1043
+ requiredDocuments?: boolean | Prisma.DocumentationStep$requiredDocumentsArgs<ExtArgs>;
1044
+ approvals?: boolean | Prisma.DocumentationStep$approvalsArgs<ExtArgs>;
1045
+ _count?: boolean | Prisma.DocumentationStepCountOutputTypeDefaultArgs<ExtArgs>;
1046
+ }, ExtArgs["result"]["documentationStep"]>;
1047
+ export type DocumentationStepSelectScalar = {
1048
+ id?: boolean;
1049
+ phaseId?: boolean;
1050
+ name?: boolean;
1051
+ description?: boolean;
1052
+ stepType?: boolean;
1053
+ order?: boolean;
1054
+ status?: boolean;
1055
+ metadata?: boolean;
1056
+ assigneeId?: boolean;
1057
+ dueDate?: boolean;
1058
+ completedAt?: boolean;
1059
+ createdAt?: boolean;
1060
+ updatedAt?: boolean;
1061
+ };
1062
+ export type DocumentationStepOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "phaseId" | "name" | "description" | "stepType" | "order" | "status" | "metadata" | "assigneeId" | "dueDate" | "completedAt" | "createdAt" | "updatedAt", ExtArgs["result"]["documentationStep"]>;
1063
+ export type DocumentationStepInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1064
+ phase?: boolean | Prisma.ContractPhaseDefaultArgs<ExtArgs>;
1065
+ assignee?: boolean | Prisma.DocumentationStep$assigneeArgs<ExtArgs>;
1066
+ requiredDocuments?: boolean | Prisma.DocumentationStep$requiredDocumentsArgs<ExtArgs>;
1067
+ approvals?: boolean | Prisma.DocumentationStep$approvalsArgs<ExtArgs>;
1068
+ _count?: boolean | Prisma.DocumentationStepCountOutputTypeDefaultArgs<ExtArgs>;
1069
+ };
1070
+ export type $DocumentationStepPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1071
+ name: "DocumentationStep";
1072
+ objects: {
1073
+ phase: Prisma.$ContractPhasePayload<ExtArgs>;
1074
+ assignee: Prisma.$UserPayload<ExtArgs> | null;
1075
+ requiredDocuments: Prisma.$DocumentationStepDocumentPayload<ExtArgs>[];
1076
+ approvals: Prisma.$DocumentationStepApprovalPayload<ExtArgs>[];
1077
+ };
1078
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1079
+ id: string;
1080
+ phaseId: string;
1081
+ name: string;
1082
+ description: string | null;
1083
+ stepType: $Enums.StepType;
1084
+ order: number;
1085
+ status: $Enums.StepStatus;
1086
+ metadata: runtime.JsonValue | null;
1087
+ assigneeId: string | null;
1088
+ dueDate: Date | null;
1089
+ completedAt: Date | null;
1090
+ createdAt: Date;
1091
+ updatedAt: Date;
1092
+ }, ExtArgs["result"]["documentationStep"]>;
1093
+ composites: {};
1094
+ };
1095
+ export type DocumentationStepGetPayload<S extends boolean | null | undefined | DocumentationStepDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$DocumentationStepPayload, S>;
1096
+ export type DocumentationStepCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<DocumentationStepFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1097
+ select?: DocumentationStepCountAggregateInputType | true;
1098
+ };
1099
+ export interface DocumentationStepDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1100
+ [K: symbol]: {
1101
+ types: Prisma.TypeMap<ExtArgs>['model']['DocumentationStep'];
1102
+ meta: {
1103
+ name: 'DocumentationStep';
1104
+ };
1105
+ };
1106
+ /**
1107
+ * Find zero or one DocumentationStep that matches the filter.
1108
+ * @param {DocumentationStepFindUniqueArgs} args - Arguments to find a DocumentationStep
1109
+ * @example
1110
+ * // Get one DocumentationStep
1111
+ * const documentationStep = await prisma.documentationStep.findUnique({
1112
+ * where: {
1113
+ * // ... provide filter here
1114
+ * }
1115
+ * })
1116
+ */
1117
+ findUnique<T extends DocumentationStepFindUniqueArgs>(args: Prisma.SelectSubset<T, DocumentationStepFindUniqueArgs<ExtArgs>>): Prisma.Prisma__DocumentationStepClient<runtime.Types.Result.GetResult<Prisma.$DocumentationStepPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1118
+ /**
1119
+ * Find one DocumentationStep that matches the filter or throw an error with `error.code='P2025'`
1120
+ * if no matches were found.
1121
+ * @param {DocumentationStepFindUniqueOrThrowArgs} args - Arguments to find a DocumentationStep
1122
+ * @example
1123
+ * // Get one DocumentationStep
1124
+ * const documentationStep = await prisma.documentationStep.findUniqueOrThrow({
1125
+ * where: {
1126
+ * // ... provide filter here
1127
+ * }
1128
+ * })
1129
+ */
1130
+ findUniqueOrThrow<T extends DocumentationStepFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, DocumentationStepFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__DocumentationStepClient<runtime.Types.Result.GetResult<Prisma.$DocumentationStepPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1131
+ /**
1132
+ * Find the first DocumentationStep that matches the filter.
1133
+ * Note, that providing `undefined` is treated as the value not being there.
1134
+ * Read more here: https://pris.ly/d/null-undefined
1135
+ * @param {DocumentationStepFindFirstArgs} args - Arguments to find a DocumentationStep
1136
+ * @example
1137
+ * // Get one DocumentationStep
1138
+ * const documentationStep = await prisma.documentationStep.findFirst({
1139
+ * where: {
1140
+ * // ... provide filter here
1141
+ * }
1142
+ * })
1143
+ */
1144
+ findFirst<T extends DocumentationStepFindFirstArgs>(args?: Prisma.SelectSubset<T, DocumentationStepFindFirstArgs<ExtArgs>>): Prisma.Prisma__DocumentationStepClient<runtime.Types.Result.GetResult<Prisma.$DocumentationStepPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1145
+ /**
1146
+ * Find the first DocumentationStep that matches the filter or
1147
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1148
+ * Note, that providing `undefined` is treated as the value not being there.
1149
+ * Read more here: https://pris.ly/d/null-undefined
1150
+ * @param {DocumentationStepFindFirstOrThrowArgs} args - Arguments to find a DocumentationStep
1151
+ * @example
1152
+ * // Get one DocumentationStep
1153
+ * const documentationStep = await prisma.documentationStep.findFirstOrThrow({
1154
+ * where: {
1155
+ * // ... provide filter here
1156
+ * }
1157
+ * })
1158
+ */
1159
+ findFirstOrThrow<T extends DocumentationStepFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, DocumentationStepFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__DocumentationStepClient<runtime.Types.Result.GetResult<Prisma.$DocumentationStepPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1160
+ /**
1161
+ * Find zero or more DocumentationSteps that matches the filter.
1162
+ * Note, that providing `undefined` is treated as the value not being there.
1163
+ * Read more here: https://pris.ly/d/null-undefined
1164
+ * @param {DocumentationStepFindManyArgs} args - Arguments to filter and select certain fields only.
1165
+ * @example
1166
+ * // Get all DocumentationSteps
1167
+ * const documentationSteps = await prisma.documentationStep.findMany()
1168
+ *
1169
+ * // Get first 10 DocumentationSteps
1170
+ * const documentationSteps = await prisma.documentationStep.findMany({ take: 10 })
1171
+ *
1172
+ * // Only select the `id`
1173
+ * const documentationStepWithIdOnly = await prisma.documentationStep.findMany({ select: { id: true } })
1174
+ *
1175
+ */
1176
+ findMany<T extends DocumentationStepFindManyArgs>(args?: Prisma.SelectSubset<T, DocumentationStepFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DocumentationStepPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1177
+ /**
1178
+ * Create a DocumentationStep.
1179
+ * @param {DocumentationStepCreateArgs} args - Arguments to create a DocumentationStep.
1180
+ * @example
1181
+ * // Create one DocumentationStep
1182
+ * const DocumentationStep = await prisma.documentationStep.create({
1183
+ * data: {
1184
+ * // ... data to create a DocumentationStep
1185
+ * }
1186
+ * })
1187
+ *
1188
+ */
1189
+ create<T extends DocumentationStepCreateArgs>(args: Prisma.SelectSubset<T, DocumentationStepCreateArgs<ExtArgs>>): Prisma.Prisma__DocumentationStepClient<runtime.Types.Result.GetResult<Prisma.$DocumentationStepPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1190
+ /**
1191
+ * Create many DocumentationSteps.
1192
+ * @param {DocumentationStepCreateManyArgs} args - Arguments to create many DocumentationSteps.
1193
+ * @example
1194
+ * // Create many DocumentationSteps
1195
+ * const documentationStep = await prisma.documentationStep.createMany({
1196
+ * data: [
1197
+ * // ... provide data here
1198
+ * ]
1199
+ * })
1200
+ *
1201
+ */
1202
+ createMany<T extends DocumentationStepCreateManyArgs>(args?: Prisma.SelectSubset<T, DocumentationStepCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1203
+ /**
1204
+ * Delete a DocumentationStep.
1205
+ * @param {DocumentationStepDeleteArgs} args - Arguments to delete one DocumentationStep.
1206
+ * @example
1207
+ * // Delete one DocumentationStep
1208
+ * const DocumentationStep = await prisma.documentationStep.delete({
1209
+ * where: {
1210
+ * // ... filter to delete one DocumentationStep
1211
+ * }
1212
+ * })
1213
+ *
1214
+ */
1215
+ delete<T extends DocumentationStepDeleteArgs>(args: Prisma.SelectSubset<T, DocumentationStepDeleteArgs<ExtArgs>>): Prisma.Prisma__DocumentationStepClient<runtime.Types.Result.GetResult<Prisma.$DocumentationStepPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1216
+ /**
1217
+ * Update one DocumentationStep.
1218
+ * @param {DocumentationStepUpdateArgs} args - Arguments to update one DocumentationStep.
1219
+ * @example
1220
+ * // Update one DocumentationStep
1221
+ * const documentationStep = await prisma.documentationStep.update({
1222
+ * where: {
1223
+ * // ... provide filter here
1224
+ * },
1225
+ * data: {
1226
+ * // ... provide data here
1227
+ * }
1228
+ * })
1229
+ *
1230
+ */
1231
+ update<T extends DocumentationStepUpdateArgs>(args: Prisma.SelectSubset<T, DocumentationStepUpdateArgs<ExtArgs>>): Prisma.Prisma__DocumentationStepClient<runtime.Types.Result.GetResult<Prisma.$DocumentationStepPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1232
+ /**
1233
+ * Delete zero or more DocumentationSteps.
1234
+ * @param {DocumentationStepDeleteManyArgs} args - Arguments to filter DocumentationSteps to delete.
1235
+ * @example
1236
+ * // Delete a few DocumentationSteps
1237
+ * const { count } = await prisma.documentationStep.deleteMany({
1238
+ * where: {
1239
+ * // ... provide filter here
1240
+ * }
1241
+ * })
1242
+ *
1243
+ */
1244
+ deleteMany<T extends DocumentationStepDeleteManyArgs>(args?: Prisma.SelectSubset<T, DocumentationStepDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1245
+ /**
1246
+ * Update zero or more DocumentationSteps.
1247
+ * Note, that providing `undefined` is treated as the value not being there.
1248
+ * Read more here: https://pris.ly/d/null-undefined
1249
+ * @param {DocumentationStepUpdateManyArgs} args - Arguments to update one or more rows.
1250
+ * @example
1251
+ * // Update many DocumentationSteps
1252
+ * const documentationStep = await prisma.documentationStep.updateMany({
1253
+ * where: {
1254
+ * // ... provide filter here
1255
+ * },
1256
+ * data: {
1257
+ * // ... provide data here
1258
+ * }
1259
+ * })
1260
+ *
1261
+ */
1262
+ updateMany<T extends DocumentationStepUpdateManyArgs>(args: Prisma.SelectSubset<T, DocumentationStepUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1263
+ /**
1264
+ * Create or update one DocumentationStep.
1265
+ * @param {DocumentationStepUpsertArgs} args - Arguments to update or create a DocumentationStep.
1266
+ * @example
1267
+ * // Update or create a DocumentationStep
1268
+ * const documentationStep = await prisma.documentationStep.upsert({
1269
+ * create: {
1270
+ * // ... data to create a DocumentationStep
1271
+ * },
1272
+ * update: {
1273
+ * // ... in case it already exists, update
1274
+ * },
1275
+ * where: {
1276
+ * // ... the filter for the DocumentationStep we want to update
1277
+ * }
1278
+ * })
1279
+ */
1280
+ upsert<T extends DocumentationStepUpsertArgs>(args: Prisma.SelectSubset<T, DocumentationStepUpsertArgs<ExtArgs>>): Prisma.Prisma__DocumentationStepClient<runtime.Types.Result.GetResult<Prisma.$DocumentationStepPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1281
+ /**
1282
+ * Count the number of DocumentationSteps.
1283
+ * Note, that providing `undefined` is treated as the value not being there.
1284
+ * Read more here: https://pris.ly/d/null-undefined
1285
+ * @param {DocumentationStepCountArgs} args - Arguments to filter DocumentationSteps to count.
1286
+ * @example
1287
+ * // Count the number of DocumentationSteps
1288
+ * const count = await prisma.documentationStep.count({
1289
+ * where: {
1290
+ * // ... the filter for the DocumentationSteps we want to count
1291
+ * }
1292
+ * })
1293
+ **/
1294
+ count<T extends DocumentationStepCountArgs>(args?: Prisma.Subset<T, DocumentationStepCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], DocumentationStepCountAggregateOutputType> : number>;
1295
+ /**
1296
+ * Allows you to perform aggregations operations on a DocumentationStep.
1297
+ * Note, that providing `undefined` is treated as the value not being there.
1298
+ * Read more here: https://pris.ly/d/null-undefined
1299
+ * @param {DocumentationStepAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1300
+ * @example
1301
+ * // Ordered by age ascending
1302
+ * // Where email contains prisma.io
1303
+ * // Limited to the 10 users
1304
+ * const aggregations = await prisma.user.aggregate({
1305
+ * _avg: {
1306
+ * age: true,
1307
+ * },
1308
+ * where: {
1309
+ * email: {
1310
+ * contains: "prisma.io",
1311
+ * },
1312
+ * },
1313
+ * orderBy: {
1314
+ * age: "asc",
1315
+ * },
1316
+ * take: 10,
1317
+ * })
1318
+ **/
1319
+ aggregate<T extends DocumentationStepAggregateArgs>(args: Prisma.Subset<T, DocumentationStepAggregateArgs>): Prisma.PrismaPromise<GetDocumentationStepAggregateType<T>>;
1320
+ /**
1321
+ * Group by DocumentationStep.
1322
+ * Note, that providing `undefined` is treated as the value not being there.
1323
+ * Read more here: https://pris.ly/d/null-undefined
1324
+ * @param {DocumentationStepGroupByArgs} args - Group by arguments.
1325
+ * @example
1326
+ * // Group by city, order by createdAt, get count
1327
+ * const result = await prisma.user.groupBy({
1328
+ * by: ['city', 'createdAt'],
1329
+ * orderBy: {
1330
+ * createdAt: true
1331
+ * },
1332
+ * _count: {
1333
+ * _all: true
1334
+ * },
1335
+ * })
1336
+ *
1337
+ **/
1338
+ groupBy<T extends DocumentationStepGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1339
+ orderBy: DocumentationStepGroupByArgs['orderBy'];
1340
+ } : {
1341
+ orderBy?: DocumentationStepGroupByArgs['orderBy'];
1342
+ }, 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 ? {
1343
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1344
+ Error,
1345
+ 'Field ',
1346
+ P,
1347
+ ` in "having" needs to be provided in "by"`
1348
+ ];
1349
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1350
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1351
+ }[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 ? {} : {
1352
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1353
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1354
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1355
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, DocumentationStepGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDocumentationStepGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1356
+ /**
1357
+ * Fields of the DocumentationStep model
1358
+ */
1359
+ readonly fields: DocumentationStepFieldRefs;
1360
+ }
1361
+ /**
1362
+ * The delegate class that acts as a "Promise-like" for DocumentationStep.
1363
+ * Why is this prefixed with `Prisma__`?
1364
+ * Because we want to prevent naming conflicts as mentioned in
1365
+ * https://github.com/prisma/prisma-client-js/issues/707
1366
+ */
1367
+ export interface Prisma__DocumentationStepClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1368
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1369
+ 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>;
1370
+ assignee<T extends Prisma.DocumentationStep$assigneeArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentationStep$assigneeArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1371
+ requiredDocuments<T extends Prisma.DocumentationStep$requiredDocumentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentationStep$requiredDocumentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DocumentationStepDocumentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1372
+ approvals<T extends Prisma.DocumentationStep$approvalsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentationStep$approvalsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DocumentationStepApprovalPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1373
+ /**
1374
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1375
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1376
+ * @param onrejected The callback to execute when the Promise is rejected.
1377
+ * @returns A Promise for the completion of which ever callback is executed.
1378
+ */
1379
+ 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>;
1380
+ /**
1381
+ * Attaches a callback for only the rejection of the Promise.
1382
+ * @param onrejected The callback to execute when the Promise is rejected.
1383
+ * @returns A Promise for the completion of the callback.
1384
+ */
1385
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1386
+ /**
1387
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1388
+ * resolved value cannot be modified from the callback.
1389
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1390
+ * @returns A Promise for the completion of the callback.
1391
+ */
1392
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1393
+ }
1394
+ /**
1395
+ * Fields of the DocumentationStep model
1396
+ */
1397
+ export interface DocumentationStepFieldRefs {
1398
+ readonly id: Prisma.FieldRef<"DocumentationStep", 'String'>;
1399
+ readonly phaseId: Prisma.FieldRef<"DocumentationStep", 'String'>;
1400
+ readonly name: Prisma.FieldRef<"DocumentationStep", 'String'>;
1401
+ readonly description: Prisma.FieldRef<"DocumentationStep", 'String'>;
1402
+ readonly stepType: Prisma.FieldRef<"DocumentationStep", 'StepType'>;
1403
+ readonly order: Prisma.FieldRef<"DocumentationStep", 'Int'>;
1404
+ readonly status: Prisma.FieldRef<"DocumentationStep", 'StepStatus'>;
1405
+ readonly metadata: Prisma.FieldRef<"DocumentationStep", 'Json'>;
1406
+ readonly assigneeId: Prisma.FieldRef<"DocumentationStep", 'String'>;
1407
+ readonly dueDate: Prisma.FieldRef<"DocumentationStep", 'DateTime'>;
1408
+ readonly completedAt: Prisma.FieldRef<"DocumentationStep", 'DateTime'>;
1409
+ readonly createdAt: Prisma.FieldRef<"DocumentationStep", 'DateTime'>;
1410
+ readonly updatedAt: Prisma.FieldRef<"DocumentationStep", 'DateTime'>;
1411
+ }
1412
+ /**
1413
+ * DocumentationStep findUnique
1414
+ */
1415
+ export type DocumentationStepFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1416
+ /**
1417
+ * Select specific fields to fetch from the DocumentationStep
1418
+ */
1419
+ select?: Prisma.DocumentationStepSelect<ExtArgs> | null;
1420
+ /**
1421
+ * Omit specific fields from the DocumentationStep
1422
+ */
1423
+ omit?: Prisma.DocumentationStepOmit<ExtArgs> | null;
1424
+ /**
1425
+ * Choose, which related nodes to fetch as well
1426
+ */
1427
+ include?: Prisma.DocumentationStepInclude<ExtArgs> | null;
1428
+ /**
1429
+ * Filter, which DocumentationStep to fetch.
1430
+ */
1431
+ where: Prisma.DocumentationStepWhereUniqueInput;
1432
+ };
1433
+ /**
1434
+ * DocumentationStep findUniqueOrThrow
1435
+ */
1436
+ export type DocumentationStepFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1437
+ /**
1438
+ * Select specific fields to fetch from the DocumentationStep
1439
+ */
1440
+ select?: Prisma.DocumentationStepSelect<ExtArgs> | null;
1441
+ /**
1442
+ * Omit specific fields from the DocumentationStep
1443
+ */
1444
+ omit?: Prisma.DocumentationStepOmit<ExtArgs> | null;
1445
+ /**
1446
+ * Choose, which related nodes to fetch as well
1447
+ */
1448
+ include?: Prisma.DocumentationStepInclude<ExtArgs> | null;
1449
+ /**
1450
+ * Filter, which DocumentationStep to fetch.
1451
+ */
1452
+ where: Prisma.DocumentationStepWhereUniqueInput;
1453
+ };
1454
+ /**
1455
+ * DocumentationStep findFirst
1456
+ */
1457
+ export type DocumentationStepFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1458
+ /**
1459
+ * Select specific fields to fetch from the DocumentationStep
1460
+ */
1461
+ select?: Prisma.DocumentationStepSelect<ExtArgs> | null;
1462
+ /**
1463
+ * Omit specific fields from the DocumentationStep
1464
+ */
1465
+ omit?: Prisma.DocumentationStepOmit<ExtArgs> | null;
1466
+ /**
1467
+ * Choose, which related nodes to fetch as well
1468
+ */
1469
+ include?: Prisma.DocumentationStepInclude<ExtArgs> | null;
1470
+ /**
1471
+ * Filter, which DocumentationStep to fetch.
1472
+ */
1473
+ where?: Prisma.DocumentationStepWhereInput;
1474
+ /**
1475
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1476
+ *
1477
+ * Determine the order of DocumentationSteps to fetch.
1478
+ */
1479
+ orderBy?: Prisma.DocumentationStepOrderByWithRelationInput | Prisma.DocumentationStepOrderByWithRelationInput[];
1480
+ /**
1481
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1482
+ *
1483
+ * Sets the position for searching for DocumentationSteps.
1484
+ */
1485
+ cursor?: Prisma.DocumentationStepWhereUniqueInput;
1486
+ /**
1487
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1488
+ *
1489
+ * Take `±n` DocumentationSteps from the position of the cursor.
1490
+ */
1491
+ take?: number;
1492
+ /**
1493
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1494
+ *
1495
+ * Skip the first `n` DocumentationSteps.
1496
+ */
1497
+ skip?: number;
1498
+ /**
1499
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1500
+ *
1501
+ * Filter by unique combinations of DocumentationSteps.
1502
+ */
1503
+ distinct?: Prisma.DocumentationStepScalarFieldEnum | Prisma.DocumentationStepScalarFieldEnum[];
1504
+ };
1505
+ /**
1506
+ * DocumentationStep findFirstOrThrow
1507
+ */
1508
+ export type DocumentationStepFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1509
+ /**
1510
+ * Select specific fields to fetch from the DocumentationStep
1511
+ */
1512
+ select?: Prisma.DocumentationStepSelect<ExtArgs> | null;
1513
+ /**
1514
+ * Omit specific fields from the DocumentationStep
1515
+ */
1516
+ omit?: Prisma.DocumentationStepOmit<ExtArgs> | null;
1517
+ /**
1518
+ * Choose, which related nodes to fetch as well
1519
+ */
1520
+ include?: Prisma.DocumentationStepInclude<ExtArgs> | null;
1521
+ /**
1522
+ * Filter, which DocumentationStep to fetch.
1523
+ */
1524
+ where?: Prisma.DocumentationStepWhereInput;
1525
+ /**
1526
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1527
+ *
1528
+ * Determine the order of DocumentationSteps to fetch.
1529
+ */
1530
+ orderBy?: Prisma.DocumentationStepOrderByWithRelationInput | Prisma.DocumentationStepOrderByWithRelationInput[];
1531
+ /**
1532
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1533
+ *
1534
+ * Sets the position for searching for DocumentationSteps.
1535
+ */
1536
+ cursor?: Prisma.DocumentationStepWhereUniqueInput;
1537
+ /**
1538
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1539
+ *
1540
+ * Take `±n` DocumentationSteps from the position of the cursor.
1541
+ */
1542
+ take?: number;
1543
+ /**
1544
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1545
+ *
1546
+ * Skip the first `n` DocumentationSteps.
1547
+ */
1548
+ skip?: number;
1549
+ /**
1550
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1551
+ *
1552
+ * Filter by unique combinations of DocumentationSteps.
1553
+ */
1554
+ distinct?: Prisma.DocumentationStepScalarFieldEnum | Prisma.DocumentationStepScalarFieldEnum[];
1555
+ };
1556
+ /**
1557
+ * DocumentationStep findMany
1558
+ */
1559
+ export type DocumentationStepFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1560
+ /**
1561
+ * Select specific fields to fetch from the DocumentationStep
1562
+ */
1563
+ select?: Prisma.DocumentationStepSelect<ExtArgs> | null;
1564
+ /**
1565
+ * Omit specific fields from the DocumentationStep
1566
+ */
1567
+ omit?: Prisma.DocumentationStepOmit<ExtArgs> | null;
1568
+ /**
1569
+ * Choose, which related nodes to fetch as well
1570
+ */
1571
+ include?: Prisma.DocumentationStepInclude<ExtArgs> | null;
1572
+ /**
1573
+ * Filter, which DocumentationSteps to fetch.
1574
+ */
1575
+ where?: Prisma.DocumentationStepWhereInput;
1576
+ /**
1577
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1578
+ *
1579
+ * Determine the order of DocumentationSteps to fetch.
1580
+ */
1581
+ orderBy?: Prisma.DocumentationStepOrderByWithRelationInput | Prisma.DocumentationStepOrderByWithRelationInput[];
1582
+ /**
1583
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1584
+ *
1585
+ * Sets the position for listing DocumentationSteps.
1586
+ */
1587
+ cursor?: Prisma.DocumentationStepWhereUniqueInput;
1588
+ /**
1589
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1590
+ *
1591
+ * Take `±n` DocumentationSteps from the position of the cursor.
1592
+ */
1593
+ take?: number;
1594
+ /**
1595
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1596
+ *
1597
+ * Skip the first `n` DocumentationSteps.
1598
+ */
1599
+ skip?: number;
1600
+ distinct?: Prisma.DocumentationStepScalarFieldEnum | Prisma.DocumentationStepScalarFieldEnum[];
1601
+ };
1602
+ /**
1603
+ * DocumentationStep create
1604
+ */
1605
+ export type DocumentationStepCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1606
+ /**
1607
+ * Select specific fields to fetch from the DocumentationStep
1608
+ */
1609
+ select?: Prisma.DocumentationStepSelect<ExtArgs> | null;
1610
+ /**
1611
+ * Omit specific fields from the DocumentationStep
1612
+ */
1613
+ omit?: Prisma.DocumentationStepOmit<ExtArgs> | null;
1614
+ /**
1615
+ * Choose, which related nodes to fetch as well
1616
+ */
1617
+ include?: Prisma.DocumentationStepInclude<ExtArgs> | null;
1618
+ /**
1619
+ * The data needed to create a DocumentationStep.
1620
+ */
1621
+ data: Prisma.XOR<Prisma.DocumentationStepCreateInput, Prisma.DocumentationStepUncheckedCreateInput>;
1622
+ };
1623
+ /**
1624
+ * DocumentationStep createMany
1625
+ */
1626
+ export type DocumentationStepCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1627
+ /**
1628
+ * The data used to create many DocumentationSteps.
1629
+ */
1630
+ data: Prisma.DocumentationStepCreateManyInput | Prisma.DocumentationStepCreateManyInput[];
1631
+ skipDuplicates?: boolean;
1632
+ };
1633
+ /**
1634
+ * DocumentationStep update
1635
+ */
1636
+ export type DocumentationStepUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1637
+ /**
1638
+ * Select specific fields to fetch from the DocumentationStep
1639
+ */
1640
+ select?: Prisma.DocumentationStepSelect<ExtArgs> | null;
1641
+ /**
1642
+ * Omit specific fields from the DocumentationStep
1643
+ */
1644
+ omit?: Prisma.DocumentationStepOmit<ExtArgs> | null;
1645
+ /**
1646
+ * Choose, which related nodes to fetch as well
1647
+ */
1648
+ include?: Prisma.DocumentationStepInclude<ExtArgs> | null;
1649
+ /**
1650
+ * The data needed to update a DocumentationStep.
1651
+ */
1652
+ data: Prisma.XOR<Prisma.DocumentationStepUpdateInput, Prisma.DocumentationStepUncheckedUpdateInput>;
1653
+ /**
1654
+ * Choose, which DocumentationStep to update.
1655
+ */
1656
+ where: Prisma.DocumentationStepWhereUniqueInput;
1657
+ };
1658
+ /**
1659
+ * DocumentationStep updateMany
1660
+ */
1661
+ export type DocumentationStepUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1662
+ /**
1663
+ * The data used to update DocumentationSteps.
1664
+ */
1665
+ data: Prisma.XOR<Prisma.DocumentationStepUpdateManyMutationInput, Prisma.DocumentationStepUncheckedUpdateManyInput>;
1666
+ /**
1667
+ * Filter which DocumentationSteps to update
1668
+ */
1669
+ where?: Prisma.DocumentationStepWhereInput;
1670
+ /**
1671
+ * Limit how many DocumentationSteps to update.
1672
+ */
1673
+ limit?: number;
1674
+ };
1675
+ /**
1676
+ * DocumentationStep upsert
1677
+ */
1678
+ export type DocumentationStepUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1679
+ /**
1680
+ * Select specific fields to fetch from the DocumentationStep
1681
+ */
1682
+ select?: Prisma.DocumentationStepSelect<ExtArgs> | null;
1683
+ /**
1684
+ * Omit specific fields from the DocumentationStep
1685
+ */
1686
+ omit?: Prisma.DocumentationStepOmit<ExtArgs> | null;
1687
+ /**
1688
+ * Choose, which related nodes to fetch as well
1689
+ */
1690
+ include?: Prisma.DocumentationStepInclude<ExtArgs> | null;
1691
+ /**
1692
+ * The filter to search for the DocumentationStep to update in case it exists.
1693
+ */
1694
+ where: Prisma.DocumentationStepWhereUniqueInput;
1695
+ /**
1696
+ * In case the DocumentationStep found by the `where` argument doesn't exist, create a new DocumentationStep with this data.
1697
+ */
1698
+ create: Prisma.XOR<Prisma.DocumentationStepCreateInput, Prisma.DocumentationStepUncheckedCreateInput>;
1699
+ /**
1700
+ * In case the DocumentationStep was found with the provided `where` argument, update it with this data.
1701
+ */
1702
+ update: Prisma.XOR<Prisma.DocumentationStepUpdateInput, Prisma.DocumentationStepUncheckedUpdateInput>;
1703
+ };
1704
+ /**
1705
+ * DocumentationStep delete
1706
+ */
1707
+ export type DocumentationStepDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1708
+ /**
1709
+ * Select specific fields to fetch from the DocumentationStep
1710
+ */
1711
+ select?: Prisma.DocumentationStepSelect<ExtArgs> | null;
1712
+ /**
1713
+ * Omit specific fields from the DocumentationStep
1714
+ */
1715
+ omit?: Prisma.DocumentationStepOmit<ExtArgs> | null;
1716
+ /**
1717
+ * Choose, which related nodes to fetch as well
1718
+ */
1719
+ include?: Prisma.DocumentationStepInclude<ExtArgs> | null;
1720
+ /**
1721
+ * Filter which DocumentationStep to delete.
1722
+ */
1723
+ where: Prisma.DocumentationStepWhereUniqueInput;
1724
+ };
1725
+ /**
1726
+ * DocumentationStep deleteMany
1727
+ */
1728
+ export type DocumentationStepDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1729
+ /**
1730
+ * Filter which DocumentationSteps to delete
1731
+ */
1732
+ where?: Prisma.DocumentationStepWhereInput;
1733
+ /**
1734
+ * Limit how many DocumentationSteps to delete.
1735
+ */
1736
+ limit?: number;
1737
+ };
1738
+ /**
1739
+ * DocumentationStep.assignee
1740
+ */
1741
+ export type DocumentationStep$assigneeArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1742
+ /**
1743
+ * Select specific fields to fetch from the User
1744
+ */
1745
+ select?: Prisma.UserSelect<ExtArgs> | null;
1746
+ /**
1747
+ * Omit specific fields from the User
1748
+ */
1749
+ omit?: Prisma.UserOmit<ExtArgs> | null;
1750
+ /**
1751
+ * Choose, which related nodes to fetch as well
1752
+ */
1753
+ include?: Prisma.UserInclude<ExtArgs> | null;
1754
+ where?: Prisma.UserWhereInput;
1755
+ };
1756
+ /**
1757
+ * DocumentationStep.requiredDocuments
1758
+ */
1759
+ export type DocumentationStep$requiredDocumentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1760
+ /**
1761
+ * Select specific fields to fetch from the DocumentationStepDocument
1762
+ */
1763
+ select?: Prisma.DocumentationStepDocumentSelect<ExtArgs> | null;
1764
+ /**
1765
+ * Omit specific fields from the DocumentationStepDocument
1766
+ */
1767
+ omit?: Prisma.DocumentationStepDocumentOmit<ExtArgs> | null;
1768
+ /**
1769
+ * Choose, which related nodes to fetch as well
1770
+ */
1771
+ include?: Prisma.DocumentationStepDocumentInclude<ExtArgs> | null;
1772
+ where?: Prisma.DocumentationStepDocumentWhereInput;
1773
+ orderBy?: Prisma.DocumentationStepDocumentOrderByWithRelationInput | Prisma.DocumentationStepDocumentOrderByWithRelationInput[];
1774
+ cursor?: Prisma.DocumentationStepDocumentWhereUniqueInput;
1775
+ take?: number;
1776
+ skip?: number;
1777
+ distinct?: Prisma.DocumentationStepDocumentScalarFieldEnum | Prisma.DocumentationStepDocumentScalarFieldEnum[];
1778
+ };
1779
+ /**
1780
+ * DocumentationStep.approvals
1781
+ */
1782
+ export type DocumentationStep$approvalsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1783
+ /**
1784
+ * Select specific fields to fetch from the DocumentationStepApproval
1785
+ */
1786
+ select?: Prisma.DocumentationStepApprovalSelect<ExtArgs> | null;
1787
+ /**
1788
+ * Omit specific fields from the DocumentationStepApproval
1789
+ */
1790
+ omit?: Prisma.DocumentationStepApprovalOmit<ExtArgs> | null;
1791
+ /**
1792
+ * Choose, which related nodes to fetch as well
1793
+ */
1794
+ include?: Prisma.DocumentationStepApprovalInclude<ExtArgs> | null;
1795
+ where?: Prisma.DocumentationStepApprovalWhereInput;
1796
+ orderBy?: Prisma.DocumentationStepApprovalOrderByWithRelationInput | Prisma.DocumentationStepApprovalOrderByWithRelationInput[];
1797
+ cursor?: Prisma.DocumentationStepApprovalWhereUniqueInput;
1798
+ take?: number;
1799
+ skip?: number;
1800
+ distinct?: Prisma.DocumentationStepApprovalScalarFieldEnum | Prisma.DocumentationStepApprovalScalarFieldEnum[];
1801
+ };
1802
+ /**
1803
+ * DocumentationStep without action
1804
+ */
1805
+ export type DocumentationStepDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1806
+ /**
1807
+ * Select specific fields to fetch from the DocumentationStep
1808
+ */
1809
+ select?: Prisma.DocumentationStepSelect<ExtArgs> | null;
1810
+ /**
1811
+ * Omit specific fields from the DocumentationStep
1812
+ */
1813
+ omit?: Prisma.DocumentationStepOmit<ExtArgs> | null;
1814
+ /**
1815
+ * Choose, which related nodes to fetch as well
1816
+ */
1817
+ include?: Prisma.DocumentationStepInclude<ExtArgs> | null;
1818
+ };
1819
+ export {};