@valentine-efagene/qshelter-common 2.0.29 → 2.0.30

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 (31) hide show
  1. package/dist/generated/client/browser.d.ts +15 -0
  2. package/dist/generated/client/client.d.ts +15 -0
  3. package/dist/generated/client/commonInputTypes.d.ts +408 -48
  4. package/dist/generated/client/enums.d.ts +92 -0
  5. package/dist/generated/client/enums.js +80 -0
  6. package/dist/generated/client/internal/class.d.ts +33 -0
  7. package/dist/generated/client/internal/class.js +2 -2
  8. package/dist/generated/client/internal/prismaNamespace.d.ts +330 -36
  9. package/dist/generated/client/internal/prismaNamespace.js +76 -37
  10. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +80 -35
  11. package/dist/generated/client/internal/prismaNamespaceBrowser.js +76 -37
  12. package/dist/generated/client/models/Contract.d.ts +152 -148
  13. package/dist/generated/client/models/ContractDocument.d.ts +32 -28
  14. package/dist/generated/client/models/ContractInstallment.d.ts +30 -26
  15. package/dist/generated/client/models/ContractPayment.d.ts +44 -40
  16. package/dist/generated/client/models/ContractPhase.d.ts +539 -121
  17. package/dist/generated/client/models/ContractPhaseStep.d.ts +208 -108
  18. package/dist/generated/client/models/ContractPhaseStepApproval.d.ts +32 -28
  19. package/dist/generated/client/models/ContractPhaseStepDocument.d.ts +1052 -0
  20. package/dist/generated/client/models/ContractPhaseStepDocument.js +1 -0
  21. package/dist/generated/client/models/PaymentMethodPhaseDocument.d.ts +1216 -0
  22. package/dist/generated/client/models/PaymentMethodPhaseDocument.js +1 -0
  23. package/dist/generated/client/models/PaymentMethodPhaseStep.d.ts +1187 -0
  24. package/dist/generated/client/models/PaymentMethodPhaseStep.js +1 -0
  25. package/dist/generated/client/models/PaymentPlan.d.ts +34 -30
  26. package/dist/generated/client/models/PropertyPaymentMethodPhase.d.ts +504 -135
  27. package/dist/generated/client/models/index.d.ts +3 -0
  28. package/dist/generated/client/models/index.js +3 -0
  29. package/dist/generated/client/models.d.ts +3 -0
  30. package/package.json +1 -1
  31. package/prisma/schema.prisma +195 -30
@@ -0,0 +1,1052 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model ContractPhaseStepDocument
5
+ *
6
+ */
7
+ export type ContractPhaseStepDocumentModel = runtime.Types.Result.DefaultSelection<Prisma.$ContractPhaseStepDocumentPayload>;
8
+ export type AggregateContractPhaseStepDocument = {
9
+ _count: ContractPhaseStepDocumentCountAggregateOutputType | null;
10
+ _min: ContractPhaseStepDocumentMinAggregateOutputType | null;
11
+ _max: ContractPhaseStepDocumentMaxAggregateOutputType | null;
12
+ };
13
+ export type ContractPhaseStepDocumentMinAggregateOutputType = {
14
+ id: string | null;
15
+ stepId: string | null;
16
+ documentType: string | null;
17
+ isRequired: boolean | null;
18
+ createdAt: Date | null;
19
+ };
20
+ export type ContractPhaseStepDocumentMaxAggregateOutputType = {
21
+ id: string | null;
22
+ stepId: string | null;
23
+ documentType: string | null;
24
+ isRequired: boolean | null;
25
+ createdAt: Date | null;
26
+ };
27
+ export type ContractPhaseStepDocumentCountAggregateOutputType = {
28
+ id: number;
29
+ stepId: number;
30
+ documentType: number;
31
+ isRequired: number;
32
+ createdAt: number;
33
+ _all: number;
34
+ };
35
+ export type ContractPhaseStepDocumentMinAggregateInputType = {
36
+ id?: true;
37
+ stepId?: true;
38
+ documentType?: true;
39
+ isRequired?: true;
40
+ createdAt?: true;
41
+ };
42
+ export type ContractPhaseStepDocumentMaxAggregateInputType = {
43
+ id?: true;
44
+ stepId?: true;
45
+ documentType?: true;
46
+ isRequired?: true;
47
+ createdAt?: true;
48
+ };
49
+ export type ContractPhaseStepDocumentCountAggregateInputType = {
50
+ id?: true;
51
+ stepId?: true;
52
+ documentType?: true;
53
+ isRequired?: true;
54
+ createdAt?: true;
55
+ _all?: true;
56
+ };
57
+ export type ContractPhaseStepDocumentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
58
+ /**
59
+ * Filter which ContractPhaseStepDocument to aggregate.
60
+ */
61
+ where?: Prisma.ContractPhaseStepDocumentWhereInput;
62
+ /**
63
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
64
+ *
65
+ * Determine the order of ContractPhaseStepDocuments to fetch.
66
+ */
67
+ orderBy?: Prisma.ContractPhaseStepDocumentOrderByWithRelationInput | Prisma.ContractPhaseStepDocumentOrderByWithRelationInput[];
68
+ /**
69
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
70
+ *
71
+ * Sets the start position
72
+ */
73
+ cursor?: Prisma.ContractPhaseStepDocumentWhereUniqueInput;
74
+ /**
75
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
76
+ *
77
+ * Take `±n` ContractPhaseStepDocuments from the position of the cursor.
78
+ */
79
+ take?: number;
80
+ /**
81
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
82
+ *
83
+ * Skip the first `n` ContractPhaseStepDocuments.
84
+ */
85
+ skip?: number;
86
+ /**
87
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
88
+ *
89
+ * Count returned ContractPhaseStepDocuments
90
+ **/
91
+ _count?: true | ContractPhaseStepDocumentCountAggregateInputType;
92
+ /**
93
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
94
+ *
95
+ * Select which fields to find the minimum value
96
+ **/
97
+ _min?: ContractPhaseStepDocumentMinAggregateInputType;
98
+ /**
99
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
100
+ *
101
+ * Select which fields to find the maximum value
102
+ **/
103
+ _max?: ContractPhaseStepDocumentMaxAggregateInputType;
104
+ };
105
+ export type GetContractPhaseStepDocumentAggregateType<T extends ContractPhaseStepDocumentAggregateArgs> = {
106
+ [P in keyof T & keyof AggregateContractPhaseStepDocument]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateContractPhaseStepDocument[P]> : Prisma.GetScalarType<T[P], AggregateContractPhaseStepDocument[P]>;
107
+ };
108
+ export type ContractPhaseStepDocumentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
109
+ where?: Prisma.ContractPhaseStepDocumentWhereInput;
110
+ orderBy?: Prisma.ContractPhaseStepDocumentOrderByWithAggregationInput | Prisma.ContractPhaseStepDocumentOrderByWithAggregationInput[];
111
+ by: Prisma.ContractPhaseStepDocumentScalarFieldEnum[] | Prisma.ContractPhaseStepDocumentScalarFieldEnum;
112
+ having?: Prisma.ContractPhaseStepDocumentScalarWhereWithAggregatesInput;
113
+ take?: number;
114
+ skip?: number;
115
+ _count?: ContractPhaseStepDocumentCountAggregateInputType | true;
116
+ _min?: ContractPhaseStepDocumentMinAggregateInputType;
117
+ _max?: ContractPhaseStepDocumentMaxAggregateInputType;
118
+ };
119
+ export type ContractPhaseStepDocumentGroupByOutputType = {
120
+ id: string;
121
+ stepId: string;
122
+ documentType: string;
123
+ isRequired: boolean;
124
+ createdAt: Date;
125
+ _count: ContractPhaseStepDocumentCountAggregateOutputType | null;
126
+ _min: ContractPhaseStepDocumentMinAggregateOutputType | null;
127
+ _max: ContractPhaseStepDocumentMaxAggregateOutputType | null;
128
+ };
129
+ type GetContractPhaseStepDocumentGroupByPayload<T extends ContractPhaseStepDocumentGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ContractPhaseStepDocumentGroupByOutputType, T['by']> & {
130
+ [P in ((keyof T) & (keyof ContractPhaseStepDocumentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ContractPhaseStepDocumentGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ContractPhaseStepDocumentGroupByOutputType[P]>;
131
+ }>>;
132
+ export type ContractPhaseStepDocumentWhereInput = {
133
+ AND?: Prisma.ContractPhaseStepDocumentWhereInput | Prisma.ContractPhaseStepDocumentWhereInput[];
134
+ OR?: Prisma.ContractPhaseStepDocumentWhereInput[];
135
+ NOT?: Prisma.ContractPhaseStepDocumentWhereInput | Prisma.ContractPhaseStepDocumentWhereInput[];
136
+ id?: Prisma.StringFilter<"ContractPhaseStepDocument"> | string;
137
+ stepId?: Prisma.StringFilter<"ContractPhaseStepDocument"> | string;
138
+ documentType?: Prisma.StringFilter<"ContractPhaseStepDocument"> | string;
139
+ isRequired?: Prisma.BoolFilter<"ContractPhaseStepDocument"> | boolean;
140
+ createdAt?: Prisma.DateTimeFilter<"ContractPhaseStepDocument"> | Date | string;
141
+ step?: Prisma.XOR<Prisma.ContractPhaseStepScalarRelationFilter, Prisma.ContractPhaseStepWhereInput>;
142
+ };
143
+ export type ContractPhaseStepDocumentOrderByWithRelationInput = {
144
+ id?: Prisma.SortOrder;
145
+ stepId?: Prisma.SortOrder;
146
+ documentType?: Prisma.SortOrder;
147
+ isRequired?: Prisma.SortOrder;
148
+ createdAt?: Prisma.SortOrder;
149
+ step?: Prisma.ContractPhaseStepOrderByWithRelationInput;
150
+ _relevance?: Prisma.ContractPhaseStepDocumentOrderByRelevanceInput;
151
+ };
152
+ export type ContractPhaseStepDocumentWhereUniqueInput = Prisma.AtLeast<{
153
+ id?: string;
154
+ AND?: Prisma.ContractPhaseStepDocumentWhereInput | Prisma.ContractPhaseStepDocumentWhereInput[];
155
+ OR?: Prisma.ContractPhaseStepDocumentWhereInput[];
156
+ NOT?: Prisma.ContractPhaseStepDocumentWhereInput | Prisma.ContractPhaseStepDocumentWhereInput[];
157
+ stepId?: Prisma.StringFilter<"ContractPhaseStepDocument"> | string;
158
+ documentType?: Prisma.StringFilter<"ContractPhaseStepDocument"> | string;
159
+ isRequired?: Prisma.BoolFilter<"ContractPhaseStepDocument"> | boolean;
160
+ createdAt?: Prisma.DateTimeFilter<"ContractPhaseStepDocument"> | Date | string;
161
+ step?: Prisma.XOR<Prisma.ContractPhaseStepScalarRelationFilter, Prisma.ContractPhaseStepWhereInput>;
162
+ }, "id">;
163
+ export type ContractPhaseStepDocumentOrderByWithAggregationInput = {
164
+ id?: Prisma.SortOrder;
165
+ stepId?: Prisma.SortOrder;
166
+ documentType?: Prisma.SortOrder;
167
+ isRequired?: Prisma.SortOrder;
168
+ createdAt?: Prisma.SortOrder;
169
+ _count?: Prisma.ContractPhaseStepDocumentCountOrderByAggregateInput;
170
+ _max?: Prisma.ContractPhaseStepDocumentMaxOrderByAggregateInput;
171
+ _min?: Prisma.ContractPhaseStepDocumentMinOrderByAggregateInput;
172
+ };
173
+ export type ContractPhaseStepDocumentScalarWhereWithAggregatesInput = {
174
+ AND?: Prisma.ContractPhaseStepDocumentScalarWhereWithAggregatesInput | Prisma.ContractPhaseStepDocumentScalarWhereWithAggregatesInput[];
175
+ OR?: Prisma.ContractPhaseStepDocumentScalarWhereWithAggregatesInput[];
176
+ NOT?: Prisma.ContractPhaseStepDocumentScalarWhereWithAggregatesInput | Prisma.ContractPhaseStepDocumentScalarWhereWithAggregatesInput[];
177
+ id?: Prisma.StringWithAggregatesFilter<"ContractPhaseStepDocument"> | string;
178
+ stepId?: Prisma.StringWithAggregatesFilter<"ContractPhaseStepDocument"> | string;
179
+ documentType?: Prisma.StringWithAggregatesFilter<"ContractPhaseStepDocument"> | string;
180
+ isRequired?: Prisma.BoolWithAggregatesFilter<"ContractPhaseStepDocument"> | boolean;
181
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"ContractPhaseStepDocument"> | Date | string;
182
+ };
183
+ export type ContractPhaseStepDocumentCreateInput = {
184
+ id?: string;
185
+ documentType: string;
186
+ isRequired?: boolean;
187
+ createdAt?: Date | string;
188
+ step: Prisma.ContractPhaseStepCreateNestedOneWithoutRequiredDocumentsInput;
189
+ };
190
+ export type ContractPhaseStepDocumentUncheckedCreateInput = {
191
+ id?: string;
192
+ stepId: string;
193
+ documentType: string;
194
+ isRequired?: boolean;
195
+ createdAt?: Date | string;
196
+ };
197
+ export type ContractPhaseStepDocumentUpdateInput = {
198
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
199
+ documentType?: Prisma.StringFieldUpdateOperationsInput | string;
200
+ isRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
201
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
202
+ step?: Prisma.ContractPhaseStepUpdateOneRequiredWithoutRequiredDocumentsNestedInput;
203
+ };
204
+ export type ContractPhaseStepDocumentUncheckedUpdateInput = {
205
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
206
+ stepId?: Prisma.StringFieldUpdateOperationsInput | string;
207
+ documentType?: Prisma.StringFieldUpdateOperationsInput | string;
208
+ isRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
209
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
210
+ };
211
+ export type ContractPhaseStepDocumentCreateManyInput = {
212
+ id?: string;
213
+ stepId: string;
214
+ documentType: string;
215
+ isRequired?: boolean;
216
+ createdAt?: Date | string;
217
+ };
218
+ export type ContractPhaseStepDocumentUpdateManyMutationInput = {
219
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
220
+ documentType?: Prisma.StringFieldUpdateOperationsInput | string;
221
+ isRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
222
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
223
+ };
224
+ export type ContractPhaseStepDocumentUncheckedUpdateManyInput = {
225
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
226
+ stepId?: Prisma.StringFieldUpdateOperationsInput | string;
227
+ documentType?: Prisma.StringFieldUpdateOperationsInput | string;
228
+ isRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
229
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
230
+ };
231
+ export type ContractPhaseStepDocumentListRelationFilter = {
232
+ every?: Prisma.ContractPhaseStepDocumentWhereInput;
233
+ some?: Prisma.ContractPhaseStepDocumentWhereInput;
234
+ none?: Prisma.ContractPhaseStepDocumentWhereInput;
235
+ };
236
+ export type ContractPhaseStepDocumentOrderByRelationAggregateInput = {
237
+ _count?: Prisma.SortOrder;
238
+ };
239
+ export type ContractPhaseStepDocumentOrderByRelevanceInput = {
240
+ fields: Prisma.ContractPhaseStepDocumentOrderByRelevanceFieldEnum | Prisma.ContractPhaseStepDocumentOrderByRelevanceFieldEnum[];
241
+ sort: Prisma.SortOrder;
242
+ search: string;
243
+ };
244
+ export type ContractPhaseStepDocumentCountOrderByAggregateInput = {
245
+ id?: Prisma.SortOrder;
246
+ stepId?: Prisma.SortOrder;
247
+ documentType?: Prisma.SortOrder;
248
+ isRequired?: Prisma.SortOrder;
249
+ createdAt?: Prisma.SortOrder;
250
+ };
251
+ export type ContractPhaseStepDocumentMaxOrderByAggregateInput = {
252
+ id?: Prisma.SortOrder;
253
+ stepId?: Prisma.SortOrder;
254
+ documentType?: Prisma.SortOrder;
255
+ isRequired?: Prisma.SortOrder;
256
+ createdAt?: Prisma.SortOrder;
257
+ };
258
+ export type ContractPhaseStepDocumentMinOrderByAggregateInput = {
259
+ id?: Prisma.SortOrder;
260
+ stepId?: Prisma.SortOrder;
261
+ documentType?: Prisma.SortOrder;
262
+ isRequired?: Prisma.SortOrder;
263
+ createdAt?: Prisma.SortOrder;
264
+ };
265
+ export type ContractPhaseStepDocumentCreateNestedManyWithoutStepInput = {
266
+ create?: Prisma.XOR<Prisma.ContractPhaseStepDocumentCreateWithoutStepInput, Prisma.ContractPhaseStepDocumentUncheckedCreateWithoutStepInput> | Prisma.ContractPhaseStepDocumentCreateWithoutStepInput[] | Prisma.ContractPhaseStepDocumentUncheckedCreateWithoutStepInput[];
267
+ connectOrCreate?: Prisma.ContractPhaseStepDocumentCreateOrConnectWithoutStepInput | Prisma.ContractPhaseStepDocumentCreateOrConnectWithoutStepInput[];
268
+ createMany?: Prisma.ContractPhaseStepDocumentCreateManyStepInputEnvelope;
269
+ connect?: Prisma.ContractPhaseStepDocumentWhereUniqueInput | Prisma.ContractPhaseStepDocumentWhereUniqueInput[];
270
+ };
271
+ export type ContractPhaseStepDocumentUncheckedCreateNestedManyWithoutStepInput = {
272
+ create?: Prisma.XOR<Prisma.ContractPhaseStepDocumentCreateWithoutStepInput, Prisma.ContractPhaseStepDocumentUncheckedCreateWithoutStepInput> | Prisma.ContractPhaseStepDocumentCreateWithoutStepInput[] | Prisma.ContractPhaseStepDocumentUncheckedCreateWithoutStepInput[];
273
+ connectOrCreate?: Prisma.ContractPhaseStepDocumentCreateOrConnectWithoutStepInput | Prisma.ContractPhaseStepDocumentCreateOrConnectWithoutStepInput[];
274
+ createMany?: Prisma.ContractPhaseStepDocumentCreateManyStepInputEnvelope;
275
+ connect?: Prisma.ContractPhaseStepDocumentWhereUniqueInput | Prisma.ContractPhaseStepDocumentWhereUniqueInput[];
276
+ };
277
+ export type ContractPhaseStepDocumentUpdateManyWithoutStepNestedInput = {
278
+ create?: Prisma.XOR<Prisma.ContractPhaseStepDocumentCreateWithoutStepInput, Prisma.ContractPhaseStepDocumentUncheckedCreateWithoutStepInput> | Prisma.ContractPhaseStepDocumentCreateWithoutStepInput[] | Prisma.ContractPhaseStepDocumentUncheckedCreateWithoutStepInput[];
279
+ connectOrCreate?: Prisma.ContractPhaseStepDocumentCreateOrConnectWithoutStepInput | Prisma.ContractPhaseStepDocumentCreateOrConnectWithoutStepInput[];
280
+ upsert?: Prisma.ContractPhaseStepDocumentUpsertWithWhereUniqueWithoutStepInput | Prisma.ContractPhaseStepDocumentUpsertWithWhereUniqueWithoutStepInput[];
281
+ createMany?: Prisma.ContractPhaseStepDocumentCreateManyStepInputEnvelope;
282
+ set?: Prisma.ContractPhaseStepDocumentWhereUniqueInput | Prisma.ContractPhaseStepDocumentWhereUniqueInput[];
283
+ disconnect?: Prisma.ContractPhaseStepDocumentWhereUniqueInput | Prisma.ContractPhaseStepDocumentWhereUniqueInput[];
284
+ delete?: Prisma.ContractPhaseStepDocumentWhereUniqueInput | Prisma.ContractPhaseStepDocumentWhereUniqueInput[];
285
+ connect?: Prisma.ContractPhaseStepDocumentWhereUniqueInput | Prisma.ContractPhaseStepDocumentWhereUniqueInput[];
286
+ update?: Prisma.ContractPhaseStepDocumentUpdateWithWhereUniqueWithoutStepInput | Prisma.ContractPhaseStepDocumentUpdateWithWhereUniqueWithoutStepInput[];
287
+ updateMany?: Prisma.ContractPhaseStepDocumentUpdateManyWithWhereWithoutStepInput | Prisma.ContractPhaseStepDocumentUpdateManyWithWhereWithoutStepInput[];
288
+ deleteMany?: Prisma.ContractPhaseStepDocumentScalarWhereInput | Prisma.ContractPhaseStepDocumentScalarWhereInput[];
289
+ };
290
+ export type ContractPhaseStepDocumentUncheckedUpdateManyWithoutStepNestedInput = {
291
+ create?: Prisma.XOR<Prisma.ContractPhaseStepDocumentCreateWithoutStepInput, Prisma.ContractPhaseStepDocumentUncheckedCreateWithoutStepInput> | Prisma.ContractPhaseStepDocumentCreateWithoutStepInput[] | Prisma.ContractPhaseStepDocumentUncheckedCreateWithoutStepInput[];
292
+ connectOrCreate?: Prisma.ContractPhaseStepDocumentCreateOrConnectWithoutStepInput | Prisma.ContractPhaseStepDocumentCreateOrConnectWithoutStepInput[];
293
+ upsert?: Prisma.ContractPhaseStepDocumentUpsertWithWhereUniqueWithoutStepInput | Prisma.ContractPhaseStepDocumentUpsertWithWhereUniqueWithoutStepInput[];
294
+ createMany?: Prisma.ContractPhaseStepDocumentCreateManyStepInputEnvelope;
295
+ set?: Prisma.ContractPhaseStepDocumentWhereUniqueInput | Prisma.ContractPhaseStepDocumentWhereUniqueInput[];
296
+ disconnect?: Prisma.ContractPhaseStepDocumentWhereUniqueInput | Prisma.ContractPhaseStepDocumentWhereUniqueInput[];
297
+ delete?: Prisma.ContractPhaseStepDocumentWhereUniqueInput | Prisma.ContractPhaseStepDocumentWhereUniqueInput[];
298
+ connect?: Prisma.ContractPhaseStepDocumentWhereUniqueInput | Prisma.ContractPhaseStepDocumentWhereUniqueInput[];
299
+ update?: Prisma.ContractPhaseStepDocumentUpdateWithWhereUniqueWithoutStepInput | Prisma.ContractPhaseStepDocumentUpdateWithWhereUniqueWithoutStepInput[];
300
+ updateMany?: Prisma.ContractPhaseStepDocumentUpdateManyWithWhereWithoutStepInput | Prisma.ContractPhaseStepDocumentUpdateManyWithWhereWithoutStepInput[];
301
+ deleteMany?: Prisma.ContractPhaseStepDocumentScalarWhereInput | Prisma.ContractPhaseStepDocumentScalarWhereInput[];
302
+ };
303
+ export type ContractPhaseStepDocumentCreateWithoutStepInput = {
304
+ id?: string;
305
+ documentType: string;
306
+ isRequired?: boolean;
307
+ createdAt?: Date | string;
308
+ };
309
+ export type ContractPhaseStepDocumentUncheckedCreateWithoutStepInput = {
310
+ id?: string;
311
+ documentType: string;
312
+ isRequired?: boolean;
313
+ createdAt?: Date | string;
314
+ };
315
+ export type ContractPhaseStepDocumentCreateOrConnectWithoutStepInput = {
316
+ where: Prisma.ContractPhaseStepDocumentWhereUniqueInput;
317
+ create: Prisma.XOR<Prisma.ContractPhaseStepDocumentCreateWithoutStepInput, Prisma.ContractPhaseStepDocumentUncheckedCreateWithoutStepInput>;
318
+ };
319
+ export type ContractPhaseStepDocumentCreateManyStepInputEnvelope = {
320
+ data: Prisma.ContractPhaseStepDocumentCreateManyStepInput | Prisma.ContractPhaseStepDocumentCreateManyStepInput[];
321
+ skipDuplicates?: boolean;
322
+ };
323
+ export type ContractPhaseStepDocumentUpsertWithWhereUniqueWithoutStepInput = {
324
+ where: Prisma.ContractPhaseStepDocumentWhereUniqueInput;
325
+ update: Prisma.XOR<Prisma.ContractPhaseStepDocumentUpdateWithoutStepInput, Prisma.ContractPhaseStepDocumentUncheckedUpdateWithoutStepInput>;
326
+ create: Prisma.XOR<Prisma.ContractPhaseStepDocumentCreateWithoutStepInput, Prisma.ContractPhaseStepDocumentUncheckedCreateWithoutStepInput>;
327
+ };
328
+ export type ContractPhaseStepDocumentUpdateWithWhereUniqueWithoutStepInput = {
329
+ where: Prisma.ContractPhaseStepDocumentWhereUniqueInput;
330
+ data: Prisma.XOR<Prisma.ContractPhaseStepDocumentUpdateWithoutStepInput, Prisma.ContractPhaseStepDocumentUncheckedUpdateWithoutStepInput>;
331
+ };
332
+ export type ContractPhaseStepDocumentUpdateManyWithWhereWithoutStepInput = {
333
+ where: Prisma.ContractPhaseStepDocumentScalarWhereInput;
334
+ data: Prisma.XOR<Prisma.ContractPhaseStepDocumentUpdateManyMutationInput, Prisma.ContractPhaseStepDocumentUncheckedUpdateManyWithoutStepInput>;
335
+ };
336
+ export type ContractPhaseStepDocumentScalarWhereInput = {
337
+ AND?: Prisma.ContractPhaseStepDocumentScalarWhereInput | Prisma.ContractPhaseStepDocumentScalarWhereInput[];
338
+ OR?: Prisma.ContractPhaseStepDocumentScalarWhereInput[];
339
+ NOT?: Prisma.ContractPhaseStepDocumentScalarWhereInput | Prisma.ContractPhaseStepDocumentScalarWhereInput[];
340
+ id?: Prisma.StringFilter<"ContractPhaseStepDocument"> | string;
341
+ stepId?: Prisma.StringFilter<"ContractPhaseStepDocument"> | string;
342
+ documentType?: Prisma.StringFilter<"ContractPhaseStepDocument"> | string;
343
+ isRequired?: Prisma.BoolFilter<"ContractPhaseStepDocument"> | boolean;
344
+ createdAt?: Prisma.DateTimeFilter<"ContractPhaseStepDocument"> | Date | string;
345
+ };
346
+ export type ContractPhaseStepDocumentCreateManyStepInput = {
347
+ id?: string;
348
+ documentType: string;
349
+ isRequired?: boolean;
350
+ createdAt?: Date | string;
351
+ };
352
+ export type ContractPhaseStepDocumentUpdateWithoutStepInput = {
353
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
354
+ documentType?: Prisma.StringFieldUpdateOperationsInput | string;
355
+ isRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
356
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
357
+ };
358
+ export type ContractPhaseStepDocumentUncheckedUpdateWithoutStepInput = {
359
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
360
+ documentType?: Prisma.StringFieldUpdateOperationsInput | string;
361
+ isRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
362
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
363
+ };
364
+ export type ContractPhaseStepDocumentUncheckedUpdateManyWithoutStepInput = {
365
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
366
+ documentType?: Prisma.StringFieldUpdateOperationsInput | string;
367
+ isRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
368
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
369
+ };
370
+ export type ContractPhaseStepDocumentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
371
+ id?: boolean;
372
+ stepId?: boolean;
373
+ documentType?: boolean;
374
+ isRequired?: boolean;
375
+ createdAt?: boolean;
376
+ step?: boolean | Prisma.ContractPhaseStepDefaultArgs<ExtArgs>;
377
+ }, ExtArgs["result"]["contractPhaseStepDocument"]>;
378
+ export type ContractPhaseStepDocumentSelectScalar = {
379
+ id?: boolean;
380
+ stepId?: boolean;
381
+ documentType?: boolean;
382
+ isRequired?: boolean;
383
+ createdAt?: boolean;
384
+ };
385
+ export type ContractPhaseStepDocumentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "stepId" | "documentType" | "isRequired" | "createdAt", ExtArgs["result"]["contractPhaseStepDocument"]>;
386
+ export type ContractPhaseStepDocumentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
387
+ step?: boolean | Prisma.ContractPhaseStepDefaultArgs<ExtArgs>;
388
+ };
389
+ export type $ContractPhaseStepDocumentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
390
+ name: "ContractPhaseStepDocument";
391
+ objects: {
392
+ step: Prisma.$ContractPhaseStepPayload<ExtArgs>;
393
+ };
394
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
395
+ id: string;
396
+ stepId: string;
397
+ documentType: string;
398
+ isRequired: boolean;
399
+ createdAt: Date;
400
+ }, ExtArgs["result"]["contractPhaseStepDocument"]>;
401
+ composites: {};
402
+ };
403
+ export type ContractPhaseStepDocumentGetPayload<S extends boolean | null | undefined | ContractPhaseStepDocumentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepDocumentPayload, S>;
404
+ export type ContractPhaseStepDocumentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ContractPhaseStepDocumentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
405
+ select?: ContractPhaseStepDocumentCountAggregateInputType | true;
406
+ };
407
+ export interface ContractPhaseStepDocumentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
408
+ [K: symbol]: {
409
+ types: Prisma.TypeMap<ExtArgs>['model']['ContractPhaseStepDocument'];
410
+ meta: {
411
+ name: 'ContractPhaseStepDocument';
412
+ };
413
+ };
414
+ /**
415
+ * Find zero or one ContractPhaseStepDocument that matches the filter.
416
+ * @param {ContractPhaseStepDocumentFindUniqueArgs} args - Arguments to find a ContractPhaseStepDocument
417
+ * @example
418
+ * // Get one ContractPhaseStepDocument
419
+ * const contractPhaseStepDocument = await prisma.contractPhaseStepDocument.findUnique({
420
+ * where: {
421
+ * // ... provide filter here
422
+ * }
423
+ * })
424
+ */
425
+ findUnique<T extends ContractPhaseStepDocumentFindUniqueArgs>(args: Prisma.SelectSubset<T, ContractPhaseStepDocumentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseStepDocumentClient<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepDocumentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
426
+ /**
427
+ * Find one ContractPhaseStepDocument that matches the filter or throw an error with `error.code='P2025'`
428
+ * if no matches were found.
429
+ * @param {ContractPhaseStepDocumentFindUniqueOrThrowArgs} args - Arguments to find a ContractPhaseStepDocument
430
+ * @example
431
+ * // Get one ContractPhaseStepDocument
432
+ * const contractPhaseStepDocument = await prisma.contractPhaseStepDocument.findUniqueOrThrow({
433
+ * where: {
434
+ * // ... provide filter here
435
+ * }
436
+ * })
437
+ */
438
+ findUniqueOrThrow<T extends ContractPhaseStepDocumentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ContractPhaseStepDocumentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseStepDocumentClient<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepDocumentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
439
+ /**
440
+ * Find the first ContractPhaseStepDocument that matches the filter.
441
+ * Note, that providing `undefined` is treated as the value not being there.
442
+ * Read more here: https://pris.ly/d/null-undefined
443
+ * @param {ContractPhaseStepDocumentFindFirstArgs} args - Arguments to find a ContractPhaseStepDocument
444
+ * @example
445
+ * // Get one ContractPhaseStepDocument
446
+ * const contractPhaseStepDocument = await prisma.contractPhaseStepDocument.findFirst({
447
+ * where: {
448
+ * // ... provide filter here
449
+ * }
450
+ * })
451
+ */
452
+ findFirst<T extends ContractPhaseStepDocumentFindFirstArgs>(args?: Prisma.SelectSubset<T, ContractPhaseStepDocumentFindFirstArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseStepDocumentClient<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepDocumentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
453
+ /**
454
+ * Find the first ContractPhaseStepDocument that matches the filter or
455
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
456
+ * Note, that providing `undefined` is treated as the value not being there.
457
+ * Read more here: https://pris.ly/d/null-undefined
458
+ * @param {ContractPhaseStepDocumentFindFirstOrThrowArgs} args - Arguments to find a ContractPhaseStepDocument
459
+ * @example
460
+ * // Get one ContractPhaseStepDocument
461
+ * const contractPhaseStepDocument = await prisma.contractPhaseStepDocument.findFirstOrThrow({
462
+ * where: {
463
+ * // ... provide filter here
464
+ * }
465
+ * })
466
+ */
467
+ findFirstOrThrow<T extends ContractPhaseStepDocumentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ContractPhaseStepDocumentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseStepDocumentClient<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepDocumentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
468
+ /**
469
+ * Find zero or more ContractPhaseStepDocuments that matches the filter.
470
+ * Note, that providing `undefined` is treated as the value not being there.
471
+ * Read more here: https://pris.ly/d/null-undefined
472
+ * @param {ContractPhaseStepDocumentFindManyArgs} args - Arguments to filter and select certain fields only.
473
+ * @example
474
+ * // Get all ContractPhaseStepDocuments
475
+ * const contractPhaseStepDocuments = await prisma.contractPhaseStepDocument.findMany()
476
+ *
477
+ * // Get first 10 ContractPhaseStepDocuments
478
+ * const contractPhaseStepDocuments = await prisma.contractPhaseStepDocument.findMany({ take: 10 })
479
+ *
480
+ * // Only select the `id`
481
+ * const contractPhaseStepDocumentWithIdOnly = await prisma.contractPhaseStepDocument.findMany({ select: { id: true } })
482
+ *
483
+ */
484
+ findMany<T extends ContractPhaseStepDocumentFindManyArgs>(args?: Prisma.SelectSubset<T, ContractPhaseStepDocumentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepDocumentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
485
+ /**
486
+ * Create a ContractPhaseStepDocument.
487
+ * @param {ContractPhaseStepDocumentCreateArgs} args - Arguments to create a ContractPhaseStepDocument.
488
+ * @example
489
+ * // Create one ContractPhaseStepDocument
490
+ * const ContractPhaseStepDocument = await prisma.contractPhaseStepDocument.create({
491
+ * data: {
492
+ * // ... data to create a ContractPhaseStepDocument
493
+ * }
494
+ * })
495
+ *
496
+ */
497
+ create<T extends ContractPhaseStepDocumentCreateArgs>(args: Prisma.SelectSubset<T, ContractPhaseStepDocumentCreateArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseStepDocumentClient<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepDocumentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
498
+ /**
499
+ * Create many ContractPhaseStepDocuments.
500
+ * @param {ContractPhaseStepDocumentCreateManyArgs} args - Arguments to create many ContractPhaseStepDocuments.
501
+ * @example
502
+ * // Create many ContractPhaseStepDocuments
503
+ * const contractPhaseStepDocument = await prisma.contractPhaseStepDocument.createMany({
504
+ * data: [
505
+ * // ... provide data here
506
+ * ]
507
+ * })
508
+ *
509
+ */
510
+ createMany<T extends ContractPhaseStepDocumentCreateManyArgs>(args?: Prisma.SelectSubset<T, ContractPhaseStepDocumentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
511
+ /**
512
+ * Delete a ContractPhaseStepDocument.
513
+ * @param {ContractPhaseStepDocumentDeleteArgs} args - Arguments to delete one ContractPhaseStepDocument.
514
+ * @example
515
+ * // Delete one ContractPhaseStepDocument
516
+ * const ContractPhaseStepDocument = await prisma.contractPhaseStepDocument.delete({
517
+ * where: {
518
+ * // ... filter to delete one ContractPhaseStepDocument
519
+ * }
520
+ * })
521
+ *
522
+ */
523
+ delete<T extends ContractPhaseStepDocumentDeleteArgs>(args: Prisma.SelectSubset<T, ContractPhaseStepDocumentDeleteArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseStepDocumentClient<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepDocumentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
524
+ /**
525
+ * Update one ContractPhaseStepDocument.
526
+ * @param {ContractPhaseStepDocumentUpdateArgs} args - Arguments to update one ContractPhaseStepDocument.
527
+ * @example
528
+ * // Update one ContractPhaseStepDocument
529
+ * const contractPhaseStepDocument = await prisma.contractPhaseStepDocument.update({
530
+ * where: {
531
+ * // ... provide filter here
532
+ * },
533
+ * data: {
534
+ * // ... provide data here
535
+ * }
536
+ * })
537
+ *
538
+ */
539
+ update<T extends ContractPhaseStepDocumentUpdateArgs>(args: Prisma.SelectSubset<T, ContractPhaseStepDocumentUpdateArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseStepDocumentClient<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepDocumentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
540
+ /**
541
+ * Delete zero or more ContractPhaseStepDocuments.
542
+ * @param {ContractPhaseStepDocumentDeleteManyArgs} args - Arguments to filter ContractPhaseStepDocuments to delete.
543
+ * @example
544
+ * // Delete a few ContractPhaseStepDocuments
545
+ * const { count } = await prisma.contractPhaseStepDocument.deleteMany({
546
+ * where: {
547
+ * // ... provide filter here
548
+ * }
549
+ * })
550
+ *
551
+ */
552
+ deleteMany<T extends ContractPhaseStepDocumentDeleteManyArgs>(args?: Prisma.SelectSubset<T, ContractPhaseStepDocumentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
553
+ /**
554
+ * Update zero or more ContractPhaseStepDocuments.
555
+ * Note, that providing `undefined` is treated as the value not being there.
556
+ * Read more here: https://pris.ly/d/null-undefined
557
+ * @param {ContractPhaseStepDocumentUpdateManyArgs} args - Arguments to update one or more rows.
558
+ * @example
559
+ * // Update many ContractPhaseStepDocuments
560
+ * const contractPhaseStepDocument = await prisma.contractPhaseStepDocument.updateMany({
561
+ * where: {
562
+ * // ... provide filter here
563
+ * },
564
+ * data: {
565
+ * // ... provide data here
566
+ * }
567
+ * })
568
+ *
569
+ */
570
+ updateMany<T extends ContractPhaseStepDocumentUpdateManyArgs>(args: Prisma.SelectSubset<T, ContractPhaseStepDocumentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
571
+ /**
572
+ * Create or update one ContractPhaseStepDocument.
573
+ * @param {ContractPhaseStepDocumentUpsertArgs} args - Arguments to update or create a ContractPhaseStepDocument.
574
+ * @example
575
+ * // Update or create a ContractPhaseStepDocument
576
+ * const contractPhaseStepDocument = await prisma.contractPhaseStepDocument.upsert({
577
+ * create: {
578
+ * // ... data to create a ContractPhaseStepDocument
579
+ * },
580
+ * update: {
581
+ * // ... in case it already exists, update
582
+ * },
583
+ * where: {
584
+ * // ... the filter for the ContractPhaseStepDocument we want to update
585
+ * }
586
+ * })
587
+ */
588
+ upsert<T extends ContractPhaseStepDocumentUpsertArgs>(args: Prisma.SelectSubset<T, ContractPhaseStepDocumentUpsertArgs<ExtArgs>>): Prisma.Prisma__ContractPhaseStepDocumentClient<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepDocumentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
589
+ /**
590
+ * Count the number of ContractPhaseStepDocuments.
591
+ * Note, that providing `undefined` is treated as the value not being there.
592
+ * Read more here: https://pris.ly/d/null-undefined
593
+ * @param {ContractPhaseStepDocumentCountArgs} args - Arguments to filter ContractPhaseStepDocuments to count.
594
+ * @example
595
+ * // Count the number of ContractPhaseStepDocuments
596
+ * const count = await prisma.contractPhaseStepDocument.count({
597
+ * where: {
598
+ * // ... the filter for the ContractPhaseStepDocuments we want to count
599
+ * }
600
+ * })
601
+ **/
602
+ count<T extends ContractPhaseStepDocumentCountArgs>(args?: Prisma.Subset<T, ContractPhaseStepDocumentCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ContractPhaseStepDocumentCountAggregateOutputType> : number>;
603
+ /**
604
+ * Allows you to perform aggregations operations on a ContractPhaseStepDocument.
605
+ * Note, that providing `undefined` is treated as the value not being there.
606
+ * Read more here: https://pris.ly/d/null-undefined
607
+ * @param {ContractPhaseStepDocumentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
608
+ * @example
609
+ * // Ordered by age ascending
610
+ * // Where email contains prisma.io
611
+ * // Limited to the 10 users
612
+ * const aggregations = await prisma.user.aggregate({
613
+ * _avg: {
614
+ * age: true,
615
+ * },
616
+ * where: {
617
+ * email: {
618
+ * contains: "prisma.io",
619
+ * },
620
+ * },
621
+ * orderBy: {
622
+ * age: "asc",
623
+ * },
624
+ * take: 10,
625
+ * })
626
+ **/
627
+ aggregate<T extends ContractPhaseStepDocumentAggregateArgs>(args: Prisma.Subset<T, ContractPhaseStepDocumentAggregateArgs>): Prisma.PrismaPromise<GetContractPhaseStepDocumentAggregateType<T>>;
628
+ /**
629
+ * Group by ContractPhaseStepDocument.
630
+ * Note, that providing `undefined` is treated as the value not being there.
631
+ * Read more here: https://pris.ly/d/null-undefined
632
+ * @param {ContractPhaseStepDocumentGroupByArgs} args - Group by arguments.
633
+ * @example
634
+ * // Group by city, order by createdAt, get count
635
+ * const result = await prisma.user.groupBy({
636
+ * by: ['city', 'createdAt'],
637
+ * orderBy: {
638
+ * createdAt: true
639
+ * },
640
+ * _count: {
641
+ * _all: true
642
+ * },
643
+ * })
644
+ *
645
+ **/
646
+ groupBy<T extends ContractPhaseStepDocumentGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
647
+ orderBy: ContractPhaseStepDocumentGroupByArgs['orderBy'];
648
+ } : {
649
+ orderBy?: ContractPhaseStepDocumentGroupByArgs['orderBy'];
650
+ }, 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 ? {
651
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
652
+ Error,
653
+ 'Field ',
654
+ P,
655
+ ` in "having" needs to be provided in "by"`
656
+ ];
657
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
658
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
659
+ }[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 ? {} : {
660
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
661
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
662
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
663
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, ContractPhaseStepDocumentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetContractPhaseStepDocumentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
664
+ /**
665
+ * Fields of the ContractPhaseStepDocument model
666
+ */
667
+ readonly fields: ContractPhaseStepDocumentFieldRefs;
668
+ }
669
+ /**
670
+ * The delegate class that acts as a "Promise-like" for ContractPhaseStepDocument.
671
+ * Why is this prefixed with `Prisma__`?
672
+ * Because we want to prevent naming conflicts as mentioned in
673
+ * https://github.com/prisma/prisma-client-js/issues/707
674
+ */
675
+ export interface Prisma__ContractPhaseStepDocumentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
676
+ readonly [Symbol.toStringTag]: "PrismaPromise";
677
+ 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>;
678
+ /**
679
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
680
+ * @param onfulfilled The callback to execute when the Promise is resolved.
681
+ * @param onrejected The callback to execute when the Promise is rejected.
682
+ * @returns A Promise for the completion of which ever callback is executed.
683
+ */
684
+ 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>;
685
+ /**
686
+ * Attaches a callback for only the rejection of the Promise.
687
+ * @param onrejected The callback to execute when the Promise is rejected.
688
+ * @returns A Promise for the completion of the callback.
689
+ */
690
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
691
+ /**
692
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
693
+ * resolved value cannot be modified from the callback.
694
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
695
+ * @returns A Promise for the completion of the callback.
696
+ */
697
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
698
+ }
699
+ /**
700
+ * Fields of the ContractPhaseStepDocument model
701
+ */
702
+ export interface ContractPhaseStepDocumentFieldRefs {
703
+ readonly id: Prisma.FieldRef<"ContractPhaseStepDocument", 'String'>;
704
+ readonly stepId: Prisma.FieldRef<"ContractPhaseStepDocument", 'String'>;
705
+ readonly documentType: Prisma.FieldRef<"ContractPhaseStepDocument", 'String'>;
706
+ readonly isRequired: Prisma.FieldRef<"ContractPhaseStepDocument", 'Boolean'>;
707
+ readonly createdAt: Prisma.FieldRef<"ContractPhaseStepDocument", 'DateTime'>;
708
+ }
709
+ /**
710
+ * ContractPhaseStepDocument findUnique
711
+ */
712
+ export type ContractPhaseStepDocumentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
713
+ /**
714
+ * Select specific fields to fetch from the ContractPhaseStepDocument
715
+ */
716
+ select?: Prisma.ContractPhaseStepDocumentSelect<ExtArgs> | null;
717
+ /**
718
+ * Omit specific fields from the ContractPhaseStepDocument
719
+ */
720
+ omit?: Prisma.ContractPhaseStepDocumentOmit<ExtArgs> | null;
721
+ /**
722
+ * Choose, which related nodes to fetch as well
723
+ */
724
+ include?: Prisma.ContractPhaseStepDocumentInclude<ExtArgs> | null;
725
+ /**
726
+ * Filter, which ContractPhaseStepDocument to fetch.
727
+ */
728
+ where: Prisma.ContractPhaseStepDocumentWhereUniqueInput;
729
+ };
730
+ /**
731
+ * ContractPhaseStepDocument findUniqueOrThrow
732
+ */
733
+ export type ContractPhaseStepDocumentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
734
+ /**
735
+ * Select specific fields to fetch from the ContractPhaseStepDocument
736
+ */
737
+ select?: Prisma.ContractPhaseStepDocumentSelect<ExtArgs> | null;
738
+ /**
739
+ * Omit specific fields from the ContractPhaseStepDocument
740
+ */
741
+ omit?: Prisma.ContractPhaseStepDocumentOmit<ExtArgs> | null;
742
+ /**
743
+ * Choose, which related nodes to fetch as well
744
+ */
745
+ include?: Prisma.ContractPhaseStepDocumentInclude<ExtArgs> | null;
746
+ /**
747
+ * Filter, which ContractPhaseStepDocument to fetch.
748
+ */
749
+ where: Prisma.ContractPhaseStepDocumentWhereUniqueInput;
750
+ };
751
+ /**
752
+ * ContractPhaseStepDocument findFirst
753
+ */
754
+ export type ContractPhaseStepDocumentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
755
+ /**
756
+ * Select specific fields to fetch from the ContractPhaseStepDocument
757
+ */
758
+ select?: Prisma.ContractPhaseStepDocumentSelect<ExtArgs> | null;
759
+ /**
760
+ * Omit specific fields from the ContractPhaseStepDocument
761
+ */
762
+ omit?: Prisma.ContractPhaseStepDocumentOmit<ExtArgs> | null;
763
+ /**
764
+ * Choose, which related nodes to fetch as well
765
+ */
766
+ include?: Prisma.ContractPhaseStepDocumentInclude<ExtArgs> | null;
767
+ /**
768
+ * Filter, which ContractPhaseStepDocument to fetch.
769
+ */
770
+ where?: Prisma.ContractPhaseStepDocumentWhereInput;
771
+ /**
772
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
773
+ *
774
+ * Determine the order of ContractPhaseStepDocuments to fetch.
775
+ */
776
+ orderBy?: Prisma.ContractPhaseStepDocumentOrderByWithRelationInput | Prisma.ContractPhaseStepDocumentOrderByWithRelationInput[];
777
+ /**
778
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
779
+ *
780
+ * Sets the position for searching for ContractPhaseStepDocuments.
781
+ */
782
+ cursor?: Prisma.ContractPhaseStepDocumentWhereUniqueInput;
783
+ /**
784
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
785
+ *
786
+ * Take `±n` ContractPhaseStepDocuments from the position of the cursor.
787
+ */
788
+ take?: number;
789
+ /**
790
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
791
+ *
792
+ * Skip the first `n` ContractPhaseStepDocuments.
793
+ */
794
+ skip?: number;
795
+ /**
796
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
797
+ *
798
+ * Filter by unique combinations of ContractPhaseStepDocuments.
799
+ */
800
+ distinct?: Prisma.ContractPhaseStepDocumentScalarFieldEnum | Prisma.ContractPhaseStepDocumentScalarFieldEnum[];
801
+ };
802
+ /**
803
+ * ContractPhaseStepDocument findFirstOrThrow
804
+ */
805
+ export type ContractPhaseStepDocumentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
806
+ /**
807
+ * Select specific fields to fetch from the ContractPhaseStepDocument
808
+ */
809
+ select?: Prisma.ContractPhaseStepDocumentSelect<ExtArgs> | null;
810
+ /**
811
+ * Omit specific fields from the ContractPhaseStepDocument
812
+ */
813
+ omit?: Prisma.ContractPhaseStepDocumentOmit<ExtArgs> | null;
814
+ /**
815
+ * Choose, which related nodes to fetch as well
816
+ */
817
+ include?: Prisma.ContractPhaseStepDocumentInclude<ExtArgs> | null;
818
+ /**
819
+ * Filter, which ContractPhaseStepDocument to fetch.
820
+ */
821
+ where?: Prisma.ContractPhaseStepDocumentWhereInput;
822
+ /**
823
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
824
+ *
825
+ * Determine the order of ContractPhaseStepDocuments to fetch.
826
+ */
827
+ orderBy?: Prisma.ContractPhaseStepDocumentOrderByWithRelationInput | Prisma.ContractPhaseStepDocumentOrderByWithRelationInput[];
828
+ /**
829
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
830
+ *
831
+ * Sets the position for searching for ContractPhaseStepDocuments.
832
+ */
833
+ cursor?: Prisma.ContractPhaseStepDocumentWhereUniqueInput;
834
+ /**
835
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
836
+ *
837
+ * Take `±n` ContractPhaseStepDocuments from the position of the cursor.
838
+ */
839
+ take?: number;
840
+ /**
841
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
842
+ *
843
+ * Skip the first `n` ContractPhaseStepDocuments.
844
+ */
845
+ skip?: number;
846
+ /**
847
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
848
+ *
849
+ * Filter by unique combinations of ContractPhaseStepDocuments.
850
+ */
851
+ distinct?: Prisma.ContractPhaseStepDocumentScalarFieldEnum | Prisma.ContractPhaseStepDocumentScalarFieldEnum[];
852
+ };
853
+ /**
854
+ * ContractPhaseStepDocument findMany
855
+ */
856
+ export type ContractPhaseStepDocumentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
857
+ /**
858
+ * Select specific fields to fetch from the ContractPhaseStepDocument
859
+ */
860
+ select?: Prisma.ContractPhaseStepDocumentSelect<ExtArgs> | null;
861
+ /**
862
+ * Omit specific fields from the ContractPhaseStepDocument
863
+ */
864
+ omit?: Prisma.ContractPhaseStepDocumentOmit<ExtArgs> | null;
865
+ /**
866
+ * Choose, which related nodes to fetch as well
867
+ */
868
+ include?: Prisma.ContractPhaseStepDocumentInclude<ExtArgs> | null;
869
+ /**
870
+ * Filter, which ContractPhaseStepDocuments to fetch.
871
+ */
872
+ where?: Prisma.ContractPhaseStepDocumentWhereInput;
873
+ /**
874
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
875
+ *
876
+ * Determine the order of ContractPhaseStepDocuments to fetch.
877
+ */
878
+ orderBy?: Prisma.ContractPhaseStepDocumentOrderByWithRelationInput | Prisma.ContractPhaseStepDocumentOrderByWithRelationInput[];
879
+ /**
880
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
881
+ *
882
+ * Sets the position for listing ContractPhaseStepDocuments.
883
+ */
884
+ cursor?: Prisma.ContractPhaseStepDocumentWhereUniqueInput;
885
+ /**
886
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
887
+ *
888
+ * Take `±n` ContractPhaseStepDocuments from the position of the cursor.
889
+ */
890
+ take?: number;
891
+ /**
892
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
893
+ *
894
+ * Skip the first `n` ContractPhaseStepDocuments.
895
+ */
896
+ skip?: number;
897
+ distinct?: Prisma.ContractPhaseStepDocumentScalarFieldEnum | Prisma.ContractPhaseStepDocumentScalarFieldEnum[];
898
+ };
899
+ /**
900
+ * ContractPhaseStepDocument create
901
+ */
902
+ export type ContractPhaseStepDocumentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
903
+ /**
904
+ * Select specific fields to fetch from the ContractPhaseStepDocument
905
+ */
906
+ select?: Prisma.ContractPhaseStepDocumentSelect<ExtArgs> | null;
907
+ /**
908
+ * Omit specific fields from the ContractPhaseStepDocument
909
+ */
910
+ omit?: Prisma.ContractPhaseStepDocumentOmit<ExtArgs> | null;
911
+ /**
912
+ * Choose, which related nodes to fetch as well
913
+ */
914
+ include?: Prisma.ContractPhaseStepDocumentInclude<ExtArgs> | null;
915
+ /**
916
+ * The data needed to create a ContractPhaseStepDocument.
917
+ */
918
+ data: Prisma.XOR<Prisma.ContractPhaseStepDocumentCreateInput, Prisma.ContractPhaseStepDocumentUncheckedCreateInput>;
919
+ };
920
+ /**
921
+ * ContractPhaseStepDocument createMany
922
+ */
923
+ export type ContractPhaseStepDocumentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
924
+ /**
925
+ * The data used to create many ContractPhaseStepDocuments.
926
+ */
927
+ data: Prisma.ContractPhaseStepDocumentCreateManyInput | Prisma.ContractPhaseStepDocumentCreateManyInput[];
928
+ skipDuplicates?: boolean;
929
+ };
930
+ /**
931
+ * ContractPhaseStepDocument update
932
+ */
933
+ export type ContractPhaseStepDocumentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
934
+ /**
935
+ * Select specific fields to fetch from the ContractPhaseStepDocument
936
+ */
937
+ select?: Prisma.ContractPhaseStepDocumentSelect<ExtArgs> | null;
938
+ /**
939
+ * Omit specific fields from the ContractPhaseStepDocument
940
+ */
941
+ omit?: Prisma.ContractPhaseStepDocumentOmit<ExtArgs> | null;
942
+ /**
943
+ * Choose, which related nodes to fetch as well
944
+ */
945
+ include?: Prisma.ContractPhaseStepDocumentInclude<ExtArgs> | null;
946
+ /**
947
+ * The data needed to update a ContractPhaseStepDocument.
948
+ */
949
+ data: Prisma.XOR<Prisma.ContractPhaseStepDocumentUpdateInput, Prisma.ContractPhaseStepDocumentUncheckedUpdateInput>;
950
+ /**
951
+ * Choose, which ContractPhaseStepDocument to update.
952
+ */
953
+ where: Prisma.ContractPhaseStepDocumentWhereUniqueInput;
954
+ };
955
+ /**
956
+ * ContractPhaseStepDocument updateMany
957
+ */
958
+ export type ContractPhaseStepDocumentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
959
+ /**
960
+ * The data used to update ContractPhaseStepDocuments.
961
+ */
962
+ data: Prisma.XOR<Prisma.ContractPhaseStepDocumentUpdateManyMutationInput, Prisma.ContractPhaseStepDocumentUncheckedUpdateManyInput>;
963
+ /**
964
+ * Filter which ContractPhaseStepDocuments to update
965
+ */
966
+ where?: Prisma.ContractPhaseStepDocumentWhereInput;
967
+ /**
968
+ * Limit how many ContractPhaseStepDocuments to update.
969
+ */
970
+ limit?: number;
971
+ };
972
+ /**
973
+ * ContractPhaseStepDocument upsert
974
+ */
975
+ export type ContractPhaseStepDocumentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
976
+ /**
977
+ * Select specific fields to fetch from the ContractPhaseStepDocument
978
+ */
979
+ select?: Prisma.ContractPhaseStepDocumentSelect<ExtArgs> | null;
980
+ /**
981
+ * Omit specific fields from the ContractPhaseStepDocument
982
+ */
983
+ omit?: Prisma.ContractPhaseStepDocumentOmit<ExtArgs> | null;
984
+ /**
985
+ * Choose, which related nodes to fetch as well
986
+ */
987
+ include?: Prisma.ContractPhaseStepDocumentInclude<ExtArgs> | null;
988
+ /**
989
+ * The filter to search for the ContractPhaseStepDocument to update in case it exists.
990
+ */
991
+ where: Prisma.ContractPhaseStepDocumentWhereUniqueInput;
992
+ /**
993
+ * In case the ContractPhaseStepDocument found by the `where` argument doesn't exist, create a new ContractPhaseStepDocument with this data.
994
+ */
995
+ create: Prisma.XOR<Prisma.ContractPhaseStepDocumentCreateInput, Prisma.ContractPhaseStepDocumentUncheckedCreateInput>;
996
+ /**
997
+ * In case the ContractPhaseStepDocument was found with the provided `where` argument, update it with this data.
998
+ */
999
+ update: Prisma.XOR<Prisma.ContractPhaseStepDocumentUpdateInput, Prisma.ContractPhaseStepDocumentUncheckedUpdateInput>;
1000
+ };
1001
+ /**
1002
+ * ContractPhaseStepDocument delete
1003
+ */
1004
+ export type ContractPhaseStepDocumentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1005
+ /**
1006
+ * Select specific fields to fetch from the ContractPhaseStepDocument
1007
+ */
1008
+ select?: Prisma.ContractPhaseStepDocumentSelect<ExtArgs> | null;
1009
+ /**
1010
+ * Omit specific fields from the ContractPhaseStepDocument
1011
+ */
1012
+ omit?: Prisma.ContractPhaseStepDocumentOmit<ExtArgs> | null;
1013
+ /**
1014
+ * Choose, which related nodes to fetch as well
1015
+ */
1016
+ include?: Prisma.ContractPhaseStepDocumentInclude<ExtArgs> | null;
1017
+ /**
1018
+ * Filter which ContractPhaseStepDocument to delete.
1019
+ */
1020
+ where: Prisma.ContractPhaseStepDocumentWhereUniqueInput;
1021
+ };
1022
+ /**
1023
+ * ContractPhaseStepDocument deleteMany
1024
+ */
1025
+ export type ContractPhaseStepDocumentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1026
+ /**
1027
+ * Filter which ContractPhaseStepDocuments to delete
1028
+ */
1029
+ where?: Prisma.ContractPhaseStepDocumentWhereInput;
1030
+ /**
1031
+ * Limit how many ContractPhaseStepDocuments to delete.
1032
+ */
1033
+ limit?: number;
1034
+ };
1035
+ /**
1036
+ * ContractPhaseStepDocument without action
1037
+ */
1038
+ export type ContractPhaseStepDocumentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1039
+ /**
1040
+ * Select specific fields to fetch from the ContractPhaseStepDocument
1041
+ */
1042
+ select?: Prisma.ContractPhaseStepDocumentSelect<ExtArgs> | null;
1043
+ /**
1044
+ * Omit specific fields from the ContractPhaseStepDocument
1045
+ */
1046
+ omit?: Prisma.ContractPhaseStepDocumentOmit<ExtArgs> | null;
1047
+ /**
1048
+ * Choose, which related nodes to fetch as well
1049
+ */
1050
+ include?: Prisma.ContractPhaseStepDocumentInclude<ExtArgs> | null;
1051
+ };
1052
+ export {};