@valentine-efagene/qshelter-common 2.0.19 → 2.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/generated/client/browser.d.ts +45 -30
  2. package/dist/generated/client/client.d.ts +45 -30
  3. package/dist/generated/client/commonInputTypes.d.ts +40 -0
  4. package/dist/generated/client/internal/class.d.ts +93 -60
  5. package/dist/generated/client/internal/class.js +2 -2
  6. package/dist/generated/client/internal/prismaNamespace.d.ts +1050 -720
  7. package/dist/generated/client/internal/prismaNamespace.js +313 -190
  8. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +344 -215
  9. package/dist/generated/client/internal/prismaNamespaceBrowser.js +313 -190
  10. package/dist/generated/client/models/Amenity.d.ts +168 -1
  11. package/dist/generated/client/models/Contract.d.ts +2037 -298
  12. package/dist/generated/client/models/ContractDocument.d.ts +299 -12
  13. package/dist/generated/client/models/ContractEvent.d.ts +1052 -0
  14. package/dist/generated/client/models/ContractEvent.js +1 -0
  15. package/dist/generated/client/models/ContractInstallment.d.ts +1656 -0
  16. package/dist/generated/client/models/ContractInstallment.js +1 -0
  17. package/dist/generated/client/models/ContractPayment.d.ts +2026 -0
  18. package/dist/generated/client/models/ContractPayment.js +1 -0
  19. package/dist/generated/client/models/ContractPhase.d.ts +2467 -0
  20. package/dist/generated/client/models/ContractPhase.js +1 -0
  21. package/dist/generated/client/models/ContractPhaseStep.d.ts +1678 -0
  22. package/dist/generated/client/models/ContractPhaseStep.js +1 -0
  23. package/dist/generated/client/models/ContractPhaseStepApproval.d.ts +1249 -0
  24. package/dist/generated/client/models/ContractPhaseStepApproval.js +1 -0
  25. package/dist/generated/client/models/ContractTransition.d.ts +1118 -0
  26. package/dist/generated/client/models/ContractTransition.js +1 -0
  27. package/dist/generated/client/models/DomainEvent.d.ts +1240 -0
  28. package/dist/generated/client/models/DomainEvent.js +1 -0
  29. package/dist/generated/client/models/PaymentPlan.d.ts +325 -1062
  30. package/dist/generated/client/models/Property.d.ts +154 -684
  31. package/dist/generated/client/models/PropertyPaymentMethod.d.ts +1498 -0
  32. package/dist/generated/client/models/PropertyPaymentMethod.js +1 -0
  33. package/dist/generated/client/models/PropertyPaymentMethodLink.d.ts +1158 -0
  34. package/dist/generated/client/models/PropertyPaymentMethodLink.js +1 -0
  35. package/dist/generated/client/models/PropertyPaymentMethodPhase.d.ts +1656 -0
  36. package/dist/generated/client/models/PropertyPaymentMethodPhase.js +1 -0
  37. package/dist/generated/client/models/PropertyUnit.d.ts +1598 -0
  38. package/dist/generated/client/models/PropertyUnit.js +1 -0
  39. package/dist/generated/client/models/PropertyVariant.d.ts +2079 -0
  40. package/dist/generated/client/models/PropertyVariant.js +1 -0
  41. package/dist/generated/client/models/PropertyVariantAmenity.d.ts +1080 -0
  42. package/dist/generated/client/models/PropertyVariantAmenity.js +1 -0
  43. package/dist/generated/client/models/PropertyVariantMedia.d.ts +1189 -0
  44. package/dist/generated/client/models/PropertyVariantMedia.js +1 -0
  45. package/dist/generated/client/models/User.d.ts +684 -427
  46. package/dist/generated/client/models/index.d.ts +15 -12
  47. package/dist/generated/client/models/index.js +15 -12
  48. package/dist/generated/client/models.d.ts +15 -12
  49. package/dist/src/config/config.service.d.ts +0 -1
  50. package/dist/src/config/config.service.js +0 -1
  51. package/package.json +2 -1
  52. package/prisma/schema.prisma +544 -269
@@ -0,0 +1,1678 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model ContractPhaseStep
5
+ *
6
+ */
7
+ export type ContractPhaseStepModel = runtime.Types.Result.DefaultSelection<Prisma.$ContractPhaseStepPayload>;
8
+ export type AggregateContractPhaseStep = {
9
+ _count: ContractPhaseStepCountAggregateOutputType | null;
10
+ _avg: ContractPhaseStepAvgAggregateOutputType | null;
11
+ _sum: ContractPhaseStepSumAggregateOutputType | null;
12
+ _min: ContractPhaseStepMinAggregateOutputType | null;
13
+ _max: ContractPhaseStepMaxAggregateOutputType | null;
14
+ };
15
+ export type ContractPhaseStepAvgAggregateOutputType = {
16
+ order: number | null;
17
+ };
18
+ export type ContractPhaseStepSumAggregateOutputType = {
19
+ order: number | null;
20
+ };
21
+ export type ContractPhaseStepMinAggregateOutputType = {
22
+ id: string | null;
23
+ phaseId: string | null;
24
+ name: string | null;
25
+ description: string | null;
26
+ stepType: string | null;
27
+ order: number | null;
28
+ status: string | null;
29
+ assigneeId: string | null;
30
+ requiredDocumentTypes: string | null;
31
+ dueDate: Date | null;
32
+ completedAt: Date | null;
33
+ createdAt: Date | null;
34
+ updatedAt: Date | null;
35
+ };
36
+ export type ContractPhaseStepMaxAggregateOutputType = {
37
+ id: string | null;
38
+ phaseId: string | null;
39
+ name: string | null;
40
+ description: string | null;
41
+ stepType: string | null;
42
+ order: number | null;
43
+ status: string | null;
44
+ assigneeId: string | null;
45
+ requiredDocumentTypes: string | null;
46
+ dueDate: Date | null;
47
+ completedAt: Date | null;
48
+ createdAt: Date | null;
49
+ updatedAt: Date | null;
50
+ };
51
+ export type ContractPhaseStepCountAggregateOutputType = {
52
+ id: number;
53
+ phaseId: number;
54
+ name: number;
55
+ description: number;
56
+ stepType: number;
57
+ order: number;
58
+ status: number;
59
+ assigneeId: number;
60
+ requiredDocumentTypes: number;
61
+ dueDate: number;
62
+ completedAt: number;
63
+ createdAt: number;
64
+ updatedAt: number;
65
+ _all: number;
66
+ };
67
+ export type ContractPhaseStepAvgAggregateInputType = {
68
+ order?: true;
69
+ };
70
+ export type ContractPhaseStepSumAggregateInputType = {
71
+ order?: true;
72
+ };
73
+ export type ContractPhaseStepMinAggregateInputType = {
74
+ id?: true;
75
+ phaseId?: true;
76
+ name?: true;
77
+ description?: true;
78
+ stepType?: true;
79
+ order?: true;
80
+ status?: true;
81
+ assigneeId?: true;
82
+ requiredDocumentTypes?: true;
83
+ dueDate?: true;
84
+ completedAt?: true;
85
+ createdAt?: true;
86
+ updatedAt?: true;
87
+ };
88
+ export type ContractPhaseStepMaxAggregateInputType = {
89
+ id?: true;
90
+ phaseId?: true;
91
+ name?: true;
92
+ description?: true;
93
+ stepType?: true;
94
+ order?: true;
95
+ status?: true;
96
+ assigneeId?: true;
97
+ requiredDocumentTypes?: true;
98
+ dueDate?: true;
99
+ completedAt?: true;
100
+ createdAt?: true;
101
+ updatedAt?: true;
102
+ };
103
+ export type ContractPhaseStepCountAggregateInputType = {
104
+ id?: true;
105
+ phaseId?: true;
106
+ name?: true;
107
+ description?: true;
108
+ stepType?: true;
109
+ order?: true;
110
+ status?: true;
111
+ assigneeId?: true;
112
+ requiredDocumentTypes?: true;
113
+ dueDate?: true;
114
+ completedAt?: true;
115
+ createdAt?: true;
116
+ updatedAt?: true;
117
+ _all?: true;
118
+ };
119
+ export type ContractPhaseStepAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
120
+ /**
121
+ * Filter which ContractPhaseStep to aggregate.
122
+ */
123
+ where?: Prisma.ContractPhaseStepWhereInput;
124
+ /**
125
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
126
+ *
127
+ * Determine the order of ContractPhaseSteps to fetch.
128
+ */
129
+ orderBy?: Prisma.ContractPhaseStepOrderByWithRelationInput | Prisma.ContractPhaseStepOrderByWithRelationInput[];
130
+ /**
131
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
132
+ *
133
+ * Sets the start position
134
+ */
135
+ cursor?: Prisma.ContractPhaseStepWhereUniqueInput;
136
+ /**
137
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
138
+ *
139
+ * Take `±n` ContractPhaseSteps from the position of the cursor.
140
+ */
141
+ take?: number;
142
+ /**
143
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
144
+ *
145
+ * Skip the first `n` ContractPhaseSteps.
146
+ */
147
+ skip?: number;
148
+ /**
149
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
150
+ *
151
+ * Count returned ContractPhaseSteps
152
+ **/
153
+ _count?: true | ContractPhaseStepCountAggregateInputType;
154
+ /**
155
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
156
+ *
157
+ * Select which fields to average
158
+ **/
159
+ _avg?: ContractPhaseStepAvgAggregateInputType;
160
+ /**
161
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
162
+ *
163
+ * Select which fields to sum
164
+ **/
165
+ _sum?: ContractPhaseStepSumAggregateInputType;
166
+ /**
167
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
168
+ *
169
+ * Select which fields to find the minimum value
170
+ **/
171
+ _min?: ContractPhaseStepMinAggregateInputType;
172
+ /**
173
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
174
+ *
175
+ * Select which fields to find the maximum value
176
+ **/
177
+ _max?: ContractPhaseStepMaxAggregateInputType;
178
+ };
179
+ export type GetContractPhaseStepAggregateType<T extends ContractPhaseStepAggregateArgs> = {
180
+ [P in keyof T & keyof AggregateContractPhaseStep]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateContractPhaseStep[P]> : Prisma.GetScalarType<T[P], AggregateContractPhaseStep[P]>;
181
+ };
182
+ export type ContractPhaseStepGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
183
+ where?: Prisma.ContractPhaseStepWhereInput;
184
+ orderBy?: Prisma.ContractPhaseStepOrderByWithAggregationInput | Prisma.ContractPhaseStepOrderByWithAggregationInput[];
185
+ by: Prisma.ContractPhaseStepScalarFieldEnum[] | Prisma.ContractPhaseStepScalarFieldEnum;
186
+ having?: Prisma.ContractPhaseStepScalarWhereWithAggregatesInput;
187
+ take?: number;
188
+ skip?: number;
189
+ _count?: ContractPhaseStepCountAggregateInputType | true;
190
+ _avg?: ContractPhaseStepAvgAggregateInputType;
191
+ _sum?: ContractPhaseStepSumAggregateInputType;
192
+ _min?: ContractPhaseStepMinAggregateInputType;
193
+ _max?: ContractPhaseStepMaxAggregateInputType;
194
+ };
195
+ export type ContractPhaseStepGroupByOutputType = {
196
+ id: string;
197
+ phaseId: string;
198
+ name: string;
199
+ description: string | null;
200
+ stepType: string;
201
+ order: number;
202
+ status: string;
203
+ assigneeId: string | null;
204
+ requiredDocumentTypes: string | null;
205
+ dueDate: Date | null;
206
+ completedAt: Date | null;
207
+ createdAt: Date;
208
+ updatedAt: Date;
209
+ _count: ContractPhaseStepCountAggregateOutputType | null;
210
+ _avg: ContractPhaseStepAvgAggregateOutputType | null;
211
+ _sum: ContractPhaseStepSumAggregateOutputType | null;
212
+ _min: ContractPhaseStepMinAggregateOutputType | null;
213
+ _max: ContractPhaseStepMaxAggregateOutputType | null;
214
+ };
215
+ type GetContractPhaseStepGroupByPayload<T extends ContractPhaseStepGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ContractPhaseStepGroupByOutputType, T['by']> & {
216
+ [P in ((keyof T) & (keyof ContractPhaseStepGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ContractPhaseStepGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ContractPhaseStepGroupByOutputType[P]>;
217
+ }>>;
218
+ export type ContractPhaseStepWhereInput = {
219
+ AND?: Prisma.ContractPhaseStepWhereInput | Prisma.ContractPhaseStepWhereInput[];
220
+ OR?: Prisma.ContractPhaseStepWhereInput[];
221
+ NOT?: Prisma.ContractPhaseStepWhereInput | Prisma.ContractPhaseStepWhereInput[];
222
+ id?: Prisma.StringFilter<"ContractPhaseStep"> | string;
223
+ phaseId?: Prisma.StringFilter<"ContractPhaseStep"> | string;
224
+ name?: Prisma.StringFilter<"ContractPhaseStep"> | string;
225
+ description?: Prisma.StringNullableFilter<"ContractPhaseStep"> | string | null;
226
+ stepType?: Prisma.StringFilter<"ContractPhaseStep"> | string;
227
+ order?: Prisma.IntFilter<"ContractPhaseStep"> | number;
228
+ status?: Prisma.StringFilter<"ContractPhaseStep"> | string;
229
+ assigneeId?: Prisma.StringNullableFilter<"ContractPhaseStep"> | string | null;
230
+ requiredDocumentTypes?: Prisma.StringNullableFilter<"ContractPhaseStep"> | string | null;
231
+ dueDate?: Prisma.DateTimeNullableFilter<"ContractPhaseStep"> | Date | string | null;
232
+ completedAt?: Prisma.DateTimeNullableFilter<"ContractPhaseStep"> | Date | string | null;
233
+ createdAt?: Prisma.DateTimeFilter<"ContractPhaseStep"> | Date | string;
234
+ updatedAt?: Prisma.DateTimeFilter<"ContractPhaseStep"> | Date | string;
235
+ phase?: Prisma.XOR<Prisma.ContractPhaseScalarRelationFilter, Prisma.ContractPhaseWhereInput>;
236
+ assignee?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
237
+ approvals?: Prisma.ContractPhaseStepApprovalListRelationFilter;
238
+ };
239
+ export type ContractPhaseStepOrderByWithRelationInput = {
240
+ id?: Prisma.SortOrder;
241
+ phaseId?: Prisma.SortOrder;
242
+ name?: Prisma.SortOrder;
243
+ description?: Prisma.SortOrderInput | Prisma.SortOrder;
244
+ stepType?: Prisma.SortOrder;
245
+ order?: Prisma.SortOrder;
246
+ status?: Prisma.SortOrder;
247
+ assigneeId?: Prisma.SortOrderInput | Prisma.SortOrder;
248
+ requiredDocumentTypes?: Prisma.SortOrderInput | Prisma.SortOrder;
249
+ dueDate?: Prisma.SortOrderInput | Prisma.SortOrder;
250
+ completedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
251
+ createdAt?: Prisma.SortOrder;
252
+ updatedAt?: Prisma.SortOrder;
253
+ phase?: Prisma.ContractPhaseOrderByWithRelationInput;
254
+ assignee?: Prisma.UserOrderByWithRelationInput;
255
+ approvals?: Prisma.ContractPhaseStepApprovalOrderByRelationAggregateInput;
256
+ _relevance?: Prisma.ContractPhaseStepOrderByRelevanceInput;
257
+ };
258
+ export type ContractPhaseStepWhereUniqueInput = Prisma.AtLeast<{
259
+ id?: string;
260
+ AND?: Prisma.ContractPhaseStepWhereInput | Prisma.ContractPhaseStepWhereInput[];
261
+ OR?: Prisma.ContractPhaseStepWhereInput[];
262
+ NOT?: Prisma.ContractPhaseStepWhereInput | Prisma.ContractPhaseStepWhereInput[];
263
+ phaseId?: Prisma.StringFilter<"ContractPhaseStep"> | string;
264
+ name?: Prisma.StringFilter<"ContractPhaseStep"> | string;
265
+ description?: Prisma.StringNullableFilter<"ContractPhaseStep"> | string | null;
266
+ stepType?: Prisma.StringFilter<"ContractPhaseStep"> | string;
267
+ order?: Prisma.IntFilter<"ContractPhaseStep"> | number;
268
+ status?: Prisma.StringFilter<"ContractPhaseStep"> | string;
269
+ assigneeId?: Prisma.StringNullableFilter<"ContractPhaseStep"> | string | null;
270
+ requiredDocumentTypes?: Prisma.StringNullableFilter<"ContractPhaseStep"> | string | null;
271
+ dueDate?: Prisma.DateTimeNullableFilter<"ContractPhaseStep"> | Date | string | null;
272
+ completedAt?: Prisma.DateTimeNullableFilter<"ContractPhaseStep"> | Date | string | null;
273
+ createdAt?: Prisma.DateTimeFilter<"ContractPhaseStep"> | Date | string;
274
+ updatedAt?: Prisma.DateTimeFilter<"ContractPhaseStep"> | Date | string;
275
+ phase?: Prisma.XOR<Prisma.ContractPhaseScalarRelationFilter, Prisma.ContractPhaseWhereInput>;
276
+ assignee?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
277
+ approvals?: Prisma.ContractPhaseStepApprovalListRelationFilter;
278
+ }, "id">;
279
+ export type ContractPhaseStepOrderByWithAggregationInput = {
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
+ assigneeId?: Prisma.SortOrderInput | Prisma.SortOrder;
288
+ requiredDocumentTypes?: 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.ContractPhaseStepCountOrderByAggregateInput;
294
+ _avg?: Prisma.ContractPhaseStepAvgOrderByAggregateInput;
295
+ _max?: Prisma.ContractPhaseStepMaxOrderByAggregateInput;
296
+ _min?: Prisma.ContractPhaseStepMinOrderByAggregateInput;
297
+ _sum?: Prisma.ContractPhaseStepSumOrderByAggregateInput;
298
+ };
299
+ export type ContractPhaseStepScalarWhereWithAggregatesInput = {
300
+ AND?: Prisma.ContractPhaseStepScalarWhereWithAggregatesInput | Prisma.ContractPhaseStepScalarWhereWithAggregatesInput[];
301
+ OR?: Prisma.ContractPhaseStepScalarWhereWithAggregatesInput[];
302
+ NOT?: Prisma.ContractPhaseStepScalarWhereWithAggregatesInput | Prisma.ContractPhaseStepScalarWhereWithAggregatesInput[];
303
+ id?: Prisma.StringWithAggregatesFilter<"ContractPhaseStep"> | string;
304
+ phaseId?: Prisma.StringWithAggregatesFilter<"ContractPhaseStep"> | string;
305
+ name?: Prisma.StringWithAggregatesFilter<"ContractPhaseStep"> | string;
306
+ description?: Prisma.StringNullableWithAggregatesFilter<"ContractPhaseStep"> | string | null;
307
+ stepType?: Prisma.StringWithAggregatesFilter<"ContractPhaseStep"> | string;
308
+ order?: Prisma.IntWithAggregatesFilter<"ContractPhaseStep"> | number;
309
+ status?: Prisma.StringWithAggregatesFilter<"ContractPhaseStep"> | string;
310
+ assigneeId?: Prisma.StringNullableWithAggregatesFilter<"ContractPhaseStep"> | string | null;
311
+ requiredDocumentTypes?: Prisma.StringNullableWithAggregatesFilter<"ContractPhaseStep"> | string | null;
312
+ dueDate?: Prisma.DateTimeNullableWithAggregatesFilter<"ContractPhaseStep"> | Date | string | null;
313
+ completedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ContractPhaseStep"> | Date | string | null;
314
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"ContractPhaseStep"> | Date | string;
315
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ContractPhaseStep"> | Date | string;
316
+ };
317
+ export type ContractPhaseStepCreateInput = {
318
+ id?: string;
319
+ name: string;
320
+ description?: string | null;
321
+ stepType: string;
322
+ order: number;
323
+ status?: string;
324
+ requiredDocumentTypes?: string | null;
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
+ approvals?: Prisma.ContractPhaseStepApprovalCreateNestedManyWithoutStepInput;
332
+ };
333
+ export type ContractPhaseStepUncheckedCreateInput = {
334
+ id?: string;
335
+ phaseId: string;
336
+ name: string;
337
+ description?: string | null;
338
+ stepType: string;
339
+ order: number;
340
+ status?: string;
341
+ assigneeId?: string | null;
342
+ requiredDocumentTypes?: string | null;
343
+ dueDate?: Date | string | null;
344
+ completedAt?: Date | string | null;
345
+ createdAt?: Date | string;
346
+ updatedAt?: Date | string;
347
+ approvals?: Prisma.ContractPhaseStepApprovalUncheckedCreateNestedManyWithoutStepInput;
348
+ };
349
+ export type ContractPhaseStepUpdateInput = {
350
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
351
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
352
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
353
+ stepType?: Prisma.StringFieldUpdateOperationsInput | string;
354
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
355
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
356
+ requiredDocumentTypes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
357
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
358
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
359
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
360
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
361
+ phase?: Prisma.ContractPhaseUpdateOneRequiredWithoutStepsNestedInput;
362
+ assignee?: Prisma.UserUpdateOneWithoutAssignedStepsNestedInput;
363
+ approvals?: Prisma.ContractPhaseStepApprovalUpdateManyWithoutStepNestedInput;
364
+ };
365
+ export type ContractPhaseStepUncheckedUpdateInput = {
366
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
367
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
368
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
369
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
370
+ stepType?: Prisma.StringFieldUpdateOperationsInput | string;
371
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
372
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
373
+ assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
374
+ requiredDocumentTypes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
375
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
376
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
377
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
378
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
379
+ approvals?: Prisma.ContractPhaseStepApprovalUncheckedUpdateManyWithoutStepNestedInput;
380
+ };
381
+ export type ContractPhaseStepCreateManyInput = {
382
+ id?: string;
383
+ phaseId: string;
384
+ name: string;
385
+ description?: string | null;
386
+ stepType: string;
387
+ order: number;
388
+ status?: string;
389
+ assigneeId?: string | null;
390
+ requiredDocumentTypes?: string | null;
391
+ dueDate?: Date | string | null;
392
+ completedAt?: Date | string | null;
393
+ createdAt?: Date | string;
394
+ updatedAt?: Date | string;
395
+ };
396
+ export type ContractPhaseStepUpdateManyMutationInput = {
397
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
398
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
399
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
400
+ stepType?: Prisma.StringFieldUpdateOperationsInput | string;
401
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
402
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
403
+ requiredDocumentTypes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
404
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
405
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
406
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
407
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
408
+ };
409
+ export type ContractPhaseStepUncheckedUpdateManyInput = {
410
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
411
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
412
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
413
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
414
+ stepType?: Prisma.StringFieldUpdateOperationsInput | string;
415
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
416
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
417
+ assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
418
+ requiredDocumentTypes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
419
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
420
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
421
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
422
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
423
+ };
424
+ export type ContractPhaseStepListRelationFilter = {
425
+ every?: Prisma.ContractPhaseStepWhereInput;
426
+ some?: Prisma.ContractPhaseStepWhereInput;
427
+ none?: Prisma.ContractPhaseStepWhereInput;
428
+ };
429
+ export type ContractPhaseStepOrderByRelationAggregateInput = {
430
+ _count?: Prisma.SortOrder;
431
+ };
432
+ export type ContractPhaseStepOrderByRelevanceInput = {
433
+ fields: Prisma.ContractPhaseStepOrderByRelevanceFieldEnum | Prisma.ContractPhaseStepOrderByRelevanceFieldEnum[];
434
+ sort: Prisma.SortOrder;
435
+ search: string;
436
+ };
437
+ export type ContractPhaseStepCountOrderByAggregateInput = {
438
+ id?: Prisma.SortOrder;
439
+ phaseId?: Prisma.SortOrder;
440
+ name?: Prisma.SortOrder;
441
+ description?: Prisma.SortOrder;
442
+ stepType?: Prisma.SortOrder;
443
+ order?: Prisma.SortOrder;
444
+ status?: Prisma.SortOrder;
445
+ assigneeId?: Prisma.SortOrder;
446
+ requiredDocumentTypes?: Prisma.SortOrder;
447
+ dueDate?: Prisma.SortOrder;
448
+ completedAt?: Prisma.SortOrder;
449
+ createdAt?: Prisma.SortOrder;
450
+ updatedAt?: Prisma.SortOrder;
451
+ };
452
+ export type ContractPhaseStepAvgOrderByAggregateInput = {
453
+ order?: Prisma.SortOrder;
454
+ };
455
+ export type ContractPhaseStepMaxOrderByAggregateInput = {
456
+ id?: Prisma.SortOrder;
457
+ phaseId?: Prisma.SortOrder;
458
+ name?: Prisma.SortOrder;
459
+ description?: Prisma.SortOrder;
460
+ stepType?: Prisma.SortOrder;
461
+ order?: Prisma.SortOrder;
462
+ status?: Prisma.SortOrder;
463
+ assigneeId?: Prisma.SortOrder;
464
+ requiredDocumentTypes?: Prisma.SortOrder;
465
+ dueDate?: Prisma.SortOrder;
466
+ completedAt?: Prisma.SortOrder;
467
+ createdAt?: Prisma.SortOrder;
468
+ updatedAt?: Prisma.SortOrder;
469
+ };
470
+ export type ContractPhaseStepMinOrderByAggregateInput = {
471
+ id?: Prisma.SortOrder;
472
+ phaseId?: Prisma.SortOrder;
473
+ name?: Prisma.SortOrder;
474
+ description?: Prisma.SortOrder;
475
+ stepType?: Prisma.SortOrder;
476
+ order?: Prisma.SortOrder;
477
+ status?: Prisma.SortOrder;
478
+ assigneeId?: Prisma.SortOrder;
479
+ requiredDocumentTypes?: Prisma.SortOrder;
480
+ dueDate?: Prisma.SortOrder;
481
+ completedAt?: Prisma.SortOrder;
482
+ createdAt?: Prisma.SortOrder;
483
+ updatedAt?: Prisma.SortOrder;
484
+ };
485
+ export type ContractPhaseStepSumOrderByAggregateInput = {
486
+ order?: Prisma.SortOrder;
487
+ };
488
+ export type ContractPhaseStepScalarRelationFilter = {
489
+ is?: Prisma.ContractPhaseStepWhereInput;
490
+ isNot?: Prisma.ContractPhaseStepWhereInput;
491
+ };
492
+ export type ContractPhaseStepCreateNestedManyWithoutAssigneeInput = {
493
+ create?: Prisma.XOR<Prisma.ContractPhaseStepCreateWithoutAssigneeInput, Prisma.ContractPhaseStepUncheckedCreateWithoutAssigneeInput> | Prisma.ContractPhaseStepCreateWithoutAssigneeInput[] | Prisma.ContractPhaseStepUncheckedCreateWithoutAssigneeInput[];
494
+ connectOrCreate?: Prisma.ContractPhaseStepCreateOrConnectWithoutAssigneeInput | Prisma.ContractPhaseStepCreateOrConnectWithoutAssigneeInput[];
495
+ createMany?: Prisma.ContractPhaseStepCreateManyAssigneeInputEnvelope;
496
+ connect?: Prisma.ContractPhaseStepWhereUniqueInput | Prisma.ContractPhaseStepWhereUniqueInput[];
497
+ };
498
+ export type ContractPhaseStepUncheckedCreateNestedManyWithoutAssigneeInput = {
499
+ create?: Prisma.XOR<Prisma.ContractPhaseStepCreateWithoutAssigneeInput, Prisma.ContractPhaseStepUncheckedCreateWithoutAssigneeInput> | Prisma.ContractPhaseStepCreateWithoutAssigneeInput[] | Prisma.ContractPhaseStepUncheckedCreateWithoutAssigneeInput[];
500
+ connectOrCreate?: Prisma.ContractPhaseStepCreateOrConnectWithoutAssigneeInput | Prisma.ContractPhaseStepCreateOrConnectWithoutAssigneeInput[];
501
+ createMany?: Prisma.ContractPhaseStepCreateManyAssigneeInputEnvelope;
502
+ connect?: Prisma.ContractPhaseStepWhereUniqueInput | Prisma.ContractPhaseStepWhereUniqueInput[];
503
+ };
504
+ export type ContractPhaseStepUpdateManyWithoutAssigneeNestedInput = {
505
+ create?: Prisma.XOR<Prisma.ContractPhaseStepCreateWithoutAssigneeInput, Prisma.ContractPhaseStepUncheckedCreateWithoutAssigneeInput> | Prisma.ContractPhaseStepCreateWithoutAssigneeInput[] | Prisma.ContractPhaseStepUncheckedCreateWithoutAssigneeInput[];
506
+ connectOrCreate?: Prisma.ContractPhaseStepCreateOrConnectWithoutAssigneeInput | Prisma.ContractPhaseStepCreateOrConnectWithoutAssigneeInput[];
507
+ upsert?: Prisma.ContractPhaseStepUpsertWithWhereUniqueWithoutAssigneeInput | Prisma.ContractPhaseStepUpsertWithWhereUniqueWithoutAssigneeInput[];
508
+ createMany?: Prisma.ContractPhaseStepCreateManyAssigneeInputEnvelope;
509
+ set?: Prisma.ContractPhaseStepWhereUniqueInput | Prisma.ContractPhaseStepWhereUniqueInput[];
510
+ disconnect?: Prisma.ContractPhaseStepWhereUniqueInput | Prisma.ContractPhaseStepWhereUniqueInput[];
511
+ delete?: Prisma.ContractPhaseStepWhereUniqueInput | Prisma.ContractPhaseStepWhereUniqueInput[];
512
+ connect?: Prisma.ContractPhaseStepWhereUniqueInput | Prisma.ContractPhaseStepWhereUniqueInput[];
513
+ update?: Prisma.ContractPhaseStepUpdateWithWhereUniqueWithoutAssigneeInput | Prisma.ContractPhaseStepUpdateWithWhereUniqueWithoutAssigneeInput[];
514
+ updateMany?: Prisma.ContractPhaseStepUpdateManyWithWhereWithoutAssigneeInput | Prisma.ContractPhaseStepUpdateManyWithWhereWithoutAssigneeInput[];
515
+ deleteMany?: Prisma.ContractPhaseStepScalarWhereInput | Prisma.ContractPhaseStepScalarWhereInput[];
516
+ };
517
+ export type ContractPhaseStepUncheckedUpdateManyWithoutAssigneeNestedInput = {
518
+ create?: Prisma.XOR<Prisma.ContractPhaseStepCreateWithoutAssigneeInput, Prisma.ContractPhaseStepUncheckedCreateWithoutAssigneeInput> | Prisma.ContractPhaseStepCreateWithoutAssigneeInput[] | Prisma.ContractPhaseStepUncheckedCreateWithoutAssigneeInput[];
519
+ connectOrCreate?: Prisma.ContractPhaseStepCreateOrConnectWithoutAssigneeInput | Prisma.ContractPhaseStepCreateOrConnectWithoutAssigneeInput[];
520
+ upsert?: Prisma.ContractPhaseStepUpsertWithWhereUniqueWithoutAssigneeInput | Prisma.ContractPhaseStepUpsertWithWhereUniqueWithoutAssigneeInput[];
521
+ createMany?: Prisma.ContractPhaseStepCreateManyAssigneeInputEnvelope;
522
+ set?: Prisma.ContractPhaseStepWhereUniqueInput | Prisma.ContractPhaseStepWhereUniqueInput[];
523
+ disconnect?: Prisma.ContractPhaseStepWhereUniqueInput | Prisma.ContractPhaseStepWhereUniqueInput[];
524
+ delete?: Prisma.ContractPhaseStepWhereUniqueInput | Prisma.ContractPhaseStepWhereUniqueInput[];
525
+ connect?: Prisma.ContractPhaseStepWhereUniqueInput | Prisma.ContractPhaseStepWhereUniqueInput[];
526
+ update?: Prisma.ContractPhaseStepUpdateWithWhereUniqueWithoutAssigneeInput | Prisma.ContractPhaseStepUpdateWithWhereUniqueWithoutAssigneeInput[];
527
+ updateMany?: Prisma.ContractPhaseStepUpdateManyWithWhereWithoutAssigneeInput | Prisma.ContractPhaseStepUpdateManyWithWhereWithoutAssigneeInput[];
528
+ deleteMany?: Prisma.ContractPhaseStepScalarWhereInput | Prisma.ContractPhaseStepScalarWhereInput[];
529
+ };
530
+ export type ContractPhaseStepCreateNestedManyWithoutPhaseInput = {
531
+ create?: Prisma.XOR<Prisma.ContractPhaseStepCreateWithoutPhaseInput, Prisma.ContractPhaseStepUncheckedCreateWithoutPhaseInput> | Prisma.ContractPhaseStepCreateWithoutPhaseInput[] | Prisma.ContractPhaseStepUncheckedCreateWithoutPhaseInput[];
532
+ connectOrCreate?: Prisma.ContractPhaseStepCreateOrConnectWithoutPhaseInput | Prisma.ContractPhaseStepCreateOrConnectWithoutPhaseInput[];
533
+ createMany?: Prisma.ContractPhaseStepCreateManyPhaseInputEnvelope;
534
+ connect?: Prisma.ContractPhaseStepWhereUniqueInput | Prisma.ContractPhaseStepWhereUniqueInput[];
535
+ };
536
+ export type ContractPhaseStepUncheckedCreateNestedManyWithoutPhaseInput = {
537
+ create?: Prisma.XOR<Prisma.ContractPhaseStepCreateWithoutPhaseInput, Prisma.ContractPhaseStepUncheckedCreateWithoutPhaseInput> | Prisma.ContractPhaseStepCreateWithoutPhaseInput[] | Prisma.ContractPhaseStepUncheckedCreateWithoutPhaseInput[];
538
+ connectOrCreate?: Prisma.ContractPhaseStepCreateOrConnectWithoutPhaseInput | Prisma.ContractPhaseStepCreateOrConnectWithoutPhaseInput[];
539
+ createMany?: Prisma.ContractPhaseStepCreateManyPhaseInputEnvelope;
540
+ connect?: Prisma.ContractPhaseStepWhereUniqueInput | Prisma.ContractPhaseStepWhereUniqueInput[];
541
+ };
542
+ export type ContractPhaseStepUpdateManyWithoutPhaseNestedInput = {
543
+ create?: Prisma.XOR<Prisma.ContractPhaseStepCreateWithoutPhaseInput, Prisma.ContractPhaseStepUncheckedCreateWithoutPhaseInput> | Prisma.ContractPhaseStepCreateWithoutPhaseInput[] | Prisma.ContractPhaseStepUncheckedCreateWithoutPhaseInput[];
544
+ connectOrCreate?: Prisma.ContractPhaseStepCreateOrConnectWithoutPhaseInput | Prisma.ContractPhaseStepCreateOrConnectWithoutPhaseInput[];
545
+ upsert?: Prisma.ContractPhaseStepUpsertWithWhereUniqueWithoutPhaseInput | Prisma.ContractPhaseStepUpsertWithWhereUniqueWithoutPhaseInput[];
546
+ createMany?: Prisma.ContractPhaseStepCreateManyPhaseInputEnvelope;
547
+ set?: Prisma.ContractPhaseStepWhereUniqueInput | Prisma.ContractPhaseStepWhereUniqueInput[];
548
+ disconnect?: Prisma.ContractPhaseStepWhereUniqueInput | Prisma.ContractPhaseStepWhereUniqueInput[];
549
+ delete?: Prisma.ContractPhaseStepWhereUniqueInput | Prisma.ContractPhaseStepWhereUniqueInput[];
550
+ connect?: Prisma.ContractPhaseStepWhereUniqueInput | Prisma.ContractPhaseStepWhereUniqueInput[];
551
+ update?: Prisma.ContractPhaseStepUpdateWithWhereUniqueWithoutPhaseInput | Prisma.ContractPhaseStepUpdateWithWhereUniqueWithoutPhaseInput[];
552
+ updateMany?: Prisma.ContractPhaseStepUpdateManyWithWhereWithoutPhaseInput | Prisma.ContractPhaseStepUpdateManyWithWhereWithoutPhaseInput[];
553
+ deleteMany?: Prisma.ContractPhaseStepScalarWhereInput | Prisma.ContractPhaseStepScalarWhereInput[];
554
+ };
555
+ export type ContractPhaseStepUncheckedUpdateManyWithoutPhaseNestedInput = {
556
+ create?: Prisma.XOR<Prisma.ContractPhaseStepCreateWithoutPhaseInput, Prisma.ContractPhaseStepUncheckedCreateWithoutPhaseInput> | Prisma.ContractPhaseStepCreateWithoutPhaseInput[] | Prisma.ContractPhaseStepUncheckedCreateWithoutPhaseInput[];
557
+ connectOrCreate?: Prisma.ContractPhaseStepCreateOrConnectWithoutPhaseInput | Prisma.ContractPhaseStepCreateOrConnectWithoutPhaseInput[];
558
+ upsert?: Prisma.ContractPhaseStepUpsertWithWhereUniqueWithoutPhaseInput | Prisma.ContractPhaseStepUpsertWithWhereUniqueWithoutPhaseInput[];
559
+ createMany?: Prisma.ContractPhaseStepCreateManyPhaseInputEnvelope;
560
+ set?: Prisma.ContractPhaseStepWhereUniqueInput | Prisma.ContractPhaseStepWhereUniqueInput[];
561
+ disconnect?: Prisma.ContractPhaseStepWhereUniqueInput | Prisma.ContractPhaseStepWhereUniqueInput[];
562
+ delete?: Prisma.ContractPhaseStepWhereUniqueInput | Prisma.ContractPhaseStepWhereUniqueInput[];
563
+ connect?: Prisma.ContractPhaseStepWhereUniqueInput | Prisma.ContractPhaseStepWhereUniqueInput[];
564
+ update?: Prisma.ContractPhaseStepUpdateWithWhereUniqueWithoutPhaseInput | Prisma.ContractPhaseStepUpdateWithWhereUniqueWithoutPhaseInput[];
565
+ updateMany?: Prisma.ContractPhaseStepUpdateManyWithWhereWithoutPhaseInput | Prisma.ContractPhaseStepUpdateManyWithWhereWithoutPhaseInput[];
566
+ deleteMany?: Prisma.ContractPhaseStepScalarWhereInput | Prisma.ContractPhaseStepScalarWhereInput[];
567
+ };
568
+ export type ContractPhaseStepCreateNestedOneWithoutApprovalsInput = {
569
+ create?: Prisma.XOR<Prisma.ContractPhaseStepCreateWithoutApprovalsInput, Prisma.ContractPhaseStepUncheckedCreateWithoutApprovalsInput>;
570
+ connectOrCreate?: Prisma.ContractPhaseStepCreateOrConnectWithoutApprovalsInput;
571
+ connect?: Prisma.ContractPhaseStepWhereUniqueInput;
572
+ };
573
+ export type ContractPhaseStepUpdateOneRequiredWithoutApprovalsNestedInput = {
574
+ create?: Prisma.XOR<Prisma.ContractPhaseStepCreateWithoutApprovalsInput, Prisma.ContractPhaseStepUncheckedCreateWithoutApprovalsInput>;
575
+ connectOrCreate?: Prisma.ContractPhaseStepCreateOrConnectWithoutApprovalsInput;
576
+ upsert?: Prisma.ContractPhaseStepUpsertWithoutApprovalsInput;
577
+ connect?: Prisma.ContractPhaseStepWhereUniqueInput;
578
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ContractPhaseStepUpdateToOneWithWhereWithoutApprovalsInput, Prisma.ContractPhaseStepUpdateWithoutApprovalsInput>, Prisma.ContractPhaseStepUncheckedUpdateWithoutApprovalsInput>;
579
+ };
580
+ export type ContractPhaseStepCreateWithoutAssigneeInput = {
581
+ id?: string;
582
+ name: string;
583
+ description?: string | null;
584
+ stepType: string;
585
+ order: number;
586
+ status?: string;
587
+ requiredDocumentTypes?: string | null;
588
+ dueDate?: Date | string | null;
589
+ completedAt?: Date | string | null;
590
+ createdAt?: Date | string;
591
+ updatedAt?: Date | string;
592
+ phase: Prisma.ContractPhaseCreateNestedOneWithoutStepsInput;
593
+ approvals?: Prisma.ContractPhaseStepApprovalCreateNestedManyWithoutStepInput;
594
+ };
595
+ export type ContractPhaseStepUncheckedCreateWithoutAssigneeInput = {
596
+ id?: string;
597
+ phaseId: string;
598
+ name: string;
599
+ description?: string | null;
600
+ stepType: string;
601
+ order: number;
602
+ status?: string;
603
+ requiredDocumentTypes?: string | null;
604
+ dueDate?: Date | string | null;
605
+ completedAt?: Date | string | null;
606
+ createdAt?: Date | string;
607
+ updatedAt?: Date | string;
608
+ approvals?: Prisma.ContractPhaseStepApprovalUncheckedCreateNestedManyWithoutStepInput;
609
+ };
610
+ export type ContractPhaseStepCreateOrConnectWithoutAssigneeInput = {
611
+ where: Prisma.ContractPhaseStepWhereUniqueInput;
612
+ create: Prisma.XOR<Prisma.ContractPhaseStepCreateWithoutAssigneeInput, Prisma.ContractPhaseStepUncheckedCreateWithoutAssigneeInput>;
613
+ };
614
+ export type ContractPhaseStepCreateManyAssigneeInputEnvelope = {
615
+ data: Prisma.ContractPhaseStepCreateManyAssigneeInput | Prisma.ContractPhaseStepCreateManyAssigneeInput[];
616
+ skipDuplicates?: boolean;
617
+ };
618
+ export type ContractPhaseStepUpsertWithWhereUniqueWithoutAssigneeInput = {
619
+ where: Prisma.ContractPhaseStepWhereUniqueInput;
620
+ update: Prisma.XOR<Prisma.ContractPhaseStepUpdateWithoutAssigneeInput, Prisma.ContractPhaseStepUncheckedUpdateWithoutAssigneeInput>;
621
+ create: Prisma.XOR<Prisma.ContractPhaseStepCreateWithoutAssigneeInput, Prisma.ContractPhaseStepUncheckedCreateWithoutAssigneeInput>;
622
+ };
623
+ export type ContractPhaseStepUpdateWithWhereUniqueWithoutAssigneeInput = {
624
+ where: Prisma.ContractPhaseStepWhereUniqueInput;
625
+ data: Prisma.XOR<Prisma.ContractPhaseStepUpdateWithoutAssigneeInput, Prisma.ContractPhaseStepUncheckedUpdateWithoutAssigneeInput>;
626
+ };
627
+ export type ContractPhaseStepUpdateManyWithWhereWithoutAssigneeInput = {
628
+ where: Prisma.ContractPhaseStepScalarWhereInput;
629
+ data: Prisma.XOR<Prisma.ContractPhaseStepUpdateManyMutationInput, Prisma.ContractPhaseStepUncheckedUpdateManyWithoutAssigneeInput>;
630
+ };
631
+ export type ContractPhaseStepScalarWhereInput = {
632
+ AND?: Prisma.ContractPhaseStepScalarWhereInput | Prisma.ContractPhaseStepScalarWhereInput[];
633
+ OR?: Prisma.ContractPhaseStepScalarWhereInput[];
634
+ NOT?: Prisma.ContractPhaseStepScalarWhereInput | Prisma.ContractPhaseStepScalarWhereInput[];
635
+ id?: Prisma.StringFilter<"ContractPhaseStep"> | string;
636
+ phaseId?: Prisma.StringFilter<"ContractPhaseStep"> | string;
637
+ name?: Prisma.StringFilter<"ContractPhaseStep"> | string;
638
+ description?: Prisma.StringNullableFilter<"ContractPhaseStep"> | string | null;
639
+ stepType?: Prisma.StringFilter<"ContractPhaseStep"> | string;
640
+ order?: Prisma.IntFilter<"ContractPhaseStep"> | number;
641
+ status?: Prisma.StringFilter<"ContractPhaseStep"> | string;
642
+ assigneeId?: Prisma.StringNullableFilter<"ContractPhaseStep"> | string | null;
643
+ requiredDocumentTypes?: Prisma.StringNullableFilter<"ContractPhaseStep"> | string | null;
644
+ dueDate?: Prisma.DateTimeNullableFilter<"ContractPhaseStep"> | Date | string | null;
645
+ completedAt?: Prisma.DateTimeNullableFilter<"ContractPhaseStep"> | Date | string | null;
646
+ createdAt?: Prisma.DateTimeFilter<"ContractPhaseStep"> | Date | string;
647
+ updatedAt?: Prisma.DateTimeFilter<"ContractPhaseStep"> | Date | string;
648
+ };
649
+ export type ContractPhaseStepCreateWithoutPhaseInput = {
650
+ id?: string;
651
+ name: string;
652
+ description?: string | null;
653
+ stepType: string;
654
+ order: number;
655
+ status?: string;
656
+ requiredDocumentTypes?: string | null;
657
+ dueDate?: Date | string | null;
658
+ completedAt?: Date | string | null;
659
+ createdAt?: Date | string;
660
+ updatedAt?: Date | string;
661
+ assignee?: Prisma.UserCreateNestedOneWithoutAssignedStepsInput;
662
+ approvals?: Prisma.ContractPhaseStepApprovalCreateNestedManyWithoutStepInput;
663
+ };
664
+ export type ContractPhaseStepUncheckedCreateWithoutPhaseInput = {
665
+ id?: string;
666
+ name: string;
667
+ description?: string | null;
668
+ stepType: string;
669
+ order: number;
670
+ status?: string;
671
+ assigneeId?: string | null;
672
+ requiredDocumentTypes?: string | null;
673
+ dueDate?: Date | string | null;
674
+ completedAt?: Date | string | null;
675
+ createdAt?: Date | string;
676
+ updatedAt?: Date | string;
677
+ approvals?: Prisma.ContractPhaseStepApprovalUncheckedCreateNestedManyWithoutStepInput;
678
+ };
679
+ export type ContractPhaseStepCreateOrConnectWithoutPhaseInput = {
680
+ where: Prisma.ContractPhaseStepWhereUniqueInput;
681
+ create: Prisma.XOR<Prisma.ContractPhaseStepCreateWithoutPhaseInput, Prisma.ContractPhaseStepUncheckedCreateWithoutPhaseInput>;
682
+ };
683
+ export type ContractPhaseStepCreateManyPhaseInputEnvelope = {
684
+ data: Prisma.ContractPhaseStepCreateManyPhaseInput | Prisma.ContractPhaseStepCreateManyPhaseInput[];
685
+ skipDuplicates?: boolean;
686
+ };
687
+ export type ContractPhaseStepUpsertWithWhereUniqueWithoutPhaseInput = {
688
+ where: Prisma.ContractPhaseStepWhereUniqueInput;
689
+ update: Prisma.XOR<Prisma.ContractPhaseStepUpdateWithoutPhaseInput, Prisma.ContractPhaseStepUncheckedUpdateWithoutPhaseInput>;
690
+ create: Prisma.XOR<Prisma.ContractPhaseStepCreateWithoutPhaseInput, Prisma.ContractPhaseStepUncheckedCreateWithoutPhaseInput>;
691
+ };
692
+ export type ContractPhaseStepUpdateWithWhereUniqueWithoutPhaseInput = {
693
+ where: Prisma.ContractPhaseStepWhereUniqueInput;
694
+ data: Prisma.XOR<Prisma.ContractPhaseStepUpdateWithoutPhaseInput, Prisma.ContractPhaseStepUncheckedUpdateWithoutPhaseInput>;
695
+ };
696
+ export type ContractPhaseStepUpdateManyWithWhereWithoutPhaseInput = {
697
+ where: Prisma.ContractPhaseStepScalarWhereInput;
698
+ data: Prisma.XOR<Prisma.ContractPhaseStepUpdateManyMutationInput, Prisma.ContractPhaseStepUncheckedUpdateManyWithoutPhaseInput>;
699
+ };
700
+ export type ContractPhaseStepCreateWithoutApprovalsInput = {
701
+ id?: string;
702
+ name: string;
703
+ description?: string | null;
704
+ stepType: string;
705
+ order: number;
706
+ status?: string;
707
+ requiredDocumentTypes?: string | null;
708
+ dueDate?: Date | string | null;
709
+ completedAt?: Date | string | null;
710
+ createdAt?: Date | string;
711
+ updatedAt?: Date | string;
712
+ phase: Prisma.ContractPhaseCreateNestedOneWithoutStepsInput;
713
+ assignee?: Prisma.UserCreateNestedOneWithoutAssignedStepsInput;
714
+ };
715
+ export type ContractPhaseStepUncheckedCreateWithoutApprovalsInput = {
716
+ id?: string;
717
+ phaseId: string;
718
+ name: string;
719
+ description?: string | null;
720
+ stepType: string;
721
+ order: number;
722
+ status?: string;
723
+ assigneeId?: string | null;
724
+ requiredDocumentTypes?: string | null;
725
+ dueDate?: Date | string | null;
726
+ completedAt?: Date | string | null;
727
+ createdAt?: Date | string;
728
+ updatedAt?: Date | string;
729
+ };
730
+ export type ContractPhaseStepCreateOrConnectWithoutApprovalsInput = {
731
+ where: Prisma.ContractPhaseStepWhereUniqueInput;
732
+ create: Prisma.XOR<Prisma.ContractPhaseStepCreateWithoutApprovalsInput, Prisma.ContractPhaseStepUncheckedCreateWithoutApprovalsInput>;
733
+ };
734
+ export type ContractPhaseStepUpsertWithoutApprovalsInput = {
735
+ update: Prisma.XOR<Prisma.ContractPhaseStepUpdateWithoutApprovalsInput, Prisma.ContractPhaseStepUncheckedUpdateWithoutApprovalsInput>;
736
+ create: Prisma.XOR<Prisma.ContractPhaseStepCreateWithoutApprovalsInput, Prisma.ContractPhaseStepUncheckedCreateWithoutApprovalsInput>;
737
+ where?: Prisma.ContractPhaseStepWhereInput;
738
+ };
739
+ export type ContractPhaseStepUpdateToOneWithWhereWithoutApprovalsInput = {
740
+ where?: Prisma.ContractPhaseStepWhereInput;
741
+ data: Prisma.XOR<Prisma.ContractPhaseStepUpdateWithoutApprovalsInput, Prisma.ContractPhaseStepUncheckedUpdateWithoutApprovalsInput>;
742
+ };
743
+ export type ContractPhaseStepUpdateWithoutApprovalsInput = {
744
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
745
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
746
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
747
+ stepType?: Prisma.StringFieldUpdateOperationsInput | string;
748
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
749
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
750
+ requiredDocumentTypes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
751
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
752
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
753
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
754
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
755
+ phase?: Prisma.ContractPhaseUpdateOneRequiredWithoutStepsNestedInput;
756
+ assignee?: Prisma.UserUpdateOneWithoutAssignedStepsNestedInput;
757
+ };
758
+ export type ContractPhaseStepUncheckedUpdateWithoutApprovalsInput = {
759
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
760
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
761
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
762
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
763
+ stepType?: Prisma.StringFieldUpdateOperationsInput | string;
764
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
765
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
766
+ assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
767
+ requiredDocumentTypes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
768
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
769
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
770
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
771
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
772
+ };
773
+ export type ContractPhaseStepCreateManyAssigneeInput = {
774
+ id?: string;
775
+ phaseId: string;
776
+ name: string;
777
+ description?: string | null;
778
+ stepType: string;
779
+ order: number;
780
+ status?: string;
781
+ requiredDocumentTypes?: string | null;
782
+ dueDate?: Date | string | null;
783
+ completedAt?: Date | string | null;
784
+ createdAt?: Date | string;
785
+ updatedAt?: Date | string;
786
+ };
787
+ export type ContractPhaseStepUpdateWithoutAssigneeInput = {
788
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
789
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
790
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
791
+ stepType?: Prisma.StringFieldUpdateOperationsInput | string;
792
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
793
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
794
+ requiredDocumentTypes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
795
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
796
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
797
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
798
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
799
+ phase?: Prisma.ContractPhaseUpdateOneRequiredWithoutStepsNestedInput;
800
+ approvals?: Prisma.ContractPhaseStepApprovalUpdateManyWithoutStepNestedInput;
801
+ };
802
+ export type ContractPhaseStepUncheckedUpdateWithoutAssigneeInput = {
803
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
804
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
805
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
806
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
807
+ stepType?: Prisma.StringFieldUpdateOperationsInput | string;
808
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
809
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
810
+ requiredDocumentTypes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
811
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
812
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
813
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
814
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
815
+ approvals?: Prisma.ContractPhaseStepApprovalUncheckedUpdateManyWithoutStepNestedInput;
816
+ };
817
+ export type ContractPhaseStepUncheckedUpdateManyWithoutAssigneeInput = {
818
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
819
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
820
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
821
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
822
+ stepType?: Prisma.StringFieldUpdateOperationsInput | string;
823
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
824
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
825
+ requiredDocumentTypes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
826
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
827
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
828
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
829
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
830
+ };
831
+ export type ContractPhaseStepCreateManyPhaseInput = {
832
+ id?: string;
833
+ name: string;
834
+ description?: string | null;
835
+ stepType: string;
836
+ order: number;
837
+ status?: string;
838
+ assigneeId?: string | null;
839
+ requiredDocumentTypes?: string | null;
840
+ dueDate?: Date | string | null;
841
+ completedAt?: Date | string | null;
842
+ createdAt?: Date | string;
843
+ updatedAt?: Date | string;
844
+ };
845
+ export type ContractPhaseStepUpdateWithoutPhaseInput = {
846
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
847
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
848
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
849
+ stepType?: Prisma.StringFieldUpdateOperationsInput | string;
850
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
851
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
852
+ requiredDocumentTypes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
853
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
854
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
855
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
856
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
857
+ assignee?: Prisma.UserUpdateOneWithoutAssignedStepsNestedInput;
858
+ approvals?: Prisma.ContractPhaseStepApprovalUpdateManyWithoutStepNestedInput;
859
+ };
860
+ export type ContractPhaseStepUncheckedUpdateWithoutPhaseInput = {
861
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
862
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
863
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
864
+ stepType?: Prisma.StringFieldUpdateOperationsInput | string;
865
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
866
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
867
+ assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
868
+ requiredDocumentTypes?: 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
+ approvals?: Prisma.ContractPhaseStepApprovalUncheckedUpdateManyWithoutStepNestedInput;
874
+ };
875
+ export type ContractPhaseStepUncheckedUpdateManyWithoutPhaseInput = {
876
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
877
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
878
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
879
+ stepType?: Prisma.StringFieldUpdateOperationsInput | string;
880
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
881
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
882
+ assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
883
+ requiredDocumentTypes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
884
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
885
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
886
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
887
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
888
+ };
889
+ /**
890
+ * Count Type ContractPhaseStepCountOutputType
891
+ */
892
+ export type ContractPhaseStepCountOutputType = {
893
+ approvals: number;
894
+ };
895
+ export type ContractPhaseStepCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
896
+ approvals?: boolean | ContractPhaseStepCountOutputTypeCountApprovalsArgs;
897
+ };
898
+ /**
899
+ * ContractPhaseStepCountOutputType without action
900
+ */
901
+ export type ContractPhaseStepCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
902
+ /**
903
+ * Select specific fields to fetch from the ContractPhaseStepCountOutputType
904
+ */
905
+ select?: Prisma.ContractPhaseStepCountOutputTypeSelect<ExtArgs> | null;
906
+ };
907
+ /**
908
+ * ContractPhaseStepCountOutputType without action
909
+ */
910
+ export type ContractPhaseStepCountOutputTypeCountApprovalsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
911
+ where?: Prisma.ContractPhaseStepApprovalWhereInput;
912
+ };
913
+ export type ContractPhaseStepSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
914
+ id?: boolean;
915
+ phaseId?: boolean;
916
+ name?: boolean;
917
+ description?: boolean;
918
+ stepType?: boolean;
919
+ order?: boolean;
920
+ status?: boolean;
921
+ assigneeId?: boolean;
922
+ requiredDocumentTypes?: boolean;
923
+ dueDate?: boolean;
924
+ completedAt?: boolean;
925
+ createdAt?: boolean;
926
+ updatedAt?: boolean;
927
+ phase?: boolean | Prisma.ContractPhaseDefaultArgs<ExtArgs>;
928
+ assignee?: boolean | Prisma.ContractPhaseStep$assigneeArgs<ExtArgs>;
929
+ approvals?: boolean | Prisma.ContractPhaseStep$approvalsArgs<ExtArgs>;
930
+ _count?: boolean | Prisma.ContractPhaseStepCountOutputTypeDefaultArgs<ExtArgs>;
931
+ }, ExtArgs["result"]["contractPhaseStep"]>;
932
+ export type ContractPhaseStepSelectScalar = {
933
+ id?: boolean;
934
+ phaseId?: boolean;
935
+ name?: boolean;
936
+ description?: boolean;
937
+ stepType?: boolean;
938
+ order?: boolean;
939
+ status?: boolean;
940
+ assigneeId?: boolean;
941
+ requiredDocumentTypes?: boolean;
942
+ dueDate?: boolean;
943
+ completedAt?: boolean;
944
+ createdAt?: boolean;
945
+ updatedAt?: boolean;
946
+ };
947
+ export type ContractPhaseStepOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "phaseId" | "name" | "description" | "stepType" | "order" | "status" | "assigneeId" | "requiredDocumentTypes" | "dueDate" | "completedAt" | "createdAt" | "updatedAt", ExtArgs["result"]["contractPhaseStep"]>;
948
+ export type ContractPhaseStepInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
949
+ phase?: boolean | Prisma.ContractPhaseDefaultArgs<ExtArgs>;
950
+ assignee?: boolean | Prisma.ContractPhaseStep$assigneeArgs<ExtArgs>;
951
+ approvals?: boolean | Prisma.ContractPhaseStep$approvalsArgs<ExtArgs>;
952
+ _count?: boolean | Prisma.ContractPhaseStepCountOutputTypeDefaultArgs<ExtArgs>;
953
+ };
954
+ export type $ContractPhaseStepPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
955
+ name: "ContractPhaseStep";
956
+ objects: {
957
+ phase: Prisma.$ContractPhasePayload<ExtArgs>;
958
+ assignee: Prisma.$UserPayload<ExtArgs> | null;
959
+ approvals: Prisma.$ContractPhaseStepApprovalPayload<ExtArgs>[];
960
+ };
961
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
962
+ id: string;
963
+ phaseId: string;
964
+ name: string;
965
+ description: string | null;
966
+ stepType: string;
967
+ order: number;
968
+ status: string;
969
+ assigneeId: string | null;
970
+ requiredDocumentTypes: string | null;
971
+ dueDate: Date | null;
972
+ completedAt: Date | null;
973
+ createdAt: Date;
974
+ updatedAt: Date;
975
+ }, ExtArgs["result"]["contractPhaseStep"]>;
976
+ composites: {};
977
+ };
978
+ export type ContractPhaseStepGetPayload<S extends boolean | null | undefined | ContractPhaseStepDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepPayload, S>;
979
+ export type ContractPhaseStepCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ContractPhaseStepFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
980
+ select?: ContractPhaseStepCountAggregateInputType | true;
981
+ };
982
+ export interface ContractPhaseStepDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
983
+ [K: symbol]: {
984
+ types: Prisma.TypeMap<ExtArgs>['model']['ContractPhaseStep'];
985
+ meta: {
986
+ name: 'ContractPhaseStep';
987
+ };
988
+ };
989
+ /**
990
+ * Find zero or one ContractPhaseStep that matches the filter.
991
+ * @param {ContractPhaseStepFindUniqueArgs} args - Arguments to find a ContractPhaseStep
992
+ * @example
993
+ * // Get one ContractPhaseStep
994
+ * const contractPhaseStep = await prisma.contractPhaseStep.findUnique({
995
+ * where: {
996
+ * // ... provide filter here
997
+ * }
998
+ * })
999
+ */
1000
+ findUnique<T extends ContractPhaseStepFindUniqueArgs>(args: Prisma.SelectSubset<T, ContractPhaseStepFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseStepClient<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1001
+ /**
1002
+ * Find one ContractPhaseStep that matches the filter or throw an error with `error.code='P2025'`
1003
+ * if no matches were found.
1004
+ * @param {ContractPhaseStepFindUniqueOrThrowArgs} args - Arguments to find a ContractPhaseStep
1005
+ * @example
1006
+ * // Get one ContractPhaseStep
1007
+ * const contractPhaseStep = await prisma.contractPhaseStep.findUniqueOrThrow({
1008
+ * where: {
1009
+ * // ... provide filter here
1010
+ * }
1011
+ * })
1012
+ */
1013
+ findUniqueOrThrow<T extends ContractPhaseStepFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ContractPhaseStepFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseStepClient<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1014
+ /**
1015
+ * Find the first ContractPhaseStep that matches the filter.
1016
+ * Note, that providing `undefined` is treated as the value not being there.
1017
+ * Read more here: https://pris.ly/d/null-undefined
1018
+ * @param {ContractPhaseStepFindFirstArgs} args - Arguments to find a ContractPhaseStep
1019
+ * @example
1020
+ * // Get one ContractPhaseStep
1021
+ * const contractPhaseStep = await prisma.contractPhaseStep.findFirst({
1022
+ * where: {
1023
+ * // ... provide filter here
1024
+ * }
1025
+ * })
1026
+ */
1027
+ findFirst<T extends ContractPhaseStepFindFirstArgs>(args?: Prisma.SelectSubset<T, ContractPhaseStepFindFirstArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseStepClient<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1028
+ /**
1029
+ * Find the first ContractPhaseStep that matches the filter or
1030
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1031
+ * Note, that providing `undefined` is treated as the value not being there.
1032
+ * Read more here: https://pris.ly/d/null-undefined
1033
+ * @param {ContractPhaseStepFindFirstOrThrowArgs} args - Arguments to find a ContractPhaseStep
1034
+ * @example
1035
+ * // Get one ContractPhaseStep
1036
+ * const contractPhaseStep = await prisma.contractPhaseStep.findFirstOrThrow({
1037
+ * where: {
1038
+ * // ... provide filter here
1039
+ * }
1040
+ * })
1041
+ */
1042
+ findFirstOrThrow<T extends ContractPhaseStepFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ContractPhaseStepFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseStepClient<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1043
+ /**
1044
+ * Find zero or more ContractPhaseSteps that matches the filter.
1045
+ * Note, that providing `undefined` is treated as the value not being there.
1046
+ * Read more here: https://pris.ly/d/null-undefined
1047
+ * @param {ContractPhaseStepFindManyArgs} args - Arguments to filter and select certain fields only.
1048
+ * @example
1049
+ * // Get all ContractPhaseSteps
1050
+ * const contractPhaseSteps = await prisma.contractPhaseStep.findMany()
1051
+ *
1052
+ * // Get first 10 ContractPhaseSteps
1053
+ * const contractPhaseSteps = await prisma.contractPhaseStep.findMany({ take: 10 })
1054
+ *
1055
+ * // Only select the `id`
1056
+ * const contractPhaseStepWithIdOnly = await prisma.contractPhaseStep.findMany({ select: { id: true } })
1057
+ *
1058
+ */
1059
+ findMany<T extends ContractPhaseStepFindManyArgs>(args?: Prisma.SelectSubset<T, ContractPhaseStepFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1060
+ /**
1061
+ * Create a ContractPhaseStep.
1062
+ * @param {ContractPhaseStepCreateArgs} args - Arguments to create a ContractPhaseStep.
1063
+ * @example
1064
+ * // Create one ContractPhaseStep
1065
+ * const ContractPhaseStep = await prisma.contractPhaseStep.create({
1066
+ * data: {
1067
+ * // ... data to create a ContractPhaseStep
1068
+ * }
1069
+ * })
1070
+ *
1071
+ */
1072
+ create<T extends ContractPhaseStepCreateArgs>(args: Prisma.SelectSubset<T, ContractPhaseStepCreateArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseStepClient<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1073
+ /**
1074
+ * Create many ContractPhaseSteps.
1075
+ * @param {ContractPhaseStepCreateManyArgs} args - Arguments to create many ContractPhaseSteps.
1076
+ * @example
1077
+ * // Create many ContractPhaseSteps
1078
+ * const contractPhaseStep = await prisma.contractPhaseStep.createMany({
1079
+ * data: [
1080
+ * // ... provide data here
1081
+ * ]
1082
+ * })
1083
+ *
1084
+ */
1085
+ createMany<T extends ContractPhaseStepCreateManyArgs>(args?: Prisma.SelectSubset<T, ContractPhaseStepCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1086
+ /**
1087
+ * Delete a ContractPhaseStep.
1088
+ * @param {ContractPhaseStepDeleteArgs} args - Arguments to delete one ContractPhaseStep.
1089
+ * @example
1090
+ * // Delete one ContractPhaseStep
1091
+ * const ContractPhaseStep = await prisma.contractPhaseStep.delete({
1092
+ * where: {
1093
+ * // ... filter to delete one ContractPhaseStep
1094
+ * }
1095
+ * })
1096
+ *
1097
+ */
1098
+ delete<T extends ContractPhaseStepDeleteArgs>(args: Prisma.SelectSubset<T, ContractPhaseStepDeleteArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseStepClient<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1099
+ /**
1100
+ * Update one ContractPhaseStep.
1101
+ * @param {ContractPhaseStepUpdateArgs} args - Arguments to update one ContractPhaseStep.
1102
+ * @example
1103
+ * // Update one ContractPhaseStep
1104
+ * const contractPhaseStep = await prisma.contractPhaseStep.update({
1105
+ * where: {
1106
+ * // ... provide filter here
1107
+ * },
1108
+ * data: {
1109
+ * // ... provide data here
1110
+ * }
1111
+ * })
1112
+ *
1113
+ */
1114
+ update<T extends ContractPhaseStepUpdateArgs>(args: Prisma.SelectSubset<T, ContractPhaseStepUpdateArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseStepClient<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1115
+ /**
1116
+ * Delete zero or more ContractPhaseSteps.
1117
+ * @param {ContractPhaseStepDeleteManyArgs} args - Arguments to filter ContractPhaseSteps to delete.
1118
+ * @example
1119
+ * // Delete a few ContractPhaseSteps
1120
+ * const { count } = await prisma.contractPhaseStep.deleteMany({
1121
+ * where: {
1122
+ * // ... provide filter here
1123
+ * }
1124
+ * })
1125
+ *
1126
+ */
1127
+ deleteMany<T extends ContractPhaseStepDeleteManyArgs>(args?: Prisma.SelectSubset<T, ContractPhaseStepDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1128
+ /**
1129
+ * Update zero or more ContractPhaseSteps.
1130
+ * Note, that providing `undefined` is treated as the value not being there.
1131
+ * Read more here: https://pris.ly/d/null-undefined
1132
+ * @param {ContractPhaseStepUpdateManyArgs} args - Arguments to update one or more rows.
1133
+ * @example
1134
+ * // Update many ContractPhaseSteps
1135
+ * const contractPhaseStep = await prisma.contractPhaseStep.updateMany({
1136
+ * where: {
1137
+ * // ... provide filter here
1138
+ * },
1139
+ * data: {
1140
+ * // ... provide data here
1141
+ * }
1142
+ * })
1143
+ *
1144
+ */
1145
+ updateMany<T extends ContractPhaseStepUpdateManyArgs>(args: Prisma.SelectSubset<T, ContractPhaseStepUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1146
+ /**
1147
+ * Create or update one ContractPhaseStep.
1148
+ * @param {ContractPhaseStepUpsertArgs} args - Arguments to update or create a ContractPhaseStep.
1149
+ * @example
1150
+ * // Update or create a ContractPhaseStep
1151
+ * const contractPhaseStep = await prisma.contractPhaseStep.upsert({
1152
+ * create: {
1153
+ * // ... data to create a ContractPhaseStep
1154
+ * },
1155
+ * update: {
1156
+ * // ... in case it already exists, update
1157
+ * },
1158
+ * where: {
1159
+ * // ... the filter for the ContractPhaseStep we want to update
1160
+ * }
1161
+ * })
1162
+ */
1163
+ upsert<T extends ContractPhaseStepUpsertArgs>(args: Prisma.SelectSubset<T, ContractPhaseStepUpsertArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseStepClient<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1164
+ /**
1165
+ * Count the number of ContractPhaseSteps.
1166
+ * Note, that providing `undefined` is treated as the value not being there.
1167
+ * Read more here: https://pris.ly/d/null-undefined
1168
+ * @param {ContractPhaseStepCountArgs} args - Arguments to filter ContractPhaseSteps to count.
1169
+ * @example
1170
+ * // Count the number of ContractPhaseSteps
1171
+ * const count = await prisma.contractPhaseStep.count({
1172
+ * where: {
1173
+ * // ... the filter for the ContractPhaseSteps we want to count
1174
+ * }
1175
+ * })
1176
+ **/
1177
+ count<T extends ContractPhaseStepCountArgs>(args?: Prisma.Subset<T, ContractPhaseStepCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ContractPhaseStepCountAggregateOutputType> : number>;
1178
+ /**
1179
+ * Allows you to perform aggregations operations on a ContractPhaseStep.
1180
+ * Note, that providing `undefined` is treated as the value not being there.
1181
+ * Read more here: https://pris.ly/d/null-undefined
1182
+ * @param {ContractPhaseStepAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1183
+ * @example
1184
+ * // Ordered by age ascending
1185
+ * // Where email contains prisma.io
1186
+ * // Limited to the 10 users
1187
+ * const aggregations = await prisma.user.aggregate({
1188
+ * _avg: {
1189
+ * age: true,
1190
+ * },
1191
+ * where: {
1192
+ * email: {
1193
+ * contains: "prisma.io",
1194
+ * },
1195
+ * },
1196
+ * orderBy: {
1197
+ * age: "asc",
1198
+ * },
1199
+ * take: 10,
1200
+ * })
1201
+ **/
1202
+ aggregate<T extends ContractPhaseStepAggregateArgs>(args: Prisma.Subset<T, ContractPhaseStepAggregateArgs>): Prisma.PrismaPromise<GetContractPhaseStepAggregateType<T>>;
1203
+ /**
1204
+ * Group by ContractPhaseStep.
1205
+ * Note, that providing `undefined` is treated as the value not being there.
1206
+ * Read more here: https://pris.ly/d/null-undefined
1207
+ * @param {ContractPhaseStepGroupByArgs} args - Group by arguments.
1208
+ * @example
1209
+ * // Group by city, order by createdAt, get count
1210
+ * const result = await prisma.user.groupBy({
1211
+ * by: ['city', 'createdAt'],
1212
+ * orderBy: {
1213
+ * createdAt: true
1214
+ * },
1215
+ * _count: {
1216
+ * _all: true
1217
+ * },
1218
+ * })
1219
+ *
1220
+ **/
1221
+ groupBy<T extends ContractPhaseStepGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1222
+ orderBy: ContractPhaseStepGroupByArgs['orderBy'];
1223
+ } : {
1224
+ orderBy?: ContractPhaseStepGroupByArgs['orderBy'];
1225
+ }, 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 ? {
1226
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1227
+ Error,
1228
+ 'Field ',
1229
+ P,
1230
+ ` in "having" needs to be provided in "by"`
1231
+ ];
1232
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1233
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1234
+ }[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 ? {} : {
1235
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1236
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1237
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1238
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, ContractPhaseStepGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetContractPhaseStepGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1239
+ /**
1240
+ * Fields of the ContractPhaseStep model
1241
+ */
1242
+ readonly fields: ContractPhaseStepFieldRefs;
1243
+ }
1244
+ /**
1245
+ * The delegate class that acts as a "Promise-like" for ContractPhaseStep.
1246
+ * Why is this prefixed with `Prisma__`?
1247
+ * Because we want to prevent naming conflicts as mentioned in
1248
+ * https://github.com/prisma/prisma-client-js/issues/707
1249
+ */
1250
+ export interface Prisma__ContractPhaseStepClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1251
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1252
+ 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>;
1253
+ assignee<T extends Prisma.ContractPhaseStep$assigneeArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ContractPhaseStep$assigneeArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1254
+ approvals<T extends Prisma.ContractPhaseStep$approvalsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ContractPhaseStep$approvalsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepApprovalPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1255
+ /**
1256
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1257
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1258
+ * @param onrejected The callback to execute when the Promise is rejected.
1259
+ * @returns A Promise for the completion of which ever callback is executed.
1260
+ */
1261
+ 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>;
1262
+ /**
1263
+ * Attaches a callback for only the rejection of the Promise.
1264
+ * @param onrejected The callback to execute when the Promise is rejected.
1265
+ * @returns A Promise for the completion of the callback.
1266
+ */
1267
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1268
+ /**
1269
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1270
+ * resolved value cannot be modified from the callback.
1271
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1272
+ * @returns A Promise for the completion of the callback.
1273
+ */
1274
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1275
+ }
1276
+ /**
1277
+ * Fields of the ContractPhaseStep model
1278
+ */
1279
+ export interface ContractPhaseStepFieldRefs {
1280
+ readonly id: Prisma.FieldRef<"ContractPhaseStep", 'String'>;
1281
+ readonly phaseId: Prisma.FieldRef<"ContractPhaseStep", 'String'>;
1282
+ readonly name: Prisma.FieldRef<"ContractPhaseStep", 'String'>;
1283
+ readonly description: Prisma.FieldRef<"ContractPhaseStep", 'String'>;
1284
+ readonly stepType: Prisma.FieldRef<"ContractPhaseStep", 'String'>;
1285
+ readonly order: Prisma.FieldRef<"ContractPhaseStep", 'Int'>;
1286
+ readonly status: Prisma.FieldRef<"ContractPhaseStep", 'String'>;
1287
+ readonly assigneeId: Prisma.FieldRef<"ContractPhaseStep", 'String'>;
1288
+ readonly requiredDocumentTypes: Prisma.FieldRef<"ContractPhaseStep", 'String'>;
1289
+ readonly dueDate: Prisma.FieldRef<"ContractPhaseStep", 'DateTime'>;
1290
+ readonly completedAt: Prisma.FieldRef<"ContractPhaseStep", 'DateTime'>;
1291
+ readonly createdAt: Prisma.FieldRef<"ContractPhaseStep", 'DateTime'>;
1292
+ readonly updatedAt: Prisma.FieldRef<"ContractPhaseStep", 'DateTime'>;
1293
+ }
1294
+ /**
1295
+ * ContractPhaseStep findUnique
1296
+ */
1297
+ export type ContractPhaseStepFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1298
+ /**
1299
+ * Select specific fields to fetch from the ContractPhaseStep
1300
+ */
1301
+ select?: Prisma.ContractPhaseStepSelect<ExtArgs> | null;
1302
+ /**
1303
+ * Omit specific fields from the ContractPhaseStep
1304
+ */
1305
+ omit?: Prisma.ContractPhaseStepOmit<ExtArgs> | null;
1306
+ /**
1307
+ * Choose, which related nodes to fetch as well
1308
+ */
1309
+ include?: Prisma.ContractPhaseStepInclude<ExtArgs> | null;
1310
+ /**
1311
+ * Filter, which ContractPhaseStep to fetch.
1312
+ */
1313
+ where: Prisma.ContractPhaseStepWhereUniqueInput;
1314
+ };
1315
+ /**
1316
+ * ContractPhaseStep findUniqueOrThrow
1317
+ */
1318
+ export type ContractPhaseStepFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1319
+ /**
1320
+ * Select specific fields to fetch from the ContractPhaseStep
1321
+ */
1322
+ select?: Prisma.ContractPhaseStepSelect<ExtArgs> | null;
1323
+ /**
1324
+ * Omit specific fields from the ContractPhaseStep
1325
+ */
1326
+ omit?: Prisma.ContractPhaseStepOmit<ExtArgs> | null;
1327
+ /**
1328
+ * Choose, which related nodes to fetch as well
1329
+ */
1330
+ include?: Prisma.ContractPhaseStepInclude<ExtArgs> | null;
1331
+ /**
1332
+ * Filter, which ContractPhaseStep to fetch.
1333
+ */
1334
+ where: Prisma.ContractPhaseStepWhereUniqueInput;
1335
+ };
1336
+ /**
1337
+ * ContractPhaseStep findFirst
1338
+ */
1339
+ export type ContractPhaseStepFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1340
+ /**
1341
+ * Select specific fields to fetch from the ContractPhaseStep
1342
+ */
1343
+ select?: Prisma.ContractPhaseStepSelect<ExtArgs> | null;
1344
+ /**
1345
+ * Omit specific fields from the ContractPhaseStep
1346
+ */
1347
+ omit?: Prisma.ContractPhaseStepOmit<ExtArgs> | null;
1348
+ /**
1349
+ * Choose, which related nodes to fetch as well
1350
+ */
1351
+ include?: Prisma.ContractPhaseStepInclude<ExtArgs> | null;
1352
+ /**
1353
+ * Filter, which ContractPhaseStep to fetch.
1354
+ */
1355
+ where?: Prisma.ContractPhaseStepWhereInput;
1356
+ /**
1357
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1358
+ *
1359
+ * Determine the order of ContractPhaseSteps to fetch.
1360
+ */
1361
+ orderBy?: Prisma.ContractPhaseStepOrderByWithRelationInput | Prisma.ContractPhaseStepOrderByWithRelationInput[];
1362
+ /**
1363
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1364
+ *
1365
+ * Sets the position for searching for ContractPhaseSteps.
1366
+ */
1367
+ cursor?: Prisma.ContractPhaseStepWhereUniqueInput;
1368
+ /**
1369
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1370
+ *
1371
+ * Take `±n` ContractPhaseSteps from the position of the cursor.
1372
+ */
1373
+ take?: number;
1374
+ /**
1375
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1376
+ *
1377
+ * Skip the first `n` ContractPhaseSteps.
1378
+ */
1379
+ skip?: number;
1380
+ /**
1381
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1382
+ *
1383
+ * Filter by unique combinations of ContractPhaseSteps.
1384
+ */
1385
+ distinct?: Prisma.ContractPhaseStepScalarFieldEnum | Prisma.ContractPhaseStepScalarFieldEnum[];
1386
+ };
1387
+ /**
1388
+ * ContractPhaseStep findFirstOrThrow
1389
+ */
1390
+ export type ContractPhaseStepFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1391
+ /**
1392
+ * Select specific fields to fetch from the ContractPhaseStep
1393
+ */
1394
+ select?: Prisma.ContractPhaseStepSelect<ExtArgs> | null;
1395
+ /**
1396
+ * Omit specific fields from the ContractPhaseStep
1397
+ */
1398
+ omit?: Prisma.ContractPhaseStepOmit<ExtArgs> | null;
1399
+ /**
1400
+ * Choose, which related nodes to fetch as well
1401
+ */
1402
+ include?: Prisma.ContractPhaseStepInclude<ExtArgs> | null;
1403
+ /**
1404
+ * Filter, which ContractPhaseStep to fetch.
1405
+ */
1406
+ where?: Prisma.ContractPhaseStepWhereInput;
1407
+ /**
1408
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1409
+ *
1410
+ * Determine the order of ContractPhaseSteps to fetch.
1411
+ */
1412
+ orderBy?: Prisma.ContractPhaseStepOrderByWithRelationInput | Prisma.ContractPhaseStepOrderByWithRelationInput[];
1413
+ /**
1414
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1415
+ *
1416
+ * Sets the position for searching for ContractPhaseSteps.
1417
+ */
1418
+ cursor?: Prisma.ContractPhaseStepWhereUniqueInput;
1419
+ /**
1420
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1421
+ *
1422
+ * Take `±n` ContractPhaseSteps from the position of the cursor.
1423
+ */
1424
+ take?: number;
1425
+ /**
1426
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1427
+ *
1428
+ * Skip the first `n` ContractPhaseSteps.
1429
+ */
1430
+ skip?: number;
1431
+ /**
1432
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1433
+ *
1434
+ * Filter by unique combinations of ContractPhaseSteps.
1435
+ */
1436
+ distinct?: Prisma.ContractPhaseStepScalarFieldEnum | Prisma.ContractPhaseStepScalarFieldEnum[];
1437
+ };
1438
+ /**
1439
+ * ContractPhaseStep findMany
1440
+ */
1441
+ export type ContractPhaseStepFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1442
+ /**
1443
+ * Select specific fields to fetch from the ContractPhaseStep
1444
+ */
1445
+ select?: Prisma.ContractPhaseStepSelect<ExtArgs> | null;
1446
+ /**
1447
+ * Omit specific fields from the ContractPhaseStep
1448
+ */
1449
+ omit?: Prisma.ContractPhaseStepOmit<ExtArgs> | null;
1450
+ /**
1451
+ * Choose, which related nodes to fetch as well
1452
+ */
1453
+ include?: Prisma.ContractPhaseStepInclude<ExtArgs> | null;
1454
+ /**
1455
+ * Filter, which ContractPhaseSteps to fetch.
1456
+ */
1457
+ where?: Prisma.ContractPhaseStepWhereInput;
1458
+ /**
1459
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1460
+ *
1461
+ * Determine the order of ContractPhaseSteps to fetch.
1462
+ */
1463
+ orderBy?: Prisma.ContractPhaseStepOrderByWithRelationInput | Prisma.ContractPhaseStepOrderByWithRelationInput[];
1464
+ /**
1465
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1466
+ *
1467
+ * Sets the position for listing ContractPhaseSteps.
1468
+ */
1469
+ cursor?: Prisma.ContractPhaseStepWhereUniqueInput;
1470
+ /**
1471
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1472
+ *
1473
+ * Take `±n` ContractPhaseSteps from the position of the cursor.
1474
+ */
1475
+ take?: number;
1476
+ /**
1477
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1478
+ *
1479
+ * Skip the first `n` ContractPhaseSteps.
1480
+ */
1481
+ skip?: number;
1482
+ distinct?: Prisma.ContractPhaseStepScalarFieldEnum | Prisma.ContractPhaseStepScalarFieldEnum[];
1483
+ };
1484
+ /**
1485
+ * ContractPhaseStep create
1486
+ */
1487
+ export type ContractPhaseStepCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1488
+ /**
1489
+ * Select specific fields to fetch from the ContractPhaseStep
1490
+ */
1491
+ select?: Prisma.ContractPhaseStepSelect<ExtArgs> | null;
1492
+ /**
1493
+ * Omit specific fields from the ContractPhaseStep
1494
+ */
1495
+ omit?: Prisma.ContractPhaseStepOmit<ExtArgs> | null;
1496
+ /**
1497
+ * Choose, which related nodes to fetch as well
1498
+ */
1499
+ include?: Prisma.ContractPhaseStepInclude<ExtArgs> | null;
1500
+ /**
1501
+ * The data needed to create a ContractPhaseStep.
1502
+ */
1503
+ data: Prisma.XOR<Prisma.ContractPhaseStepCreateInput, Prisma.ContractPhaseStepUncheckedCreateInput>;
1504
+ };
1505
+ /**
1506
+ * ContractPhaseStep createMany
1507
+ */
1508
+ export type ContractPhaseStepCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1509
+ /**
1510
+ * The data used to create many ContractPhaseSteps.
1511
+ */
1512
+ data: Prisma.ContractPhaseStepCreateManyInput | Prisma.ContractPhaseStepCreateManyInput[];
1513
+ skipDuplicates?: boolean;
1514
+ };
1515
+ /**
1516
+ * ContractPhaseStep update
1517
+ */
1518
+ export type ContractPhaseStepUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1519
+ /**
1520
+ * Select specific fields to fetch from the ContractPhaseStep
1521
+ */
1522
+ select?: Prisma.ContractPhaseStepSelect<ExtArgs> | null;
1523
+ /**
1524
+ * Omit specific fields from the ContractPhaseStep
1525
+ */
1526
+ omit?: Prisma.ContractPhaseStepOmit<ExtArgs> | null;
1527
+ /**
1528
+ * Choose, which related nodes to fetch as well
1529
+ */
1530
+ include?: Prisma.ContractPhaseStepInclude<ExtArgs> | null;
1531
+ /**
1532
+ * The data needed to update a ContractPhaseStep.
1533
+ */
1534
+ data: Prisma.XOR<Prisma.ContractPhaseStepUpdateInput, Prisma.ContractPhaseStepUncheckedUpdateInput>;
1535
+ /**
1536
+ * Choose, which ContractPhaseStep to update.
1537
+ */
1538
+ where: Prisma.ContractPhaseStepWhereUniqueInput;
1539
+ };
1540
+ /**
1541
+ * ContractPhaseStep updateMany
1542
+ */
1543
+ export type ContractPhaseStepUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1544
+ /**
1545
+ * The data used to update ContractPhaseSteps.
1546
+ */
1547
+ data: Prisma.XOR<Prisma.ContractPhaseStepUpdateManyMutationInput, Prisma.ContractPhaseStepUncheckedUpdateManyInput>;
1548
+ /**
1549
+ * Filter which ContractPhaseSteps to update
1550
+ */
1551
+ where?: Prisma.ContractPhaseStepWhereInput;
1552
+ /**
1553
+ * Limit how many ContractPhaseSteps to update.
1554
+ */
1555
+ limit?: number;
1556
+ };
1557
+ /**
1558
+ * ContractPhaseStep upsert
1559
+ */
1560
+ export type ContractPhaseStepUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1561
+ /**
1562
+ * Select specific fields to fetch from the ContractPhaseStep
1563
+ */
1564
+ select?: Prisma.ContractPhaseStepSelect<ExtArgs> | null;
1565
+ /**
1566
+ * Omit specific fields from the ContractPhaseStep
1567
+ */
1568
+ omit?: Prisma.ContractPhaseStepOmit<ExtArgs> | null;
1569
+ /**
1570
+ * Choose, which related nodes to fetch as well
1571
+ */
1572
+ include?: Prisma.ContractPhaseStepInclude<ExtArgs> | null;
1573
+ /**
1574
+ * The filter to search for the ContractPhaseStep to update in case it exists.
1575
+ */
1576
+ where: Prisma.ContractPhaseStepWhereUniqueInput;
1577
+ /**
1578
+ * In case the ContractPhaseStep found by the `where` argument doesn't exist, create a new ContractPhaseStep with this data.
1579
+ */
1580
+ create: Prisma.XOR<Prisma.ContractPhaseStepCreateInput, Prisma.ContractPhaseStepUncheckedCreateInput>;
1581
+ /**
1582
+ * In case the ContractPhaseStep was found with the provided `where` argument, update it with this data.
1583
+ */
1584
+ update: Prisma.XOR<Prisma.ContractPhaseStepUpdateInput, Prisma.ContractPhaseStepUncheckedUpdateInput>;
1585
+ };
1586
+ /**
1587
+ * ContractPhaseStep delete
1588
+ */
1589
+ export type ContractPhaseStepDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1590
+ /**
1591
+ * Select specific fields to fetch from the ContractPhaseStep
1592
+ */
1593
+ select?: Prisma.ContractPhaseStepSelect<ExtArgs> | null;
1594
+ /**
1595
+ * Omit specific fields from the ContractPhaseStep
1596
+ */
1597
+ omit?: Prisma.ContractPhaseStepOmit<ExtArgs> | null;
1598
+ /**
1599
+ * Choose, which related nodes to fetch as well
1600
+ */
1601
+ include?: Prisma.ContractPhaseStepInclude<ExtArgs> | null;
1602
+ /**
1603
+ * Filter which ContractPhaseStep to delete.
1604
+ */
1605
+ where: Prisma.ContractPhaseStepWhereUniqueInput;
1606
+ };
1607
+ /**
1608
+ * ContractPhaseStep deleteMany
1609
+ */
1610
+ export type ContractPhaseStepDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1611
+ /**
1612
+ * Filter which ContractPhaseSteps to delete
1613
+ */
1614
+ where?: Prisma.ContractPhaseStepWhereInput;
1615
+ /**
1616
+ * Limit how many ContractPhaseSteps to delete.
1617
+ */
1618
+ limit?: number;
1619
+ };
1620
+ /**
1621
+ * ContractPhaseStep.assignee
1622
+ */
1623
+ export type ContractPhaseStep$assigneeArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1624
+ /**
1625
+ * Select specific fields to fetch from the User
1626
+ */
1627
+ select?: Prisma.UserSelect<ExtArgs> | null;
1628
+ /**
1629
+ * Omit specific fields from the User
1630
+ */
1631
+ omit?: Prisma.UserOmit<ExtArgs> | null;
1632
+ /**
1633
+ * Choose, which related nodes to fetch as well
1634
+ */
1635
+ include?: Prisma.UserInclude<ExtArgs> | null;
1636
+ where?: Prisma.UserWhereInput;
1637
+ };
1638
+ /**
1639
+ * ContractPhaseStep.approvals
1640
+ */
1641
+ export type ContractPhaseStep$approvalsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1642
+ /**
1643
+ * Select specific fields to fetch from the ContractPhaseStepApproval
1644
+ */
1645
+ select?: Prisma.ContractPhaseStepApprovalSelect<ExtArgs> | null;
1646
+ /**
1647
+ * Omit specific fields from the ContractPhaseStepApproval
1648
+ */
1649
+ omit?: Prisma.ContractPhaseStepApprovalOmit<ExtArgs> | null;
1650
+ /**
1651
+ * Choose, which related nodes to fetch as well
1652
+ */
1653
+ include?: Prisma.ContractPhaseStepApprovalInclude<ExtArgs> | null;
1654
+ where?: Prisma.ContractPhaseStepApprovalWhereInput;
1655
+ orderBy?: Prisma.ContractPhaseStepApprovalOrderByWithRelationInput | Prisma.ContractPhaseStepApprovalOrderByWithRelationInput[];
1656
+ cursor?: Prisma.ContractPhaseStepApprovalWhereUniqueInput;
1657
+ take?: number;
1658
+ skip?: number;
1659
+ distinct?: Prisma.ContractPhaseStepApprovalScalarFieldEnum | Prisma.ContractPhaseStepApprovalScalarFieldEnum[];
1660
+ };
1661
+ /**
1662
+ * ContractPhaseStep without action
1663
+ */
1664
+ export type ContractPhaseStepDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1665
+ /**
1666
+ * Select specific fields to fetch from the ContractPhaseStep
1667
+ */
1668
+ select?: Prisma.ContractPhaseStepSelect<ExtArgs> | null;
1669
+ /**
1670
+ * Omit specific fields from the ContractPhaseStep
1671
+ */
1672
+ omit?: Prisma.ContractPhaseStepOmit<ExtArgs> | null;
1673
+ /**
1674
+ * Choose, which related nodes to fetch as well
1675
+ */
1676
+ include?: Prisma.ContractPhaseStepInclude<ExtArgs> | null;
1677
+ };
1678
+ export {};