@valentine-efagene/qshelter-common 2.0.125 → 2.0.127

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2231 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as $Enums from "../enums.js";
3
+ import type * as Prisma from "../internal/prismaNamespace.js";
4
+ /**
5
+ * Model DocumentReview
6
+ *
7
+ */
8
+ export type DocumentReviewModel = runtime.Types.Result.DefaultSelection<Prisma.$DocumentReviewPayload>;
9
+ export type AggregateDocumentReview = {
10
+ _count: DocumentReviewCountAggregateOutputType | null;
11
+ _avg: DocumentReviewAvgAggregateOutputType | null;
12
+ _sum: DocumentReviewSumAggregateOutputType | null;
13
+ _min: DocumentReviewMinAggregateOutputType | null;
14
+ _max: DocumentReviewMaxAggregateOutputType | null;
15
+ };
16
+ export type DocumentReviewAvgAggregateOutputType = {
17
+ reviewOrder: number | null;
18
+ };
19
+ export type DocumentReviewSumAggregateOutputType = {
20
+ reviewOrder: number | null;
21
+ };
22
+ export type DocumentReviewMinAggregateOutputType = {
23
+ id: string | null;
24
+ tenantId: string | null;
25
+ documentId: string | null;
26
+ reviewParty: $Enums.ReviewParty | null;
27
+ organizationId: string | null;
28
+ reviewerId: string | null;
29
+ reviewerName: string | null;
30
+ decision: $Enums.ReviewDecision | null;
31
+ comments: string | null;
32
+ requestedAt: Date | null;
33
+ dueAt: Date | null;
34
+ reviewedAt: Date | null;
35
+ reviewOrder: number | null;
36
+ parentReviewId: string | null;
37
+ createdAt: Date | null;
38
+ updatedAt: Date | null;
39
+ };
40
+ export type DocumentReviewMaxAggregateOutputType = {
41
+ id: string | null;
42
+ tenantId: string | null;
43
+ documentId: string | null;
44
+ reviewParty: $Enums.ReviewParty | null;
45
+ organizationId: string | null;
46
+ reviewerId: string | null;
47
+ reviewerName: string | null;
48
+ decision: $Enums.ReviewDecision | null;
49
+ comments: string | null;
50
+ requestedAt: Date | null;
51
+ dueAt: Date | null;
52
+ reviewedAt: Date | null;
53
+ reviewOrder: number | null;
54
+ parentReviewId: string | null;
55
+ createdAt: Date | null;
56
+ updatedAt: Date | null;
57
+ };
58
+ export type DocumentReviewCountAggregateOutputType = {
59
+ id: number;
60
+ tenantId: number;
61
+ documentId: number;
62
+ reviewParty: number;
63
+ organizationId: number;
64
+ reviewerId: number;
65
+ reviewerName: number;
66
+ decision: number;
67
+ comments: number;
68
+ concerns: number;
69
+ requestedAt: number;
70
+ dueAt: number;
71
+ reviewedAt: number;
72
+ reviewOrder: number;
73
+ parentReviewId: number;
74
+ createdAt: number;
75
+ updatedAt: number;
76
+ _all: number;
77
+ };
78
+ export type DocumentReviewAvgAggregateInputType = {
79
+ reviewOrder?: true;
80
+ };
81
+ export type DocumentReviewSumAggregateInputType = {
82
+ reviewOrder?: true;
83
+ };
84
+ export type DocumentReviewMinAggregateInputType = {
85
+ id?: true;
86
+ tenantId?: true;
87
+ documentId?: true;
88
+ reviewParty?: true;
89
+ organizationId?: true;
90
+ reviewerId?: true;
91
+ reviewerName?: true;
92
+ decision?: true;
93
+ comments?: true;
94
+ requestedAt?: true;
95
+ dueAt?: true;
96
+ reviewedAt?: true;
97
+ reviewOrder?: true;
98
+ parentReviewId?: true;
99
+ createdAt?: true;
100
+ updatedAt?: true;
101
+ };
102
+ export type DocumentReviewMaxAggregateInputType = {
103
+ id?: true;
104
+ tenantId?: true;
105
+ documentId?: true;
106
+ reviewParty?: true;
107
+ organizationId?: true;
108
+ reviewerId?: true;
109
+ reviewerName?: true;
110
+ decision?: true;
111
+ comments?: true;
112
+ requestedAt?: true;
113
+ dueAt?: true;
114
+ reviewedAt?: true;
115
+ reviewOrder?: true;
116
+ parentReviewId?: true;
117
+ createdAt?: true;
118
+ updatedAt?: true;
119
+ };
120
+ export type DocumentReviewCountAggregateInputType = {
121
+ id?: true;
122
+ tenantId?: true;
123
+ documentId?: true;
124
+ reviewParty?: true;
125
+ organizationId?: true;
126
+ reviewerId?: true;
127
+ reviewerName?: true;
128
+ decision?: true;
129
+ comments?: true;
130
+ concerns?: true;
131
+ requestedAt?: true;
132
+ dueAt?: true;
133
+ reviewedAt?: true;
134
+ reviewOrder?: true;
135
+ parentReviewId?: true;
136
+ createdAt?: true;
137
+ updatedAt?: true;
138
+ _all?: true;
139
+ };
140
+ export type DocumentReviewAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
141
+ /**
142
+ * Filter which DocumentReview to aggregate.
143
+ */
144
+ where?: Prisma.DocumentReviewWhereInput;
145
+ /**
146
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
147
+ *
148
+ * Determine the order of DocumentReviews to fetch.
149
+ */
150
+ orderBy?: Prisma.DocumentReviewOrderByWithRelationInput | Prisma.DocumentReviewOrderByWithRelationInput[];
151
+ /**
152
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
153
+ *
154
+ * Sets the start position
155
+ */
156
+ cursor?: Prisma.DocumentReviewWhereUniqueInput;
157
+ /**
158
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
159
+ *
160
+ * Take `±n` DocumentReviews from the position of the cursor.
161
+ */
162
+ take?: number;
163
+ /**
164
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
165
+ *
166
+ * Skip the first `n` DocumentReviews.
167
+ */
168
+ skip?: number;
169
+ /**
170
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
171
+ *
172
+ * Count returned DocumentReviews
173
+ **/
174
+ _count?: true | DocumentReviewCountAggregateInputType;
175
+ /**
176
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
177
+ *
178
+ * Select which fields to average
179
+ **/
180
+ _avg?: DocumentReviewAvgAggregateInputType;
181
+ /**
182
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
183
+ *
184
+ * Select which fields to sum
185
+ **/
186
+ _sum?: DocumentReviewSumAggregateInputType;
187
+ /**
188
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
189
+ *
190
+ * Select which fields to find the minimum value
191
+ **/
192
+ _min?: DocumentReviewMinAggregateInputType;
193
+ /**
194
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
195
+ *
196
+ * Select which fields to find the maximum value
197
+ **/
198
+ _max?: DocumentReviewMaxAggregateInputType;
199
+ };
200
+ export type GetDocumentReviewAggregateType<T extends DocumentReviewAggregateArgs> = {
201
+ [P in keyof T & keyof AggregateDocumentReview]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateDocumentReview[P]> : Prisma.GetScalarType<T[P], AggregateDocumentReview[P]>;
202
+ };
203
+ export type DocumentReviewGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
204
+ where?: Prisma.DocumentReviewWhereInput;
205
+ orderBy?: Prisma.DocumentReviewOrderByWithAggregationInput | Prisma.DocumentReviewOrderByWithAggregationInput[];
206
+ by: Prisma.DocumentReviewScalarFieldEnum[] | Prisma.DocumentReviewScalarFieldEnum;
207
+ having?: Prisma.DocumentReviewScalarWhereWithAggregatesInput;
208
+ take?: number;
209
+ skip?: number;
210
+ _count?: DocumentReviewCountAggregateInputType | true;
211
+ _avg?: DocumentReviewAvgAggregateInputType;
212
+ _sum?: DocumentReviewSumAggregateInputType;
213
+ _min?: DocumentReviewMinAggregateInputType;
214
+ _max?: DocumentReviewMaxAggregateInputType;
215
+ };
216
+ export type DocumentReviewGroupByOutputType = {
217
+ id: string;
218
+ tenantId: string;
219
+ documentId: string;
220
+ reviewParty: $Enums.ReviewParty;
221
+ organizationId: string | null;
222
+ reviewerId: string | null;
223
+ reviewerName: string | null;
224
+ decision: $Enums.ReviewDecision;
225
+ comments: string | null;
226
+ concerns: runtime.JsonValue | null;
227
+ requestedAt: Date;
228
+ dueAt: Date | null;
229
+ reviewedAt: Date | null;
230
+ reviewOrder: number;
231
+ parentReviewId: string | null;
232
+ createdAt: Date;
233
+ updatedAt: Date;
234
+ _count: DocumentReviewCountAggregateOutputType | null;
235
+ _avg: DocumentReviewAvgAggregateOutputType | null;
236
+ _sum: DocumentReviewSumAggregateOutputType | null;
237
+ _min: DocumentReviewMinAggregateOutputType | null;
238
+ _max: DocumentReviewMaxAggregateOutputType | null;
239
+ };
240
+ type GetDocumentReviewGroupByPayload<T extends DocumentReviewGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<DocumentReviewGroupByOutputType, T['by']> & {
241
+ [P in ((keyof T) & (keyof DocumentReviewGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], DocumentReviewGroupByOutputType[P]> : Prisma.GetScalarType<T[P], DocumentReviewGroupByOutputType[P]>;
242
+ }>>;
243
+ export type DocumentReviewWhereInput = {
244
+ AND?: Prisma.DocumentReviewWhereInput | Prisma.DocumentReviewWhereInput[];
245
+ OR?: Prisma.DocumentReviewWhereInput[];
246
+ NOT?: Prisma.DocumentReviewWhereInput | Prisma.DocumentReviewWhereInput[];
247
+ id?: Prisma.StringFilter<"DocumentReview"> | string;
248
+ tenantId?: Prisma.StringFilter<"DocumentReview"> | string;
249
+ documentId?: Prisma.StringFilter<"DocumentReview"> | string;
250
+ reviewParty?: Prisma.EnumReviewPartyFilter<"DocumentReview"> | $Enums.ReviewParty;
251
+ organizationId?: Prisma.StringNullableFilter<"DocumentReview"> | string | null;
252
+ reviewerId?: Prisma.StringNullableFilter<"DocumentReview"> | string | null;
253
+ reviewerName?: Prisma.StringNullableFilter<"DocumentReview"> | string | null;
254
+ decision?: Prisma.EnumReviewDecisionFilter<"DocumentReview"> | $Enums.ReviewDecision;
255
+ comments?: Prisma.StringNullableFilter<"DocumentReview"> | string | null;
256
+ concerns?: Prisma.JsonNullableFilter<"DocumentReview">;
257
+ requestedAt?: Prisma.DateTimeFilter<"DocumentReview"> | Date | string;
258
+ dueAt?: Prisma.DateTimeNullableFilter<"DocumentReview"> | Date | string | null;
259
+ reviewedAt?: Prisma.DateTimeNullableFilter<"DocumentReview"> | Date | string | null;
260
+ reviewOrder?: Prisma.IntFilter<"DocumentReview"> | number;
261
+ parentReviewId?: Prisma.StringNullableFilter<"DocumentReview"> | string | null;
262
+ createdAt?: Prisma.DateTimeFilter<"DocumentReview"> | Date | string;
263
+ updatedAt?: Prisma.DateTimeFilter<"DocumentReview"> | Date | string;
264
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
265
+ document?: Prisma.XOR<Prisma.ApplicationDocumentScalarRelationFilter, Prisma.ApplicationDocumentWhereInput>;
266
+ reviewer?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
267
+ parentReview?: Prisma.XOR<Prisma.DocumentReviewNullableScalarRelationFilter, Prisma.DocumentReviewWhereInput> | null;
268
+ childReviews?: Prisma.DocumentReviewListRelationFilter;
269
+ };
270
+ export type DocumentReviewOrderByWithRelationInput = {
271
+ id?: Prisma.SortOrder;
272
+ tenantId?: Prisma.SortOrder;
273
+ documentId?: Prisma.SortOrder;
274
+ reviewParty?: Prisma.SortOrder;
275
+ organizationId?: Prisma.SortOrderInput | Prisma.SortOrder;
276
+ reviewerId?: Prisma.SortOrderInput | Prisma.SortOrder;
277
+ reviewerName?: Prisma.SortOrderInput | Prisma.SortOrder;
278
+ decision?: Prisma.SortOrder;
279
+ comments?: Prisma.SortOrderInput | Prisma.SortOrder;
280
+ concerns?: Prisma.SortOrderInput | Prisma.SortOrder;
281
+ requestedAt?: Prisma.SortOrder;
282
+ dueAt?: Prisma.SortOrderInput | Prisma.SortOrder;
283
+ reviewedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
284
+ reviewOrder?: Prisma.SortOrder;
285
+ parentReviewId?: Prisma.SortOrderInput | Prisma.SortOrder;
286
+ createdAt?: Prisma.SortOrder;
287
+ updatedAt?: Prisma.SortOrder;
288
+ tenant?: Prisma.TenantOrderByWithRelationInput;
289
+ document?: Prisma.ApplicationDocumentOrderByWithRelationInput;
290
+ reviewer?: Prisma.UserOrderByWithRelationInput;
291
+ parentReview?: Prisma.DocumentReviewOrderByWithRelationInput;
292
+ childReviews?: Prisma.DocumentReviewOrderByRelationAggregateInput;
293
+ _relevance?: Prisma.DocumentReviewOrderByRelevanceInput;
294
+ };
295
+ export type DocumentReviewWhereUniqueInput = Prisma.AtLeast<{
296
+ id?: string;
297
+ documentId_reviewParty_organizationId?: Prisma.DocumentReviewDocumentIdReviewPartyOrganizationIdCompoundUniqueInput;
298
+ AND?: Prisma.DocumentReviewWhereInput | Prisma.DocumentReviewWhereInput[];
299
+ OR?: Prisma.DocumentReviewWhereInput[];
300
+ NOT?: Prisma.DocumentReviewWhereInput | Prisma.DocumentReviewWhereInput[];
301
+ tenantId?: Prisma.StringFilter<"DocumentReview"> | string;
302
+ documentId?: Prisma.StringFilter<"DocumentReview"> | string;
303
+ reviewParty?: Prisma.EnumReviewPartyFilter<"DocumentReview"> | $Enums.ReviewParty;
304
+ organizationId?: Prisma.StringNullableFilter<"DocumentReview"> | string | null;
305
+ reviewerId?: Prisma.StringNullableFilter<"DocumentReview"> | string | null;
306
+ reviewerName?: Prisma.StringNullableFilter<"DocumentReview"> | string | null;
307
+ decision?: Prisma.EnumReviewDecisionFilter<"DocumentReview"> | $Enums.ReviewDecision;
308
+ comments?: Prisma.StringNullableFilter<"DocumentReview"> | string | null;
309
+ concerns?: Prisma.JsonNullableFilter<"DocumentReview">;
310
+ requestedAt?: Prisma.DateTimeFilter<"DocumentReview"> | Date | string;
311
+ dueAt?: Prisma.DateTimeNullableFilter<"DocumentReview"> | Date | string | null;
312
+ reviewedAt?: Prisma.DateTimeNullableFilter<"DocumentReview"> | Date | string | null;
313
+ reviewOrder?: Prisma.IntFilter<"DocumentReview"> | number;
314
+ parentReviewId?: Prisma.StringNullableFilter<"DocumentReview"> | string | null;
315
+ createdAt?: Prisma.DateTimeFilter<"DocumentReview"> | Date | string;
316
+ updatedAt?: Prisma.DateTimeFilter<"DocumentReview"> | Date | string;
317
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
318
+ document?: Prisma.XOR<Prisma.ApplicationDocumentScalarRelationFilter, Prisma.ApplicationDocumentWhereInput>;
319
+ reviewer?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
320
+ parentReview?: Prisma.XOR<Prisma.DocumentReviewNullableScalarRelationFilter, Prisma.DocumentReviewWhereInput> | null;
321
+ childReviews?: Prisma.DocumentReviewListRelationFilter;
322
+ }, "id" | "documentId_reviewParty_organizationId">;
323
+ export type DocumentReviewOrderByWithAggregationInput = {
324
+ id?: Prisma.SortOrder;
325
+ tenantId?: Prisma.SortOrder;
326
+ documentId?: Prisma.SortOrder;
327
+ reviewParty?: Prisma.SortOrder;
328
+ organizationId?: Prisma.SortOrderInput | Prisma.SortOrder;
329
+ reviewerId?: Prisma.SortOrderInput | Prisma.SortOrder;
330
+ reviewerName?: Prisma.SortOrderInput | Prisma.SortOrder;
331
+ decision?: Prisma.SortOrder;
332
+ comments?: Prisma.SortOrderInput | Prisma.SortOrder;
333
+ concerns?: Prisma.SortOrderInput | Prisma.SortOrder;
334
+ requestedAt?: Prisma.SortOrder;
335
+ dueAt?: Prisma.SortOrderInput | Prisma.SortOrder;
336
+ reviewedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
337
+ reviewOrder?: Prisma.SortOrder;
338
+ parentReviewId?: Prisma.SortOrderInput | Prisma.SortOrder;
339
+ createdAt?: Prisma.SortOrder;
340
+ updatedAt?: Prisma.SortOrder;
341
+ _count?: Prisma.DocumentReviewCountOrderByAggregateInput;
342
+ _avg?: Prisma.DocumentReviewAvgOrderByAggregateInput;
343
+ _max?: Prisma.DocumentReviewMaxOrderByAggregateInput;
344
+ _min?: Prisma.DocumentReviewMinOrderByAggregateInput;
345
+ _sum?: Prisma.DocumentReviewSumOrderByAggregateInput;
346
+ };
347
+ export type DocumentReviewScalarWhereWithAggregatesInput = {
348
+ AND?: Prisma.DocumentReviewScalarWhereWithAggregatesInput | Prisma.DocumentReviewScalarWhereWithAggregatesInput[];
349
+ OR?: Prisma.DocumentReviewScalarWhereWithAggregatesInput[];
350
+ NOT?: Prisma.DocumentReviewScalarWhereWithAggregatesInput | Prisma.DocumentReviewScalarWhereWithAggregatesInput[];
351
+ id?: Prisma.StringWithAggregatesFilter<"DocumentReview"> | string;
352
+ tenantId?: Prisma.StringWithAggregatesFilter<"DocumentReview"> | string;
353
+ documentId?: Prisma.StringWithAggregatesFilter<"DocumentReview"> | string;
354
+ reviewParty?: Prisma.EnumReviewPartyWithAggregatesFilter<"DocumentReview"> | $Enums.ReviewParty;
355
+ organizationId?: Prisma.StringNullableWithAggregatesFilter<"DocumentReview"> | string | null;
356
+ reviewerId?: Prisma.StringNullableWithAggregatesFilter<"DocumentReview"> | string | null;
357
+ reviewerName?: Prisma.StringNullableWithAggregatesFilter<"DocumentReview"> | string | null;
358
+ decision?: Prisma.EnumReviewDecisionWithAggregatesFilter<"DocumentReview"> | $Enums.ReviewDecision;
359
+ comments?: Prisma.StringNullableWithAggregatesFilter<"DocumentReview"> | string | null;
360
+ concerns?: Prisma.JsonNullableWithAggregatesFilter<"DocumentReview">;
361
+ requestedAt?: Prisma.DateTimeWithAggregatesFilter<"DocumentReview"> | Date | string;
362
+ dueAt?: Prisma.DateTimeNullableWithAggregatesFilter<"DocumentReview"> | Date | string | null;
363
+ reviewedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"DocumentReview"> | Date | string | null;
364
+ reviewOrder?: Prisma.IntWithAggregatesFilter<"DocumentReview"> | number;
365
+ parentReviewId?: Prisma.StringNullableWithAggregatesFilter<"DocumentReview"> | string | null;
366
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"DocumentReview"> | Date | string;
367
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"DocumentReview"> | Date | string;
368
+ };
369
+ export type DocumentReviewCreateInput = {
370
+ id?: string;
371
+ reviewParty: $Enums.ReviewParty;
372
+ organizationId?: string | null;
373
+ reviewerName?: string | null;
374
+ decision?: $Enums.ReviewDecision;
375
+ comments?: string | null;
376
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
377
+ requestedAt?: Date | string;
378
+ dueAt?: Date | string | null;
379
+ reviewedAt?: Date | string | null;
380
+ reviewOrder?: number;
381
+ createdAt?: Date | string;
382
+ updatedAt?: Date | string;
383
+ tenant: Prisma.TenantCreateNestedOneWithoutDocumentReviewsInput;
384
+ document: Prisma.ApplicationDocumentCreateNestedOneWithoutReviewsInput;
385
+ reviewer?: Prisma.UserCreateNestedOneWithoutDocumentReviewsInput;
386
+ parentReview?: Prisma.DocumentReviewCreateNestedOneWithoutChildReviewsInput;
387
+ childReviews?: Prisma.DocumentReviewCreateNestedManyWithoutParentReviewInput;
388
+ };
389
+ export type DocumentReviewUncheckedCreateInput = {
390
+ id?: string;
391
+ tenantId: string;
392
+ documentId: string;
393
+ reviewParty: $Enums.ReviewParty;
394
+ organizationId?: string | null;
395
+ reviewerId?: string | null;
396
+ reviewerName?: string | null;
397
+ decision?: $Enums.ReviewDecision;
398
+ comments?: string | null;
399
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
400
+ requestedAt?: Date | string;
401
+ dueAt?: Date | string | null;
402
+ reviewedAt?: Date | string | null;
403
+ reviewOrder?: number;
404
+ parentReviewId?: string | null;
405
+ createdAt?: Date | string;
406
+ updatedAt?: Date | string;
407
+ childReviews?: Prisma.DocumentReviewUncheckedCreateNestedManyWithoutParentReviewInput;
408
+ };
409
+ export type DocumentReviewUpdateInput = {
410
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
411
+ reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
412
+ organizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
413
+ reviewerName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
414
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
415
+ comments?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
416
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
417
+ requestedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
418
+ dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
419
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
420
+ reviewOrder?: Prisma.IntFieldUpdateOperationsInput | number;
421
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
422
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
423
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentReviewsNestedInput;
424
+ document?: Prisma.ApplicationDocumentUpdateOneRequiredWithoutReviewsNestedInput;
425
+ reviewer?: Prisma.UserUpdateOneWithoutDocumentReviewsNestedInput;
426
+ parentReview?: Prisma.DocumentReviewUpdateOneWithoutChildReviewsNestedInput;
427
+ childReviews?: Prisma.DocumentReviewUpdateManyWithoutParentReviewNestedInput;
428
+ };
429
+ export type DocumentReviewUncheckedUpdateInput = {
430
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
431
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
432
+ documentId?: Prisma.StringFieldUpdateOperationsInput | string;
433
+ reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
434
+ organizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
435
+ reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
436
+ reviewerName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
437
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
438
+ comments?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
439
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
440
+ requestedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
441
+ dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
442
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
443
+ reviewOrder?: Prisma.IntFieldUpdateOperationsInput | number;
444
+ parentReviewId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
445
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
446
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
447
+ childReviews?: Prisma.DocumentReviewUncheckedUpdateManyWithoutParentReviewNestedInput;
448
+ };
449
+ export type DocumentReviewCreateManyInput = {
450
+ id?: string;
451
+ tenantId: string;
452
+ documentId: string;
453
+ reviewParty: $Enums.ReviewParty;
454
+ organizationId?: string | null;
455
+ reviewerId?: string | null;
456
+ reviewerName?: string | null;
457
+ decision?: $Enums.ReviewDecision;
458
+ comments?: string | null;
459
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
460
+ requestedAt?: Date | string;
461
+ dueAt?: Date | string | null;
462
+ reviewedAt?: Date | string | null;
463
+ reviewOrder?: number;
464
+ parentReviewId?: string | null;
465
+ createdAt?: Date | string;
466
+ updatedAt?: Date | string;
467
+ };
468
+ export type DocumentReviewUpdateManyMutationInput = {
469
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
470
+ reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
471
+ organizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
472
+ reviewerName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
473
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
474
+ comments?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
475
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
476
+ requestedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
477
+ dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
478
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
479
+ reviewOrder?: Prisma.IntFieldUpdateOperationsInput | number;
480
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
481
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
482
+ };
483
+ export type DocumentReviewUncheckedUpdateManyInput = {
484
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
485
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
486
+ documentId?: Prisma.StringFieldUpdateOperationsInput | string;
487
+ reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
488
+ organizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
489
+ reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
490
+ reviewerName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
491
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
492
+ comments?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
493
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
494
+ requestedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
495
+ dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
496
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
497
+ reviewOrder?: Prisma.IntFieldUpdateOperationsInput | number;
498
+ parentReviewId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
499
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
500
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
501
+ };
502
+ export type DocumentReviewListRelationFilter = {
503
+ every?: Prisma.DocumentReviewWhereInput;
504
+ some?: Prisma.DocumentReviewWhereInput;
505
+ none?: Prisma.DocumentReviewWhereInput;
506
+ };
507
+ export type DocumentReviewOrderByRelationAggregateInput = {
508
+ _count?: Prisma.SortOrder;
509
+ };
510
+ export type DocumentReviewNullableScalarRelationFilter = {
511
+ is?: Prisma.DocumentReviewWhereInput | null;
512
+ isNot?: Prisma.DocumentReviewWhereInput | null;
513
+ };
514
+ export type DocumentReviewOrderByRelevanceInput = {
515
+ fields: Prisma.DocumentReviewOrderByRelevanceFieldEnum | Prisma.DocumentReviewOrderByRelevanceFieldEnum[];
516
+ sort: Prisma.SortOrder;
517
+ search: string;
518
+ };
519
+ export type DocumentReviewDocumentIdReviewPartyOrganizationIdCompoundUniqueInput = {
520
+ documentId: string;
521
+ reviewParty: $Enums.ReviewParty;
522
+ organizationId: string;
523
+ };
524
+ export type DocumentReviewCountOrderByAggregateInput = {
525
+ id?: Prisma.SortOrder;
526
+ tenantId?: Prisma.SortOrder;
527
+ documentId?: Prisma.SortOrder;
528
+ reviewParty?: Prisma.SortOrder;
529
+ organizationId?: Prisma.SortOrder;
530
+ reviewerId?: Prisma.SortOrder;
531
+ reviewerName?: Prisma.SortOrder;
532
+ decision?: Prisma.SortOrder;
533
+ comments?: Prisma.SortOrder;
534
+ concerns?: Prisma.SortOrder;
535
+ requestedAt?: Prisma.SortOrder;
536
+ dueAt?: Prisma.SortOrder;
537
+ reviewedAt?: Prisma.SortOrder;
538
+ reviewOrder?: Prisma.SortOrder;
539
+ parentReviewId?: Prisma.SortOrder;
540
+ createdAt?: Prisma.SortOrder;
541
+ updatedAt?: Prisma.SortOrder;
542
+ };
543
+ export type DocumentReviewAvgOrderByAggregateInput = {
544
+ reviewOrder?: Prisma.SortOrder;
545
+ };
546
+ export type DocumentReviewMaxOrderByAggregateInput = {
547
+ id?: Prisma.SortOrder;
548
+ tenantId?: Prisma.SortOrder;
549
+ documentId?: Prisma.SortOrder;
550
+ reviewParty?: Prisma.SortOrder;
551
+ organizationId?: Prisma.SortOrder;
552
+ reviewerId?: Prisma.SortOrder;
553
+ reviewerName?: Prisma.SortOrder;
554
+ decision?: Prisma.SortOrder;
555
+ comments?: Prisma.SortOrder;
556
+ requestedAt?: Prisma.SortOrder;
557
+ dueAt?: Prisma.SortOrder;
558
+ reviewedAt?: Prisma.SortOrder;
559
+ reviewOrder?: Prisma.SortOrder;
560
+ parentReviewId?: Prisma.SortOrder;
561
+ createdAt?: Prisma.SortOrder;
562
+ updatedAt?: Prisma.SortOrder;
563
+ };
564
+ export type DocumentReviewMinOrderByAggregateInput = {
565
+ id?: Prisma.SortOrder;
566
+ tenantId?: Prisma.SortOrder;
567
+ documentId?: Prisma.SortOrder;
568
+ reviewParty?: Prisma.SortOrder;
569
+ organizationId?: Prisma.SortOrder;
570
+ reviewerId?: Prisma.SortOrder;
571
+ reviewerName?: Prisma.SortOrder;
572
+ decision?: Prisma.SortOrder;
573
+ comments?: Prisma.SortOrder;
574
+ requestedAt?: Prisma.SortOrder;
575
+ dueAt?: Prisma.SortOrder;
576
+ reviewedAt?: Prisma.SortOrder;
577
+ reviewOrder?: Prisma.SortOrder;
578
+ parentReviewId?: Prisma.SortOrder;
579
+ createdAt?: Prisma.SortOrder;
580
+ updatedAt?: Prisma.SortOrder;
581
+ };
582
+ export type DocumentReviewSumOrderByAggregateInput = {
583
+ reviewOrder?: Prisma.SortOrder;
584
+ };
585
+ export type DocumentReviewCreateNestedManyWithoutReviewerInput = {
586
+ create?: Prisma.XOR<Prisma.DocumentReviewCreateWithoutReviewerInput, Prisma.DocumentReviewUncheckedCreateWithoutReviewerInput> | Prisma.DocumentReviewCreateWithoutReviewerInput[] | Prisma.DocumentReviewUncheckedCreateWithoutReviewerInput[];
587
+ connectOrCreate?: Prisma.DocumentReviewCreateOrConnectWithoutReviewerInput | Prisma.DocumentReviewCreateOrConnectWithoutReviewerInput[];
588
+ createMany?: Prisma.DocumentReviewCreateManyReviewerInputEnvelope;
589
+ connect?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
590
+ };
591
+ export type DocumentReviewUncheckedCreateNestedManyWithoutReviewerInput = {
592
+ create?: Prisma.XOR<Prisma.DocumentReviewCreateWithoutReviewerInput, Prisma.DocumentReviewUncheckedCreateWithoutReviewerInput> | Prisma.DocumentReviewCreateWithoutReviewerInput[] | Prisma.DocumentReviewUncheckedCreateWithoutReviewerInput[];
593
+ connectOrCreate?: Prisma.DocumentReviewCreateOrConnectWithoutReviewerInput | Prisma.DocumentReviewCreateOrConnectWithoutReviewerInput[];
594
+ createMany?: Prisma.DocumentReviewCreateManyReviewerInputEnvelope;
595
+ connect?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
596
+ };
597
+ export type DocumentReviewUpdateManyWithoutReviewerNestedInput = {
598
+ create?: Prisma.XOR<Prisma.DocumentReviewCreateWithoutReviewerInput, Prisma.DocumentReviewUncheckedCreateWithoutReviewerInput> | Prisma.DocumentReviewCreateWithoutReviewerInput[] | Prisma.DocumentReviewUncheckedCreateWithoutReviewerInput[];
599
+ connectOrCreate?: Prisma.DocumentReviewCreateOrConnectWithoutReviewerInput | Prisma.DocumentReviewCreateOrConnectWithoutReviewerInput[];
600
+ upsert?: Prisma.DocumentReviewUpsertWithWhereUniqueWithoutReviewerInput | Prisma.DocumentReviewUpsertWithWhereUniqueWithoutReviewerInput[];
601
+ createMany?: Prisma.DocumentReviewCreateManyReviewerInputEnvelope;
602
+ set?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
603
+ disconnect?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
604
+ delete?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
605
+ connect?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
606
+ update?: Prisma.DocumentReviewUpdateWithWhereUniqueWithoutReviewerInput | Prisma.DocumentReviewUpdateWithWhereUniqueWithoutReviewerInput[];
607
+ updateMany?: Prisma.DocumentReviewUpdateManyWithWhereWithoutReviewerInput | Prisma.DocumentReviewUpdateManyWithWhereWithoutReviewerInput[];
608
+ deleteMany?: Prisma.DocumentReviewScalarWhereInput | Prisma.DocumentReviewScalarWhereInput[];
609
+ };
610
+ export type DocumentReviewUncheckedUpdateManyWithoutReviewerNestedInput = {
611
+ create?: Prisma.XOR<Prisma.DocumentReviewCreateWithoutReviewerInput, Prisma.DocumentReviewUncheckedCreateWithoutReviewerInput> | Prisma.DocumentReviewCreateWithoutReviewerInput[] | Prisma.DocumentReviewUncheckedCreateWithoutReviewerInput[];
612
+ connectOrCreate?: Prisma.DocumentReviewCreateOrConnectWithoutReviewerInput | Prisma.DocumentReviewCreateOrConnectWithoutReviewerInput[];
613
+ upsert?: Prisma.DocumentReviewUpsertWithWhereUniqueWithoutReviewerInput | Prisma.DocumentReviewUpsertWithWhereUniqueWithoutReviewerInput[];
614
+ createMany?: Prisma.DocumentReviewCreateManyReviewerInputEnvelope;
615
+ set?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
616
+ disconnect?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
617
+ delete?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
618
+ connect?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
619
+ update?: Prisma.DocumentReviewUpdateWithWhereUniqueWithoutReviewerInput | Prisma.DocumentReviewUpdateWithWhereUniqueWithoutReviewerInput[];
620
+ updateMany?: Prisma.DocumentReviewUpdateManyWithWhereWithoutReviewerInput | Prisma.DocumentReviewUpdateManyWithWhereWithoutReviewerInput[];
621
+ deleteMany?: Prisma.DocumentReviewScalarWhereInput | Prisma.DocumentReviewScalarWhereInput[];
622
+ };
623
+ export type DocumentReviewCreateNestedManyWithoutTenantInput = {
624
+ create?: Prisma.XOR<Prisma.DocumentReviewCreateWithoutTenantInput, Prisma.DocumentReviewUncheckedCreateWithoutTenantInput> | Prisma.DocumentReviewCreateWithoutTenantInput[] | Prisma.DocumentReviewUncheckedCreateWithoutTenantInput[];
625
+ connectOrCreate?: Prisma.DocumentReviewCreateOrConnectWithoutTenantInput | Prisma.DocumentReviewCreateOrConnectWithoutTenantInput[];
626
+ createMany?: Prisma.DocumentReviewCreateManyTenantInputEnvelope;
627
+ connect?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
628
+ };
629
+ export type DocumentReviewUncheckedCreateNestedManyWithoutTenantInput = {
630
+ create?: Prisma.XOR<Prisma.DocumentReviewCreateWithoutTenantInput, Prisma.DocumentReviewUncheckedCreateWithoutTenantInput> | Prisma.DocumentReviewCreateWithoutTenantInput[] | Prisma.DocumentReviewUncheckedCreateWithoutTenantInput[];
631
+ connectOrCreate?: Prisma.DocumentReviewCreateOrConnectWithoutTenantInput | Prisma.DocumentReviewCreateOrConnectWithoutTenantInput[];
632
+ createMany?: Prisma.DocumentReviewCreateManyTenantInputEnvelope;
633
+ connect?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
634
+ };
635
+ export type DocumentReviewUpdateManyWithoutTenantNestedInput = {
636
+ create?: Prisma.XOR<Prisma.DocumentReviewCreateWithoutTenantInput, Prisma.DocumentReviewUncheckedCreateWithoutTenantInput> | Prisma.DocumentReviewCreateWithoutTenantInput[] | Prisma.DocumentReviewUncheckedCreateWithoutTenantInput[];
637
+ connectOrCreate?: Prisma.DocumentReviewCreateOrConnectWithoutTenantInput | Prisma.DocumentReviewCreateOrConnectWithoutTenantInput[];
638
+ upsert?: Prisma.DocumentReviewUpsertWithWhereUniqueWithoutTenantInput | Prisma.DocumentReviewUpsertWithWhereUniqueWithoutTenantInput[];
639
+ createMany?: Prisma.DocumentReviewCreateManyTenantInputEnvelope;
640
+ set?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
641
+ disconnect?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
642
+ delete?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
643
+ connect?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
644
+ update?: Prisma.DocumentReviewUpdateWithWhereUniqueWithoutTenantInput | Prisma.DocumentReviewUpdateWithWhereUniqueWithoutTenantInput[];
645
+ updateMany?: Prisma.DocumentReviewUpdateManyWithWhereWithoutTenantInput | Prisma.DocumentReviewUpdateManyWithWhereWithoutTenantInput[];
646
+ deleteMany?: Prisma.DocumentReviewScalarWhereInput | Prisma.DocumentReviewScalarWhereInput[];
647
+ };
648
+ export type DocumentReviewUncheckedUpdateManyWithoutTenantNestedInput = {
649
+ create?: Prisma.XOR<Prisma.DocumentReviewCreateWithoutTenantInput, Prisma.DocumentReviewUncheckedCreateWithoutTenantInput> | Prisma.DocumentReviewCreateWithoutTenantInput[] | Prisma.DocumentReviewUncheckedCreateWithoutTenantInput[];
650
+ connectOrCreate?: Prisma.DocumentReviewCreateOrConnectWithoutTenantInput | Prisma.DocumentReviewCreateOrConnectWithoutTenantInput[];
651
+ upsert?: Prisma.DocumentReviewUpsertWithWhereUniqueWithoutTenantInput | Prisma.DocumentReviewUpsertWithWhereUniqueWithoutTenantInput[];
652
+ createMany?: Prisma.DocumentReviewCreateManyTenantInputEnvelope;
653
+ set?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
654
+ disconnect?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
655
+ delete?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
656
+ connect?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
657
+ update?: Prisma.DocumentReviewUpdateWithWhereUniqueWithoutTenantInput | Prisma.DocumentReviewUpdateWithWhereUniqueWithoutTenantInput[];
658
+ updateMany?: Prisma.DocumentReviewUpdateManyWithWhereWithoutTenantInput | Prisma.DocumentReviewUpdateManyWithWhereWithoutTenantInput[];
659
+ deleteMany?: Prisma.DocumentReviewScalarWhereInput | Prisma.DocumentReviewScalarWhereInput[];
660
+ };
661
+ export type DocumentReviewCreateNestedManyWithoutDocumentInput = {
662
+ create?: Prisma.XOR<Prisma.DocumentReviewCreateWithoutDocumentInput, Prisma.DocumentReviewUncheckedCreateWithoutDocumentInput> | Prisma.DocumentReviewCreateWithoutDocumentInput[] | Prisma.DocumentReviewUncheckedCreateWithoutDocumentInput[];
663
+ connectOrCreate?: Prisma.DocumentReviewCreateOrConnectWithoutDocumentInput | Prisma.DocumentReviewCreateOrConnectWithoutDocumentInput[];
664
+ createMany?: Prisma.DocumentReviewCreateManyDocumentInputEnvelope;
665
+ connect?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
666
+ };
667
+ export type DocumentReviewUncheckedCreateNestedManyWithoutDocumentInput = {
668
+ create?: Prisma.XOR<Prisma.DocumentReviewCreateWithoutDocumentInput, Prisma.DocumentReviewUncheckedCreateWithoutDocumentInput> | Prisma.DocumentReviewCreateWithoutDocumentInput[] | Prisma.DocumentReviewUncheckedCreateWithoutDocumentInput[];
669
+ connectOrCreate?: Prisma.DocumentReviewCreateOrConnectWithoutDocumentInput | Prisma.DocumentReviewCreateOrConnectWithoutDocumentInput[];
670
+ createMany?: Prisma.DocumentReviewCreateManyDocumentInputEnvelope;
671
+ connect?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
672
+ };
673
+ export type DocumentReviewUpdateManyWithoutDocumentNestedInput = {
674
+ create?: Prisma.XOR<Prisma.DocumentReviewCreateWithoutDocumentInput, Prisma.DocumentReviewUncheckedCreateWithoutDocumentInput> | Prisma.DocumentReviewCreateWithoutDocumentInput[] | Prisma.DocumentReviewUncheckedCreateWithoutDocumentInput[];
675
+ connectOrCreate?: Prisma.DocumentReviewCreateOrConnectWithoutDocumentInput | Prisma.DocumentReviewCreateOrConnectWithoutDocumentInput[];
676
+ upsert?: Prisma.DocumentReviewUpsertWithWhereUniqueWithoutDocumentInput | Prisma.DocumentReviewUpsertWithWhereUniqueWithoutDocumentInput[];
677
+ createMany?: Prisma.DocumentReviewCreateManyDocumentInputEnvelope;
678
+ set?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
679
+ disconnect?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
680
+ delete?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
681
+ connect?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
682
+ update?: Prisma.DocumentReviewUpdateWithWhereUniqueWithoutDocumentInput | Prisma.DocumentReviewUpdateWithWhereUniqueWithoutDocumentInput[];
683
+ updateMany?: Prisma.DocumentReviewUpdateManyWithWhereWithoutDocumentInput | Prisma.DocumentReviewUpdateManyWithWhereWithoutDocumentInput[];
684
+ deleteMany?: Prisma.DocumentReviewScalarWhereInput | Prisma.DocumentReviewScalarWhereInput[];
685
+ };
686
+ export type DocumentReviewUncheckedUpdateManyWithoutDocumentNestedInput = {
687
+ create?: Prisma.XOR<Prisma.DocumentReviewCreateWithoutDocumentInput, Prisma.DocumentReviewUncheckedCreateWithoutDocumentInput> | Prisma.DocumentReviewCreateWithoutDocumentInput[] | Prisma.DocumentReviewUncheckedCreateWithoutDocumentInput[];
688
+ connectOrCreate?: Prisma.DocumentReviewCreateOrConnectWithoutDocumentInput | Prisma.DocumentReviewCreateOrConnectWithoutDocumentInput[];
689
+ upsert?: Prisma.DocumentReviewUpsertWithWhereUniqueWithoutDocumentInput | Prisma.DocumentReviewUpsertWithWhereUniqueWithoutDocumentInput[];
690
+ createMany?: Prisma.DocumentReviewCreateManyDocumentInputEnvelope;
691
+ set?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
692
+ disconnect?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
693
+ delete?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
694
+ connect?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
695
+ update?: Prisma.DocumentReviewUpdateWithWhereUniqueWithoutDocumentInput | Prisma.DocumentReviewUpdateWithWhereUniqueWithoutDocumentInput[];
696
+ updateMany?: Prisma.DocumentReviewUpdateManyWithWhereWithoutDocumentInput | Prisma.DocumentReviewUpdateManyWithWhereWithoutDocumentInput[];
697
+ deleteMany?: Prisma.DocumentReviewScalarWhereInput | Prisma.DocumentReviewScalarWhereInput[];
698
+ };
699
+ export type DocumentReviewCreateNestedOneWithoutChildReviewsInput = {
700
+ create?: Prisma.XOR<Prisma.DocumentReviewCreateWithoutChildReviewsInput, Prisma.DocumentReviewUncheckedCreateWithoutChildReviewsInput>;
701
+ connectOrCreate?: Prisma.DocumentReviewCreateOrConnectWithoutChildReviewsInput;
702
+ connect?: Prisma.DocumentReviewWhereUniqueInput;
703
+ };
704
+ export type DocumentReviewCreateNestedManyWithoutParentReviewInput = {
705
+ create?: Prisma.XOR<Prisma.DocumentReviewCreateWithoutParentReviewInput, Prisma.DocumentReviewUncheckedCreateWithoutParentReviewInput> | Prisma.DocumentReviewCreateWithoutParentReviewInput[] | Prisma.DocumentReviewUncheckedCreateWithoutParentReviewInput[];
706
+ connectOrCreate?: Prisma.DocumentReviewCreateOrConnectWithoutParentReviewInput | Prisma.DocumentReviewCreateOrConnectWithoutParentReviewInput[];
707
+ createMany?: Prisma.DocumentReviewCreateManyParentReviewInputEnvelope;
708
+ connect?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
709
+ };
710
+ export type DocumentReviewUncheckedCreateNestedManyWithoutParentReviewInput = {
711
+ create?: Prisma.XOR<Prisma.DocumentReviewCreateWithoutParentReviewInput, Prisma.DocumentReviewUncheckedCreateWithoutParentReviewInput> | Prisma.DocumentReviewCreateWithoutParentReviewInput[] | Prisma.DocumentReviewUncheckedCreateWithoutParentReviewInput[];
712
+ connectOrCreate?: Prisma.DocumentReviewCreateOrConnectWithoutParentReviewInput | Prisma.DocumentReviewCreateOrConnectWithoutParentReviewInput[];
713
+ createMany?: Prisma.DocumentReviewCreateManyParentReviewInputEnvelope;
714
+ connect?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
715
+ };
716
+ export type EnumReviewPartyFieldUpdateOperationsInput = {
717
+ set?: $Enums.ReviewParty;
718
+ };
719
+ export type EnumReviewDecisionFieldUpdateOperationsInput = {
720
+ set?: $Enums.ReviewDecision;
721
+ };
722
+ export type DocumentReviewUpdateOneWithoutChildReviewsNestedInput = {
723
+ create?: Prisma.XOR<Prisma.DocumentReviewCreateWithoutChildReviewsInput, Prisma.DocumentReviewUncheckedCreateWithoutChildReviewsInput>;
724
+ connectOrCreate?: Prisma.DocumentReviewCreateOrConnectWithoutChildReviewsInput;
725
+ upsert?: Prisma.DocumentReviewUpsertWithoutChildReviewsInput;
726
+ disconnect?: Prisma.DocumentReviewWhereInput | boolean;
727
+ delete?: Prisma.DocumentReviewWhereInput | boolean;
728
+ connect?: Prisma.DocumentReviewWhereUniqueInput;
729
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DocumentReviewUpdateToOneWithWhereWithoutChildReviewsInput, Prisma.DocumentReviewUpdateWithoutChildReviewsInput>, Prisma.DocumentReviewUncheckedUpdateWithoutChildReviewsInput>;
730
+ };
731
+ export type DocumentReviewUpdateManyWithoutParentReviewNestedInput = {
732
+ create?: Prisma.XOR<Prisma.DocumentReviewCreateWithoutParentReviewInput, Prisma.DocumentReviewUncheckedCreateWithoutParentReviewInput> | Prisma.DocumentReviewCreateWithoutParentReviewInput[] | Prisma.DocumentReviewUncheckedCreateWithoutParentReviewInput[];
733
+ connectOrCreate?: Prisma.DocumentReviewCreateOrConnectWithoutParentReviewInput | Prisma.DocumentReviewCreateOrConnectWithoutParentReviewInput[];
734
+ upsert?: Prisma.DocumentReviewUpsertWithWhereUniqueWithoutParentReviewInput | Prisma.DocumentReviewUpsertWithWhereUniqueWithoutParentReviewInput[];
735
+ createMany?: Prisma.DocumentReviewCreateManyParentReviewInputEnvelope;
736
+ set?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
737
+ disconnect?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
738
+ delete?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
739
+ connect?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
740
+ update?: Prisma.DocumentReviewUpdateWithWhereUniqueWithoutParentReviewInput | Prisma.DocumentReviewUpdateWithWhereUniqueWithoutParentReviewInput[];
741
+ updateMany?: Prisma.DocumentReviewUpdateManyWithWhereWithoutParentReviewInput | Prisma.DocumentReviewUpdateManyWithWhereWithoutParentReviewInput[];
742
+ deleteMany?: Prisma.DocumentReviewScalarWhereInput | Prisma.DocumentReviewScalarWhereInput[];
743
+ };
744
+ export type DocumentReviewUncheckedUpdateManyWithoutParentReviewNestedInput = {
745
+ create?: Prisma.XOR<Prisma.DocumentReviewCreateWithoutParentReviewInput, Prisma.DocumentReviewUncheckedCreateWithoutParentReviewInput> | Prisma.DocumentReviewCreateWithoutParentReviewInput[] | Prisma.DocumentReviewUncheckedCreateWithoutParentReviewInput[];
746
+ connectOrCreate?: Prisma.DocumentReviewCreateOrConnectWithoutParentReviewInput | Prisma.DocumentReviewCreateOrConnectWithoutParentReviewInput[];
747
+ upsert?: Prisma.DocumentReviewUpsertWithWhereUniqueWithoutParentReviewInput | Prisma.DocumentReviewUpsertWithWhereUniqueWithoutParentReviewInput[];
748
+ createMany?: Prisma.DocumentReviewCreateManyParentReviewInputEnvelope;
749
+ set?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
750
+ disconnect?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
751
+ delete?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
752
+ connect?: Prisma.DocumentReviewWhereUniqueInput | Prisma.DocumentReviewWhereUniqueInput[];
753
+ update?: Prisma.DocumentReviewUpdateWithWhereUniqueWithoutParentReviewInput | Prisma.DocumentReviewUpdateWithWhereUniqueWithoutParentReviewInput[];
754
+ updateMany?: Prisma.DocumentReviewUpdateManyWithWhereWithoutParentReviewInput | Prisma.DocumentReviewUpdateManyWithWhereWithoutParentReviewInput[];
755
+ deleteMany?: Prisma.DocumentReviewScalarWhereInput | Prisma.DocumentReviewScalarWhereInput[];
756
+ };
757
+ export type DocumentReviewCreateWithoutReviewerInput = {
758
+ id?: string;
759
+ reviewParty: $Enums.ReviewParty;
760
+ organizationId?: string | null;
761
+ reviewerName?: string | null;
762
+ decision?: $Enums.ReviewDecision;
763
+ comments?: string | null;
764
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
765
+ requestedAt?: Date | string;
766
+ dueAt?: Date | string | null;
767
+ reviewedAt?: Date | string | null;
768
+ reviewOrder?: number;
769
+ createdAt?: Date | string;
770
+ updatedAt?: Date | string;
771
+ tenant: Prisma.TenantCreateNestedOneWithoutDocumentReviewsInput;
772
+ document: Prisma.ApplicationDocumentCreateNestedOneWithoutReviewsInput;
773
+ parentReview?: Prisma.DocumentReviewCreateNestedOneWithoutChildReviewsInput;
774
+ childReviews?: Prisma.DocumentReviewCreateNestedManyWithoutParentReviewInput;
775
+ };
776
+ export type DocumentReviewUncheckedCreateWithoutReviewerInput = {
777
+ id?: string;
778
+ tenantId: string;
779
+ documentId: string;
780
+ reviewParty: $Enums.ReviewParty;
781
+ organizationId?: string | null;
782
+ reviewerName?: string | null;
783
+ decision?: $Enums.ReviewDecision;
784
+ comments?: string | null;
785
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
786
+ requestedAt?: Date | string;
787
+ dueAt?: Date | string | null;
788
+ reviewedAt?: Date | string | null;
789
+ reviewOrder?: number;
790
+ parentReviewId?: string | null;
791
+ createdAt?: Date | string;
792
+ updatedAt?: Date | string;
793
+ childReviews?: Prisma.DocumentReviewUncheckedCreateNestedManyWithoutParentReviewInput;
794
+ };
795
+ export type DocumentReviewCreateOrConnectWithoutReviewerInput = {
796
+ where: Prisma.DocumentReviewWhereUniqueInput;
797
+ create: Prisma.XOR<Prisma.DocumentReviewCreateWithoutReviewerInput, Prisma.DocumentReviewUncheckedCreateWithoutReviewerInput>;
798
+ };
799
+ export type DocumentReviewCreateManyReviewerInputEnvelope = {
800
+ data: Prisma.DocumentReviewCreateManyReviewerInput | Prisma.DocumentReviewCreateManyReviewerInput[];
801
+ skipDuplicates?: boolean;
802
+ };
803
+ export type DocumentReviewUpsertWithWhereUniqueWithoutReviewerInput = {
804
+ where: Prisma.DocumentReviewWhereUniqueInput;
805
+ update: Prisma.XOR<Prisma.DocumentReviewUpdateWithoutReviewerInput, Prisma.DocumentReviewUncheckedUpdateWithoutReviewerInput>;
806
+ create: Prisma.XOR<Prisma.DocumentReviewCreateWithoutReviewerInput, Prisma.DocumentReviewUncheckedCreateWithoutReviewerInput>;
807
+ };
808
+ export type DocumentReviewUpdateWithWhereUniqueWithoutReviewerInput = {
809
+ where: Prisma.DocumentReviewWhereUniqueInput;
810
+ data: Prisma.XOR<Prisma.DocumentReviewUpdateWithoutReviewerInput, Prisma.DocumentReviewUncheckedUpdateWithoutReviewerInput>;
811
+ };
812
+ export type DocumentReviewUpdateManyWithWhereWithoutReviewerInput = {
813
+ where: Prisma.DocumentReviewScalarWhereInput;
814
+ data: Prisma.XOR<Prisma.DocumentReviewUpdateManyMutationInput, Prisma.DocumentReviewUncheckedUpdateManyWithoutReviewerInput>;
815
+ };
816
+ export type DocumentReviewScalarWhereInput = {
817
+ AND?: Prisma.DocumentReviewScalarWhereInput | Prisma.DocumentReviewScalarWhereInput[];
818
+ OR?: Prisma.DocumentReviewScalarWhereInput[];
819
+ NOT?: Prisma.DocumentReviewScalarWhereInput | Prisma.DocumentReviewScalarWhereInput[];
820
+ id?: Prisma.StringFilter<"DocumentReview"> | string;
821
+ tenantId?: Prisma.StringFilter<"DocumentReview"> | string;
822
+ documentId?: Prisma.StringFilter<"DocumentReview"> | string;
823
+ reviewParty?: Prisma.EnumReviewPartyFilter<"DocumentReview"> | $Enums.ReviewParty;
824
+ organizationId?: Prisma.StringNullableFilter<"DocumentReview"> | string | null;
825
+ reviewerId?: Prisma.StringNullableFilter<"DocumentReview"> | string | null;
826
+ reviewerName?: Prisma.StringNullableFilter<"DocumentReview"> | string | null;
827
+ decision?: Prisma.EnumReviewDecisionFilter<"DocumentReview"> | $Enums.ReviewDecision;
828
+ comments?: Prisma.StringNullableFilter<"DocumentReview"> | string | null;
829
+ concerns?: Prisma.JsonNullableFilter<"DocumentReview">;
830
+ requestedAt?: Prisma.DateTimeFilter<"DocumentReview"> | Date | string;
831
+ dueAt?: Prisma.DateTimeNullableFilter<"DocumentReview"> | Date | string | null;
832
+ reviewedAt?: Prisma.DateTimeNullableFilter<"DocumentReview"> | Date | string | null;
833
+ reviewOrder?: Prisma.IntFilter<"DocumentReview"> | number;
834
+ parentReviewId?: Prisma.StringNullableFilter<"DocumentReview"> | string | null;
835
+ createdAt?: Prisma.DateTimeFilter<"DocumentReview"> | Date | string;
836
+ updatedAt?: Prisma.DateTimeFilter<"DocumentReview"> | Date | string;
837
+ };
838
+ export type DocumentReviewCreateWithoutTenantInput = {
839
+ id?: string;
840
+ reviewParty: $Enums.ReviewParty;
841
+ organizationId?: string | null;
842
+ reviewerName?: string | null;
843
+ decision?: $Enums.ReviewDecision;
844
+ comments?: string | null;
845
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
846
+ requestedAt?: Date | string;
847
+ dueAt?: Date | string | null;
848
+ reviewedAt?: Date | string | null;
849
+ reviewOrder?: number;
850
+ createdAt?: Date | string;
851
+ updatedAt?: Date | string;
852
+ document: Prisma.ApplicationDocumentCreateNestedOneWithoutReviewsInput;
853
+ reviewer?: Prisma.UserCreateNestedOneWithoutDocumentReviewsInput;
854
+ parentReview?: Prisma.DocumentReviewCreateNestedOneWithoutChildReviewsInput;
855
+ childReviews?: Prisma.DocumentReviewCreateNestedManyWithoutParentReviewInput;
856
+ };
857
+ export type DocumentReviewUncheckedCreateWithoutTenantInput = {
858
+ id?: string;
859
+ documentId: string;
860
+ reviewParty: $Enums.ReviewParty;
861
+ organizationId?: string | null;
862
+ reviewerId?: string | null;
863
+ reviewerName?: string | null;
864
+ decision?: $Enums.ReviewDecision;
865
+ comments?: string | null;
866
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
867
+ requestedAt?: Date | string;
868
+ dueAt?: Date | string | null;
869
+ reviewedAt?: Date | string | null;
870
+ reviewOrder?: number;
871
+ parentReviewId?: string | null;
872
+ createdAt?: Date | string;
873
+ updatedAt?: Date | string;
874
+ childReviews?: Prisma.DocumentReviewUncheckedCreateNestedManyWithoutParentReviewInput;
875
+ };
876
+ export type DocumentReviewCreateOrConnectWithoutTenantInput = {
877
+ where: Prisma.DocumentReviewWhereUniqueInput;
878
+ create: Prisma.XOR<Prisma.DocumentReviewCreateWithoutTenantInput, Prisma.DocumentReviewUncheckedCreateWithoutTenantInput>;
879
+ };
880
+ export type DocumentReviewCreateManyTenantInputEnvelope = {
881
+ data: Prisma.DocumentReviewCreateManyTenantInput | Prisma.DocumentReviewCreateManyTenantInput[];
882
+ skipDuplicates?: boolean;
883
+ };
884
+ export type DocumentReviewUpsertWithWhereUniqueWithoutTenantInput = {
885
+ where: Prisma.DocumentReviewWhereUniqueInput;
886
+ update: Prisma.XOR<Prisma.DocumentReviewUpdateWithoutTenantInput, Prisma.DocumentReviewUncheckedUpdateWithoutTenantInput>;
887
+ create: Prisma.XOR<Prisma.DocumentReviewCreateWithoutTenantInput, Prisma.DocumentReviewUncheckedCreateWithoutTenantInput>;
888
+ };
889
+ export type DocumentReviewUpdateWithWhereUniqueWithoutTenantInput = {
890
+ where: Prisma.DocumentReviewWhereUniqueInput;
891
+ data: Prisma.XOR<Prisma.DocumentReviewUpdateWithoutTenantInput, Prisma.DocumentReviewUncheckedUpdateWithoutTenantInput>;
892
+ };
893
+ export type DocumentReviewUpdateManyWithWhereWithoutTenantInput = {
894
+ where: Prisma.DocumentReviewScalarWhereInput;
895
+ data: Prisma.XOR<Prisma.DocumentReviewUpdateManyMutationInput, Prisma.DocumentReviewUncheckedUpdateManyWithoutTenantInput>;
896
+ };
897
+ export type DocumentReviewCreateWithoutDocumentInput = {
898
+ id?: string;
899
+ reviewParty: $Enums.ReviewParty;
900
+ organizationId?: string | null;
901
+ reviewerName?: string | null;
902
+ decision?: $Enums.ReviewDecision;
903
+ comments?: string | null;
904
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
905
+ requestedAt?: Date | string;
906
+ dueAt?: Date | string | null;
907
+ reviewedAt?: Date | string | null;
908
+ reviewOrder?: number;
909
+ createdAt?: Date | string;
910
+ updatedAt?: Date | string;
911
+ tenant: Prisma.TenantCreateNestedOneWithoutDocumentReviewsInput;
912
+ reviewer?: Prisma.UserCreateNestedOneWithoutDocumentReviewsInput;
913
+ parentReview?: Prisma.DocumentReviewCreateNestedOneWithoutChildReviewsInput;
914
+ childReviews?: Prisma.DocumentReviewCreateNestedManyWithoutParentReviewInput;
915
+ };
916
+ export type DocumentReviewUncheckedCreateWithoutDocumentInput = {
917
+ id?: string;
918
+ tenantId: string;
919
+ reviewParty: $Enums.ReviewParty;
920
+ organizationId?: string | null;
921
+ reviewerId?: string | null;
922
+ reviewerName?: string | null;
923
+ decision?: $Enums.ReviewDecision;
924
+ comments?: string | null;
925
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
926
+ requestedAt?: Date | string;
927
+ dueAt?: Date | string | null;
928
+ reviewedAt?: Date | string | null;
929
+ reviewOrder?: number;
930
+ parentReviewId?: string | null;
931
+ createdAt?: Date | string;
932
+ updatedAt?: Date | string;
933
+ childReviews?: Prisma.DocumentReviewUncheckedCreateNestedManyWithoutParentReviewInput;
934
+ };
935
+ export type DocumentReviewCreateOrConnectWithoutDocumentInput = {
936
+ where: Prisma.DocumentReviewWhereUniqueInput;
937
+ create: Prisma.XOR<Prisma.DocumentReviewCreateWithoutDocumentInput, Prisma.DocumentReviewUncheckedCreateWithoutDocumentInput>;
938
+ };
939
+ export type DocumentReviewCreateManyDocumentInputEnvelope = {
940
+ data: Prisma.DocumentReviewCreateManyDocumentInput | Prisma.DocumentReviewCreateManyDocumentInput[];
941
+ skipDuplicates?: boolean;
942
+ };
943
+ export type DocumentReviewUpsertWithWhereUniqueWithoutDocumentInput = {
944
+ where: Prisma.DocumentReviewWhereUniqueInput;
945
+ update: Prisma.XOR<Prisma.DocumentReviewUpdateWithoutDocumentInput, Prisma.DocumentReviewUncheckedUpdateWithoutDocumentInput>;
946
+ create: Prisma.XOR<Prisma.DocumentReviewCreateWithoutDocumentInput, Prisma.DocumentReviewUncheckedCreateWithoutDocumentInput>;
947
+ };
948
+ export type DocumentReviewUpdateWithWhereUniqueWithoutDocumentInput = {
949
+ where: Prisma.DocumentReviewWhereUniqueInput;
950
+ data: Prisma.XOR<Prisma.DocumentReviewUpdateWithoutDocumentInput, Prisma.DocumentReviewUncheckedUpdateWithoutDocumentInput>;
951
+ };
952
+ export type DocumentReviewUpdateManyWithWhereWithoutDocumentInput = {
953
+ where: Prisma.DocumentReviewScalarWhereInput;
954
+ data: Prisma.XOR<Prisma.DocumentReviewUpdateManyMutationInput, Prisma.DocumentReviewUncheckedUpdateManyWithoutDocumentInput>;
955
+ };
956
+ export type DocumentReviewCreateWithoutChildReviewsInput = {
957
+ id?: string;
958
+ reviewParty: $Enums.ReviewParty;
959
+ organizationId?: string | null;
960
+ reviewerName?: string | null;
961
+ decision?: $Enums.ReviewDecision;
962
+ comments?: string | null;
963
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
964
+ requestedAt?: Date | string;
965
+ dueAt?: Date | string | null;
966
+ reviewedAt?: Date | string | null;
967
+ reviewOrder?: number;
968
+ createdAt?: Date | string;
969
+ updatedAt?: Date | string;
970
+ tenant: Prisma.TenantCreateNestedOneWithoutDocumentReviewsInput;
971
+ document: Prisma.ApplicationDocumentCreateNestedOneWithoutReviewsInput;
972
+ reviewer?: Prisma.UserCreateNestedOneWithoutDocumentReviewsInput;
973
+ parentReview?: Prisma.DocumentReviewCreateNestedOneWithoutChildReviewsInput;
974
+ };
975
+ export type DocumentReviewUncheckedCreateWithoutChildReviewsInput = {
976
+ id?: string;
977
+ tenantId: string;
978
+ documentId: string;
979
+ reviewParty: $Enums.ReviewParty;
980
+ organizationId?: string | null;
981
+ reviewerId?: string | null;
982
+ reviewerName?: string | null;
983
+ decision?: $Enums.ReviewDecision;
984
+ comments?: string | null;
985
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
986
+ requestedAt?: Date | string;
987
+ dueAt?: Date | string | null;
988
+ reviewedAt?: Date | string | null;
989
+ reviewOrder?: number;
990
+ parentReviewId?: string | null;
991
+ createdAt?: Date | string;
992
+ updatedAt?: Date | string;
993
+ };
994
+ export type DocumentReviewCreateOrConnectWithoutChildReviewsInput = {
995
+ where: Prisma.DocumentReviewWhereUniqueInput;
996
+ create: Prisma.XOR<Prisma.DocumentReviewCreateWithoutChildReviewsInput, Prisma.DocumentReviewUncheckedCreateWithoutChildReviewsInput>;
997
+ };
998
+ export type DocumentReviewCreateWithoutParentReviewInput = {
999
+ id?: string;
1000
+ reviewParty: $Enums.ReviewParty;
1001
+ organizationId?: string | null;
1002
+ reviewerName?: string | null;
1003
+ decision?: $Enums.ReviewDecision;
1004
+ comments?: string | null;
1005
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1006
+ requestedAt?: Date | string;
1007
+ dueAt?: Date | string | null;
1008
+ reviewedAt?: Date | string | null;
1009
+ reviewOrder?: number;
1010
+ createdAt?: Date | string;
1011
+ updatedAt?: Date | string;
1012
+ tenant: Prisma.TenantCreateNestedOneWithoutDocumentReviewsInput;
1013
+ document: Prisma.ApplicationDocumentCreateNestedOneWithoutReviewsInput;
1014
+ reviewer?: Prisma.UserCreateNestedOneWithoutDocumentReviewsInput;
1015
+ childReviews?: Prisma.DocumentReviewCreateNestedManyWithoutParentReviewInput;
1016
+ };
1017
+ export type DocumentReviewUncheckedCreateWithoutParentReviewInput = {
1018
+ id?: string;
1019
+ tenantId: string;
1020
+ documentId: string;
1021
+ reviewParty: $Enums.ReviewParty;
1022
+ organizationId?: string | null;
1023
+ reviewerId?: string | null;
1024
+ reviewerName?: string | null;
1025
+ decision?: $Enums.ReviewDecision;
1026
+ comments?: string | null;
1027
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1028
+ requestedAt?: Date | string;
1029
+ dueAt?: Date | string | null;
1030
+ reviewedAt?: Date | string | null;
1031
+ reviewOrder?: number;
1032
+ createdAt?: Date | string;
1033
+ updatedAt?: Date | string;
1034
+ childReviews?: Prisma.DocumentReviewUncheckedCreateNestedManyWithoutParentReviewInput;
1035
+ };
1036
+ export type DocumentReviewCreateOrConnectWithoutParentReviewInput = {
1037
+ where: Prisma.DocumentReviewWhereUniqueInput;
1038
+ create: Prisma.XOR<Prisma.DocumentReviewCreateWithoutParentReviewInput, Prisma.DocumentReviewUncheckedCreateWithoutParentReviewInput>;
1039
+ };
1040
+ export type DocumentReviewCreateManyParentReviewInputEnvelope = {
1041
+ data: Prisma.DocumentReviewCreateManyParentReviewInput | Prisma.DocumentReviewCreateManyParentReviewInput[];
1042
+ skipDuplicates?: boolean;
1043
+ };
1044
+ export type DocumentReviewUpsertWithoutChildReviewsInput = {
1045
+ update: Prisma.XOR<Prisma.DocumentReviewUpdateWithoutChildReviewsInput, Prisma.DocumentReviewUncheckedUpdateWithoutChildReviewsInput>;
1046
+ create: Prisma.XOR<Prisma.DocumentReviewCreateWithoutChildReviewsInput, Prisma.DocumentReviewUncheckedCreateWithoutChildReviewsInput>;
1047
+ where?: Prisma.DocumentReviewWhereInput;
1048
+ };
1049
+ export type DocumentReviewUpdateToOneWithWhereWithoutChildReviewsInput = {
1050
+ where?: Prisma.DocumentReviewWhereInput;
1051
+ data: Prisma.XOR<Prisma.DocumentReviewUpdateWithoutChildReviewsInput, Prisma.DocumentReviewUncheckedUpdateWithoutChildReviewsInput>;
1052
+ };
1053
+ export type DocumentReviewUpdateWithoutChildReviewsInput = {
1054
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1055
+ reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
1056
+ organizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1057
+ reviewerName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1058
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
1059
+ comments?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1060
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1061
+ requestedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1062
+ dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1063
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1064
+ reviewOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1065
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1066
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1067
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentReviewsNestedInput;
1068
+ document?: Prisma.ApplicationDocumentUpdateOneRequiredWithoutReviewsNestedInput;
1069
+ reviewer?: Prisma.UserUpdateOneWithoutDocumentReviewsNestedInput;
1070
+ parentReview?: Prisma.DocumentReviewUpdateOneWithoutChildReviewsNestedInput;
1071
+ };
1072
+ export type DocumentReviewUncheckedUpdateWithoutChildReviewsInput = {
1073
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1074
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1075
+ documentId?: Prisma.StringFieldUpdateOperationsInput | string;
1076
+ reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
1077
+ organizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1078
+ reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1079
+ reviewerName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1080
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
1081
+ comments?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1082
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1083
+ requestedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1084
+ dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1085
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1086
+ reviewOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1087
+ parentReviewId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1088
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1089
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1090
+ };
1091
+ export type DocumentReviewUpsertWithWhereUniqueWithoutParentReviewInput = {
1092
+ where: Prisma.DocumentReviewWhereUniqueInput;
1093
+ update: Prisma.XOR<Prisma.DocumentReviewUpdateWithoutParentReviewInput, Prisma.DocumentReviewUncheckedUpdateWithoutParentReviewInput>;
1094
+ create: Prisma.XOR<Prisma.DocumentReviewCreateWithoutParentReviewInput, Prisma.DocumentReviewUncheckedCreateWithoutParentReviewInput>;
1095
+ };
1096
+ export type DocumentReviewUpdateWithWhereUniqueWithoutParentReviewInput = {
1097
+ where: Prisma.DocumentReviewWhereUniqueInput;
1098
+ data: Prisma.XOR<Prisma.DocumentReviewUpdateWithoutParentReviewInput, Prisma.DocumentReviewUncheckedUpdateWithoutParentReviewInput>;
1099
+ };
1100
+ export type DocumentReviewUpdateManyWithWhereWithoutParentReviewInput = {
1101
+ where: Prisma.DocumentReviewScalarWhereInput;
1102
+ data: Prisma.XOR<Prisma.DocumentReviewUpdateManyMutationInput, Prisma.DocumentReviewUncheckedUpdateManyWithoutParentReviewInput>;
1103
+ };
1104
+ export type DocumentReviewCreateManyReviewerInput = {
1105
+ id?: string;
1106
+ tenantId: string;
1107
+ documentId: string;
1108
+ reviewParty: $Enums.ReviewParty;
1109
+ organizationId?: string | null;
1110
+ reviewerName?: string | null;
1111
+ decision?: $Enums.ReviewDecision;
1112
+ comments?: string | null;
1113
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1114
+ requestedAt?: Date | string;
1115
+ dueAt?: Date | string | null;
1116
+ reviewedAt?: Date | string | null;
1117
+ reviewOrder?: number;
1118
+ parentReviewId?: string | null;
1119
+ createdAt?: Date | string;
1120
+ updatedAt?: Date | string;
1121
+ };
1122
+ export type DocumentReviewUpdateWithoutReviewerInput = {
1123
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1124
+ reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
1125
+ organizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1126
+ reviewerName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1127
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
1128
+ comments?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1129
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1130
+ requestedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1131
+ dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1132
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1133
+ reviewOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1134
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1135
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1136
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentReviewsNestedInput;
1137
+ document?: Prisma.ApplicationDocumentUpdateOneRequiredWithoutReviewsNestedInput;
1138
+ parentReview?: Prisma.DocumentReviewUpdateOneWithoutChildReviewsNestedInput;
1139
+ childReviews?: Prisma.DocumentReviewUpdateManyWithoutParentReviewNestedInput;
1140
+ };
1141
+ export type DocumentReviewUncheckedUpdateWithoutReviewerInput = {
1142
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1143
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1144
+ documentId?: Prisma.StringFieldUpdateOperationsInput | string;
1145
+ reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
1146
+ organizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1147
+ reviewerName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1148
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
1149
+ comments?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1150
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1151
+ requestedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1152
+ dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1153
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1154
+ reviewOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1155
+ parentReviewId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1156
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1157
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1158
+ childReviews?: Prisma.DocumentReviewUncheckedUpdateManyWithoutParentReviewNestedInput;
1159
+ };
1160
+ export type DocumentReviewUncheckedUpdateManyWithoutReviewerInput = {
1161
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1162
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1163
+ documentId?: Prisma.StringFieldUpdateOperationsInput | string;
1164
+ reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
1165
+ organizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1166
+ reviewerName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1167
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
1168
+ comments?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1169
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1170
+ requestedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1171
+ dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1172
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1173
+ reviewOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1174
+ parentReviewId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1175
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1176
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1177
+ };
1178
+ export type DocumentReviewCreateManyTenantInput = {
1179
+ id?: string;
1180
+ documentId: string;
1181
+ reviewParty: $Enums.ReviewParty;
1182
+ organizationId?: string | null;
1183
+ reviewerId?: string | null;
1184
+ reviewerName?: string | null;
1185
+ decision?: $Enums.ReviewDecision;
1186
+ comments?: string | null;
1187
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1188
+ requestedAt?: Date | string;
1189
+ dueAt?: Date | string | null;
1190
+ reviewedAt?: Date | string | null;
1191
+ reviewOrder?: number;
1192
+ parentReviewId?: string | null;
1193
+ createdAt?: Date | string;
1194
+ updatedAt?: Date | string;
1195
+ };
1196
+ export type DocumentReviewUpdateWithoutTenantInput = {
1197
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1198
+ reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
1199
+ organizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1200
+ reviewerName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1201
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
1202
+ comments?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1203
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1204
+ requestedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1205
+ dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1206
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1207
+ reviewOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1208
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1209
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1210
+ document?: Prisma.ApplicationDocumentUpdateOneRequiredWithoutReviewsNestedInput;
1211
+ reviewer?: Prisma.UserUpdateOneWithoutDocumentReviewsNestedInput;
1212
+ parentReview?: Prisma.DocumentReviewUpdateOneWithoutChildReviewsNestedInput;
1213
+ childReviews?: Prisma.DocumentReviewUpdateManyWithoutParentReviewNestedInput;
1214
+ };
1215
+ export type DocumentReviewUncheckedUpdateWithoutTenantInput = {
1216
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1217
+ documentId?: Prisma.StringFieldUpdateOperationsInput | string;
1218
+ reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
1219
+ organizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1220
+ reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1221
+ reviewerName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1222
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
1223
+ comments?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1224
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1225
+ requestedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1226
+ dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1227
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1228
+ reviewOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1229
+ parentReviewId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1230
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1231
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1232
+ childReviews?: Prisma.DocumentReviewUncheckedUpdateManyWithoutParentReviewNestedInput;
1233
+ };
1234
+ export type DocumentReviewUncheckedUpdateManyWithoutTenantInput = {
1235
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1236
+ documentId?: Prisma.StringFieldUpdateOperationsInput | string;
1237
+ reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
1238
+ organizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1239
+ reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1240
+ reviewerName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1241
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
1242
+ comments?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1243
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1244
+ requestedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1245
+ dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1246
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1247
+ reviewOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1248
+ parentReviewId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1249
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1250
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1251
+ };
1252
+ export type DocumentReviewCreateManyDocumentInput = {
1253
+ id?: string;
1254
+ tenantId: string;
1255
+ reviewParty: $Enums.ReviewParty;
1256
+ organizationId?: string | null;
1257
+ reviewerId?: string | null;
1258
+ reviewerName?: string | null;
1259
+ decision?: $Enums.ReviewDecision;
1260
+ comments?: string | null;
1261
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1262
+ requestedAt?: Date | string;
1263
+ dueAt?: Date | string | null;
1264
+ reviewedAt?: Date | string | null;
1265
+ reviewOrder?: number;
1266
+ parentReviewId?: string | null;
1267
+ createdAt?: Date | string;
1268
+ updatedAt?: Date | string;
1269
+ };
1270
+ export type DocumentReviewUpdateWithoutDocumentInput = {
1271
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1272
+ reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
1273
+ organizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1274
+ reviewerName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1275
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
1276
+ comments?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1277
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1278
+ requestedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1279
+ dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1280
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1281
+ reviewOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1282
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1283
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1284
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentReviewsNestedInput;
1285
+ reviewer?: Prisma.UserUpdateOneWithoutDocumentReviewsNestedInput;
1286
+ parentReview?: Prisma.DocumentReviewUpdateOneWithoutChildReviewsNestedInput;
1287
+ childReviews?: Prisma.DocumentReviewUpdateManyWithoutParentReviewNestedInput;
1288
+ };
1289
+ export type DocumentReviewUncheckedUpdateWithoutDocumentInput = {
1290
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1291
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1292
+ reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
1293
+ organizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1294
+ reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1295
+ reviewerName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1296
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
1297
+ comments?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1298
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1299
+ requestedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1300
+ dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1301
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1302
+ reviewOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1303
+ parentReviewId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1304
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1305
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1306
+ childReviews?: Prisma.DocumentReviewUncheckedUpdateManyWithoutParentReviewNestedInput;
1307
+ };
1308
+ export type DocumentReviewUncheckedUpdateManyWithoutDocumentInput = {
1309
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1310
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1311
+ reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
1312
+ organizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1313
+ reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1314
+ reviewerName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1315
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
1316
+ comments?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1317
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1318
+ requestedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1319
+ dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1320
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1321
+ reviewOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1322
+ parentReviewId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1323
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1324
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1325
+ };
1326
+ export type DocumentReviewCreateManyParentReviewInput = {
1327
+ id?: string;
1328
+ tenantId: string;
1329
+ documentId: string;
1330
+ reviewParty: $Enums.ReviewParty;
1331
+ organizationId?: string | null;
1332
+ reviewerId?: string | null;
1333
+ reviewerName?: string | null;
1334
+ decision?: $Enums.ReviewDecision;
1335
+ comments?: string | null;
1336
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1337
+ requestedAt?: Date | string;
1338
+ dueAt?: Date | string | null;
1339
+ reviewedAt?: Date | string | null;
1340
+ reviewOrder?: number;
1341
+ createdAt?: Date | string;
1342
+ updatedAt?: Date | string;
1343
+ };
1344
+ export type DocumentReviewUpdateWithoutParentReviewInput = {
1345
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1346
+ reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
1347
+ organizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1348
+ reviewerName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1349
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
1350
+ comments?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1351
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1352
+ requestedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1353
+ dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1354
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1355
+ reviewOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1356
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1357
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1358
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentReviewsNestedInput;
1359
+ document?: Prisma.ApplicationDocumentUpdateOneRequiredWithoutReviewsNestedInput;
1360
+ reviewer?: Prisma.UserUpdateOneWithoutDocumentReviewsNestedInput;
1361
+ childReviews?: Prisma.DocumentReviewUpdateManyWithoutParentReviewNestedInput;
1362
+ };
1363
+ export type DocumentReviewUncheckedUpdateWithoutParentReviewInput = {
1364
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1365
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1366
+ documentId?: Prisma.StringFieldUpdateOperationsInput | string;
1367
+ reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
1368
+ organizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1369
+ reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1370
+ reviewerName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1371
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
1372
+ comments?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1373
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1374
+ requestedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1375
+ dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1376
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1377
+ reviewOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1378
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1379
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1380
+ childReviews?: Prisma.DocumentReviewUncheckedUpdateManyWithoutParentReviewNestedInput;
1381
+ };
1382
+ export type DocumentReviewUncheckedUpdateManyWithoutParentReviewInput = {
1383
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1384
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1385
+ documentId?: Prisma.StringFieldUpdateOperationsInput | string;
1386
+ reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
1387
+ organizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1388
+ reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1389
+ reviewerName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1390
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
1391
+ comments?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1392
+ concerns?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1393
+ requestedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1394
+ dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1395
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1396
+ reviewOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1397
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1398
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1399
+ };
1400
+ /**
1401
+ * Count Type DocumentReviewCountOutputType
1402
+ */
1403
+ export type DocumentReviewCountOutputType = {
1404
+ childReviews: number;
1405
+ };
1406
+ export type DocumentReviewCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1407
+ childReviews?: boolean | DocumentReviewCountOutputTypeCountChildReviewsArgs;
1408
+ };
1409
+ /**
1410
+ * DocumentReviewCountOutputType without action
1411
+ */
1412
+ export type DocumentReviewCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1413
+ /**
1414
+ * Select specific fields to fetch from the DocumentReviewCountOutputType
1415
+ */
1416
+ select?: Prisma.DocumentReviewCountOutputTypeSelect<ExtArgs> | null;
1417
+ };
1418
+ /**
1419
+ * DocumentReviewCountOutputType without action
1420
+ */
1421
+ export type DocumentReviewCountOutputTypeCountChildReviewsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1422
+ where?: Prisma.DocumentReviewWhereInput;
1423
+ };
1424
+ export type DocumentReviewSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1425
+ id?: boolean;
1426
+ tenantId?: boolean;
1427
+ documentId?: boolean;
1428
+ reviewParty?: boolean;
1429
+ organizationId?: boolean;
1430
+ reviewerId?: boolean;
1431
+ reviewerName?: boolean;
1432
+ decision?: boolean;
1433
+ comments?: boolean;
1434
+ concerns?: boolean;
1435
+ requestedAt?: boolean;
1436
+ dueAt?: boolean;
1437
+ reviewedAt?: boolean;
1438
+ reviewOrder?: boolean;
1439
+ parentReviewId?: boolean;
1440
+ createdAt?: boolean;
1441
+ updatedAt?: boolean;
1442
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
1443
+ document?: boolean | Prisma.ApplicationDocumentDefaultArgs<ExtArgs>;
1444
+ reviewer?: boolean | Prisma.DocumentReview$reviewerArgs<ExtArgs>;
1445
+ parentReview?: boolean | Prisma.DocumentReview$parentReviewArgs<ExtArgs>;
1446
+ childReviews?: boolean | Prisma.DocumentReview$childReviewsArgs<ExtArgs>;
1447
+ _count?: boolean | Prisma.DocumentReviewCountOutputTypeDefaultArgs<ExtArgs>;
1448
+ }, ExtArgs["result"]["documentReview"]>;
1449
+ export type DocumentReviewSelectScalar = {
1450
+ id?: boolean;
1451
+ tenantId?: boolean;
1452
+ documentId?: boolean;
1453
+ reviewParty?: boolean;
1454
+ organizationId?: boolean;
1455
+ reviewerId?: boolean;
1456
+ reviewerName?: boolean;
1457
+ decision?: boolean;
1458
+ comments?: boolean;
1459
+ concerns?: boolean;
1460
+ requestedAt?: boolean;
1461
+ dueAt?: boolean;
1462
+ reviewedAt?: boolean;
1463
+ reviewOrder?: boolean;
1464
+ parentReviewId?: boolean;
1465
+ createdAt?: boolean;
1466
+ updatedAt?: boolean;
1467
+ };
1468
+ export type DocumentReviewOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "documentId" | "reviewParty" | "organizationId" | "reviewerId" | "reviewerName" | "decision" | "comments" | "concerns" | "requestedAt" | "dueAt" | "reviewedAt" | "reviewOrder" | "parentReviewId" | "createdAt" | "updatedAt", ExtArgs["result"]["documentReview"]>;
1469
+ export type DocumentReviewInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1470
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
1471
+ document?: boolean | Prisma.ApplicationDocumentDefaultArgs<ExtArgs>;
1472
+ reviewer?: boolean | Prisma.DocumentReview$reviewerArgs<ExtArgs>;
1473
+ parentReview?: boolean | Prisma.DocumentReview$parentReviewArgs<ExtArgs>;
1474
+ childReviews?: boolean | Prisma.DocumentReview$childReviewsArgs<ExtArgs>;
1475
+ _count?: boolean | Prisma.DocumentReviewCountOutputTypeDefaultArgs<ExtArgs>;
1476
+ };
1477
+ export type $DocumentReviewPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1478
+ name: "DocumentReview";
1479
+ objects: {
1480
+ tenant: Prisma.$TenantPayload<ExtArgs>;
1481
+ document: Prisma.$ApplicationDocumentPayload<ExtArgs>;
1482
+ reviewer: Prisma.$UserPayload<ExtArgs> | null;
1483
+ parentReview: Prisma.$DocumentReviewPayload<ExtArgs> | null;
1484
+ childReviews: Prisma.$DocumentReviewPayload<ExtArgs>[];
1485
+ };
1486
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1487
+ id: string;
1488
+ tenantId: string;
1489
+ documentId: string;
1490
+ reviewParty: $Enums.ReviewParty;
1491
+ organizationId: string | null;
1492
+ reviewerId: string | null;
1493
+ reviewerName: string | null;
1494
+ decision: $Enums.ReviewDecision;
1495
+ comments: string | null;
1496
+ concerns: runtime.JsonValue | null;
1497
+ requestedAt: Date;
1498
+ dueAt: Date | null;
1499
+ reviewedAt: Date | null;
1500
+ reviewOrder: number;
1501
+ parentReviewId: string | null;
1502
+ createdAt: Date;
1503
+ updatedAt: Date;
1504
+ }, ExtArgs["result"]["documentReview"]>;
1505
+ composites: {};
1506
+ };
1507
+ export type DocumentReviewGetPayload<S extends boolean | null | undefined | DocumentReviewDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$DocumentReviewPayload, S>;
1508
+ export type DocumentReviewCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<DocumentReviewFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1509
+ select?: DocumentReviewCountAggregateInputType | true;
1510
+ };
1511
+ export interface DocumentReviewDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1512
+ [K: symbol]: {
1513
+ types: Prisma.TypeMap<ExtArgs>['model']['DocumentReview'];
1514
+ meta: {
1515
+ name: 'DocumentReview';
1516
+ };
1517
+ };
1518
+ /**
1519
+ * Find zero or one DocumentReview that matches the filter.
1520
+ * @param {DocumentReviewFindUniqueArgs} args - Arguments to find a DocumentReview
1521
+ * @example
1522
+ * // Get one DocumentReview
1523
+ * const documentReview = await prisma.documentReview.findUnique({
1524
+ * where: {
1525
+ * // ... provide filter here
1526
+ * }
1527
+ * })
1528
+ */
1529
+ findUnique<T extends DocumentReviewFindUniqueArgs>(args: Prisma.SelectSubset<T, DocumentReviewFindUniqueArgs<ExtArgs>>): Prisma.Prisma__DocumentReviewClient<runtime.Types.Result.GetResult<Prisma.$DocumentReviewPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1530
+ /**
1531
+ * Find one DocumentReview that matches the filter or throw an error with `error.code='P2025'`
1532
+ * if no matches were found.
1533
+ * @param {DocumentReviewFindUniqueOrThrowArgs} args - Arguments to find a DocumentReview
1534
+ * @example
1535
+ * // Get one DocumentReview
1536
+ * const documentReview = await prisma.documentReview.findUniqueOrThrow({
1537
+ * where: {
1538
+ * // ... provide filter here
1539
+ * }
1540
+ * })
1541
+ */
1542
+ findUniqueOrThrow<T extends DocumentReviewFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, DocumentReviewFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__DocumentReviewClient<runtime.Types.Result.GetResult<Prisma.$DocumentReviewPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1543
+ /**
1544
+ * Find the first DocumentReview that matches the filter.
1545
+ * Note, that providing `undefined` is treated as the value not being there.
1546
+ * Read more here: https://pris.ly/d/null-undefined
1547
+ * @param {DocumentReviewFindFirstArgs} args - Arguments to find a DocumentReview
1548
+ * @example
1549
+ * // Get one DocumentReview
1550
+ * const documentReview = await prisma.documentReview.findFirst({
1551
+ * where: {
1552
+ * // ... provide filter here
1553
+ * }
1554
+ * })
1555
+ */
1556
+ findFirst<T extends DocumentReviewFindFirstArgs>(args?: Prisma.SelectSubset<T, DocumentReviewFindFirstArgs<ExtArgs>>): Prisma.Prisma__DocumentReviewClient<runtime.Types.Result.GetResult<Prisma.$DocumentReviewPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1557
+ /**
1558
+ * Find the first DocumentReview that matches the filter or
1559
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1560
+ * Note, that providing `undefined` is treated as the value not being there.
1561
+ * Read more here: https://pris.ly/d/null-undefined
1562
+ * @param {DocumentReviewFindFirstOrThrowArgs} args - Arguments to find a DocumentReview
1563
+ * @example
1564
+ * // Get one DocumentReview
1565
+ * const documentReview = await prisma.documentReview.findFirstOrThrow({
1566
+ * where: {
1567
+ * // ... provide filter here
1568
+ * }
1569
+ * })
1570
+ */
1571
+ findFirstOrThrow<T extends DocumentReviewFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, DocumentReviewFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__DocumentReviewClient<runtime.Types.Result.GetResult<Prisma.$DocumentReviewPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1572
+ /**
1573
+ * Find zero or more DocumentReviews that matches the filter.
1574
+ * Note, that providing `undefined` is treated as the value not being there.
1575
+ * Read more here: https://pris.ly/d/null-undefined
1576
+ * @param {DocumentReviewFindManyArgs} args - Arguments to filter and select certain fields only.
1577
+ * @example
1578
+ * // Get all DocumentReviews
1579
+ * const documentReviews = await prisma.documentReview.findMany()
1580
+ *
1581
+ * // Get first 10 DocumentReviews
1582
+ * const documentReviews = await prisma.documentReview.findMany({ take: 10 })
1583
+ *
1584
+ * // Only select the `id`
1585
+ * const documentReviewWithIdOnly = await prisma.documentReview.findMany({ select: { id: true } })
1586
+ *
1587
+ */
1588
+ findMany<T extends DocumentReviewFindManyArgs>(args?: Prisma.SelectSubset<T, DocumentReviewFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DocumentReviewPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1589
+ /**
1590
+ * Create a DocumentReview.
1591
+ * @param {DocumentReviewCreateArgs} args - Arguments to create a DocumentReview.
1592
+ * @example
1593
+ * // Create one DocumentReview
1594
+ * const DocumentReview = await prisma.documentReview.create({
1595
+ * data: {
1596
+ * // ... data to create a DocumentReview
1597
+ * }
1598
+ * })
1599
+ *
1600
+ */
1601
+ create<T extends DocumentReviewCreateArgs>(args: Prisma.SelectSubset<T, DocumentReviewCreateArgs<ExtArgs>>): Prisma.Prisma__DocumentReviewClient<runtime.Types.Result.GetResult<Prisma.$DocumentReviewPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1602
+ /**
1603
+ * Create many DocumentReviews.
1604
+ * @param {DocumentReviewCreateManyArgs} args - Arguments to create many DocumentReviews.
1605
+ * @example
1606
+ * // Create many DocumentReviews
1607
+ * const documentReview = await prisma.documentReview.createMany({
1608
+ * data: [
1609
+ * // ... provide data here
1610
+ * ]
1611
+ * })
1612
+ *
1613
+ */
1614
+ createMany<T extends DocumentReviewCreateManyArgs>(args?: Prisma.SelectSubset<T, DocumentReviewCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1615
+ /**
1616
+ * Delete a DocumentReview.
1617
+ * @param {DocumentReviewDeleteArgs} args - Arguments to delete one DocumentReview.
1618
+ * @example
1619
+ * // Delete one DocumentReview
1620
+ * const DocumentReview = await prisma.documentReview.delete({
1621
+ * where: {
1622
+ * // ... filter to delete one DocumentReview
1623
+ * }
1624
+ * })
1625
+ *
1626
+ */
1627
+ delete<T extends DocumentReviewDeleteArgs>(args: Prisma.SelectSubset<T, DocumentReviewDeleteArgs<ExtArgs>>): Prisma.Prisma__DocumentReviewClient<runtime.Types.Result.GetResult<Prisma.$DocumentReviewPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1628
+ /**
1629
+ * Update one DocumentReview.
1630
+ * @param {DocumentReviewUpdateArgs} args - Arguments to update one DocumentReview.
1631
+ * @example
1632
+ * // Update one DocumentReview
1633
+ * const documentReview = await prisma.documentReview.update({
1634
+ * where: {
1635
+ * // ... provide filter here
1636
+ * },
1637
+ * data: {
1638
+ * // ... provide data here
1639
+ * }
1640
+ * })
1641
+ *
1642
+ */
1643
+ update<T extends DocumentReviewUpdateArgs>(args: Prisma.SelectSubset<T, DocumentReviewUpdateArgs<ExtArgs>>): Prisma.Prisma__DocumentReviewClient<runtime.Types.Result.GetResult<Prisma.$DocumentReviewPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1644
+ /**
1645
+ * Delete zero or more DocumentReviews.
1646
+ * @param {DocumentReviewDeleteManyArgs} args - Arguments to filter DocumentReviews to delete.
1647
+ * @example
1648
+ * // Delete a few DocumentReviews
1649
+ * const { count } = await prisma.documentReview.deleteMany({
1650
+ * where: {
1651
+ * // ... provide filter here
1652
+ * }
1653
+ * })
1654
+ *
1655
+ */
1656
+ deleteMany<T extends DocumentReviewDeleteManyArgs>(args?: Prisma.SelectSubset<T, DocumentReviewDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1657
+ /**
1658
+ * Update zero or more DocumentReviews.
1659
+ * Note, that providing `undefined` is treated as the value not being there.
1660
+ * Read more here: https://pris.ly/d/null-undefined
1661
+ * @param {DocumentReviewUpdateManyArgs} args - Arguments to update one or more rows.
1662
+ * @example
1663
+ * // Update many DocumentReviews
1664
+ * const documentReview = await prisma.documentReview.updateMany({
1665
+ * where: {
1666
+ * // ... provide filter here
1667
+ * },
1668
+ * data: {
1669
+ * // ... provide data here
1670
+ * }
1671
+ * })
1672
+ *
1673
+ */
1674
+ updateMany<T extends DocumentReviewUpdateManyArgs>(args: Prisma.SelectSubset<T, DocumentReviewUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1675
+ /**
1676
+ * Create or update one DocumentReview.
1677
+ * @param {DocumentReviewUpsertArgs} args - Arguments to update or create a DocumentReview.
1678
+ * @example
1679
+ * // Update or create a DocumentReview
1680
+ * const documentReview = await prisma.documentReview.upsert({
1681
+ * create: {
1682
+ * // ... data to create a DocumentReview
1683
+ * },
1684
+ * update: {
1685
+ * // ... in case it already exists, update
1686
+ * },
1687
+ * where: {
1688
+ * // ... the filter for the DocumentReview we want to update
1689
+ * }
1690
+ * })
1691
+ */
1692
+ upsert<T extends DocumentReviewUpsertArgs>(args: Prisma.SelectSubset<T, DocumentReviewUpsertArgs<ExtArgs>>): Prisma.Prisma__DocumentReviewClient<runtime.Types.Result.GetResult<Prisma.$DocumentReviewPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1693
+ /**
1694
+ * Count the number of DocumentReviews.
1695
+ * Note, that providing `undefined` is treated as the value not being there.
1696
+ * Read more here: https://pris.ly/d/null-undefined
1697
+ * @param {DocumentReviewCountArgs} args - Arguments to filter DocumentReviews to count.
1698
+ * @example
1699
+ * // Count the number of DocumentReviews
1700
+ * const count = await prisma.documentReview.count({
1701
+ * where: {
1702
+ * // ... the filter for the DocumentReviews we want to count
1703
+ * }
1704
+ * })
1705
+ **/
1706
+ count<T extends DocumentReviewCountArgs>(args?: Prisma.Subset<T, DocumentReviewCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], DocumentReviewCountAggregateOutputType> : number>;
1707
+ /**
1708
+ * Allows you to perform aggregations operations on a DocumentReview.
1709
+ * Note, that providing `undefined` is treated as the value not being there.
1710
+ * Read more here: https://pris.ly/d/null-undefined
1711
+ * @param {DocumentReviewAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1712
+ * @example
1713
+ * // Ordered by age ascending
1714
+ * // Where email contains prisma.io
1715
+ * // Limited to the 10 users
1716
+ * const aggregations = await prisma.user.aggregate({
1717
+ * _avg: {
1718
+ * age: true,
1719
+ * },
1720
+ * where: {
1721
+ * email: {
1722
+ * contains: "prisma.io",
1723
+ * },
1724
+ * },
1725
+ * orderBy: {
1726
+ * age: "asc",
1727
+ * },
1728
+ * take: 10,
1729
+ * })
1730
+ **/
1731
+ aggregate<T extends DocumentReviewAggregateArgs>(args: Prisma.Subset<T, DocumentReviewAggregateArgs>): Prisma.PrismaPromise<GetDocumentReviewAggregateType<T>>;
1732
+ /**
1733
+ * Group by DocumentReview.
1734
+ * Note, that providing `undefined` is treated as the value not being there.
1735
+ * Read more here: https://pris.ly/d/null-undefined
1736
+ * @param {DocumentReviewGroupByArgs} args - Group by arguments.
1737
+ * @example
1738
+ * // Group by city, order by createdAt, get count
1739
+ * const result = await prisma.user.groupBy({
1740
+ * by: ['city', 'createdAt'],
1741
+ * orderBy: {
1742
+ * createdAt: true
1743
+ * },
1744
+ * _count: {
1745
+ * _all: true
1746
+ * },
1747
+ * })
1748
+ *
1749
+ **/
1750
+ groupBy<T extends DocumentReviewGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1751
+ orderBy: DocumentReviewGroupByArgs['orderBy'];
1752
+ } : {
1753
+ orderBy?: DocumentReviewGroupByArgs['orderBy'];
1754
+ }, 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 ? {
1755
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1756
+ Error,
1757
+ 'Field ',
1758
+ P,
1759
+ ` in "having" needs to be provided in "by"`
1760
+ ];
1761
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1762
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1763
+ }[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 ? {} : {
1764
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1765
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1766
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1767
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, DocumentReviewGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDocumentReviewGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1768
+ /**
1769
+ * Fields of the DocumentReview model
1770
+ */
1771
+ readonly fields: DocumentReviewFieldRefs;
1772
+ }
1773
+ /**
1774
+ * The delegate class that acts as a "Promise-like" for DocumentReview.
1775
+ * Why is this prefixed with `Prisma__`?
1776
+ * Because we want to prevent naming conflicts as mentioned in
1777
+ * https://github.com/prisma/prisma-client-js/issues/707
1778
+ */
1779
+ export interface Prisma__DocumentReviewClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1780
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1781
+ tenant<T extends Prisma.TenantDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TenantDefaultArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1782
+ document<T extends Prisma.ApplicationDocumentDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApplicationDocumentDefaultArgs<ExtArgs>>): Prisma.Prisma__ApplicationDocumentClient<runtime.Types.Result.GetResult<Prisma.$ApplicationDocumentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1783
+ reviewer<T extends Prisma.DocumentReview$reviewerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentReview$reviewerArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1784
+ parentReview<T extends Prisma.DocumentReview$parentReviewArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentReview$parentReviewArgs<ExtArgs>>): Prisma.Prisma__DocumentReviewClient<runtime.Types.Result.GetResult<Prisma.$DocumentReviewPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1785
+ childReviews<T extends Prisma.DocumentReview$childReviewsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentReview$childReviewsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DocumentReviewPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1786
+ /**
1787
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1788
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1789
+ * @param onrejected The callback to execute when the Promise is rejected.
1790
+ * @returns A Promise for the completion of which ever callback is executed.
1791
+ */
1792
+ 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>;
1793
+ /**
1794
+ * Attaches a callback for only the rejection of the Promise.
1795
+ * @param onrejected The callback to execute when the Promise is rejected.
1796
+ * @returns A Promise for the completion of the callback.
1797
+ */
1798
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1799
+ /**
1800
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1801
+ * resolved value cannot be modified from the callback.
1802
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1803
+ * @returns A Promise for the completion of the callback.
1804
+ */
1805
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1806
+ }
1807
+ /**
1808
+ * Fields of the DocumentReview model
1809
+ */
1810
+ export interface DocumentReviewFieldRefs {
1811
+ readonly id: Prisma.FieldRef<"DocumentReview", 'String'>;
1812
+ readonly tenantId: Prisma.FieldRef<"DocumentReview", 'String'>;
1813
+ readonly documentId: Prisma.FieldRef<"DocumentReview", 'String'>;
1814
+ readonly reviewParty: Prisma.FieldRef<"DocumentReview", 'ReviewParty'>;
1815
+ readonly organizationId: Prisma.FieldRef<"DocumentReview", 'String'>;
1816
+ readonly reviewerId: Prisma.FieldRef<"DocumentReview", 'String'>;
1817
+ readonly reviewerName: Prisma.FieldRef<"DocumentReview", 'String'>;
1818
+ readonly decision: Prisma.FieldRef<"DocumentReview", 'ReviewDecision'>;
1819
+ readonly comments: Prisma.FieldRef<"DocumentReview", 'String'>;
1820
+ readonly concerns: Prisma.FieldRef<"DocumentReview", 'Json'>;
1821
+ readonly requestedAt: Prisma.FieldRef<"DocumentReview", 'DateTime'>;
1822
+ readonly dueAt: Prisma.FieldRef<"DocumentReview", 'DateTime'>;
1823
+ readonly reviewedAt: Prisma.FieldRef<"DocumentReview", 'DateTime'>;
1824
+ readonly reviewOrder: Prisma.FieldRef<"DocumentReview", 'Int'>;
1825
+ readonly parentReviewId: Prisma.FieldRef<"DocumentReview", 'String'>;
1826
+ readonly createdAt: Prisma.FieldRef<"DocumentReview", 'DateTime'>;
1827
+ readonly updatedAt: Prisma.FieldRef<"DocumentReview", 'DateTime'>;
1828
+ }
1829
+ /**
1830
+ * DocumentReview findUnique
1831
+ */
1832
+ export type DocumentReviewFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1833
+ /**
1834
+ * Select specific fields to fetch from the DocumentReview
1835
+ */
1836
+ select?: Prisma.DocumentReviewSelect<ExtArgs> | null;
1837
+ /**
1838
+ * Omit specific fields from the DocumentReview
1839
+ */
1840
+ omit?: Prisma.DocumentReviewOmit<ExtArgs> | null;
1841
+ /**
1842
+ * Choose, which related nodes to fetch as well
1843
+ */
1844
+ include?: Prisma.DocumentReviewInclude<ExtArgs> | null;
1845
+ /**
1846
+ * Filter, which DocumentReview to fetch.
1847
+ */
1848
+ where: Prisma.DocumentReviewWhereUniqueInput;
1849
+ };
1850
+ /**
1851
+ * DocumentReview findUniqueOrThrow
1852
+ */
1853
+ export type DocumentReviewFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1854
+ /**
1855
+ * Select specific fields to fetch from the DocumentReview
1856
+ */
1857
+ select?: Prisma.DocumentReviewSelect<ExtArgs> | null;
1858
+ /**
1859
+ * Omit specific fields from the DocumentReview
1860
+ */
1861
+ omit?: Prisma.DocumentReviewOmit<ExtArgs> | null;
1862
+ /**
1863
+ * Choose, which related nodes to fetch as well
1864
+ */
1865
+ include?: Prisma.DocumentReviewInclude<ExtArgs> | null;
1866
+ /**
1867
+ * Filter, which DocumentReview to fetch.
1868
+ */
1869
+ where: Prisma.DocumentReviewWhereUniqueInput;
1870
+ };
1871
+ /**
1872
+ * DocumentReview findFirst
1873
+ */
1874
+ export type DocumentReviewFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1875
+ /**
1876
+ * Select specific fields to fetch from the DocumentReview
1877
+ */
1878
+ select?: Prisma.DocumentReviewSelect<ExtArgs> | null;
1879
+ /**
1880
+ * Omit specific fields from the DocumentReview
1881
+ */
1882
+ omit?: Prisma.DocumentReviewOmit<ExtArgs> | null;
1883
+ /**
1884
+ * Choose, which related nodes to fetch as well
1885
+ */
1886
+ include?: Prisma.DocumentReviewInclude<ExtArgs> | null;
1887
+ /**
1888
+ * Filter, which DocumentReview to fetch.
1889
+ */
1890
+ where?: Prisma.DocumentReviewWhereInput;
1891
+ /**
1892
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1893
+ *
1894
+ * Determine the order of DocumentReviews to fetch.
1895
+ */
1896
+ orderBy?: Prisma.DocumentReviewOrderByWithRelationInput | Prisma.DocumentReviewOrderByWithRelationInput[];
1897
+ /**
1898
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1899
+ *
1900
+ * Sets the position for searching for DocumentReviews.
1901
+ */
1902
+ cursor?: Prisma.DocumentReviewWhereUniqueInput;
1903
+ /**
1904
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1905
+ *
1906
+ * Take `±n` DocumentReviews from the position of the cursor.
1907
+ */
1908
+ take?: number;
1909
+ /**
1910
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1911
+ *
1912
+ * Skip the first `n` DocumentReviews.
1913
+ */
1914
+ skip?: number;
1915
+ /**
1916
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1917
+ *
1918
+ * Filter by unique combinations of DocumentReviews.
1919
+ */
1920
+ distinct?: Prisma.DocumentReviewScalarFieldEnum | Prisma.DocumentReviewScalarFieldEnum[];
1921
+ };
1922
+ /**
1923
+ * DocumentReview findFirstOrThrow
1924
+ */
1925
+ export type DocumentReviewFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1926
+ /**
1927
+ * Select specific fields to fetch from the DocumentReview
1928
+ */
1929
+ select?: Prisma.DocumentReviewSelect<ExtArgs> | null;
1930
+ /**
1931
+ * Omit specific fields from the DocumentReview
1932
+ */
1933
+ omit?: Prisma.DocumentReviewOmit<ExtArgs> | null;
1934
+ /**
1935
+ * Choose, which related nodes to fetch as well
1936
+ */
1937
+ include?: Prisma.DocumentReviewInclude<ExtArgs> | null;
1938
+ /**
1939
+ * Filter, which DocumentReview to fetch.
1940
+ */
1941
+ where?: Prisma.DocumentReviewWhereInput;
1942
+ /**
1943
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1944
+ *
1945
+ * Determine the order of DocumentReviews to fetch.
1946
+ */
1947
+ orderBy?: Prisma.DocumentReviewOrderByWithRelationInput | Prisma.DocumentReviewOrderByWithRelationInput[];
1948
+ /**
1949
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1950
+ *
1951
+ * Sets the position for searching for DocumentReviews.
1952
+ */
1953
+ cursor?: Prisma.DocumentReviewWhereUniqueInput;
1954
+ /**
1955
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1956
+ *
1957
+ * Take `±n` DocumentReviews from the position of the cursor.
1958
+ */
1959
+ take?: number;
1960
+ /**
1961
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1962
+ *
1963
+ * Skip the first `n` DocumentReviews.
1964
+ */
1965
+ skip?: number;
1966
+ /**
1967
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1968
+ *
1969
+ * Filter by unique combinations of DocumentReviews.
1970
+ */
1971
+ distinct?: Prisma.DocumentReviewScalarFieldEnum | Prisma.DocumentReviewScalarFieldEnum[];
1972
+ };
1973
+ /**
1974
+ * DocumentReview findMany
1975
+ */
1976
+ export type DocumentReviewFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1977
+ /**
1978
+ * Select specific fields to fetch from the DocumentReview
1979
+ */
1980
+ select?: Prisma.DocumentReviewSelect<ExtArgs> | null;
1981
+ /**
1982
+ * Omit specific fields from the DocumentReview
1983
+ */
1984
+ omit?: Prisma.DocumentReviewOmit<ExtArgs> | null;
1985
+ /**
1986
+ * Choose, which related nodes to fetch as well
1987
+ */
1988
+ include?: Prisma.DocumentReviewInclude<ExtArgs> | null;
1989
+ /**
1990
+ * Filter, which DocumentReviews to fetch.
1991
+ */
1992
+ where?: Prisma.DocumentReviewWhereInput;
1993
+ /**
1994
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1995
+ *
1996
+ * Determine the order of DocumentReviews to fetch.
1997
+ */
1998
+ orderBy?: Prisma.DocumentReviewOrderByWithRelationInput | Prisma.DocumentReviewOrderByWithRelationInput[];
1999
+ /**
2000
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2001
+ *
2002
+ * Sets the position for listing DocumentReviews.
2003
+ */
2004
+ cursor?: Prisma.DocumentReviewWhereUniqueInput;
2005
+ /**
2006
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2007
+ *
2008
+ * Take `±n` DocumentReviews from the position of the cursor.
2009
+ */
2010
+ take?: number;
2011
+ /**
2012
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2013
+ *
2014
+ * Skip the first `n` DocumentReviews.
2015
+ */
2016
+ skip?: number;
2017
+ distinct?: Prisma.DocumentReviewScalarFieldEnum | Prisma.DocumentReviewScalarFieldEnum[];
2018
+ };
2019
+ /**
2020
+ * DocumentReview create
2021
+ */
2022
+ export type DocumentReviewCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2023
+ /**
2024
+ * Select specific fields to fetch from the DocumentReview
2025
+ */
2026
+ select?: Prisma.DocumentReviewSelect<ExtArgs> | null;
2027
+ /**
2028
+ * Omit specific fields from the DocumentReview
2029
+ */
2030
+ omit?: Prisma.DocumentReviewOmit<ExtArgs> | null;
2031
+ /**
2032
+ * Choose, which related nodes to fetch as well
2033
+ */
2034
+ include?: Prisma.DocumentReviewInclude<ExtArgs> | null;
2035
+ /**
2036
+ * The data needed to create a DocumentReview.
2037
+ */
2038
+ data: Prisma.XOR<Prisma.DocumentReviewCreateInput, Prisma.DocumentReviewUncheckedCreateInput>;
2039
+ };
2040
+ /**
2041
+ * DocumentReview createMany
2042
+ */
2043
+ export type DocumentReviewCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2044
+ /**
2045
+ * The data used to create many DocumentReviews.
2046
+ */
2047
+ data: Prisma.DocumentReviewCreateManyInput | Prisma.DocumentReviewCreateManyInput[];
2048
+ skipDuplicates?: boolean;
2049
+ };
2050
+ /**
2051
+ * DocumentReview update
2052
+ */
2053
+ export type DocumentReviewUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2054
+ /**
2055
+ * Select specific fields to fetch from the DocumentReview
2056
+ */
2057
+ select?: Prisma.DocumentReviewSelect<ExtArgs> | null;
2058
+ /**
2059
+ * Omit specific fields from the DocumentReview
2060
+ */
2061
+ omit?: Prisma.DocumentReviewOmit<ExtArgs> | null;
2062
+ /**
2063
+ * Choose, which related nodes to fetch as well
2064
+ */
2065
+ include?: Prisma.DocumentReviewInclude<ExtArgs> | null;
2066
+ /**
2067
+ * The data needed to update a DocumentReview.
2068
+ */
2069
+ data: Prisma.XOR<Prisma.DocumentReviewUpdateInput, Prisma.DocumentReviewUncheckedUpdateInput>;
2070
+ /**
2071
+ * Choose, which DocumentReview to update.
2072
+ */
2073
+ where: Prisma.DocumentReviewWhereUniqueInput;
2074
+ };
2075
+ /**
2076
+ * DocumentReview updateMany
2077
+ */
2078
+ export type DocumentReviewUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2079
+ /**
2080
+ * The data used to update DocumentReviews.
2081
+ */
2082
+ data: Prisma.XOR<Prisma.DocumentReviewUpdateManyMutationInput, Prisma.DocumentReviewUncheckedUpdateManyInput>;
2083
+ /**
2084
+ * Filter which DocumentReviews to update
2085
+ */
2086
+ where?: Prisma.DocumentReviewWhereInput;
2087
+ /**
2088
+ * Limit how many DocumentReviews to update.
2089
+ */
2090
+ limit?: number;
2091
+ };
2092
+ /**
2093
+ * DocumentReview upsert
2094
+ */
2095
+ export type DocumentReviewUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2096
+ /**
2097
+ * Select specific fields to fetch from the DocumentReview
2098
+ */
2099
+ select?: Prisma.DocumentReviewSelect<ExtArgs> | null;
2100
+ /**
2101
+ * Omit specific fields from the DocumentReview
2102
+ */
2103
+ omit?: Prisma.DocumentReviewOmit<ExtArgs> | null;
2104
+ /**
2105
+ * Choose, which related nodes to fetch as well
2106
+ */
2107
+ include?: Prisma.DocumentReviewInclude<ExtArgs> | null;
2108
+ /**
2109
+ * The filter to search for the DocumentReview to update in case it exists.
2110
+ */
2111
+ where: Prisma.DocumentReviewWhereUniqueInput;
2112
+ /**
2113
+ * In case the DocumentReview found by the `where` argument doesn't exist, create a new DocumentReview with this data.
2114
+ */
2115
+ create: Prisma.XOR<Prisma.DocumentReviewCreateInput, Prisma.DocumentReviewUncheckedCreateInput>;
2116
+ /**
2117
+ * In case the DocumentReview was found with the provided `where` argument, update it with this data.
2118
+ */
2119
+ update: Prisma.XOR<Prisma.DocumentReviewUpdateInput, Prisma.DocumentReviewUncheckedUpdateInput>;
2120
+ };
2121
+ /**
2122
+ * DocumentReview delete
2123
+ */
2124
+ export type DocumentReviewDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2125
+ /**
2126
+ * Select specific fields to fetch from the DocumentReview
2127
+ */
2128
+ select?: Prisma.DocumentReviewSelect<ExtArgs> | null;
2129
+ /**
2130
+ * Omit specific fields from the DocumentReview
2131
+ */
2132
+ omit?: Prisma.DocumentReviewOmit<ExtArgs> | null;
2133
+ /**
2134
+ * Choose, which related nodes to fetch as well
2135
+ */
2136
+ include?: Prisma.DocumentReviewInclude<ExtArgs> | null;
2137
+ /**
2138
+ * Filter which DocumentReview to delete.
2139
+ */
2140
+ where: Prisma.DocumentReviewWhereUniqueInput;
2141
+ };
2142
+ /**
2143
+ * DocumentReview deleteMany
2144
+ */
2145
+ export type DocumentReviewDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2146
+ /**
2147
+ * Filter which DocumentReviews to delete
2148
+ */
2149
+ where?: Prisma.DocumentReviewWhereInput;
2150
+ /**
2151
+ * Limit how many DocumentReviews to delete.
2152
+ */
2153
+ limit?: number;
2154
+ };
2155
+ /**
2156
+ * DocumentReview.reviewer
2157
+ */
2158
+ export type DocumentReview$reviewerArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2159
+ /**
2160
+ * Select specific fields to fetch from the User
2161
+ */
2162
+ select?: Prisma.UserSelect<ExtArgs> | null;
2163
+ /**
2164
+ * Omit specific fields from the User
2165
+ */
2166
+ omit?: Prisma.UserOmit<ExtArgs> | null;
2167
+ /**
2168
+ * Choose, which related nodes to fetch as well
2169
+ */
2170
+ include?: Prisma.UserInclude<ExtArgs> | null;
2171
+ where?: Prisma.UserWhereInput;
2172
+ };
2173
+ /**
2174
+ * DocumentReview.parentReview
2175
+ */
2176
+ export type DocumentReview$parentReviewArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2177
+ /**
2178
+ * Select specific fields to fetch from the DocumentReview
2179
+ */
2180
+ select?: Prisma.DocumentReviewSelect<ExtArgs> | null;
2181
+ /**
2182
+ * Omit specific fields from the DocumentReview
2183
+ */
2184
+ omit?: Prisma.DocumentReviewOmit<ExtArgs> | null;
2185
+ /**
2186
+ * Choose, which related nodes to fetch as well
2187
+ */
2188
+ include?: Prisma.DocumentReviewInclude<ExtArgs> | null;
2189
+ where?: Prisma.DocumentReviewWhereInput;
2190
+ };
2191
+ /**
2192
+ * DocumentReview.childReviews
2193
+ */
2194
+ export type DocumentReview$childReviewsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2195
+ /**
2196
+ * Select specific fields to fetch from the DocumentReview
2197
+ */
2198
+ select?: Prisma.DocumentReviewSelect<ExtArgs> | null;
2199
+ /**
2200
+ * Omit specific fields from the DocumentReview
2201
+ */
2202
+ omit?: Prisma.DocumentReviewOmit<ExtArgs> | null;
2203
+ /**
2204
+ * Choose, which related nodes to fetch as well
2205
+ */
2206
+ include?: Prisma.DocumentReviewInclude<ExtArgs> | null;
2207
+ where?: Prisma.DocumentReviewWhereInput;
2208
+ orderBy?: Prisma.DocumentReviewOrderByWithRelationInput | Prisma.DocumentReviewOrderByWithRelationInput[];
2209
+ cursor?: Prisma.DocumentReviewWhereUniqueInput;
2210
+ take?: number;
2211
+ skip?: number;
2212
+ distinct?: Prisma.DocumentReviewScalarFieldEnum | Prisma.DocumentReviewScalarFieldEnum[];
2213
+ };
2214
+ /**
2215
+ * DocumentReview without action
2216
+ */
2217
+ export type DocumentReviewDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2218
+ /**
2219
+ * Select specific fields to fetch from the DocumentReview
2220
+ */
2221
+ select?: Prisma.DocumentReviewSelect<ExtArgs> | null;
2222
+ /**
2223
+ * Omit specific fields from the DocumentReview
2224
+ */
2225
+ omit?: Prisma.DocumentReviewOmit<ExtArgs> | null;
2226
+ /**
2227
+ * Choose, which related nodes to fetch as well
2228
+ */
2229
+ include?: Prisma.DocumentReviewInclude<ExtArgs> | null;
2230
+ };
2231
+ export {};