@valentine-efagene/qshelter-common 2.0.137 → 2.0.139

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