@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,1249 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model ContractPhaseStepApproval
5
+ *
6
+ */
7
+ export type ContractPhaseStepApprovalModel = runtime.Types.Result.DefaultSelection<Prisma.$ContractPhaseStepApprovalPayload>;
8
+ export type AggregateContractPhaseStepApproval = {
9
+ _count: ContractPhaseStepApprovalCountAggregateOutputType | null;
10
+ _min: ContractPhaseStepApprovalMinAggregateOutputType | null;
11
+ _max: ContractPhaseStepApprovalMaxAggregateOutputType | null;
12
+ };
13
+ export type ContractPhaseStepApprovalMinAggregateOutputType = {
14
+ id: string | null;
15
+ stepId: string | null;
16
+ approverId: string | null;
17
+ decision: string | null;
18
+ comment: string | null;
19
+ decidedAt: Date | null;
20
+ createdAt: Date | null;
21
+ };
22
+ export type ContractPhaseStepApprovalMaxAggregateOutputType = {
23
+ id: string | null;
24
+ stepId: string | null;
25
+ approverId: string | null;
26
+ decision: string | null;
27
+ comment: string | null;
28
+ decidedAt: Date | null;
29
+ createdAt: Date | null;
30
+ };
31
+ export type ContractPhaseStepApprovalCountAggregateOutputType = {
32
+ id: number;
33
+ stepId: number;
34
+ approverId: number;
35
+ decision: number;
36
+ comment: number;
37
+ decidedAt: number;
38
+ createdAt: number;
39
+ _all: number;
40
+ };
41
+ export type ContractPhaseStepApprovalMinAggregateInputType = {
42
+ id?: true;
43
+ stepId?: true;
44
+ approverId?: true;
45
+ decision?: true;
46
+ comment?: true;
47
+ decidedAt?: true;
48
+ createdAt?: true;
49
+ };
50
+ export type ContractPhaseStepApprovalMaxAggregateInputType = {
51
+ id?: true;
52
+ stepId?: true;
53
+ approverId?: true;
54
+ decision?: true;
55
+ comment?: true;
56
+ decidedAt?: true;
57
+ createdAt?: true;
58
+ };
59
+ export type ContractPhaseStepApprovalCountAggregateInputType = {
60
+ id?: true;
61
+ stepId?: true;
62
+ approverId?: true;
63
+ decision?: true;
64
+ comment?: true;
65
+ decidedAt?: true;
66
+ createdAt?: true;
67
+ _all?: true;
68
+ };
69
+ export type ContractPhaseStepApprovalAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
70
+ /**
71
+ * Filter which ContractPhaseStepApproval to aggregate.
72
+ */
73
+ where?: Prisma.ContractPhaseStepApprovalWhereInput;
74
+ /**
75
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
76
+ *
77
+ * Determine the order of ContractPhaseStepApprovals to fetch.
78
+ */
79
+ orderBy?: Prisma.ContractPhaseStepApprovalOrderByWithRelationInput | Prisma.ContractPhaseStepApprovalOrderByWithRelationInput[];
80
+ /**
81
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
82
+ *
83
+ * Sets the start position
84
+ */
85
+ cursor?: Prisma.ContractPhaseStepApprovalWhereUniqueInput;
86
+ /**
87
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
88
+ *
89
+ * Take `±n` ContractPhaseStepApprovals from the position of the cursor.
90
+ */
91
+ take?: number;
92
+ /**
93
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
94
+ *
95
+ * Skip the first `n` ContractPhaseStepApprovals.
96
+ */
97
+ skip?: number;
98
+ /**
99
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
100
+ *
101
+ * Count returned ContractPhaseStepApprovals
102
+ **/
103
+ _count?: true | ContractPhaseStepApprovalCountAggregateInputType;
104
+ /**
105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
106
+ *
107
+ * Select which fields to find the minimum value
108
+ **/
109
+ _min?: ContractPhaseStepApprovalMinAggregateInputType;
110
+ /**
111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
112
+ *
113
+ * Select which fields to find the maximum value
114
+ **/
115
+ _max?: ContractPhaseStepApprovalMaxAggregateInputType;
116
+ };
117
+ export type GetContractPhaseStepApprovalAggregateType<T extends ContractPhaseStepApprovalAggregateArgs> = {
118
+ [P in keyof T & keyof AggregateContractPhaseStepApproval]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateContractPhaseStepApproval[P]> : Prisma.GetScalarType<T[P], AggregateContractPhaseStepApproval[P]>;
119
+ };
120
+ export type ContractPhaseStepApprovalGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
121
+ where?: Prisma.ContractPhaseStepApprovalWhereInput;
122
+ orderBy?: Prisma.ContractPhaseStepApprovalOrderByWithAggregationInput | Prisma.ContractPhaseStepApprovalOrderByWithAggregationInput[];
123
+ by: Prisma.ContractPhaseStepApprovalScalarFieldEnum[] | Prisma.ContractPhaseStepApprovalScalarFieldEnum;
124
+ having?: Prisma.ContractPhaseStepApprovalScalarWhereWithAggregatesInput;
125
+ take?: number;
126
+ skip?: number;
127
+ _count?: ContractPhaseStepApprovalCountAggregateInputType | true;
128
+ _min?: ContractPhaseStepApprovalMinAggregateInputType;
129
+ _max?: ContractPhaseStepApprovalMaxAggregateInputType;
130
+ };
131
+ export type ContractPhaseStepApprovalGroupByOutputType = {
132
+ id: string;
133
+ stepId: string;
134
+ approverId: string | null;
135
+ decision: string;
136
+ comment: string | null;
137
+ decidedAt: Date;
138
+ createdAt: Date;
139
+ _count: ContractPhaseStepApprovalCountAggregateOutputType | null;
140
+ _min: ContractPhaseStepApprovalMinAggregateOutputType | null;
141
+ _max: ContractPhaseStepApprovalMaxAggregateOutputType | null;
142
+ };
143
+ type GetContractPhaseStepApprovalGroupByPayload<T extends ContractPhaseStepApprovalGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ContractPhaseStepApprovalGroupByOutputType, T['by']> & {
144
+ [P in ((keyof T) & (keyof ContractPhaseStepApprovalGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ContractPhaseStepApprovalGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ContractPhaseStepApprovalGroupByOutputType[P]>;
145
+ }>>;
146
+ export type ContractPhaseStepApprovalWhereInput = {
147
+ AND?: Prisma.ContractPhaseStepApprovalWhereInput | Prisma.ContractPhaseStepApprovalWhereInput[];
148
+ OR?: Prisma.ContractPhaseStepApprovalWhereInput[];
149
+ NOT?: Prisma.ContractPhaseStepApprovalWhereInput | Prisma.ContractPhaseStepApprovalWhereInput[];
150
+ id?: Prisma.StringFilter<"ContractPhaseStepApproval"> | string;
151
+ stepId?: Prisma.StringFilter<"ContractPhaseStepApproval"> | string;
152
+ approverId?: Prisma.StringNullableFilter<"ContractPhaseStepApproval"> | string | null;
153
+ decision?: Prisma.StringFilter<"ContractPhaseStepApproval"> | string;
154
+ comment?: Prisma.StringNullableFilter<"ContractPhaseStepApproval"> | string | null;
155
+ decidedAt?: Prisma.DateTimeFilter<"ContractPhaseStepApproval"> | Date | string;
156
+ createdAt?: Prisma.DateTimeFilter<"ContractPhaseStepApproval"> | Date | string;
157
+ step?: Prisma.XOR<Prisma.ContractPhaseStepScalarRelationFilter, Prisma.ContractPhaseStepWhereInput>;
158
+ approver?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
159
+ };
160
+ export type ContractPhaseStepApprovalOrderByWithRelationInput = {
161
+ id?: Prisma.SortOrder;
162
+ stepId?: Prisma.SortOrder;
163
+ approverId?: Prisma.SortOrderInput | Prisma.SortOrder;
164
+ decision?: Prisma.SortOrder;
165
+ comment?: Prisma.SortOrderInput | Prisma.SortOrder;
166
+ decidedAt?: Prisma.SortOrder;
167
+ createdAt?: Prisma.SortOrder;
168
+ step?: Prisma.ContractPhaseStepOrderByWithRelationInput;
169
+ approver?: Prisma.UserOrderByWithRelationInput;
170
+ _relevance?: Prisma.ContractPhaseStepApprovalOrderByRelevanceInput;
171
+ };
172
+ export type ContractPhaseStepApprovalWhereUniqueInput = Prisma.AtLeast<{
173
+ id?: string;
174
+ AND?: Prisma.ContractPhaseStepApprovalWhereInput | Prisma.ContractPhaseStepApprovalWhereInput[];
175
+ OR?: Prisma.ContractPhaseStepApprovalWhereInput[];
176
+ NOT?: Prisma.ContractPhaseStepApprovalWhereInput | Prisma.ContractPhaseStepApprovalWhereInput[];
177
+ stepId?: Prisma.StringFilter<"ContractPhaseStepApproval"> | string;
178
+ approverId?: Prisma.StringNullableFilter<"ContractPhaseStepApproval"> | string | null;
179
+ decision?: Prisma.StringFilter<"ContractPhaseStepApproval"> | string;
180
+ comment?: Prisma.StringNullableFilter<"ContractPhaseStepApproval"> | string | null;
181
+ decidedAt?: Prisma.DateTimeFilter<"ContractPhaseStepApproval"> | Date | string;
182
+ createdAt?: Prisma.DateTimeFilter<"ContractPhaseStepApproval"> | Date | string;
183
+ step?: Prisma.XOR<Prisma.ContractPhaseStepScalarRelationFilter, Prisma.ContractPhaseStepWhereInput>;
184
+ approver?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
185
+ }, "id">;
186
+ export type ContractPhaseStepApprovalOrderByWithAggregationInput = {
187
+ id?: Prisma.SortOrder;
188
+ stepId?: Prisma.SortOrder;
189
+ approverId?: Prisma.SortOrderInput | Prisma.SortOrder;
190
+ decision?: Prisma.SortOrder;
191
+ comment?: Prisma.SortOrderInput | Prisma.SortOrder;
192
+ decidedAt?: Prisma.SortOrder;
193
+ createdAt?: Prisma.SortOrder;
194
+ _count?: Prisma.ContractPhaseStepApprovalCountOrderByAggregateInput;
195
+ _max?: Prisma.ContractPhaseStepApprovalMaxOrderByAggregateInput;
196
+ _min?: Prisma.ContractPhaseStepApprovalMinOrderByAggregateInput;
197
+ };
198
+ export type ContractPhaseStepApprovalScalarWhereWithAggregatesInput = {
199
+ AND?: Prisma.ContractPhaseStepApprovalScalarWhereWithAggregatesInput | Prisma.ContractPhaseStepApprovalScalarWhereWithAggregatesInput[];
200
+ OR?: Prisma.ContractPhaseStepApprovalScalarWhereWithAggregatesInput[];
201
+ NOT?: Prisma.ContractPhaseStepApprovalScalarWhereWithAggregatesInput | Prisma.ContractPhaseStepApprovalScalarWhereWithAggregatesInput[];
202
+ id?: Prisma.StringWithAggregatesFilter<"ContractPhaseStepApproval"> | string;
203
+ stepId?: Prisma.StringWithAggregatesFilter<"ContractPhaseStepApproval"> | string;
204
+ approverId?: Prisma.StringNullableWithAggregatesFilter<"ContractPhaseStepApproval"> | string | null;
205
+ decision?: Prisma.StringWithAggregatesFilter<"ContractPhaseStepApproval"> | string;
206
+ comment?: Prisma.StringNullableWithAggregatesFilter<"ContractPhaseStepApproval"> | string | null;
207
+ decidedAt?: Prisma.DateTimeWithAggregatesFilter<"ContractPhaseStepApproval"> | Date | string;
208
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"ContractPhaseStepApproval"> | Date | string;
209
+ };
210
+ export type ContractPhaseStepApprovalCreateInput = {
211
+ id?: string;
212
+ decision: string;
213
+ comment?: string | null;
214
+ decidedAt?: Date | string;
215
+ createdAt?: Date | string;
216
+ step: Prisma.ContractPhaseStepCreateNestedOneWithoutApprovalsInput;
217
+ approver?: Prisma.UserCreateNestedOneWithoutStepApprovalsInput;
218
+ };
219
+ export type ContractPhaseStepApprovalUncheckedCreateInput = {
220
+ id?: string;
221
+ stepId: string;
222
+ approverId?: string | null;
223
+ decision: string;
224
+ comment?: string | null;
225
+ decidedAt?: Date | string;
226
+ createdAt?: Date | string;
227
+ };
228
+ export type ContractPhaseStepApprovalUpdateInput = {
229
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
230
+ decision?: Prisma.StringFieldUpdateOperationsInput | string;
231
+ comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
232
+ decidedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
233
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
234
+ step?: Prisma.ContractPhaseStepUpdateOneRequiredWithoutApprovalsNestedInput;
235
+ approver?: Prisma.UserUpdateOneWithoutStepApprovalsNestedInput;
236
+ };
237
+ export type ContractPhaseStepApprovalUncheckedUpdateInput = {
238
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
239
+ stepId?: Prisma.StringFieldUpdateOperationsInput | string;
240
+ approverId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
241
+ decision?: Prisma.StringFieldUpdateOperationsInput | string;
242
+ comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
243
+ decidedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
244
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
245
+ };
246
+ export type ContractPhaseStepApprovalCreateManyInput = {
247
+ id?: string;
248
+ stepId: string;
249
+ approverId?: string | null;
250
+ decision: string;
251
+ comment?: string | null;
252
+ decidedAt?: Date | string;
253
+ createdAt?: Date | string;
254
+ };
255
+ export type ContractPhaseStepApprovalUpdateManyMutationInput = {
256
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
257
+ decision?: Prisma.StringFieldUpdateOperationsInput | string;
258
+ comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
259
+ decidedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
260
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
261
+ };
262
+ export type ContractPhaseStepApprovalUncheckedUpdateManyInput = {
263
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
264
+ stepId?: Prisma.StringFieldUpdateOperationsInput | string;
265
+ approverId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
266
+ decision?: Prisma.StringFieldUpdateOperationsInput | string;
267
+ comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
268
+ decidedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
269
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
270
+ };
271
+ export type ContractPhaseStepApprovalListRelationFilter = {
272
+ every?: Prisma.ContractPhaseStepApprovalWhereInput;
273
+ some?: Prisma.ContractPhaseStepApprovalWhereInput;
274
+ none?: Prisma.ContractPhaseStepApprovalWhereInput;
275
+ };
276
+ export type ContractPhaseStepApprovalOrderByRelationAggregateInput = {
277
+ _count?: Prisma.SortOrder;
278
+ };
279
+ export type ContractPhaseStepApprovalOrderByRelevanceInput = {
280
+ fields: Prisma.ContractPhaseStepApprovalOrderByRelevanceFieldEnum | Prisma.ContractPhaseStepApprovalOrderByRelevanceFieldEnum[];
281
+ sort: Prisma.SortOrder;
282
+ search: string;
283
+ };
284
+ export type ContractPhaseStepApprovalCountOrderByAggregateInput = {
285
+ id?: Prisma.SortOrder;
286
+ stepId?: Prisma.SortOrder;
287
+ approverId?: Prisma.SortOrder;
288
+ decision?: Prisma.SortOrder;
289
+ comment?: Prisma.SortOrder;
290
+ decidedAt?: Prisma.SortOrder;
291
+ createdAt?: Prisma.SortOrder;
292
+ };
293
+ export type ContractPhaseStepApprovalMaxOrderByAggregateInput = {
294
+ id?: Prisma.SortOrder;
295
+ stepId?: Prisma.SortOrder;
296
+ approverId?: Prisma.SortOrder;
297
+ decision?: Prisma.SortOrder;
298
+ comment?: Prisma.SortOrder;
299
+ decidedAt?: Prisma.SortOrder;
300
+ createdAt?: Prisma.SortOrder;
301
+ };
302
+ export type ContractPhaseStepApprovalMinOrderByAggregateInput = {
303
+ id?: Prisma.SortOrder;
304
+ stepId?: Prisma.SortOrder;
305
+ approverId?: Prisma.SortOrder;
306
+ decision?: Prisma.SortOrder;
307
+ comment?: Prisma.SortOrder;
308
+ decidedAt?: Prisma.SortOrder;
309
+ createdAt?: Prisma.SortOrder;
310
+ };
311
+ export type ContractPhaseStepApprovalCreateNestedManyWithoutApproverInput = {
312
+ create?: Prisma.XOR<Prisma.ContractPhaseStepApprovalCreateWithoutApproverInput, Prisma.ContractPhaseStepApprovalUncheckedCreateWithoutApproverInput> | Prisma.ContractPhaseStepApprovalCreateWithoutApproverInput[] | Prisma.ContractPhaseStepApprovalUncheckedCreateWithoutApproverInput[];
313
+ connectOrCreate?: Prisma.ContractPhaseStepApprovalCreateOrConnectWithoutApproverInput | Prisma.ContractPhaseStepApprovalCreateOrConnectWithoutApproverInput[];
314
+ createMany?: Prisma.ContractPhaseStepApprovalCreateManyApproverInputEnvelope;
315
+ connect?: Prisma.ContractPhaseStepApprovalWhereUniqueInput | Prisma.ContractPhaseStepApprovalWhereUniqueInput[];
316
+ };
317
+ export type ContractPhaseStepApprovalUncheckedCreateNestedManyWithoutApproverInput = {
318
+ create?: Prisma.XOR<Prisma.ContractPhaseStepApprovalCreateWithoutApproverInput, Prisma.ContractPhaseStepApprovalUncheckedCreateWithoutApproverInput> | Prisma.ContractPhaseStepApprovalCreateWithoutApproverInput[] | Prisma.ContractPhaseStepApprovalUncheckedCreateWithoutApproverInput[];
319
+ connectOrCreate?: Prisma.ContractPhaseStepApprovalCreateOrConnectWithoutApproverInput | Prisma.ContractPhaseStepApprovalCreateOrConnectWithoutApproverInput[];
320
+ createMany?: Prisma.ContractPhaseStepApprovalCreateManyApproverInputEnvelope;
321
+ connect?: Prisma.ContractPhaseStepApprovalWhereUniqueInput | Prisma.ContractPhaseStepApprovalWhereUniqueInput[];
322
+ };
323
+ export type ContractPhaseStepApprovalUpdateManyWithoutApproverNestedInput = {
324
+ create?: Prisma.XOR<Prisma.ContractPhaseStepApprovalCreateWithoutApproverInput, Prisma.ContractPhaseStepApprovalUncheckedCreateWithoutApproverInput> | Prisma.ContractPhaseStepApprovalCreateWithoutApproverInput[] | Prisma.ContractPhaseStepApprovalUncheckedCreateWithoutApproverInput[];
325
+ connectOrCreate?: Prisma.ContractPhaseStepApprovalCreateOrConnectWithoutApproverInput | Prisma.ContractPhaseStepApprovalCreateOrConnectWithoutApproverInput[];
326
+ upsert?: Prisma.ContractPhaseStepApprovalUpsertWithWhereUniqueWithoutApproverInput | Prisma.ContractPhaseStepApprovalUpsertWithWhereUniqueWithoutApproverInput[];
327
+ createMany?: Prisma.ContractPhaseStepApprovalCreateManyApproverInputEnvelope;
328
+ set?: Prisma.ContractPhaseStepApprovalWhereUniqueInput | Prisma.ContractPhaseStepApprovalWhereUniqueInput[];
329
+ disconnect?: Prisma.ContractPhaseStepApprovalWhereUniqueInput | Prisma.ContractPhaseStepApprovalWhereUniqueInput[];
330
+ delete?: Prisma.ContractPhaseStepApprovalWhereUniqueInput | Prisma.ContractPhaseStepApprovalWhereUniqueInput[];
331
+ connect?: Prisma.ContractPhaseStepApprovalWhereUniqueInput | Prisma.ContractPhaseStepApprovalWhereUniqueInput[];
332
+ update?: Prisma.ContractPhaseStepApprovalUpdateWithWhereUniqueWithoutApproverInput | Prisma.ContractPhaseStepApprovalUpdateWithWhereUniqueWithoutApproverInput[];
333
+ updateMany?: Prisma.ContractPhaseStepApprovalUpdateManyWithWhereWithoutApproverInput | Prisma.ContractPhaseStepApprovalUpdateManyWithWhereWithoutApproverInput[];
334
+ deleteMany?: Prisma.ContractPhaseStepApprovalScalarWhereInput | Prisma.ContractPhaseStepApprovalScalarWhereInput[];
335
+ };
336
+ export type ContractPhaseStepApprovalUncheckedUpdateManyWithoutApproverNestedInput = {
337
+ create?: Prisma.XOR<Prisma.ContractPhaseStepApprovalCreateWithoutApproverInput, Prisma.ContractPhaseStepApprovalUncheckedCreateWithoutApproverInput> | Prisma.ContractPhaseStepApprovalCreateWithoutApproverInput[] | Prisma.ContractPhaseStepApprovalUncheckedCreateWithoutApproverInput[];
338
+ connectOrCreate?: Prisma.ContractPhaseStepApprovalCreateOrConnectWithoutApproverInput | Prisma.ContractPhaseStepApprovalCreateOrConnectWithoutApproverInput[];
339
+ upsert?: Prisma.ContractPhaseStepApprovalUpsertWithWhereUniqueWithoutApproverInput | Prisma.ContractPhaseStepApprovalUpsertWithWhereUniqueWithoutApproverInput[];
340
+ createMany?: Prisma.ContractPhaseStepApprovalCreateManyApproverInputEnvelope;
341
+ set?: Prisma.ContractPhaseStepApprovalWhereUniqueInput | Prisma.ContractPhaseStepApprovalWhereUniqueInput[];
342
+ disconnect?: Prisma.ContractPhaseStepApprovalWhereUniqueInput | Prisma.ContractPhaseStepApprovalWhereUniqueInput[];
343
+ delete?: Prisma.ContractPhaseStepApprovalWhereUniqueInput | Prisma.ContractPhaseStepApprovalWhereUniqueInput[];
344
+ connect?: Prisma.ContractPhaseStepApprovalWhereUniqueInput | Prisma.ContractPhaseStepApprovalWhereUniqueInput[];
345
+ update?: Prisma.ContractPhaseStepApprovalUpdateWithWhereUniqueWithoutApproverInput | Prisma.ContractPhaseStepApprovalUpdateWithWhereUniqueWithoutApproverInput[];
346
+ updateMany?: Prisma.ContractPhaseStepApprovalUpdateManyWithWhereWithoutApproverInput | Prisma.ContractPhaseStepApprovalUpdateManyWithWhereWithoutApproverInput[];
347
+ deleteMany?: Prisma.ContractPhaseStepApprovalScalarWhereInput | Prisma.ContractPhaseStepApprovalScalarWhereInput[];
348
+ };
349
+ export type ContractPhaseStepApprovalCreateNestedManyWithoutStepInput = {
350
+ create?: Prisma.XOR<Prisma.ContractPhaseStepApprovalCreateWithoutStepInput, Prisma.ContractPhaseStepApprovalUncheckedCreateWithoutStepInput> | Prisma.ContractPhaseStepApprovalCreateWithoutStepInput[] | Prisma.ContractPhaseStepApprovalUncheckedCreateWithoutStepInput[];
351
+ connectOrCreate?: Prisma.ContractPhaseStepApprovalCreateOrConnectWithoutStepInput | Prisma.ContractPhaseStepApprovalCreateOrConnectWithoutStepInput[];
352
+ createMany?: Prisma.ContractPhaseStepApprovalCreateManyStepInputEnvelope;
353
+ connect?: Prisma.ContractPhaseStepApprovalWhereUniqueInput | Prisma.ContractPhaseStepApprovalWhereUniqueInput[];
354
+ };
355
+ export type ContractPhaseStepApprovalUncheckedCreateNestedManyWithoutStepInput = {
356
+ create?: Prisma.XOR<Prisma.ContractPhaseStepApprovalCreateWithoutStepInput, Prisma.ContractPhaseStepApprovalUncheckedCreateWithoutStepInput> | Prisma.ContractPhaseStepApprovalCreateWithoutStepInput[] | Prisma.ContractPhaseStepApprovalUncheckedCreateWithoutStepInput[];
357
+ connectOrCreate?: Prisma.ContractPhaseStepApprovalCreateOrConnectWithoutStepInput | Prisma.ContractPhaseStepApprovalCreateOrConnectWithoutStepInput[];
358
+ createMany?: Prisma.ContractPhaseStepApprovalCreateManyStepInputEnvelope;
359
+ connect?: Prisma.ContractPhaseStepApprovalWhereUniqueInput | Prisma.ContractPhaseStepApprovalWhereUniqueInput[];
360
+ };
361
+ export type ContractPhaseStepApprovalUpdateManyWithoutStepNestedInput = {
362
+ create?: Prisma.XOR<Prisma.ContractPhaseStepApprovalCreateWithoutStepInput, Prisma.ContractPhaseStepApprovalUncheckedCreateWithoutStepInput> | Prisma.ContractPhaseStepApprovalCreateWithoutStepInput[] | Prisma.ContractPhaseStepApprovalUncheckedCreateWithoutStepInput[];
363
+ connectOrCreate?: Prisma.ContractPhaseStepApprovalCreateOrConnectWithoutStepInput | Prisma.ContractPhaseStepApprovalCreateOrConnectWithoutStepInput[];
364
+ upsert?: Prisma.ContractPhaseStepApprovalUpsertWithWhereUniqueWithoutStepInput | Prisma.ContractPhaseStepApprovalUpsertWithWhereUniqueWithoutStepInput[];
365
+ createMany?: Prisma.ContractPhaseStepApprovalCreateManyStepInputEnvelope;
366
+ set?: Prisma.ContractPhaseStepApprovalWhereUniqueInput | Prisma.ContractPhaseStepApprovalWhereUniqueInput[];
367
+ disconnect?: Prisma.ContractPhaseStepApprovalWhereUniqueInput | Prisma.ContractPhaseStepApprovalWhereUniqueInput[];
368
+ delete?: Prisma.ContractPhaseStepApprovalWhereUniqueInput | Prisma.ContractPhaseStepApprovalWhereUniqueInput[];
369
+ connect?: Prisma.ContractPhaseStepApprovalWhereUniqueInput | Prisma.ContractPhaseStepApprovalWhereUniqueInput[];
370
+ update?: Prisma.ContractPhaseStepApprovalUpdateWithWhereUniqueWithoutStepInput | Prisma.ContractPhaseStepApprovalUpdateWithWhereUniqueWithoutStepInput[];
371
+ updateMany?: Prisma.ContractPhaseStepApprovalUpdateManyWithWhereWithoutStepInput | Prisma.ContractPhaseStepApprovalUpdateManyWithWhereWithoutStepInput[];
372
+ deleteMany?: Prisma.ContractPhaseStepApprovalScalarWhereInput | Prisma.ContractPhaseStepApprovalScalarWhereInput[];
373
+ };
374
+ export type ContractPhaseStepApprovalUncheckedUpdateManyWithoutStepNestedInput = {
375
+ create?: Prisma.XOR<Prisma.ContractPhaseStepApprovalCreateWithoutStepInput, Prisma.ContractPhaseStepApprovalUncheckedCreateWithoutStepInput> | Prisma.ContractPhaseStepApprovalCreateWithoutStepInput[] | Prisma.ContractPhaseStepApprovalUncheckedCreateWithoutStepInput[];
376
+ connectOrCreate?: Prisma.ContractPhaseStepApprovalCreateOrConnectWithoutStepInput | Prisma.ContractPhaseStepApprovalCreateOrConnectWithoutStepInput[];
377
+ upsert?: Prisma.ContractPhaseStepApprovalUpsertWithWhereUniqueWithoutStepInput | Prisma.ContractPhaseStepApprovalUpsertWithWhereUniqueWithoutStepInput[];
378
+ createMany?: Prisma.ContractPhaseStepApprovalCreateManyStepInputEnvelope;
379
+ set?: Prisma.ContractPhaseStepApprovalWhereUniqueInput | Prisma.ContractPhaseStepApprovalWhereUniqueInput[];
380
+ disconnect?: Prisma.ContractPhaseStepApprovalWhereUniqueInput | Prisma.ContractPhaseStepApprovalWhereUniqueInput[];
381
+ delete?: Prisma.ContractPhaseStepApprovalWhereUniqueInput | Prisma.ContractPhaseStepApprovalWhereUniqueInput[];
382
+ connect?: Prisma.ContractPhaseStepApprovalWhereUniqueInput | Prisma.ContractPhaseStepApprovalWhereUniqueInput[];
383
+ update?: Prisma.ContractPhaseStepApprovalUpdateWithWhereUniqueWithoutStepInput | Prisma.ContractPhaseStepApprovalUpdateWithWhereUniqueWithoutStepInput[];
384
+ updateMany?: Prisma.ContractPhaseStepApprovalUpdateManyWithWhereWithoutStepInput | Prisma.ContractPhaseStepApprovalUpdateManyWithWhereWithoutStepInput[];
385
+ deleteMany?: Prisma.ContractPhaseStepApprovalScalarWhereInput | Prisma.ContractPhaseStepApprovalScalarWhereInput[];
386
+ };
387
+ export type ContractPhaseStepApprovalCreateWithoutApproverInput = {
388
+ id?: string;
389
+ decision: string;
390
+ comment?: string | null;
391
+ decidedAt?: Date | string;
392
+ createdAt?: Date | string;
393
+ step: Prisma.ContractPhaseStepCreateNestedOneWithoutApprovalsInput;
394
+ };
395
+ export type ContractPhaseStepApprovalUncheckedCreateWithoutApproverInput = {
396
+ id?: string;
397
+ stepId: string;
398
+ decision: string;
399
+ comment?: string | null;
400
+ decidedAt?: Date | string;
401
+ createdAt?: Date | string;
402
+ };
403
+ export type ContractPhaseStepApprovalCreateOrConnectWithoutApproverInput = {
404
+ where: Prisma.ContractPhaseStepApprovalWhereUniqueInput;
405
+ create: Prisma.XOR<Prisma.ContractPhaseStepApprovalCreateWithoutApproverInput, Prisma.ContractPhaseStepApprovalUncheckedCreateWithoutApproverInput>;
406
+ };
407
+ export type ContractPhaseStepApprovalCreateManyApproverInputEnvelope = {
408
+ data: Prisma.ContractPhaseStepApprovalCreateManyApproverInput | Prisma.ContractPhaseStepApprovalCreateManyApproverInput[];
409
+ skipDuplicates?: boolean;
410
+ };
411
+ export type ContractPhaseStepApprovalUpsertWithWhereUniqueWithoutApproverInput = {
412
+ where: Prisma.ContractPhaseStepApprovalWhereUniqueInput;
413
+ update: Prisma.XOR<Prisma.ContractPhaseStepApprovalUpdateWithoutApproverInput, Prisma.ContractPhaseStepApprovalUncheckedUpdateWithoutApproverInput>;
414
+ create: Prisma.XOR<Prisma.ContractPhaseStepApprovalCreateWithoutApproverInput, Prisma.ContractPhaseStepApprovalUncheckedCreateWithoutApproverInput>;
415
+ };
416
+ export type ContractPhaseStepApprovalUpdateWithWhereUniqueWithoutApproverInput = {
417
+ where: Prisma.ContractPhaseStepApprovalWhereUniqueInput;
418
+ data: Prisma.XOR<Prisma.ContractPhaseStepApprovalUpdateWithoutApproverInput, Prisma.ContractPhaseStepApprovalUncheckedUpdateWithoutApproverInput>;
419
+ };
420
+ export type ContractPhaseStepApprovalUpdateManyWithWhereWithoutApproverInput = {
421
+ where: Prisma.ContractPhaseStepApprovalScalarWhereInput;
422
+ data: Prisma.XOR<Prisma.ContractPhaseStepApprovalUpdateManyMutationInput, Prisma.ContractPhaseStepApprovalUncheckedUpdateManyWithoutApproverInput>;
423
+ };
424
+ export type ContractPhaseStepApprovalScalarWhereInput = {
425
+ AND?: Prisma.ContractPhaseStepApprovalScalarWhereInput | Prisma.ContractPhaseStepApprovalScalarWhereInput[];
426
+ OR?: Prisma.ContractPhaseStepApprovalScalarWhereInput[];
427
+ NOT?: Prisma.ContractPhaseStepApprovalScalarWhereInput | Prisma.ContractPhaseStepApprovalScalarWhereInput[];
428
+ id?: Prisma.StringFilter<"ContractPhaseStepApproval"> | string;
429
+ stepId?: Prisma.StringFilter<"ContractPhaseStepApproval"> | string;
430
+ approverId?: Prisma.StringNullableFilter<"ContractPhaseStepApproval"> | string | null;
431
+ decision?: Prisma.StringFilter<"ContractPhaseStepApproval"> | string;
432
+ comment?: Prisma.StringNullableFilter<"ContractPhaseStepApproval"> | string | null;
433
+ decidedAt?: Prisma.DateTimeFilter<"ContractPhaseStepApproval"> | Date | string;
434
+ createdAt?: Prisma.DateTimeFilter<"ContractPhaseStepApproval"> | Date | string;
435
+ };
436
+ export type ContractPhaseStepApprovalCreateWithoutStepInput = {
437
+ id?: string;
438
+ decision: string;
439
+ comment?: string | null;
440
+ decidedAt?: Date | string;
441
+ createdAt?: Date | string;
442
+ approver?: Prisma.UserCreateNestedOneWithoutStepApprovalsInput;
443
+ };
444
+ export type ContractPhaseStepApprovalUncheckedCreateWithoutStepInput = {
445
+ id?: string;
446
+ approverId?: string | null;
447
+ decision: string;
448
+ comment?: string | null;
449
+ decidedAt?: Date | string;
450
+ createdAt?: Date | string;
451
+ };
452
+ export type ContractPhaseStepApprovalCreateOrConnectWithoutStepInput = {
453
+ where: Prisma.ContractPhaseStepApprovalWhereUniqueInput;
454
+ create: Prisma.XOR<Prisma.ContractPhaseStepApprovalCreateWithoutStepInput, Prisma.ContractPhaseStepApprovalUncheckedCreateWithoutStepInput>;
455
+ };
456
+ export type ContractPhaseStepApprovalCreateManyStepInputEnvelope = {
457
+ data: Prisma.ContractPhaseStepApprovalCreateManyStepInput | Prisma.ContractPhaseStepApprovalCreateManyStepInput[];
458
+ skipDuplicates?: boolean;
459
+ };
460
+ export type ContractPhaseStepApprovalUpsertWithWhereUniqueWithoutStepInput = {
461
+ where: Prisma.ContractPhaseStepApprovalWhereUniqueInput;
462
+ update: Prisma.XOR<Prisma.ContractPhaseStepApprovalUpdateWithoutStepInput, Prisma.ContractPhaseStepApprovalUncheckedUpdateWithoutStepInput>;
463
+ create: Prisma.XOR<Prisma.ContractPhaseStepApprovalCreateWithoutStepInput, Prisma.ContractPhaseStepApprovalUncheckedCreateWithoutStepInput>;
464
+ };
465
+ export type ContractPhaseStepApprovalUpdateWithWhereUniqueWithoutStepInput = {
466
+ where: Prisma.ContractPhaseStepApprovalWhereUniqueInput;
467
+ data: Prisma.XOR<Prisma.ContractPhaseStepApprovalUpdateWithoutStepInput, Prisma.ContractPhaseStepApprovalUncheckedUpdateWithoutStepInput>;
468
+ };
469
+ export type ContractPhaseStepApprovalUpdateManyWithWhereWithoutStepInput = {
470
+ where: Prisma.ContractPhaseStepApprovalScalarWhereInput;
471
+ data: Prisma.XOR<Prisma.ContractPhaseStepApprovalUpdateManyMutationInput, Prisma.ContractPhaseStepApprovalUncheckedUpdateManyWithoutStepInput>;
472
+ };
473
+ export type ContractPhaseStepApprovalCreateManyApproverInput = {
474
+ id?: string;
475
+ stepId: string;
476
+ decision: string;
477
+ comment?: string | null;
478
+ decidedAt?: Date | string;
479
+ createdAt?: Date | string;
480
+ };
481
+ export type ContractPhaseStepApprovalUpdateWithoutApproverInput = {
482
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
483
+ decision?: Prisma.StringFieldUpdateOperationsInput | string;
484
+ comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
485
+ decidedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
486
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
487
+ step?: Prisma.ContractPhaseStepUpdateOneRequiredWithoutApprovalsNestedInput;
488
+ };
489
+ export type ContractPhaseStepApprovalUncheckedUpdateWithoutApproverInput = {
490
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
491
+ stepId?: Prisma.StringFieldUpdateOperationsInput | string;
492
+ decision?: Prisma.StringFieldUpdateOperationsInput | string;
493
+ comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
494
+ decidedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
495
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
496
+ };
497
+ export type ContractPhaseStepApprovalUncheckedUpdateManyWithoutApproverInput = {
498
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
499
+ stepId?: Prisma.StringFieldUpdateOperationsInput | string;
500
+ decision?: Prisma.StringFieldUpdateOperationsInput | string;
501
+ comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
502
+ decidedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
503
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
504
+ };
505
+ export type ContractPhaseStepApprovalCreateManyStepInput = {
506
+ id?: string;
507
+ approverId?: string | null;
508
+ decision: string;
509
+ comment?: string | null;
510
+ decidedAt?: Date | string;
511
+ createdAt?: Date | string;
512
+ };
513
+ export type ContractPhaseStepApprovalUpdateWithoutStepInput = {
514
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
515
+ decision?: Prisma.StringFieldUpdateOperationsInput | string;
516
+ comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
517
+ decidedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
518
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
519
+ approver?: Prisma.UserUpdateOneWithoutStepApprovalsNestedInput;
520
+ };
521
+ export type ContractPhaseStepApprovalUncheckedUpdateWithoutStepInput = {
522
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
523
+ approverId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
524
+ decision?: Prisma.StringFieldUpdateOperationsInput | string;
525
+ comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
526
+ decidedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
527
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
528
+ };
529
+ export type ContractPhaseStepApprovalUncheckedUpdateManyWithoutStepInput = {
530
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
531
+ approverId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
532
+ decision?: Prisma.StringFieldUpdateOperationsInput | string;
533
+ comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
534
+ decidedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
535
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
536
+ };
537
+ export type ContractPhaseStepApprovalSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
538
+ id?: boolean;
539
+ stepId?: boolean;
540
+ approverId?: boolean;
541
+ decision?: boolean;
542
+ comment?: boolean;
543
+ decidedAt?: boolean;
544
+ createdAt?: boolean;
545
+ step?: boolean | Prisma.ContractPhaseStepDefaultArgs<ExtArgs>;
546
+ approver?: boolean | Prisma.ContractPhaseStepApproval$approverArgs<ExtArgs>;
547
+ }, ExtArgs["result"]["contractPhaseStepApproval"]>;
548
+ export type ContractPhaseStepApprovalSelectScalar = {
549
+ id?: boolean;
550
+ stepId?: boolean;
551
+ approverId?: boolean;
552
+ decision?: boolean;
553
+ comment?: boolean;
554
+ decidedAt?: boolean;
555
+ createdAt?: boolean;
556
+ };
557
+ export type ContractPhaseStepApprovalOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "stepId" | "approverId" | "decision" | "comment" | "decidedAt" | "createdAt", ExtArgs["result"]["contractPhaseStepApproval"]>;
558
+ export type ContractPhaseStepApprovalInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
559
+ step?: boolean | Prisma.ContractPhaseStepDefaultArgs<ExtArgs>;
560
+ approver?: boolean | Prisma.ContractPhaseStepApproval$approverArgs<ExtArgs>;
561
+ };
562
+ export type $ContractPhaseStepApprovalPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
563
+ name: "ContractPhaseStepApproval";
564
+ objects: {
565
+ step: Prisma.$ContractPhaseStepPayload<ExtArgs>;
566
+ approver: Prisma.$UserPayload<ExtArgs> | null;
567
+ };
568
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
569
+ id: string;
570
+ stepId: string;
571
+ approverId: string | null;
572
+ decision: string;
573
+ comment: string | null;
574
+ decidedAt: Date;
575
+ createdAt: Date;
576
+ }, ExtArgs["result"]["contractPhaseStepApproval"]>;
577
+ composites: {};
578
+ };
579
+ export type ContractPhaseStepApprovalGetPayload<S extends boolean | null | undefined | ContractPhaseStepApprovalDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepApprovalPayload, S>;
580
+ export type ContractPhaseStepApprovalCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ContractPhaseStepApprovalFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
581
+ select?: ContractPhaseStepApprovalCountAggregateInputType | true;
582
+ };
583
+ export interface ContractPhaseStepApprovalDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
584
+ [K: symbol]: {
585
+ types: Prisma.TypeMap<ExtArgs>['model']['ContractPhaseStepApproval'];
586
+ meta: {
587
+ name: 'ContractPhaseStepApproval';
588
+ };
589
+ };
590
+ /**
591
+ * Find zero or one ContractPhaseStepApproval that matches the filter.
592
+ * @param {ContractPhaseStepApprovalFindUniqueArgs} args - Arguments to find a ContractPhaseStepApproval
593
+ * @example
594
+ * // Get one ContractPhaseStepApproval
595
+ * const contractPhaseStepApproval = await prisma.contractPhaseStepApproval.findUnique({
596
+ * where: {
597
+ * // ... provide filter here
598
+ * }
599
+ * })
600
+ */
601
+ findUnique<T extends ContractPhaseStepApprovalFindUniqueArgs>(args: Prisma.SelectSubset<T, ContractPhaseStepApprovalFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseStepApprovalClient<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepApprovalPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
602
+ /**
603
+ * Find one ContractPhaseStepApproval that matches the filter or throw an error with `error.code='P2025'`
604
+ * if no matches were found.
605
+ * @param {ContractPhaseStepApprovalFindUniqueOrThrowArgs} args - Arguments to find a ContractPhaseStepApproval
606
+ * @example
607
+ * // Get one ContractPhaseStepApproval
608
+ * const contractPhaseStepApproval = await prisma.contractPhaseStepApproval.findUniqueOrThrow({
609
+ * where: {
610
+ * // ... provide filter here
611
+ * }
612
+ * })
613
+ */
614
+ findUniqueOrThrow<T extends ContractPhaseStepApprovalFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ContractPhaseStepApprovalFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseStepApprovalClient<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepApprovalPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
615
+ /**
616
+ * Find the first ContractPhaseStepApproval that matches the filter.
617
+ * Note, that providing `undefined` is treated as the value not being there.
618
+ * Read more here: https://pris.ly/d/null-undefined
619
+ * @param {ContractPhaseStepApprovalFindFirstArgs} args - Arguments to find a ContractPhaseStepApproval
620
+ * @example
621
+ * // Get one ContractPhaseStepApproval
622
+ * const contractPhaseStepApproval = await prisma.contractPhaseStepApproval.findFirst({
623
+ * where: {
624
+ * // ... provide filter here
625
+ * }
626
+ * })
627
+ */
628
+ findFirst<T extends ContractPhaseStepApprovalFindFirstArgs>(args?: Prisma.SelectSubset<T, ContractPhaseStepApprovalFindFirstArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseStepApprovalClient<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepApprovalPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
629
+ /**
630
+ * Find the first ContractPhaseStepApproval that matches the filter or
631
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
632
+ * Note, that providing `undefined` is treated as the value not being there.
633
+ * Read more here: https://pris.ly/d/null-undefined
634
+ * @param {ContractPhaseStepApprovalFindFirstOrThrowArgs} args - Arguments to find a ContractPhaseStepApproval
635
+ * @example
636
+ * // Get one ContractPhaseStepApproval
637
+ * const contractPhaseStepApproval = await prisma.contractPhaseStepApproval.findFirstOrThrow({
638
+ * where: {
639
+ * // ... provide filter here
640
+ * }
641
+ * })
642
+ */
643
+ findFirstOrThrow<T extends ContractPhaseStepApprovalFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ContractPhaseStepApprovalFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseStepApprovalClient<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepApprovalPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
644
+ /**
645
+ * Find zero or more ContractPhaseStepApprovals that matches the filter.
646
+ * Note, that providing `undefined` is treated as the value not being there.
647
+ * Read more here: https://pris.ly/d/null-undefined
648
+ * @param {ContractPhaseStepApprovalFindManyArgs} args - Arguments to filter and select certain fields only.
649
+ * @example
650
+ * // Get all ContractPhaseStepApprovals
651
+ * const contractPhaseStepApprovals = await prisma.contractPhaseStepApproval.findMany()
652
+ *
653
+ * // Get first 10 ContractPhaseStepApprovals
654
+ * const contractPhaseStepApprovals = await prisma.contractPhaseStepApproval.findMany({ take: 10 })
655
+ *
656
+ * // Only select the `id`
657
+ * const contractPhaseStepApprovalWithIdOnly = await prisma.contractPhaseStepApproval.findMany({ select: { id: true } })
658
+ *
659
+ */
660
+ findMany<T extends ContractPhaseStepApprovalFindManyArgs>(args?: Prisma.SelectSubset<T, ContractPhaseStepApprovalFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepApprovalPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
661
+ /**
662
+ * Create a ContractPhaseStepApproval.
663
+ * @param {ContractPhaseStepApprovalCreateArgs} args - Arguments to create a ContractPhaseStepApproval.
664
+ * @example
665
+ * // Create one ContractPhaseStepApproval
666
+ * const ContractPhaseStepApproval = await prisma.contractPhaseStepApproval.create({
667
+ * data: {
668
+ * // ... data to create a ContractPhaseStepApproval
669
+ * }
670
+ * })
671
+ *
672
+ */
673
+ create<T extends ContractPhaseStepApprovalCreateArgs>(args: Prisma.SelectSubset<T, ContractPhaseStepApprovalCreateArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseStepApprovalClient<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepApprovalPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
674
+ /**
675
+ * Create many ContractPhaseStepApprovals.
676
+ * @param {ContractPhaseStepApprovalCreateManyArgs} args - Arguments to create many ContractPhaseStepApprovals.
677
+ * @example
678
+ * // Create many ContractPhaseStepApprovals
679
+ * const contractPhaseStepApproval = await prisma.contractPhaseStepApproval.createMany({
680
+ * data: [
681
+ * // ... provide data here
682
+ * ]
683
+ * })
684
+ *
685
+ */
686
+ createMany<T extends ContractPhaseStepApprovalCreateManyArgs>(args?: Prisma.SelectSubset<T, ContractPhaseStepApprovalCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
687
+ /**
688
+ * Delete a ContractPhaseStepApproval.
689
+ * @param {ContractPhaseStepApprovalDeleteArgs} args - Arguments to delete one ContractPhaseStepApproval.
690
+ * @example
691
+ * // Delete one ContractPhaseStepApproval
692
+ * const ContractPhaseStepApproval = await prisma.contractPhaseStepApproval.delete({
693
+ * where: {
694
+ * // ... filter to delete one ContractPhaseStepApproval
695
+ * }
696
+ * })
697
+ *
698
+ */
699
+ delete<T extends ContractPhaseStepApprovalDeleteArgs>(args: Prisma.SelectSubset<T, ContractPhaseStepApprovalDeleteArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseStepApprovalClient<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepApprovalPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
700
+ /**
701
+ * Update one ContractPhaseStepApproval.
702
+ * @param {ContractPhaseStepApprovalUpdateArgs} args - Arguments to update one ContractPhaseStepApproval.
703
+ * @example
704
+ * // Update one ContractPhaseStepApproval
705
+ * const contractPhaseStepApproval = await prisma.contractPhaseStepApproval.update({
706
+ * where: {
707
+ * // ... provide filter here
708
+ * },
709
+ * data: {
710
+ * // ... provide data here
711
+ * }
712
+ * })
713
+ *
714
+ */
715
+ update<T extends ContractPhaseStepApprovalUpdateArgs>(args: Prisma.SelectSubset<T, ContractPhaseStepApprovalUpdateArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseStepApprovalClient<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepApprovalPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
716
+ /**
717
+ * Delete zero or more ContractPhaseStepApprovals.
718
+ * @param {ContractPhaseStepApprovalDeleteManyArgs} args - Arguments to filter ContractPhaseStepApprovals to delete.
719
+ * @example
720
+ * // Delete a few ContractPhaseStepApprovals
721
+ * const { count } = await prisma.contractPhaseStepApproval.deleteMany({
722
+ * where: {
723
+ * // ... provide filter here
724
+ * }
725
+ * })
726
+ *
727
+ */
728
+ deleteMany<T extends ContractPhaseStepApprovalDeleteManyArgs>(args?: Prisma.SelectSubset<T, ContractPhaseStepApprovalDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
729
+ /**
730
+ * Update zero or more ContractPhaseStepApprovals.
731
+ * Note, that providing `undefined` is treated as the value not being there.
732
+ * Read more here: https://pris.ly/d/null-undefined
733
+ * @param {ContractPhaseStepApprovalUpdateManyArgs} args - Arguments to update one or more rows.
734
+ * @example
735
+ * // Update many ContractPhaseStepApprovals
736
+ * const contractPhaseStepApproval = await prisma.contractPhaseStepApproval.updateMany({
737
+ * where: {
738
+ * // ... provide filter here
739
+ * },
740
+ * data: {
741
+ * // ... provide data here
742
+ * }
743
+ * })
744
+ *
745
+ */
746
+ updateMany<T extends ContractPhaseStepApprovalUpdateManyArgs>(args: Prisma.SelectSubset<T, ContractPhaseStepApprovalUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
747
+ /**
748
+ * Create or update one ContractPhaseStepApproval.
749
+ * @param {ContractPhaseStepApprovalUpsertArgs} args - Arguments to update or create a ContractPhaseStepApproval.
750
+ * @example
751
+ * // Update or create a ContractPhaseStepApproval
752
+ * const contractPhaseStepApproval = await prisma.contractPhaseStepApproval.upsert({
753
+ * create: {
754
+ * // ... data to create a ContractPhaseStepApproval
755
+ * },
756
+ * update: {
757
+ * // ... in case it already exists, update
758
+ * },
759
+ * where: {
760
+ * // ... the filter for the ContractPhaseStepApproval we want to update
761
+ * }
762
+ * })
763
+ */
764
+ upsert<T extends ContractPhaseStepApprovalUpsertArgs>(args: Prisma.SelectSubset<T, ContractPhaseStepApprovalUpsertArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseStepApprovalClient<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepApprovalPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
765
+ /**
766
+ * Count the number of ContractPhaseStepApprovals.
767
+ * Note, that providing `undefined` is treated as the value not being there.
768
+ * Read more here: https://pris.ly/d/null-undefined
769
+ * @param {ContractPhaseStepApprovalCountArgs} args - Arguments to filter ContractPhaseStepApprovals to count.
770
+ * @example
771
+ * // Count the number of ContractPhaseStepApprovals
772
+ * const count = await prisma.contractPhaseStepApproval.count({
773
+ * where: {
774
+ * // ... the filter for the ContractPhaseStepApprovals we want to count
775
+ * }
776
+ * })
777
+ **/
778
+ count<T extends ContractPhaseStepApprovalCountArgs>(args?: Prisma.Subset<T, ContractPhaseStepApprovalCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ContractPhaseStepApprovalCountAggregateOutputType> : number>;
779
+ /**
780
+ * Allows you to perform aggregations operations on a ContractPhaseStepApproval.
781
+ * Note, that providing `undefined` is treated as the value not being there.
782
+ * Read more here: https://pris.ly/d/null-undefined
783
+ * @param {ContractPhaseStepApprovalAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
784
+ * @example
785
+ * // Ordered by age ascending
786
+ * // Where email contains prisma.io
787
+ * // Limited to the 10 users
788
+ * const aggregations = await prisma.user.aggregate({
789
+ * _avg: {
790
+ * age: true,
791
+ * },
792
+ * where: {
793
+ * email: {
794
+ * contains: "prisma.io",
795
+ * },
796
+ * },
797
+ * orderBy: {
798
+ * age: "asc",
799
+ * },
800
+ * take: 10,
801
+ * })
802
+ **/
803
+ aggregate<T extends ContractPhaseStepApprovalAggregateArgs>(args: Prisma.Subset<T, ContractPhaseStepApprovalAggregateArgs>): Prisma.PrismaPromise<GetContractPhaseStepApprovalAggregateType<T>>;
804
+ /**
805
+ * Group by ContractPhaseStepApproval.
806
+ * Note, that providing `undefined` is treated as the value not being there.
807
+ * Read more here: https://pris.ly/d/null-undefined
808
+ * @param {ContractPhaseStepApprovalGroupByArgs} args - Group by arguments.
809
+ * @example
810
+ * // Group by city, order by createdAt, get count
811
+ * const result = await prisma.user.groupBy({
812
+ * by: ['city', 'createdAt'],
813
+ * orderBy: {
814
+ * createdAt: true
815
+ * },
816
+ * _count: {
817
+ * _all: true
818
+ * },
819
+ * })
820
+ *
821
+ **/
822
+ groupBy<T extends ContractPhaseStepApprovalGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
823
+ orderBy: ContractPhaseStepApprovalGroupByArgs['orderBy'];
824
+ } : {
825
+ orderBy?: ContractPhaseStepApprovalGroupByArgs['orderBy'];
826
+ }, 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 ? {
827
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
828
+ Error,
829
+ 'Field ',
830
+ P,
831
+ ` in "having" needs to be provided in "by"`
832
+ ];
833
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
834
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
835
+ }[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 ? {} : {
836
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
837
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
838
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
839
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, ContractPhaseStepApprovalGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetContractPhaseStepApprovalGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
840
+ /**
841
+ * Fields of the ContractPhaseStepApproval model
842
+ */
843
+ readonly fields: ContractPhaseStepApprovalFieldRefs;
844
+ }
845
+ /**
846
+ * The delegate class that acts as a "Promise-like" for ContractPhaseStepApproval.
847
+ * Why is this prefixed with `Prisma__`?
848
+ * Because we want to prevent naming conflicts as mentioned in
849
+ * https://github.com/prisma/prisma-client-js/issues/707
850
+ */
851
+ export interface Prisma__ContractPhaseStepApprovalClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
852
+ readonly [Symbol.toStringTag]: "PrismaPromise";
853
+ step<T extends Prisma.ContractPhaseStepDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ContractPhaseStepDefaultArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseStepClient<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
854
+ approver<T extends Prisma.ContractPhaseStepApproval$approverArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ContractPhaseStepApproval$approverArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
855
+ /**
856
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
857
+ * @param onfulfilled The callback to execute when the Promise is resolved.
858
+ * @param onrejected The callback to execute when the Promise is rejected.
859
+ * @returns A Promise for the completion of which ever callback is executed.
860
+ */
861
+ 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>;
862
+ /**
863
+ * Attaches a callback for only the rejection of the Promise.
864
+ * @param onrejected The callback to execute when the Promise is rejected.
865
+ * @returns A Promise for the completion of the callback.
866
+ */
867
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
868
+ /**
869
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
870
+ * resolved value cannot be modified from the callback.
871
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
872
+ * @returns A Promise for the completion of the callback.
873
+ */
874
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
875
+ }
876
+ /**
877
+ * Fields of the ContractPhaseStepApproval model
878
+ */
879
+ export interface ContractPhaseStepApprovalFieldRefs {
880
+ readonly id: Prisma.FieldRef<"ContractPhaseStepApproval", 'String'>;
881
+ readonly stepId: Prisma.FieldRef<"ContractPhaseStepApproval", 'String'>;
882
+ readonly approverId: Prisma.FieldRef<"ContractPhaseStepApproval", 'String'>;
883
+ readonly decision: Prisma.FieldRef<"ContractPhaseStepApproval", 'String'>;
884
+ readonly comment: Prisma.FieldRef<"ContractPhaseStepApproval", 'String'>;
885
+ readonly decidedAt: Prisma.FieldRef<"ContractPhaseStepApproval", 'DateTime'>;
886
+ readonly createdAt: Prisma.FieldRef<"ContractPhaseStepApproval", 'DateTime'>;
887
+ }
888
+ /**
889
+ * ContractPhaseStepApproval findUnique
890
+ */
891
+ export type ContractPhaseStepApprovalFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
892
+ /**
893
+ * Select specific fields to fetch from the ContractPhaseStepApproval
894
+ */
895
+ select?: Prisma.ContractPhaseStepApprovalSelect<ExtArgs> | null;
896
+ /**
897
+ * Omit specific fields from the ContractPhaseStepApproval
898
+ */
899
+ omit?: Prisma.ContractPhaseStepApprovalOmit<ExtArgs> | null;
900
+ /**
901
+ * Choose, which related nodes to fetch as well
902
+ */
903
+ include?: Prisma.ContractPhaseStepApprovalInclude<ExtArgs> | null;
904
+ /**
905
+ * Filter, which ContractPhaseStepApproval to fetch.
906
+ */
907
+ where: Prisma.ContractPhaseStepApprovalWhereUniqueInput;
908
+ };
909
+ /**
910
+ * ContractPhaseStepApproval findUniqueOrThrow
911
+ */
912
+ export type ContractPhaseStepApprovalFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
913
+ /**
914
+ * Select specific fields to fetch from the ContractPhaseStepApproval
915
+ */
916
+ select?: Prisma.ContractPhaseStepApprovalSelect<ExtArgs> | null;
917
+ /**
918
+ * Omit specific fields from the ContractPhaseStepApproval
919
+ */
920
+ omit?: Prisma.ContractPhaseStepApprovalOmit<ExtArgs> | null;
921
+ /**
922
+ * Choose, which related nodes to fetch as well
923
+ */
924
+ include?: Prisma.ContractPhaseStepApprovalInclude<ExtArgs> | null;
925
+ /**
926
+ * Filter, which ContractPhaseStepApproval to fetch.
927
+ */
928
+ where: Prisma.ContractPhaseStepApprovalWhereUniqueInput;
929
+ };
930
+ /**
931
+ * ContractPhaseStepApproval findFirst
932
+ */
933
+ export type ContractPhaseStepApprovalFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
934
+ /**
935
+ * Select specific fields to fetch from the ContractPhaseStepApproval
936
+ */
937
+ select?: Prisma.ContractPhaseStepApprovalSelect<ExtArgs> | null;
938
+ /**
939
+ * Omit specific fields from the ContractPhaseStepApproval
940
+ */
941
+ omit?: Prisma.ContractPhaseStepApprovalOmit<ExtArgs> | null;
942
+ /**
943
+ * Choose, which related nodes to fetch as well
944
+ */
945
+ include?: Prisma.ContractPhaseStepApprovalInclude<ExtArgs> | null;
946
+ /**
947
+ * Filter, which ContractPhaseStepApproval to fetch.
948
+ */
949
+ where?: Prisma.ContractPhaseStepApprovalWhereInput;
950
+ /**
951
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
952
+ *
953
+ * Determine the order of ContractPhaseStepApprovals to fetch.
954
+ */
955
+ orderBy?: Prisma.ContractPhaseStepApprovalOrderByWithRelationInput | Prisma.ContractPhaseStepApprovalOrderByWithRelationInput[];
956
+ /**
957
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
958
+ *
959
+ * Sets the position for searching for ContractPhaseStepApprovals.
960
+ */
961
+ cursor?: Prisma.ContractPhaseStepApprovalWhereUniqueInput;
962
+ /**
963
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
964
+ *
965
+ * Take `±n` ContractPhaseStepApprovals from the position of the cursor.
966
+ */
967
+ take?: number;
968
+ /**
969
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
970
+ *
971
+ * Skip the first `n` ContractPhaseStepApprovals.
972
+ */
973
+ skip?: number;
974
+ /**
975
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
976
+ *
977
+ * Filter by unique combinations of ContractPhaseStepApprovals.
978
+ */
979
+ distinct?: Prisma.ContractPhaseStepApprovalScalarFieldEnum | Prisma.ContractPhaseStepApprovalScalarFieldEnum[];
980
+ };
981
+ /**
982
+ * ContractPhaseStepApproval findFirstOrThrow
983
+ */
984
+ export type ContractPhaseStepApprovalFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
985
+ /**
986
+ * Select specific fields to fetch from the ContractPhaseStepApproval
987
+ */
988
+ select?: Prisma.ContractPhaseStepApprovalSelect<ExtArgs> | null;
989
+ /**
990
+ * Omit specific fields from the ContractPhaseStepApproval
991
+ */
992
+ omit?: Prisma.ContractPhaseStepApprovalOmit<ExtArgs> | null;
993
+ /**
994
+ * Choose, which related nodes to fetch as well
995
+ */
996
+ include?: Prisma.ContractPhaseStepApprovalInclude<ExtArgs> | null;
997
+ /**
998
+ * Filter, which ContractPhaseStepApproval to fetch.
999
+ */
1000
+ where?: Prisma.ContractPhaseStepApprovalWhereInput;
1001
+ /**
1002
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1003
+ *
1004
+ * Determine the order of ContractPhaseStepApprovals to fetch.
1005
+ */
1006
+ orderBy?: Prisma.ContractPhaseStepApprovalOrderByWithRelationInput | Prisma.ContractPhaseStepApprovalOrderByWithRelationInput[];
1007
+ /**
1008
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1009
+ *
1010
+ * Sets the position for searching for ContractPhaseStepApprovals.
1011
+ */
1012
+ cursor?: Prisma.ContractPhaseStepApprovalWhereUniqueInput;
1013
+ /**
1014
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1015
+ *
1016
+ * Take `±n` ContractPhaseStepApprovals from the position of the cursor.
1017
+ */
1018
+ take?: number;
1019
+ /**
1020
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1021
+ *
1022
+ * Skip the first `n` ContractPhaseStepApprovals.
1023
+ */
1024
+ skip?: number;
1025
+ /**
1026
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1027
+ *
1028
+ * Filter by unique combinations of ContractPhaseStepApprovals.
1029
+ */
1030
+ distinct?: Prisma.ContractPhaseStepApprovalScalarFieldEnum | Prisma.ContractPhaseStepApprovalScalarFieldEnum[];
1031
+ };
1032
+ /**
1033
+ * ContractPhaseStepApproval findMany
1034
+ */
1035
+ export type ContractPhaseStepApprovalFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1036
+ /**
1037
+ * Select specific fields to fetch from the ContractPhaseStepApproval
1038
+ */
1039
+ select?: Prisma.ContractPhaseStepApprovalSelect<ExtArgs> | null;
1040
+ /**
1041
+ * Omit specific fields from the ContractPhaseStepApproval
1042
+ */
1043
+ omit?: Prisma.ContractPhaseStepApprovalOmit<ExtArgs> | null;
1044
+ /**
1045
+ * Choose, which related nodes to fetch as well
1046
+ */
1047
+ include?: Prisma.ContractPhaseStepApprovalInclude<ExtArgs> | null;
1048
+ /**
1049
+ * Filter, which ContractPhaseStepApprovals to fetch.
1050
+ */
1051
+ where?: Prisma.ContractPhaseStepApprovalWhereInput;
1052
+ /**
1053
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1054
+ *
1055
+ * Determine the order of ContractPhaseStepApprovals to fetch.
1056
+ */
1057
+ orderBy?: Prisma.ContractPhaseStepApprovalOrderByWithRelationInput | Prisma.ContractPhaseStepApprovalOrderByWithRelationInput[];
1058
+ /**
1059
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1060
+ *
1061
+ * Sets the position for listing ContractPhaseStepApprovals.
1062
+ */
1063
+ cursor?: Prisma.ContractPhaseStepApprovalWhereUniqueInput;
1064
+ /**
1065
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1066
+ *
1067
+ * Take `±n` ContractPhaseStepApprovals from the position of the cursor.
1068
+ */
1069
+ take?: number;
1070
+ /**
1071
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1072
+ *
1073
+ * Skip the first `n` ContractPhaseStepApprovals.
1074
+ */
1075
+ skip?: number;
1076
+ distinct?: Prisma.ContractPhaseStepApprovalScalarFieldEnum | Prisma.ContractPhaseStepApprovalScalarFieldEnum[];
1077
+ };
1078
+ /**
1079
+ * ContractPhaseStepApproval create
1080
+ */
1081
+ export type ContractPhaseStepApprovalCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1082
+ /**
1083
+ * Select specific fields to fetch from the ContractPhaseStepApproval
1084
+ */
1085
+ select?: Prisma.ContractPhaseStepApprovalSelect<ExtArgs> | null;
1086
+ /**
1087
+ * Omit specific fields from the ContractPhaseStepApproval
1088
+ */
1089
+ omit?: Prisma.ContractPhaseStepApprovalOmit<ExtArgs> | null;
1090
+ /**
1091
+ * Choose, which related nodes to fetch as well
1092
+ */
1093
+ include?: Prisma.ContractPhaseStepApprovalInclude<ExtArgs> | null;
1094
+ /**
1095
+ * The data needed to create a ContractPhaseStepApproval.
1096
+ */
1097
+ data: Prisma.XOR<Prisma.ContractPhaseStepApprovalCreateInput, Prisma.ContractPhaseStepApprovalUncheckedCreateInput>;
1098
+ };
1099
+ /**
1100
+ * ContractPhaseStepApproval createMany
1101
+ */
1102
+ export type ContractPhaseStepApprovalCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1103
+ /**
1104
+ * The data used to create many ContractPhaseStepApprovals.
1105
+ */
1106
+ data: Prisma.ContractPhaseStepApprovalCreateManyInput | Prisma.ContractPhaseStepApprovalCreateManyInput[];
1107
+ skipDuplicates?: boolean;
1108
+ };
1109
+ /**
1110
+ * ContractPhaseStepApproval update
1111
+ */
1112
+ export type ContractPhaseStepApprovalUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1113
+ /**
1114
+ * Select specific fields to fetch from the ContractPhaseStepApproval
1115
+ */
1116
+ select?: Prisma.ContractPhaseStepApprovalSelect<ExtArgs> | null;
1117
+ /**
1118
+ * Omit specific fields from the ContractPhaseStepApproval
1119
+ */
1120
+ omit?: Prisma.ContractPhaseStepApprovalOmit<ExtArgs> | null;
1121
+ /**
1122
+ * Choose, which related nodes to fetch as well
1123
+ */
1124
+ include?: Prisma.ContractPhaseStepApprovalInclude<ExtArgs> | null;
1125
+ /**
1126
+ * The data needed to update a ContractPhaseStepApproval.
1127
+ */
1128
+ data: Prisma.XOR<Prisma.ContractPhaseStepApprovalUpdateInput, Prisma.ContractPhaseStepApprovalUncheckedUpdateInput>;
1129
+ /**
1130
+ * Choose, which ContractPhaseStepApproval to update.
1131
+ */
1132
+ where: Prisma.ContractPhaseStepApprovalWhereUniqueInput;
1133
+ };
1134
+ /**
1135
+ * ContractPhaseStepApproval updateMany
1136
+ */
1137
+ export type ContractPhaseStepApprovalUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1138
+ /**
1139
+ * The data used to update ContractPhaseStepApprovals.
1140
+ */
1141
+ data: Prisma.XOR<Prisma.ContractPhaseStepApprovalUpdateManyMutationInput, Prisma.ContractPhaseStepApprovalUncheckedUpdateManyInput>;
1142
+ /**
1143
+ * Filter which ContractPhaseStepApprovals to update
1144
+ */
1145
+ where?: Prisma.ContractPhaseStepApprovalWhereInput;
1146
+ /**
1147
+ * Limit how many ContractPhaseStepApprovals to update.
1148
+ */
1149
+ limit?: number;
1150
+ };
1151
+ /**
1152
+ * ContractPhaseStepApproval upsert
1153
+ */
1154
+ export type ContractPhaseStepApprovalUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1155
+ /**
1156
+ * Select specific fields to fetch from the ContractPhaseStepApproval
1157
+ */
1158
+ select?: Prisma.ContractPhaseStepApprovalSelect<ExtArgs> | null;
1159
+ /**
1160
+ * Omit specific fields from the ContractPhaseStepApproval
1161
+ */
1162
+ omit?: Prisma.ContractPhaseStepApprovalOmit<ExtArgs> | null;
1163
+ /**
1164
+ * Choose, which related nodes to fetch as well
1165
+ */
1166
+ include?: Prisma.ContractPhaseStepApprovalInclude<ExtArgs> | null;
1167
+ /**
1168
+ * The filter to search for the ContractPhaseStepApproval to update in case it exists.
1169
+ */
1170
+ where: Prisma.ContractPhaseStepApprovalWhereUniqueInput;
1171
+ /**
1172
+ * In case the ContractPhaseStepApproval found by the `where` argument doesn't exist, create a new ContractPhaseStepApproval with this data.
1173
+ */
1174
+ create: Prisma.XOR<Prisma.ContractPhaseStepApprovalCreateInput, Prisma.ContractPhaseStepApprovalUncheckedCreateInput>;
1175
+ /**
1176
+ * In case the ContractPhaseStepApproval was found with the provided `where` argument, update it with this data.
1177
+ */
1178
+ update: Prisma.XOR<Prisma.ContractPhaseStepApprovalUpdateInput, Prisma.ContractPhaseStepApprovalUncheckedUpdateInput>;
1179
+ };
1180
+ /**
1181
+ * ContractPhaseStepApproval delete
1182
+ */
1183
+ export type ContractPhaseStepApprovalDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1184
+ /**
1185
+ * Select specific fields to fetch from the ContractPhaseStepApproval
1186
+ */
1187
+ select?: Prisma.ContractPhaseStepApprovalSelect<ExtArgs> | null;
1188
+ /**
1189
+ * Omit specific fields from the ContractPhaseStepApproval
1190
+ */
1191
+ omit?: Prisma.ContractPhaseStepApprovalOmit<ExtArgs> | null;
1192
+ /**
1193
+ * Choose, which related nodes to fetch as well
1194
+ */
1195
+ include?: Prisma.ContractPhaseStepApprovalInclude<ExtArgs> | null;
1196
+ /**
1197
+ * Filter which ContractPhaseStepApproval to delete.
1198
+ */
1199
+ where: Prisma.ContractPhaseStepApprovalWhereUniqueInput;
1200
+ };
1201
+ /**
1202
+ * ContractPhaseStepApproval deleteMany
1203
+ */
1204
+ export type ContractPhaseStepApprovalDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1205
+ /**
1206
+ * Filter which ContractPhaseStepApprovals to delete
1207
+ */
1208
+ where?: Prisma.ContractPhaseStepApprovalWhereInput;
1209
+ /**
1210
+ * Limit how many ContractPhaseStepApprovals to delete.
1211
+ */
1212
+ limit?: number;
1213
+ };
1214
+ /**
1215
+ * ContractPhaseStepApproval.approver
1216
+ */
1217
+ export type ContractPhaseStepApproval$approverArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1218
+ /**
1219
+ * Select specific fields to fetch from the User
1220
+ */
1221
+ select?: Prisma.UserSelect<ExtArgs> | null;
1222
+ /**
1223
+ * Omit specific fields from the User
1224
+ */
1225
+ omit?: Prisma.UserOmit<ExtArgs> | null;
1226
+ /**
1227
+ * Choose, which related nodes to fetch as well
1228
+ */
1229
+ include?: Prisma.UserInclude<ExtArgs> | null;
1230
+ where?: Prisma.UserWhereInput;
1231
+ };
1232
+ /**
1233
+ * ContractPhaseStepApproval without action
1234
+ */
1235
+ export type ContractPhaseStepApprovalDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1236
+ /**
1237
+ * Select specific fields to fetch from the ContractPhaseStepApproval
1238
+ */
1239
+ select?: Prisma.ContractPhaseStepApprovalSelect<ExtArgs> | null;
1240
+ /**
1241
+ * Omit specific fields from the ContractPhaseStepApproval
1242
+ */
1243
+ omit?: Prisma.ContractPhaseStepApprovalOmit<ExtArgs> | null;
1244
+ /**
1245
+ * Choose, which related nodes to fetch as well
1246
+ */
1247
+ include?: Prisma.ContractPhaseStepApprovalInclude<ExtArgs> | null;
1248
+ };
1249
+ export {};