@valentine-efagene/qshelter-common 2.0.139 → 2.0.141

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.
@@ -1,5 +1,4 @@
1
1
  import type * as runtime from "@prisma/client/runtime/client";
2
- import type * as $Enums from "../enums.js";
3
2
  import type * as Prisma from "../internal/prismaNamespace.js";
4
3
  /**
5
4
  * Model DocumentationPhase
@@ -14,18 +13,14 @@ export type AggregateDocumentationPhase = {
14
13
  _max: DocumentationPhaseMaxAggregateOutputType | null;
15
14
  };
16
15
  export type DocumentationPhaseAvgAggregateOutputType = {
16
+ currentStageOrder: number | null;
17
17
  approvedDocumentsCount: number | null;
18
18
  requiredDocumentsCount: number | null;
19
- completedStepsCount: number | null;
20
- totalStepsCount: number | null;
21
- minimumCompletionPercentage: number | null;
22
19
  };
23
20
  export type DocumentationPhaseSumAggregateOutputType = {
21
+ currentStageOrder: number | null;
24
22
  approvedDocumentsCount: number | null;
25
23
  requiredDocumentsCount: number | null;
26
- completedStepsCount: number | null;
27
- totalStepsCount: number | null;
28
- minimumCompletionPercentage: number | null;
29
24
  };
30
25
  export type DocumentationPhaseMinAggregateOutputType = {
31
26
  id: string | null;
@@ -33,13 +28,9 @@ export type DocumentationPhaseMinAggregateOutputType = {
33
28
  phaseId: string | null;
34
29
  documentationPlanId: string | null;
35
30
  sourceQuestionnairePhaseId: string | null;
36
- currentStepId: string | null;
31
+ currentStageOrder: number | null;
37
32
  approvedDocumentsCount: number | null;
38
33
  requiredDocumentsCount: number | null;
39
- completedStepsCount: number | null;
40
- totalStepsCount: number | null;
41
- minimumCompletionPercentage: number | null;
42
- completionCriterion: $Enums.CompletionCriterion | null;
43
34
  createdAt: Date | null;
44
35
  updatedAt: Date | null;
45
36
  };
@@ -49,13 +40,9 @@ export type DocumentationPhaseMaxAggregateOutputType = {
49
40
  phaseId: string | null;
50
41
  documentationPlanId: string | null;
51
42
  sourceQuestionnairePhaseId: string | null;
52
- currentStepId: string | null;
43
+ currentStageOrder: number | null;
53
44
  approvedDocumentsCount: number | null;
54
45
  requiredDocumentsCount: number | null;
55
- completedStepsCount: number | null;
56
- totalStepsCount: number | null;
57
- minimumCompletionPercentage: number | null;
58
- completionCriterion: $Enums.CompletionCriterion | null;
59
46
  createdAt: Date | null;
60
47
  updatedAt: Date | null;
61
48
  };
@@ -65,32 +52,24 @@ export type DocumentationPhaseCountAggregateOutputType = {
65
52
  phaseId: number;
66
53
  documentationPlanId: number;
67
54
  sourceQuestionnairePhaseId: number;
68
- currentStepId: number;
55
+ currentStageOrder: number;
69
56
  approvedDocumentsCount: number;
70
57
  requiredDocumentsCount: number;
71
- completedStepsCount: number;
72
- totalStepsCount: number;
73
- minimumCompletionPercentage: number;
74
- completionCriterion: number;
75
- stepDefinitionsSnapshot: number;
76
- requiredDocumentSnapshot: number;
58
+ documentDefinitionsSnapshot: number;
59
+ approvalStagesSnapshot: number;
77
60
  createdAt: number;
78
61
  updatedAt: number;
79
62
  _all: number;
80
63
  };
81
64
  export type DocumentationPhaseAvgAggregateInputType = {
65
+ currentStageOrder?: true;
82
66
  approvedDocumentsCount?: true;
83
67
  requiredDocumentsCount?: true;
84
- completedStepsCount?: true;
85
- totalStepsCount?: true;
86
- minimumCompletionPercentage?: true;
87
68
  };
88
69
  export type DocumentationPhaseSumAggregateInputType = {
70
+ currentStageOrder?: true;
89
71
  approvedDocumentsCount?: true;
90
72
  requiredDocumentsCount?: true;
91
- completedStepsCount?: true;
92
- totalStepsCount?: true;
93
- minimumCompletionPercentage?: true;
94
73
  };
95
74
  export type DocumentationPhaseMinAggregateInputType = {
96
75
  id?: true;
@@ -98,13 +77,9 @@ export type DocumentationPhaseMinAggregateInputType = {
98
77
  phaseId?: true;
99
78
  documentationPlanId?: true;
100
79
  sourceQuestionnairePhaseId?: true;
101
- currentStepId?: true;
80
+ currentStageOrder?: true;
102
81
  approvedDocumentsCount?: true;
103
82
  requiredDocumentsCount?: true;
104
- completedStepsCount?: true;
105
- totalStepsCount?: true;
106
- minimumCompletionPercentage?: true;
107
- completionCriterion?: true;
108
83
  createdAt?: true;
109
84
  updatedAt?: true;
110
85
  };
@@ -114,13 +89,9 @@ export type DocumentationPhaseMaxAggregateInputType = {
114
89
  phaseId?: true;
115
90
  documentationPlanId?: true;
116
91
  sourceQuestionnairePhaseId?: true;
117
- currentStepId?: true;
92
+ currentStageOrder?: true;
118
93
  approvedDocumentsCount?: true;
119
94
  requiredDocumentsCount?: true;
120
- completedStepsCount?: true;
121
- totalStepsCount?: true;
122
- minimumCompletionPercentage?: true;
123
- completionCriterion?: true;
124
95
  createdAt?: true;
125
96
  updatedAt?: true;
126
97
  };
@@ -130,15 +101,11 @@ export type DocumentationPhaseCountAggregateInputType = {
130
101
  phaseId?: true;
131
102
  documentationPlanId?: true;
132
103
  sourceQuestionnairePhaseId?: true;
133
- currentStepId?: true;
104
+ currentStageOrder?: true;
134
105
  approvedDocumentsCount?: true;
135
106
  requiredDocumentsCount?: true;
136
- completedStepsCount?: true;
137
- totalStepsCount?: true;
138
- minimumCompletionPercentage?: true;
139
- completionCriterion?: true;
140
- stepDefinitionsSnapshot?: true;
141
- requiredDocumentSnapshot?: true;
107
+ documentDefinitionsSnapshot?: true;
108
+ approvalStagesSnapshot?: true;
142
109
  createdAt?: true;
143
110
  updatedAt?: true;
144
111
  _all?: true;
@@ -225,15 +192,11 @@ export type DocumentationPhaseGroupByOutputType = {
225
192
  phaseId: string;
226
193
  documentationPlanId: string | null;
227
194
  sourceQuestionnairePhaseId: string | null;
228
- currentStepId: string | null;
195
+ currentStageOrder: number;
229
196
  approvedDocumentsCount: number;
230
197
  requiredDocumentsCount: number;
231
- completedStepsCount: number;
232
- totalStepsCount: number;
233
- minimumCompletionPercentage: number | null;
234
- completionCriterion: $Enums.CompletionCriterion | null;
235
- stepDefinitionsSnapshot: runtime.JsonValue | null;
236
- requiredDocumentSnapshot: runtime.JsonValue | null;
198
+ documentDefinitionsSnapshot: runtime.JsonValue | null;
199
+ approvalStagesSnapshot: runtime.JsonValue | null;
237
200
  createdAt: Date;
238
201
  updatedAt: Date;
239
202
  _count: DocumentationPhaseCountAggregateOutputType | null;
@@ -254,23 +217,17 @@ export type DocumentationPhaseWhereInput = {
254
217
  phaseId?: Prisma.StringFilter<"DocumentationPhase"> | string;
255
218
  documentationPlanId?: Prisma.StringNullableFilter<"DocumentationPhase"> | string | null;
256
219
  sourceQuestionnairePhaseId?: Prisma.StringNullableFilter<"DocumentationPhase"> | string | null;
257
- currentStepId?: Prisma.StringNullableFilter<"DocumentationPhase"> | string | null;
220
+ currentStageOrder?: Prisma.IntFilter<"DocumentationPhase"> | number;
258
221
  approvedDocumentsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
259
222
  requiredDocumentsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
260
- completedStepsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
261
- totalStepsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
262
- minimumCompletionPercentage?: Prisma.FloatNullableFilter<"DocumentationPhase"> | number | null;
263
- completionCriterion?: Prisma.EnumCompletionCriterionNullableFilter<"DocumentationPhase"> | $Enums.CompletionCriterion | null;
264
- stepDefinitionsSnapshot?: Prisma.JsonNullableFilter<"DocumentationPhase">;
265
- requiredDocumentSnapshot?: Prisma.JsonNullableFilter<"DocumentationPhase">;
223
+ documentDefinitionsSnapshot?: Prisma.JsonNullableFilter<"DocumentationPhase">;
224
+ approvalStagesSnapshot?: Prisma.JsonNullableFilter<"DocumentationPhase">;
266
225
  createdAt?: Prisma.DateTimeFilter<"DocumentationPhase"> | Date | string;
267
226
  updatedAt?: Prisma.DateTimeFilter<"DocumentationPhase"> | Date | string;
268
227
  tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
269
228
  phase?: Prisma.XOR<Prisma.ApplicationPhaseScalarRelationFilter, Prisma.ApplicationPhaseWhereInput>;
270
229
  documentationPlan?: Prisma.XOR<Prisma.DocumentationPlanNullableScalarRelationFilter, Prisma.DocumentationPlanWhereInput> | null;
271
230
  sourceQuestionnairePhase?: Prisma.XOR<Prisma.QuestionnairePhaseNullableScalarRelationFilter, Prisma.QuestionnairePhaseWhereInput> | null;
272
- currentStep?: Prisma.XOR<Prisma.DocumentationStepNullableScalarRelationFilter, Prisma.DocumentationStepWhereInput> | null;
273
- steps?: Prisma.DocumentationStepListRelationFilter;
274
231
  stageProgress?: Prisma.ApprovalStageProgressListRelationFilter;
275
232
  };
276
233
  export type DocumentationPhaseOrderByWithRelationInput = {
@@ -279,23 +236,17 @@ export type DocumentationPhaseOrderByWithRelationInput = {
279
236
  phaseId?: Prisma.SortOrder;
280
237
  documentationPlanId?: Prisma.SortOrderInput | Prisma.SortOrder;
281
238
  sourceQuestionnairePhaseId?: Prisma.SortOrderInput | Prisma.SortOrder;
282
- currentStepId?: Prisma.SortOrderInput | Prisma.SortOrder;
239
+ currentStageOrder?: Prisma.SortOrder;
283
240
  approvedDocumentsCount?: Prisma.SortOrder;
284
241
  requiredDocumentsCount?: Prisma.SortOrder;
285
- completedStepsCount?: Prisma.SortOrder;
286
- totalStepsCount?: Prisma.SortOrder;
287
- minimumCompletionPercentage?: Prisma.SortOrderInput | Prisma.SortOrder;
288
- completionCriterion?: Prisma.SortOrderInput | Prisma.SortOrder;
289
- stepDefinitionsSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
290
- requiredDocumentSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
242
+ documentDefinitionsSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
243
+ approvalStagesSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
291
244
  createdAt?: Prisma.SortOrder;
292
245
  updatedAt?: Prisma.SortOrder;
293
246
  tenant?: Prisma.TenantOrderByWithRelationInput;
294
247
  phase?: Prisma.ApplicationPhaseOrderByWithRelationInput;
295
248
  documentationPlan?: Prisma.DocumentationPlanOrderByWithRelationInput;
296
249
  sourceQuestionnairePhase?: Prisma.QuestionnairePhaseOrderByWithRelationInput;
297
- currentStep?: Prisma.DocumentationStepOrderByWithRelationInput;
298
- steps?: Prisma.DocumentationStepOrderByRelationAggregateInput;
299
250
  stageProgress?: Prisma.ApprovalStageProgressOrderByRelationAggregateInput;
300
251
  _relevance?: Prisma.DocumentationPhaseOrderByRelevanceInput;
301
252
  };
@@ -308,23 +259,17 @@ export type DocumentationPhaseWhereUniqueInput = Prisma.AtLeast<{
308
259
  tenantId?: Prisma.StringFilter<"DocumentationPhase"> | string;
309
260
  documentationPlanId?: Prisma.StringNullableFilter<"DocumentationPhase"> | string | null;
310
261
  sourceQuestionnairePhaseId?: Prisma.StringNullableFilter<"DocumentationPhase"> | string | null;
311
- currentStepId?: Prisma.StringNullableFilter<"DocumentationPhase"> | string | null;
262
+ currentStageOrder?: Prisma.IntFilter<"DocumentationPhase"> | number;
312
263
  approvedDocumentsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
313
264
  requiredDocumentsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
314
- completedStepsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
315
- totalStepsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
316
- minimumCompletionPercentage?: Prisma.FloatNullableFilter<"DocumentationPhase"> | number | null;
317
- completionCriterion?: Prisma.EnumCompletionCriterionNullableFilter<"DocumentationPhase"> | $Enums.CompletionCriterion | null;
318
- stepDefinitionsSnapshot?: Prisma.JsonNullableFilter<"DocumentationPhase">;
319
- requiredDocumentSnapshot?: Prisma.JsonNullableFilter<"DocumentationPhase">;
265
+ documentDefinitionsSnapshot?: Prisma.JsonNullableFilter<"DocumentationPhase">;
266
+ approvalStagesSnapshot?: Prisma.JsonNullableFilter<"DocumentationPhase">;
320
267
  createdAt?: Prisma.DateTimeFilter<"DocumentationPhase"> | Date | string;
321
268
  updatedAt?: Prisma.DateTimeFilter<"DocumentationPhase"> | Date | string;
322
269
  tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
323
270
  phase?: Prisma.XOR<Prisma.ApplicationPhaseScalarRelationFilter, Prisma.ApplicationPhaseWhereInput>;
324
271
  documentationPlan?: Prisma.XOR<Prisma.DocumentationPlanNullableScalarRelationFilter, Prisma.DocumentationPlanWhereInput> | null;
325
272
  sourceQuestionnairePhase?: Prisma.XOR<Prisma.QuestionnairePhaseNullableScalarRelationFilter, Prisma.QuestionnairePhaseWhereInput> | null;
326
- currentStep?: Prisma.XOR<Prisma.DocumentationStepNullableScalarRelationFilter, Prisma.DocumentationStepWhereInput> | null;
327
- steps?: Prisma.DocumentationStepListRelationFilter;
328
273
  stageProgress?: Prisma.ApprovalStageProgressListRelationFilter;
329
274
  }, "id" | "phaseId">;
330
275
  export type DocumentationPhaseOrderByWithAggregationInput = {
@@ -333,15 +278,11 @@ export type DocumentationPhaseOrderByWithAggregationInput = {
333
278
  phaseId?: Prisma.SortOrder;
334
279
  documentationPlanId?: Prisma.SortOrderInput | Prisma.SortOrder;
335
280
  sourceQuestionnairePhaseId?: Prisma.SortOrderInput | Prisma.SortOrder;
336
- currentStepId?: Prisma.SortOrderInput | Prisma.SortOrder;
281
+ currentStageOrder?: Prisma.SortOrder;
337
282
  approvedDocumentsCount?: Prisma.SortOrder;
338
283
  requiredDocumentsCount?: Prisma.SortOrder;
339
- completedStepsCount?: Prisma.SortOrder;
340
- totalStepsCount?: Prisma.SortOrder;
341
- minimumCompletionPercentage?: Prisma.SortOrderInput | Prisma.SortOrder;
342
- completionCriterion?: Prisma.SortOrderInput | Prisma.SortOrder;
343
- stepDefinitionsSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
344
- requiredDocumentSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
284
+ documentDefinitionsSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
285
+ approvalStagesSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
345
286
  createdAt?: Prisma.SortOrder;
346
287
  updatedAt?: Prisma.SortOrder;
347
288
  _count?: Prisma.DocumentationPhaseCountOrderByAggregateInput;
@@ -359,36 +300,27 @@ export type DocumentationPhaseScalarWhereWithAggregatesInput = {
359
300
  phaseId?: Prisma.StringWithAggregatesFilter<"DocumentationPhase"> | string;
360
301
  documentationPlanId?: Prisma.StringNullableWithAggregatesFilter<"DocumentationPhase"> | string | null;
361
302
  sourceQuestionnairePhaseId?: Prisma.StringNullableWithAggregatesFilter<"DocumentationPhase"> | string | null;
362
- currentStepId?: Prisma.StringNullableWithAggregatesFilter<"DocumentationPhase"> | string | null;
303
+ currentStageOrder?: Prisma.IntWithAggregatesFilter<"DocumentationPhase"> | number;
363
304
  approvedDocumentsCount?: Prisma.IntWithAggregatesFilter<"DocumentationPhase"> | number;
364
305
  requiredDocumentsCount?: Prisma.IntWithAggregatesFilter<"DocumentationPhase"> | number;
365
- completedStepsCount?: Prisma.IntWithAggregatesFilter<"DocumentationPhase"> | number;
366
- totalStepsCount?: Prisma.IntWithAggregatesFilter<"DocumentationPhase"> | number;
367
- minimumCompletionPercentage?: Prisma.FloatNullableWithAggregatesFilter<"DocumentationPhase"> | number | null;
368
- completionCriterion?: Prisma.EnumCompletionCriterionNullableWithAggregatesFilter<"DocumentationPhase"> | $Enums.CompletionCriterion | null;
369
- stepDefinitionsSnapshot?: Prisma.JsonNullableWithAggregatesFilter<"DocumentationPhase">;
370
- requiredDocumentSnapshot?: Prisma.JsonNullableWithAggregatesFilter<"DocumentationPhase">;
306
+ documentDefinitionsSnapshot?: Prisma.JsonNullableWithAggregatesFilter<"DocumentationPhase">;
307
+ approvalStagesSnapshot?: Prisma.JsonNullableWithAggregatesFilter<"DocumentationPhase">;
371
308
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"DocumentationPhase"> | Date | string;
372
309
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"DocumentationPhase"> | Date | string;
373
310
  };
374
311
  export type DocumentationPhaseCreateInput = {
375
312
  id?: string;
313
+ currentStageOrder?: number;
376
314
  approvedDocumentsCount?: number;
377
315
  requiredDocumentsCount?: number;
378
- completedStepsCount?: number;
379
- totalStepsCount?: number;
380
- minimumCompletionPercentage?: number | null;
381
- completionCriterion?: $Enums.CompletionCriterion | null;
382
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
383
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
316
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
317
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
384
318
  createdAt?: Date | string;
385
319
  updatedAt?: Date | string;
386
320
  tenant: Prisma.TenantCreateNestedOneWithoutDocumentationPhasesInput;
387
321
  phase: Prisma.ApplicationPhaseCreateNestedOneWithoutDocumentationPhaseInput;
388
322
  documentationPlan?: Prisma.DocumentationPlanCreateNestedOneWithoutDocumentationPhasesInput;
389
323
  sourceQuestionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutDependentDocumentationPhasesInput;
390
- currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
391
- steps?: Prisma.DocumentationStepCreateNestedManyWithoutDocumentationPhaseInput;
392
324
  stageProgress?: Prisma.ApprovalStageProgressCreateNestedManyWithoutDocumentationPhaseInput;
393
325
  };
394
326
  export type DocumentationPhaseUncheckedCreateInput = {
@@ -397,38 +329,28 @@ export type DocumentationPhaseUncheckedCreateInput = {
397
329
  phaseId: string;
398
330
  documentationPlanId?: string | null;
399
331
  sourceQuestionnairePhaseId?: string | null;
400
- currentStepId?: string | null;
332
+ currentStageOrder?: number;
401
333
  approvedDocumentsCount?: number;
402
334
  requiredDocumentsCount?: number;
403
- completedStepsCount?: number;
404
- totalStepsCount?: number;
405
- minimumCompletionPercentage?: number | null;
406
- completionCriterion?: $Enums.CompletionCriterion | null;
407
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
408
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
335
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
336
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
409
337
  createdAt?: Date | string;
410
338
  updatedAt?: Date | string;
411
- steps?: Prisma.DocumentationStepUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
412
339
  stageProgress?: Prisma.ApprovalStageProgressUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
413
340
  };
414
341
  export type DocumentationPhaseUpdateInput = {
415
342
  id?: Prisma.StringFieldUpdateOperationsInput | string;
343
+ currentStageOrder?: Prisma.IntFieldUpdateOperationsInput | number;
416
344
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
417
345
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
418
- completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
419
- totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
420
- minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
421
- completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
422
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
423
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
346
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
347
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
424
348
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
425
349
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
426
350
  tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentationPhasesNestedInput;
427
351
  phase?: Prisma.ApplicationPhaseUpdateOneRequiredWithoutDocumentationPhaseNestedInput;
428
352
  documentationPlan?: Prisma.DocumentationPlanUpdateOneWithoutDocumentationPhasesNestedInput;
429
353
  sourceQuestionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutDependentDocumentationPhasesNestedInput;
430
- currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
431
- steps?: Prisma.DocumentationStepUpdateManyWithoutDocumentationPhaseNestedInput;
432
354
  stageProgress?: Prisma.ApprovalStageProgressUpdateManyWithoutDocumentationPhaseNestedInput;
433
355
  };
434
356
  export type DocumentationPhaseUncheckedUpdateInput = {
@@ -437,18 +359,13 @@ export type DocumentationPhaseUncheckedUpdateInput = {
437
359
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
438
360
  documentationPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
439
361
  sourceQuestionnairePhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
440
- currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
362
+ currentStageOrder?: Prisma.IntFieldUpdateOperationsInput | number;
441
363
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
442
364
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
443
- completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
444
- totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
445
- minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
446
- completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
447
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
448
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
365
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
366
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
449
367
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
450
368
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
451
- steps?: Prisma.DocumentationStepUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
452
369
  stageProgress?: Prisma.ApprovalStageProgressUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
453
370
  };
454
371
  export type DocumentationPhaseCreateManyInput = {
@@ -457,28 +374,21 @@ export type DocumentationPhaseCreateManyInput = {
457
374
  phaseId: string;
458
375
  documentationPlanId?: string | null;
459
376
  sourceQuestionnairePhaseId?: string | null;
460
- currentStepId?: string | null;
377
+ currentStageOrder?: number;
461
378
  approvedDocumentsCount?: number;
462
379
  requiredDocumentsCount?: number;
463
- completedStepsCount?: number;
464
- totalStepsCount?: number;
465
- minimumCompletionPercentage?: number | null;
466
- completionCriterion?: $Enums.CompletionCriterion | null;
467
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
468
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
380
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
381
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
469
382
  createdAt?: Date | string;
470
383
  updatedAt?: Date | string;
471
384
  };
472
385
  export type DocumentationPhaseUpdateManyMutationInput = {
473
386
  id?: Prisma.StringFieldUpdateOperationsInput | string;
387
+ currentStageOrder?: Prisma.IntFieldUpdateOperationsInput | number;
474
388
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
475
389
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
476
- completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
477
- totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
478
- minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
479
- completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
480
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
481
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
390
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
391
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
482
392
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
483
393
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
484
394
  };
@@ -488,15 +398,11 @@ export type DocumentationPhaseUncheckedUpdateManyInput = {
488
398
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
489
399
  documentationPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
490
400
  sourceQuestionnairePhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
491
- currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
401
+ currentStageOrder?: Prisma.IntFieldUpdateOperationsInput | number;
492
402
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
493
403
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
494
- completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
495
- totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
496
- minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
497
- completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
498
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
499
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
404
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
405
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
500
406
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
501
407
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
502
408
  };
@@ -523,24 +429,18 @@ export type DocumentationPhaseCountOrderByAggregateInput = {
523
429
  phaseId?: Prisma.SortOrder;
524
430
  documentationPlanId?: Prisma.SortOrder;
525
431
  sourceQuestionnairePhaseId?: Prisma.SortOrder;
526
- currentStepId?: Prisma.SortOrder;
432
+ currentStageOrder?: Prisma.SortOrder;
527
433
  approvedDocumentsCount?: Prisma.SortOrder;
528
434
  requiredDocumentsCount?: Prisma.SortOrder;
529
- completedStepsCount?: Prisma.SortOrder;
530
- totalStepsCount?: Prisma.SortOrder;
531
- minimumCompletionPercentage?: Prisma.SortOrder;
532
- completionCriterion?: Prisma.SortOrder;
533
- stepDefinitionsSnapshot?: Prisma.SortOrder;
534
- requiredDocumentSnapshot?: Prisma.SortOrder;
435
+ documentDefinitionsSnapshot?: Prisma.SortOrder;
436
+ approvalStagesSnapshot?: Prisma.SortOrder;
535
437
  createdAt?: Prisma.SortOrder;
536
438
  updatedAt?: Prisma.SortOrder;
537
439
  };
538
440
  export type DocumentationPhaseAvgOrderByAggregateInput = {
441
+ currentStageOrder?: Prisma.SortOrder;
539
442
  approvedDocumentsCount?: Prisma.SortOrder;
540
443
  requiredDocumentsCount?: Prisma.SortOrder;
541
- completedStepsCount?: Prisma.SortOrder;
542
- totalStepsCount?: Prisma.SortOrder;
543
- minimumCompletionPercentage?: Prisma.SortOrder;
544
444
  };
545
445
  export type DocumentationPhaseMaxOrderByAggregateInput = {
546
446
  id?: Prisma.SortOrder;
@@ -548,13 +448,9 @@ export type DocumentationPhaseMaxOrderByAggregateInput = {
548
448
  phaseId?: Prisma.SortOrder;
549
449
  documentationPlanId?: Prisma.SortOrder;
550
450
  sourceQuestionnairePhaseId?: Prisma.SortOrder;
551
- currentStepId?: Prisma.SortOrder;
451
+ currentStageOrder?: Prisma.SortOrder;
552
452
  approvedDocumentsCount?: Prisma.SortOrder;
553
453
  requiredDocumentsCount?: Prisma.SortOrder;
554
- completedStepsCount?: Prisma.SortOrder;
555
- totalStepsCount?: Prisma.SortOrder;
556
- minimumCompletionPercentage?: Prisma.SortOrder;
557
- completionCriterion?: Prisma.SortOrder;
558
454
  createdAt?: Prisma.SortOrder;
559
455
  updatedAt?: Prisma.SortOrder;
560
456
  };
@@ -564,22 +460,16 @@ export type DocumentationPhaseMinOrderByAggregateInput = {
564
460
  phaseId?: Prisma.SortOrder;
565
461
  documentationPlanId?: Prisma.SortOrder;
566
462
  sourceQuestionnairePhaseId?: Prisma.SortOrder;
567
- currentStepId?: Prisma.SortOrder;
463
+ currentStageOrder?: Prisma.SortOrder;
568
464
  approvedDocumentsCount?: Prisma.SortOrder;
569
465
  requiredDocumentsCount?: Prisma.SortOrder;
570
- completedStepsCount?: Prisma.SortOrder;
571
- totalStepsCount?: Prisma.SortOrder;
572
- minimumCompletionPercentage?: Prisma.SortOrder;
573
- completionCriterion?: Prisma.SortOrder;
574
466
  createdAt?: Prisma.SortOrder;
575
467
  updatedAt?: Prisma.SortOrder;
576
468
  };
577
469
  export type DocumentationPhaseSumOrderByAggregateInput = {
470
+ currentStageOrder?: Prisma.SortOrder;
578
471
  approvedDocumentsCount?: Prisma.SortOrder;
579
472
  requiredDocumentsCount?: Prisma.SortOrder;
580
- completedStepsCount?: Prisma.SortOrder;
581
- totalStepsCount?: Prisma.SortOrder;
582
- minimumCompletionPercentage?: Prisma.SortOrder;
583
473
  };
584
474
  export type DocumentationPhaseScalarRelationFilter = {
585
475
  is?: Prisma.DocumentationPhaseWhereInput;
@@ -727,56 +617,6 @@ export type DocumentationPhaseUncheckedUpdateManyWithoutSourceQuestionnairePhase
727
617
  updateMany?: Prisma.DocumentationPhaseUpdateManyWithWhereWithoutSourceQuestionnairePhaseInput | Prisma.DocumentationPhaseUpdateManyWithWhereWithoutSourceQuestionnairePhaseInput[];
728
618
  deleteMany?: Prisma.DocumentationPhaseScalarWhereInput | Prisma.DocumentationPhaseScalarWhereInput[];
729
619
  };
730
- export type DocumentationPhaseCreateNestedOneWithoutStepsInput = {
731
- create?: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutStepsInput, Prisma.DocumentationPhaseUncheckedCreateWithoutStepsInput>;
732
- connectOrCreate?: Prisma.DocumentationPhaseCreateOrConnectWithoutStepsInput;
733
- connect?: Prisma.DocumentationPhaseWhereUniqueInput;
734
- };
735
- export type DocumentationPhaseCreateNestedManyWithoutCurrentStepInput = {
736
- create?: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutCurrentStepInput, Prisma.DocumentationPhaseUncheckedCreateWithoutCurrentStepInput> | Prisma.DocumentationPhaseCreateWithoutCurrentStepInput[] | Prisma.DocumentationPhaseUncheckedCreateWithoutCurrentStepInput[];
737
- connectOrCreate?: Prisma.DocumentationPhaseCreateOrConnectWithoutCurrentStepInput | Prisma.DocumentationPhaseCreateOrConnectWithoutCurrentStepInput[];
738
- createMany?: Prisma.DocumentationPhaseCreateManyCurrentStepInputEnvelope;
739
- connect?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
740
- };
741
- export type DocumentationPhaseUncheckedCreateNestedManyWithoutCurrentStepInput = {
742
- create?: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutCurrentStepInput, Prisma.DocumentationPhaseUncheckedCreateWithoutCurrentStepInput> | Prisma.DocumentationPhaseCreateWithoutCurrentStepInput[] | Prisma.DocumentationPhaseUncheckedCreateWithoutCurrentStepInput[];
743
- connectOrCreate?: Prisma.DocumentationPhaseCreateOrConnectWithoutCurrentStepInput | Prisma.DocumentationPhaseCreateOrConnectWithoutCurrentStepInput[];
744
- createMany?: Prisma.DocumentationPhaseCreateManyCurrentStepInputEnvelope;
745
- connect?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
746
- };
747
- export type DocumentationPhaseUpdateOneRequiredWithoutStepsNestedInput = {
748
- create?: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutStepsInput, Prisma.DocumentationPhaseUncheckedCreateWithoutStepsInput>;
749
- connectOrCreate?: Prisma.DocumentationPhaseCreateOrConnectWithoutStepsInput;
750
- upsert?: Prisma.DocumentationPhaseUpsertWithoutStepsInput;
751
- connect?: Prisma.DocumentationPhaseWhereUniqueInput;
752
- update?: Prisma.XOR<Prisma.XOR<Prisma.DocumentationPhaseUpdateToOneWithWhereWithoutStepsInput, Prisma.DocumentationPhaseUpdateWithoutStepsInput>, Prisma.DocumentationPhaseUncheckedUpdateWithoutStepsInput>;
753
- };
754
- export type DocumentationPhaseUpdateManyWithoutCurrentStepNestedInput = {
755
- create?: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutCurrentStepInput, Prisma.DocumentationPhaseUncheckedCreateWithoutCurrentStepInput> | Prisma.DocumentationPhaseCreateWithoutCurrentStepInput[] | Prisma.DocumentationPhaseUncheckedCreateWithoutCurrentStepInput[];
756
- connectOrCreate?: Prisma.DocumentationPhaseCreateOrConnectWithoutCurrentStepInput | Prisma.DocumentationPhaseCreateOrConnectWithoutCurrentStepInput[];
757
- upsert?: Prisma.DocumentationPhaseUpsertWithWhereUniqueWithoutCurrentStepInput | Prisma.DocumentationPhaseUpsertWithWhereUniqueWithoutCurrentStepInput[];
758
- createMany?: Prisma.DocumentationPhaseCreateManyCurrentStepInputEnvelope;
759
- set?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
760
- disconnect?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
761
- delete?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
762
- connect?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
763
- update?: Prisma.DocumentationPhaseUpdateWithWhereUniqueWithoutCurrentStepInput | Prisma.DocumentationPhaseUpdateWithWhereUniqueWithoutCurrentStepInput[];
764
- updateMany?: Prisma.DocumentationPhaseUpdateManyWithWhereWithoutCurrentStepInput | Prisma.DocumentationPhaseUpdateManyWithWhereWithoutCurrentStepInput[];
765
- deleteMany?: Prisma.DocumentationPhaseScalarWhereInput | Prisma.DocumentationPhaseScalarWhereInput[];
766
- };
767
- export type DocumentationPhaseUncheckedUpdateManyWithoutCurrentStepNestedInput = {
768
- create?: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutCurrentStepInput, Prisma.DocumentationPhaseUncheckedCreateWithoutCurrentStepInput> | Prisma.DocumentationPhaseCreateWithoutCurrentStepInput[] | Prisma.DocumentationPhaseUncheckedCreateWithoutCurrentStepInput[];
769
- connectOrCreate?: Prisma.DocumentationPhaseCreateOrConnectWithoutCurrentStepInput | Prisma.DocumentationPhaseCreateOrConnectWithoutCurrentStepInput[];
770
- upsert?: Prisma.DocumentationPhaseUpsertWithWhereUniqueWithoutCurrentStepInput | Prisma.DocumentationPhaseUpsertWithWhereUniqueWithoutCurrentStepInput[];
771
- createMany?: Prisma.DocumentationPhaseCreateManyCurrentStepInputEnvelope;
772
- set?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
773
- disconnect?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
774
- delete?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
775
- connect?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
776
- update?: Prisma.DocumentationPhaseUpdateWithWhereUniqueWithoutCurrentStepInput | Prisma.DocumentationPhaseUpdateWithWhereUniqueWithoutCurrentStepInput[];
777
- updateMany?: Prisma.DocumentationPhaseUpdateManyWithWhereWithoutCurrentStepInput | Prisma.DocumentationPhaseUpdateManyWithWhereWithoutCurrentStepInput[];
778
- deleteMany?: Prisma.DocumentationPhaseScalarWhereInput | Prisma.DocumentationPhaseScalarWhereInput[];
779
- };
780
620
  export type DocumentationPhaseCreateNestedOneWithoutStageProgressInput = {
781
621
  create?: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutStageProgressInput, Prisma.DocumentationPhaseUncheckedCreateWithoutStageProgressInput>;
782
622
  connectOrCreate?: Prisma.DocumentationPhaseCreateOrConnectWithoutStageProgressInput;
@@ -791,21 +631,16 @@ export type DocumentationPhaseUpdateOneRequiredWithoutStageProgressNestedInput =
791
631
  };
792
632
  export type DocumentationPhaseCreateWithoutTenantInput = {
793
633
  id?: string;
634
+ currentStageOrder?: number;
794
635
  approvedDocumentsCount?: number;
795
636
  requiredDocumentsCount?: number;
796
- completedStepsCount?: number;
797
- totalStepsCount?: number;
798
- minimumCompletionPercentage?: number | null;
799
- completionCriterion?: $Enums.CompletionCriterion | null;
800
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
801
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
637
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
638
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
802
639
  createdAt?: Date | string;
803
640
  updatedAt?: Date | string;
804
641
  phase: Prisma.ApplicationPhaseCreateNestedOneWithoutDocumentationPhaseInput;
805
642
  documentationPlan?: Prisma.DocumentationPlanCreateNestedOneWithoutDocumentationPhasesInput;
806
643
  sourceQuestionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutDependentDocumentationPhasesInput;
807
- currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
808
- steps?: Prisma.DocumentationStepCreateNestedManyWithoutDocumentationPhaseInput;
809
644
  stageProgress?: Prisma.ApprovalStageProgressCreateNestedManyWithoutDocumentationPhaseInput;
810
645
  };
811
646
  export type DocumentationPhaseUncheckedCreateWithoutTenantInput = {
@@ -813,18 +648,13 @@ export type DocumentationPhaseUncheckedCreateWithoutTenantInput = {
813
648
  phaseId: string;
814
649
  documentationPlanId?: string | null;
815
650
  sourceQuestionnairePhaseId?: string | null;
816
- currentStepId?: string | null;
651
+ currentStageOrder?: number;
817
652
  approvedDocumentsCount?: number;
818
653
  requiredDocumentsCount?: number;
819
- completedStepsCount?: number;
820
- totalStepsCount?: number;
821
- minimumCompletionPercentage?: number | null;
822
- completionCriterion?: $Enums.CompletionCriterion | null;
823
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
824
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
654
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
655
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
825
656
  createdAt?: Date | string;
826
657
  updatedAt?: Date | string;
827
- steps?: Prisma.DocumentationStepUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
828
658
  stageProgress?: Prisma.ApprovalStageProgressUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
829
659
  };
830
660
  export type DocumentationPhaseCreateOrConnectWithoutTenantInput = {
@@ -857,35 +687,26 @@ export type DocumentationPhaseScalarWhereInput = {
857
687
  phaseId?: Prisma.StringFilter<"DocumentationPhase"> | string;
858
688
  documentationPlanId?: Prisma.StringNullableFilter<"DocumentationPhase"> | string | null;
859
689
  sourceQuestionnairePhaseId?: Prisma.StringNullableFilter<"DocumentationPhase"> | string | null;
860
- currentStepId?: Prisma.StringNullableFilter<"DocumentationPhase"> | string | null;
690
+ currentStageOrder?: Prisma.IntFilter<"DocumentationPhase"> | number;
861
691
  approvedDocumentsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
862
692
  requiredDocumentsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
863
- completedStepsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
864
- totalStepsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
865
- minimumCompletionPercentage?: Prisma.FloatNullableFilter<"DocumentationPhase"> | number | null;
866
- completionCriterion?: Prisma.EnumCompletionCriterionNullableFilter<"DocumentationPhase"> | $Enums.CompletionCriterion | null;
867
- stepDefinitionsSnapshot?: Prisma.JsonNullableFilter<"DocumentationPhase">;
868
- requiredDocumentSnapshot?: Prisma.JsonNullableFilter<"DocumentationPhase">;
693
+ documentDefinitionsSnapshot?: Prisma.JsonNullableFilter<"DocumentationPhase">;
694
+ approvalStagesSnapshot?: Prisma.JsonNullableFilter<"DocumentationPhase">;
869
695
  createdAt?: Prisma.DateTimeFilter<"DocumentationPhase"> | Date | string;
870
696
  updatedAt?: Prisma.DateTimeFilter<"DocumentationPhase"> | Date | string;
871
697
  };
872
698
  export type DocumentationPhaseCreateWithoutDocumentationPlanInput = {
873
699
  id?: string;
700
+ currentStageOrder?: number;
874
701
  approvedDocumentsCount?: number;
875
702
  requiredDocumentsCount?: number;
876
- completedStepsCount?: number;
877
- totalStepsCount?: number;
878
- minimumCompletionPercentage?: number | null;
879
- completionCriterion?: $Enums.CompletionCriterion | null;
880
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
881
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
703
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
704
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
882
705
  createdAt?: Date | string;
883
706
  updatedAt?: Date | string;
884
707
  tenant: Prisma.TenantCreateNestedOneWithoutDocumentationPhasesInput;
885
708
  phase: Prisma.ApplicationPhaseCreateNestedOneWithoutDocumentationPhaseInput;
886
709
  sourceQuestionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutDependentDocumentationPhasesInput;
887
- currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
888
- steps?: Prisma.DocumentationStepCreateNestedManyWithoutDocumentationPhaseInput;
889
710
  stageProgress?: Prisma.ApprovalStageProgressCreateNestedManyWithoutDocumentationPhaseInput;
890
711
  };
891
712
  export type DocumentationPhaseUncheckedCreateWithoutDocumentationPlanInput = {
@@ -893,18 +714,13 @@ export type DocumentationPhaseUncheckedCreateWithoutDocumentationPlanInput = {
893
714
  tenantId: string;
894
715
  phaseId: string;
895
716
  sourceQuestionnairePhaseId?: string | null;
896
- currentStepId?: string | null;
717
+ currentStageOrder?: number;
897
718
  approvedDocumentsCount?: number;
898
719
  requiredDocumentsCount?: number;
899
- completedStepsCount?: number;
900
- totalStepsCount?: number;
901
- minimumCompletionPercentage?: number | null;
902
- completionCriterion?: $Enums.CompletionCriterion | null;
903
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
904
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
720
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
721
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
905
722
  createdAt?: Date | string;
906
723
  updatedAt?: Date | string;
907
- steps?: Prisma.DocumentationStepUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
908
724
  stageProgress?: Prisma.ApprovalStageProgressUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
909
725
  };
910
726
  export type DocumentationPhaseCreateOrConnectWithoutDocumentationPlanInput = {
@@ -930,21 +746,16 @@ export type DocumentationPhaseUpdateManyWithWhereWithoutDocumentationPlanInput =
930
746
  };
931
747
  export type DocumentationPhaseCreateWithoutPhaseInput = {
932
748
  id?: string;
749
+ currentStageOrder?: number;
933
750
  approvedDocumentsCount?: number;
934
751
  requiredDocumentsCount?: number;
935
- completedStepsCount?: number;
936
- totalStepsCount?: number;
937
- minimumCompletionPercentage?: number | null;
938
- completionCriterion?: $Enums.CompletionCriterion | null;
939
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
940
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
752
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
753
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
941
754
  createdAt?: Date | string;
942
755
  updatedAt?: Date | string;
943
756
  tenant: Prisma.TenantCreateNestedOneWithoutDocumentationPhasesInput;
944
757
  documentationPlan?: Prisma.DocumentationPlanCreateNestedOneWithoutDocumentationPhasesInput;
945
758
  sourceQuestionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutDependentDocumentationPhasesInput;
946
- currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
947
- steps?: Prisma.DocumentationStepCreateNestedManyWithoutDocumentationPhaseInput;
948
759
  stageProgress?: Prisma.ApprovalStageProgressCreateNestedManyWithoutDocumentationPhaseInput;
949
760
  };
950
761
  export type DocumentationPhaseUncheckedCreateWithoutPhaseInput = {
@@ -952,18 +763,13 @@ export type DocumentationPhaseUncheckedCreateWithoutPhaseInput = {
952
763
  tenantId: string;
953
764
  documentationPlanId?: string | null;
954
765
  sourceQuestionnairePhaseId?: string | null;
955
- currentStepId?: string | null;
766
+ currentStageOrder?: number;
956
767
  approvedDocumentsCount?: number;
957
768
  requiredDocumentsCount?: number;
958
- completedStepsCount?: number;
959
- totalStepsCount?: number;
960
- minimumCompletionPercentage?: number | null;
961
- completionCriterion?: $Enums.CompletionCriterion | null;
962
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
963
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
769
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
770
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
964
771
  createdAt?: Date | string;
965
772
  updatedAt?: Date | string;
966
- steps?: Prisma.DocumentationStepUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
967
773
  stageProgress?: Prisma.ApprovalStageProgressUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
968
774
  };
969
775
  export type DocumentationPhaseCreateOrConnectWithoutPhaseInput = {
@@ -981,21 +787,16 @@ export type DocumentationPhaseUpdateToOneWithWhereWithoutPhaseInput = {
981
787
  };
982
788
  export type DocumentationPhaseUpdateWithoutPhaseInput = {
983
789
  id?: Prisma.StringFieldUpdateOperationsInput | string;
790
+ currentStageOrder?: Prisma.IntFieldUpdateOperationsInput | number;
984
791
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
985
792
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
986
- completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
987
- totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
988
- minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
989
- completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
990
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
991
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
793
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
794
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
992
795
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
993
796
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
994
797
  tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentationPhasesNestedInput;
995
798
  documentationPlan?: Prisma.DocumentationPlanUpdateOneWithoutDocumentationPhasesNestedInput;
996
799
  sourceQuestionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutDependentDocumentationPhasesNestedInput;
997
- currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
998
- steps?: Prisma.DocumentationStepUpdateManyWithoutDocumentationPhaseNestedInput;
999
800
  stageProgress?: Prisma.ApprovalStageProgressUpdateManyWithoutDocumentationPhaseNestedInput;
1000
801
  };
1001
802
  export type DocumentationPhaseUncheckedUpdateWithoutPhaseInput = {
@@ -1003,37 +804,27 @@ export type DocumentationPhaseUncheckedUpdateWithoutPhaseInput = {
1003
804
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1004
805
  documentationPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1005
806
  sourceQuestionnairePhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1006
- currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
807
+ currentStageOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1007
808
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1008
809
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1009
- completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1010
- totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1011
- minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1012
- completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1013
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1014
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
810
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
811
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1015
812
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1016
813
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1017
- steps?: Prisma.DocumentationStepUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
1018
814
  stageProgress?: Prisma.ApprovalStageProgressUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
1019
815
  };
1020
816
  export type DocumentationPhaseCreateWithoutSourceQuestionnairePhaseInput = {
1021
817
  id?: string;
818
+ currentStageOrder?: number;
1022
819
  approvedDocumentsCount?: number;
1023
820
  requiredDocumentsCount?: number;
1024
- completedStepsCount?: number;
1025
- totalStepsCount?: number;
1026
- minimumCompletionPercentage?: number | null;
1027
- completionCriterion?: $Enums.CompletionCriterion | null;
1028
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1029
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
821
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
822
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1030
823
  createdAt?: Date | string;
1031
824
  updatedAt?: Date | string;
1032
825
  tenant: Prisma.TenantCreateNestedOneWithoutDocumentationPhasesInput;
1033
826
  phase: Prisma.ApplicationPhaseCreateNestedOneWithoutDocumentationPhaseInput;
1034
827
  documentationPlan?: Prisma.DocumentationPlanCreateNestedOneWithoutDocumentationPhasesInput;
1035
- currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
1036
- steps?: Prisma.DocumentationStepCreateNestedManyWithoutDocumentationPhaseInput;
1037
828
  stageProgress?: Prisma.ApprovalStageProgressCreateNestedManyWithoutDocumentationPhaseInput;
1038
829
  };
1039
830
  export type DocumentationPhaseUncheckedCreateWithoutSourceQuestionnairePhaseInput = {
@@ -1041,18 +832,13 @@ export type DocumentationPhaseUncheckedCreateWithoutSourceQuestionnairePhaseInpu
1041
832
  tenantId: string;
1042
833
  phaseId: string;
1043
834
  documentationPlanId?: string | null;
1044
- currentStepId?: string | null;
835
+ currentStageOrder?: number;
1045
836
  approvedDocumentsCount?: number;
1046
837
  requiredDocumentsCount?: number;
1047
- completedStepsCount?: number;
1048
- totalStepsCount?: number;
1049
- minimumCompletionPercentage?: number | null;
1050
- completionCriterion?: $Enums.CompletionCriterion | null;
1051
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1052
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
838
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
839
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1053
840
  createdAt?: Date | string;
1054
841
  updatedAt?: Date | string;
1055
- steps?: Prisma.DocumentationStepUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
1056
842
  stageProgress?: Prisma.ApprovalStageProgressUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
1057
843
  };
1058
844
  export type DocumentationPhaseCreateOrConnectWithoutSourceQuestionnairePhaseInput = {
@@ -1076,172 +862,19 @@ export type DocumentationPhaseUpdateManyWithWhereWithoutSourceQuestionnairePhase
1076
862
  where: Prisma.DocumentationPhaseScalarWhereInput;
1077
863
  data: Prisma.XOR<Prisma.DocumentationPhaseUpdateManyMutationInput, Prisma.DocumentationPhaseUncheckedUpdateManyWithoutSourceQuestionnairePhaseInput>;
1078
864
  };
1079
- export type DocumentationPhaseCreateWithoutStepsInput = {
1080
- id?: string;
1081
- approvedDocumentsCount?: number;
1082
- requiredDocumentsCount?: number;
1083
- completedStepsCount?: number;
1084
- totalStepsCount?: number;
1085
- minimumCompletionPercentage?: number | null;
1086
- completionCriterion?: $Enums.CompletionCriterion | null;
1087
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1088
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1089
- createdAt?: Date | string;
1090
- updatedAt?: Date | string;
1091
- tenant: Prisma.TenantCreateNestedOneWithoutDocumentationPhasesInput;
1092
- phase: Prisma.ApplicationPhaseCreateNestedOneWithoutDocumentationPhaseInput;
1093
- documentationPlan?: Prisma.DocumentationPlanCreateNestedOneWithoutDocumentationPhasesInput;
1094
- sourceQuestionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutDependentDocumentationPhasesInput;
1095
- currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
1096
- stageProgress?: Prisma.ApprovalStageProgressCreateNestedManyWithoutDocumentationPhaseInput;
1097
- };
1098
- export type DocumentationPhaseUncheckedCreateWithoutStepsInput = {
1099
- id?: string;
1100
- tenantId: string;
1101
- phaseId: string;
1102
- documentationPlanId?: string | null;
1103
- sourceQuestionnairePhaseId?: string | null;
1104
- currentStepId?: string | null;
1105
- approvedDocumentsCount?: number;
1106
- requiredDocumentsCount?: number;
1107
- completedStepsCount?: number;
1108
- totalStepsCount?: number;
1109
- minimumCompletionPercentage?: number | null;
1110
- completionCriterion?: $Enums.CompletionCriterion | null;
1111
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1112
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1113
- createdAt?: Date | string;
1114
- updatedAt?: Date | string;
1115
- stageProgress?: Prisma.ApprovalStageProgressUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
1116
- };
1117
- export type DocumentationPhaseCreateOrConnectWithoutStepsInput = {
1118
- where: Prisma.DocumentationPhaseWhereUniqueInput;
1119
- create: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutStepsInput, Prisma.DocumentationPhaseUncheckedCreateWithoutStepsInput>;
1120
- };
1121
- export type DocumentationPhaseCreateWithoutCurrentStepInput = {
1122
- id?: string;
1123
- approvedDocumentsCount?: number;
1124
- requiredDocumentsCount?: number;
1125
- completedStepsCount?: number;
1126
- totalStepsCount?: number;
1127
- minimumCompletionPercentage?: number | null;
1128
- completionCriterion?: $Enums.CompletionCriterion | null;
1129
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1130
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1131
- createdAt?: Date | string;
1132
- updatedAt?: Date | string;
1133
- tenant: Prisma.TenantCreateNestedOneWithoutDocumentationPhasesInput;
1134
- phase: Prisma.ApplicationPhaseCreateNestedOneWithoutDocumentationPhaseInput;
1135
- documentationPlan?: Prisma.DocumentationPlanCreateNestedOneWithoutDocumentationPhasesInput;
1136
- sourceQuestionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutDependentDocumentationPhasesInput;
1137
- steps?: Prisma.DocumentationStepCreateNestedManyWithoutDocumentationPhaseInput;
1138
- stageProgress?: Prisma.ApprovalStageProgressCreateNestedManyWithoutDocumentationPhaseInput;
1139
- };
1140
- export type DocumentationPhaseUncheckedCreateWithoutCurrentStepInput = {
1141
- id?: string;
1142
- tenantId: string;
1143
- phaseId: string;
1144
- documentationPlanId?: string | null;
1145
- sourceQuestionnairePhaseId?: string | null;
1146
- approvedDocumentsCount?: number;
1147
- requiredDocumentsCount?: number;
1148
- completedStepsCount?: number;
1149
- totalStepsCount?: number;
1150
- minimumCompletionPercentage?: number | null;
1151
- completionCriterion?: $Enums.CompletionCriterion | null;
1152
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1153
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1154
- createdAt?: Date | string;
1155
- updatedAt?: Date | string;
1156
- steps?: Prisma.DocumentationStepUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
1157
- stageProgress?: Prisma.ApprovalStageProgressUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
1158
- };
1159
- export type DocumentationPhaseCreateOrConnectWithoutCurrentStepInput = {
1160
- where: Prisma.DocumentationPhaseWhereUniqueInput;
1161
- create: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutCurrentStepInput, Prisma.DocumentationPhaseUncheckedCreateWithoutCurrentStepInput>;
1162
- };
1163
- export type DocumentationPhaseCreateManyCurrentStepInputEnvelope = {
1164
- data: Prisma.DocumentationPhaseCreateManyCurrentStepInput | Prisma.DocumentationPhaseCreateManyCurrentStepInput[];
1165
- skipDuplicates?: boolean;
1166
- };
1167
- export type DocumentationPhaseUpsertWithoutStepsInput = {
1168
- update: Prisma.XOR<Prisma.DocumentationPhaseUpdateWithoutStepsInput, Prisma.DocumentationPhaseUncheckedUpdateWithoutStepsInput>;
1169
- create: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutStepsInput, Prisma.DocumentationPhaseUncheckedCreateWithoutStepsInput>;
1170
- where?: Prisma.DocumentationPhaseWhereInput;
1171
- };
1172
- export type DocumentationPhaseUpdateToOneWithWhereWithoutStepsInput = {
1173
- where?: Prisma.DocumentationPhaseWhereInput;
1174
- data: Prisma.XOR<Prisma.DocumentationPhaseUpdateWithoutStepsInput, Prisma.DocumentationPhaseUncheckedUpdateWithoutStepsInput>;
1175
- };
1176
- export type DocumentationPhaseUpdateWithoutStepsInput = {
1177
- id?: Prisma.StringFieldUpdateOperationsInput | string;
1178
- approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1179
- requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1180
- completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1181
- totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1182
- minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1183
- completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1184
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1185
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1186
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1187
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1188
- tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentationPhasesNestedInput;
1189
- phase?: Prisma.ApplicationPhaseUpdateOneRequiredWithoutDocumentationPhaseNestedInput;
1190
- documentationPlan?: Prisma.DocumentationPlanUpdateOneWithoutDocumentationPhasesNestedInput;
1191
- sourceQuestionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutDependentDocumentationPhasesNestedInput;
1192
- currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
1193
- stageProgress?: Prisma.ApprovalStageProgressUpdateManyWithoutDocumentationPhaseNestedInput;
1194
- };
1195
- export type DocumentationPhaseUncheckedUpdateWithoutStepsInput = {
1196
- id?: Prisma.StringFieldUpdateOperationsInput | string;
1197
- tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1198
- phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
1199
- documentationPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1200
- sourceQuestionnairePhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1201
- currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1202
- approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1203
- requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1204
- completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1205
- totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1206
- minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1207
- completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1208
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1209
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1210
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1211
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1212
- stageProgress?: Prisma.ApprovalStageProgressUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
1213
- };
1214
- export type DocumentationPhaseUpsertWithWhereUniqueWithoutCurrentStepInput = {
1215
- where: Prisma.DocumentationPhaseWhereUniqueInput;
1216
- update: Prisma.XOR<Prisma.DocumentationPhaseUpdateWithoutCurrentStepInput, Prisma.DocumentationPhaseUncheckedUpdateWithoutCurrentStepInput>;
1217
- create: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutCurrentStepInput, Prisma.DocumentationPhaseUncheckedCreateWithoutCurrentStepInput>;
1218
- };
1219
- export type DocumentationPhaseUpdateWithWhereUniqueWithoutCurrentStepInput = {
1220
- where: Prisma.DocumentationPhaseWhereUniqueInput;
1221
- data: Prisma.XOR<Prisma.DocumentationPhaseUpdateWithoutCurrentStepInput, Prisma.DocumentationPhaseUncheckedUpdateWithoutCurrentStepInput>;
1222
- };
1223
- export type DocumentationPhaseUpdateManyWithWhereWithoutCurrentStepInput = {
1224
- where: Prisma.DocumentationPhaseScalarWhereInput;
1225
- data: Prisma.XOR<Prisma.DocumentationPhaseUpdateManyMutationInput, Prisma.DocumentationPhaseUncheckedUpdateManyWithoutCurrentStepInput>;
1226
- };
1227
865
  export type DocumentationPhaseCreateWithoutStageProgressInput = {
1228
866
  id?: string;
867
+ currentStageOrder?: number;
1229
868
  approvedDocumentsCount?: number;
1230
869
  requiredDocumentsCount?: number;
1231
- completedStepsCount?: number;
1232
- totalStepsCount?: number;
1233
- minimumCompletionPercentage?: number | null;
1234
- completionCriterion?: $Enums.CompletionCriterion | null;
1235
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1236
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
870
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
871
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1237
872
  createdAt?: Date | string;
1238
873
  updatedAt?: Date | string;
1239
874
  tenant: Prisma.TenantCreateNestedOneWithoutDocumentationPhasesInput;
1240
875
  phase: Prisma.ApplicationPhaseCreateNestedOneWithoutDocumentationPhaseInput;
1241
876
  documentationPlan?: Prisma.DocumentationPlanCreateNestedOneWithoutDocumentationPhasesInput;
1242
877
  sourceQuestionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutDependentDocumentationPhasesInput;
1243
- currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
1244
- steps?: Prisma.DocumentationStepCreateNestedManyWithoutDocumentationPhaseInput;
1245
878
  };
1246
879
  export type DocumentationPhaseUncheckedCreateWithoutStageProgressInput = {
1247
880
  id?: string;
@@ -1249,18 +882,13 @@ export type DocumentationPhaseUncheckedCreateWithoutStageProgressInput = {
1249
882
  phaseId: string;
1250
883
  documentationPlanId?: string | null;
1251
884
  sourceQuestionnairePhaseId?: string | null;
1252
- currentStepId?: string | null;
885
+ currentStageOrder?: number;
1253
886
  approvedDocumentsCount?: number;
1254
887
  requiredDocumentsCount?: number;
1255
- completedStepsCount?: number;
1256
- totalStepsCount?: number;
1257
- minimumCompletionPercentage?: number | null;
1258
- completionCriterion?: $Enums.CompletionCriterion | null;
1259
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1260
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
888
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
889
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1261
890
  createdAt?: Date | string;
1262
891
  updatedAt?: Date | string;
1263
- steps?: Prisma.DocumentationStepUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
1264
892
  };
1265
893
  export type DocumentationPhaseCreateOrConnectWithoutStageProgressInput = {
1266
894
  where: Prisma.DocumentationPhaseWhereUniqueInput;
@@ -1277,22 +905,17 @@ export type DocumentationPhaseUpdateToOneWithWhereWithoutStageProgressInput = {
1277
905
  };
1278
906
  export type DocumentationPhaseUpdateWithoutStageProgressInput = {
1279
907
  id?: Prisma.StringFieldUpdateOperationsInput | string;
908
+ currentStageOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1280
909
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1281
910
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1282
- completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1283
- totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1284
- minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1285
- completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1286
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1287
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
911
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
912
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1288
913
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1289
914
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1290
915
  tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentationPhasesNestedInput;
1291
916
  phase?: Prisma.ApplicationPhaseUpdateOneRequiredWithoutDocumentationPhaseNestedInput;
1292
917
  documentationPlan?: Prisma.DocumentationPlanUpdateOneWithoutDocumentationPhasesNestedInput;
1293
918
  sourceQuestionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutDependentDocumentationPhasesNestedInput;
1294
- currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
1295
- steps?: Prisma.DocumentationStepUpdateManyWithoutDocumentationPhaseNestedInput;
1296
919
  };
1297
920
  export type DocumentationPhaseUncheckedUpdateWithoutStageProgressInput = {
1298
921
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1300,53 +923,39 @@ export type DocumentationPhaseUncheckedUpdateWithoutStageProgressInput = {
1300
923
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
1301
924
  documentationPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1302
925
  sourceQuestionnairePhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1303
- currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
926
+ currentStageOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1304
927
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1305
928
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1306
- completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1307
- totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1308
- minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1309
- completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1310
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1311
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
929
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
930
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1312
931
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1313
932
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1314
- steps?: Prisma.DocumentationStepUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
1315
933
  };
1316
934
  export type DocumentationPhaseCreateManyTenantInput = {
1317
935
  id?: string;
1318
936
  phaseId: string;
1319
937
  documentationPlanId?: string | null;
1320
938
  sourceQuestionnairePhaseId?: string | null;
1321
- currentStepId?: string | null;
939
+ currentStageOrder?: number;
1322
940
  approvedDocumentsCount?: number;
1323
941
  requiredDocumentsCount?: number;
1324
- completedStepsCount?: number;
1325
- totalStepsCount?: number;
1326
- minimumCompletionPercentage?: number | null;
1327
- completionCriterion?: $Enums.CompletionCriterion | null;
1328
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1329
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
942
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
943
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1330
944
  createdAt?: Date | string;
1331
945
  updatedAt?: Date | string;
1332
946
  };
1333
947
  export type DocumentationPhaseUpdateWithoutTenantInput = {
1334
948
  id?: Prisma.StringFieldUpdateOperationsInput | string;
949
+ currentStageOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1335
950
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1336
951
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1337
- completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1338
- totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1339
- minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1340
- completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1341
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1342
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
952
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
953
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1343
954
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1344
955
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1345
956
  phase?: Prisma.ApplicationPhaseUpdateOneRequiredWithoutDocumentationPhaseNestedInput;
1346
957
  documentationPlan?: Prisma.DocumentationPlanUpdateOneWithoutDocumentationPhasesNestedInput;
1347
958
  sourceQuestionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutDependentDocumentationPhasesNestedInput;
1348
- currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
1349
- steps?: Prisma.DocumentationStepUpdateManyWithoutDocumentationPhaseNestedInput;
1350
959
  stageProgress?: Prisma.ApprovalStageProgressUpdateManyWithoutDocumentationPhaseNestedInput;
1351
960
  };
1352
961
  export type DocumentationPhaseUncheckedUpdateWithoutTenantInput = {
@@ -1354,18 +963,13 @@ export type DocumentationPhaseUncheckedUpdateWithoutTenantInput = {
1354
963
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
1355
964
  documentationPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1356
965
  sourceQuestionnairePhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1357
- currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
966
+ currentStageOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1358
967
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1359
968
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1360
- completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1361
- totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1362
- minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1363
- completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1364
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1365
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
969
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
970
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1366
971
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1367
972
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1368
- steps?: Prisma.DocumentationStepUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
1369
973
  stageProgress?: Prisma.ApprovalStageProgressUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
1370
974
  };
1371
975
  export type DocumentationPhaseUncheckedUpdateManyWithoutTenantInput = {
@@ -1373,15 +977,11 @@ export type DocumentationPhaseUncheckedUpdateManyWithoutTenantInput = {
1373
977
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
1374
978
  documentationPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1375
979
  sourceQuestionnairePhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1376
- currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
980
+ currentStageOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1377
981
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1378
982
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1379
- completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1380
- totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1381
- minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1382
- completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1383
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1384
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
983
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
984
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1385
985
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1386
986
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1387
987
  };
@@ -1390,35 +990,26 @@ export type DocumentationPhaseCreateManyDocumentationPlanInput = {
1390
990
  tenantId: string;
1391
991
  phaseId: string;
1392
992
  sourceQuestionnairePhaseId?: string | null;
1393
- currentStepId?: string | null;
993
+ currentStageOrder?: number;
1394
994
  approvedDocumentsCount?: number;
1395
995
  requiredDocumentsCount?: number;
1396
- completedStepsCount?: number;
1397
- totalStepsCount?: number;
1398
- minimumCompletionPercentage?: number | null;
1399
- completionCriterion?: $Enums.CompletionCriterion | null;
1400
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1401
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
996
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
997
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1402
998
  createdAt?: Date | string;
1403
999
  updatedAt?: Date | string;
1404
1000
  };
1405
1001
  export type DocumentationPhaseUpdateWithoutDocumentationPlanInput = {
1406
1002
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1003
+ currentStageOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1407
1004
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1408
1005
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1409
- completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1410
- totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1411
- minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1412
- completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1413
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1414
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1006
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1007
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1415
1008
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1416
1009
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1417
1010
  tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentationPhasesNestedInput;
1418
1011
  phase?: Prisma.ApplicationPhaseUpdateOneRequiredWithoutDocumentationPhaseNestedInput;
1419
1012
  sourceQuestionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutDependentDocumentationPhasesNestedInput;
1420
- currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
1421
- steps?: Prisma.DocumentationStepUpdateManyWithoutDocumentationPhaseNestedInput;
1422
1013
  stageProgress?: Prisma.ApprovalStageProgressUpdateManyWithoutDocumentationPhaseNestedInput;
1423
1014
  };
1424
1015
  export type DocumentationPhaseUncheckedUpdateWithoutDocumentationPlanInput = {
@@ -1426,18 +1017,13 @@ export type DocumentationPhaseUncheckedUpdateWithoutDocumentationPlanInput = {
1426
1017
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1427
1018
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
1428
1019
  sourceQuestionnairePhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1429
- currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1020
+ currentStageOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1430
1021
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1431
1022
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1432
- completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1433
- totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1434
- minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1435
- completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1436
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1437
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1023
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1024
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1438
1025
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1439
1026
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1440
- steps?: Prisma.DocumentationStepUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
1441
1027
  stageProgress?: Prisma.ApprovalStageProgressUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
1442
1028
  };
1443
1029
  export type DocumentationPhaseUncheckedUpdateManyWithoutDocumentationPlanInput = {
@@ -1445,15 +1031,11 @@ export type DocumentationPhaseUncheckedUpdateManyWithoutDocumentationPlanInput =
1445
1031
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1446
1032
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
1447
1033
  sourceQuestionnairePhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1448
- currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1034
+ currentStageOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1449
1035
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1450
1036
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1451
- completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1452
- totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1453
- minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1454
- completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1455
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1456
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1037
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1038
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1457
1039
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1458
1040
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1459
1041
  };
@@ -1462,35 +1044,26 @@ export type DocumentationPhaseCreateManySourceQuestionnairePhaseInput = {
1462
1044
  tenantId: string;
1463
1045
  phaseId: string;
1464
1046
  documentationPlanId?: string | null;
1465
- currentStepId?: string | null;
1047
+ currentStageOrder?: number;
1466
1048
  approvedDocumentsCount?: number;
1467
1049
  requiredDocumentsCount?: number;
1468
- completedStepsCount?: number;
1469
- totalStepsCount?: number;
1470
- minimumCompletionPercentage?: number | null;
1471
- completionCriterion?: $Enums.CompletionCriterion | null;
1472
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1473
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1050
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1051
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1474
1052
  createdAt?: Date | string;
1475
1053
  updatedAt?: Date | string;
1476
1054
  };
1477
1055
  export type DocumentationPhaseUpdateWithoutSourceQuestionnairePhaseInput = {
1478
1056
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1057
+ currentStageOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1479
1058
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1480
1059
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1481
- completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1482
- totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1483
- minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1484
- completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1485
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1486
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1060
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1061
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1487
1062
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1488
1063
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1489
1064
  tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentationPhasesNestedInput;
1490
1065
  phase?: Prisma.ApplicationPhaseUpdateOneRequiredWithoutDocumentationPhaseNestedInput;
1491
1066
  documentationPlan?: Prisma.DocumentationPlanUpdateOneWithoutDocumentationPhasesNestedInput;
1492
- currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
1493
- steps?: Prisma.DocumentationStepUpdateManyWithoutDocumentationPhaseNestedInput;
1494
1067
  stageProgress?: Prisma.ApprovalStageProgressUpdateManyWithoutDocumentationPhaseNestedInput;
1495
1068
  };
1496
1069
  export type DocumentationPhaseUncheckedUpdateWithoutSourceQuestionnairePhaseInput = {
@@ -1498,18 +1071,13 @@ export type DocumentationPhaseUncheckedUpdateWithoutSourceQuestionnairePhaseInpu
1498
1071
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1499
1072
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
1500
1073
  documentationPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1501
- currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1074
+ currentStageOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1502
1075
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1503
1076
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1504
- completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1505
- totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1506
- minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1507
- completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1508
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1509
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1077
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1078
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1510
1079
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1511
1080
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1512
- steps?: Prisma.DocumentationStepUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
1513
1081
  stageProgress?: Prisma.ApprovalStageProgressUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
1514
1082
  };
1515
1083
  export type DocumentationPhaseUncheckedUpdateManyWithoutSourceQuestionnairePhaseInput = {
@@ -1517,87 +1085,11 @@ export type DocumentationPhaseUncheckedUpdateManyWithoutSourceQuestionnairePhase
1517
1085
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1518
1086
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
1519
1087
  documentationPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1520
- currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1088
+ currentStageOrder?: Prisma.IntFieldUpdateOperationsInput | number;
1521
1089
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1522
1090
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1523
- completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1524
- totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1525
- minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1526
- completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1527
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1528
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1529
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1530
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1531
- };
1532
- export type DocumentationPhaseCreateManyCurrentStepInput = {
1533
- id?: string;
1534
- tenantId: string;
1535
- phaseId: string;
1536
- documentationPlanId?: string | null;
1537
- sourceQuestionnairePhaseId?: string | null;
1538
- approvedDocumentsCount?: number;
1539
- requiredDocumentsCount?: number;
1540
- completedStepsCount?: number;
1541
- totalStepsCount?: number;
1542
- minimumCompletionPercentage?: number | null;
1543
- completionCriterion?: $Enums.CompletionCriterion | null;
1544
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1545
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1546
- createdAt?: Date | string;
1547
- updatedAt?: Date | string;
1548
- };
1549
- export type DocumentationPhaseUpdateWithoutCurrentStepInput = {
1550
- id?: Prisma.StringFieldUpdateOperationsInput | string;
1551
- approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1552
- requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1553
- completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1554
- totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1555
- minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1556
- completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1557
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1558
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1559
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1560
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1561
- tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentationPhasesNestedInput;
1562
- phase?: Prisma.ApplicationPhaseUpdateOneRequiredWithoutDocumentationPhaseNestedInput;
1563
- documentationPlan?: Prisma.DocumentationPlanUpdateOneWithoutDocumentationPhasesNestedInput;
1564
- sourceQuestionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutDependentDocumentationPhasesNestedInput;
1565
- steps?: Prisma.DocumentationStepUpdateManyWithoutDocumentationPhaseNestedInput;
1566
- stageProgress?: Prisma.ApprovalStageProgressUpdateManyWithoutDocumentationPhaseNestedInput;
1567
- };
1568
- export type DocumentationPhaseUncheckedUpdateWithoutCurrentStepInput = {
1569
- id?: Prisma.StringFieldUpdateOperationsInput | string;
1570
- tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1571
- phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
1572
- documentationPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1573
- sourceQuestionnairePhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1574
- approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1575
- requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1576
- completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1577
- totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1578
- minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1579
- completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1580
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1581
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1582
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1583
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1584
- steps?: Prisma.DocumentationStepUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
1585
- stageProgress?: Prisma.ApprovalStageProgressUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
1586
- };
1587
- export type DocumentationPhaseUncheckedUpdateManyWithoutCurrentStepInput = {
1588
- id?: Prisma.StringFieldUpdateOperationsInput | string;
1589
- tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1590
- phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
1591
- documentationPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1592
- sourceQuestionnairePhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1593
- approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1594
- requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1595
- completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1596
- totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
1597
- minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1598
- completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
1599
- stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1600
- requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1091
+ documentDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1092
+ approvalStagesSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1601
1093
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1602
1094
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1603
1095
  };
@@ -1605,11 +1097,9 @@ export type DocumentationPhaseUncheckedUpdateManyWithoutCurrentStepInput = {
1605
1097
  * Count Type DocumentationPhaseCountOutputType
1606
1098
  */
1607
1099
  export type DocumentationPhaseCountOutputType = {
1608
- steps: number;
1609
1100
  stageProgress: number;
1610
1101
  };
1611
1102
  export type DocumentationPhaseCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1612
- steps?: boolean | DocumentationPhaseCountOutputTypeCountStepsArgs;
1613
1103
  stageProgress?: boolean | DocumentationPhaseCountOutputTypeCountStageProgressArgs;
1614
1104
  };
1615
1105
  /**
@@ -1621,12 +1111,6 @@ export type DocumentationPhaseCountOutputTypeDefaultArgs<ExtArgs extends runtime
1621
1111
  */
1622
1112
  select?: Prisma.DocumentationPhaseCountOutputTypeSelect<ExtArgs> | null;
1623
1113
  };
1624
- /**
1625
- * DocumentationPhaseCountOutputType without action
1626
- */
1627
- export type DocumentationPhaseCountOutputTypeCountStepsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1628
- where?: Prisma.DocumentationStepWhereInput;
1629
- };
1630
1114
  /**
1631
1115
  * DocumentationPhaseCountOutputType without action
1632
1116
  */
@@ -1639,23 +1123,17 @@ export type DocumentationPhaseSelect<ExtArgs extends runtime.Types.Extensions.In
1639
1123
  phaseId?: boolean;
1640
1124
  documentationPlanId?: boolean;
1641
1125
  sourceQuestionnairePhaseId?: boolean;
1642
- currentStepId?: boolean;
1126
+ currentStageOrder?: boolean;
1643
1127
  approvedDocumentsCount?: boolean;
1644
1128
  requiredDocumentsCount?: boolean;
1645
- completedStepsCount?: boolean;
1646
- totalStepsCount?: boolean;
1647
- minimumCompletionPercentage?: boolean;
1648
- completionCriterion?: boolean;
1649
- stepDefinitionsSnapshot?: boolean;
1650
- requiredDocumentSnapshot?: boolean;
1129
+ documentDefinitionsSnapshot?: boolean;
1130
+ approvalStagesSnapshot?: boolean;
1651
1131
  createdAt?: boolean;
1652
1132
  updatedAt?: boolean;
1653
1133
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
1654
1134
  phase?: boolean | Prisma.ApplicationPhaseDefaultArgs<ExtArgs>;
1655
1135
  documentationPlan?: boolean | Prisma.DocumentationPhase$documentationPlanArgs<ExtArgs>;
1656
1136
  sourceQuestionnairePhase?: boolean | Prisma.DocumentationPhase$sourceQuestionnairePhaseArgs<ExtArgs>;
1657
- currentStep?: boolean | Prisma.DocumentationPhase$currentStepArgs<ExtArgs>;
1658
- steps?: boolean | Prisma.DocumentationPhase$stepsArgs<ExtArgs>;
1659
1137
  stageProgress?: boolean | Prisma.DocumentationPhase$stageProgressArgs<ExtArgs>;
1660
1138
  _count?: boolean | Prisma.DocumentationPhaseCountOutputTypeDefaultArgs<ExtArgs>;
1661
1139
  }, ExtArgs["result"]["documentationPhase"]>;
@@ -1665,26 +1143,20 @@ export type DocumentationPhaseSelectScalar = {
1665
1143
  phaseId?: boolean;
1666
1144
  documentationPlanId?: boolean;
1667
1145
  sourceQuestionnairePhaseId?: boolean;
1668
- currentStepId?: boolean;
1146
+ currentStageOrder?: boolean;
1669
1147
  approvedDocumentsCount?: boolean;
1670
1148
  requiredDocumentsCount?: boolean;
1671
- completedStepsCount?: boolean;
1672
- totalStepsCount?: boolean;
1673
- minimumCompletionPercentage?: boolean;
1674
- completionCriterion?: boolean;
1675
- stepDefinitionsSnapshot?: boolean;
1676
- requiredDocumentSnapshot?: boolean;
1149
+ documentDefinitionsSnapshot?: boolean;
1150
+ approvalStagesSnapshot?: boolean;
1677
1151
  createdAt?: boolean;
1678
1152
  updatedAt?: boolean;
1679
1153
  };
1680
- export type DocumentationPhaseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "phaseId" | "documentationPlanId" | "sourceQuestionnairePhaseId" | "currentStepId" | "approvedDocumentsCount" | "requiredDocumentsCount" | "completedStepsCount" | "totalStepsCount" | "minimumCompletionPercentage" | "completionCriterion" | "stepDefinitionsSnapshot" | "requiredDocumentSnapshot" | "createdAt" | "updatedAt", ExtArgs["result"]["documentationPhase"]>;
1154
+ export type DocumentationPhaseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "phaseId" | "documentationPlanId" | "sourceQuestionnairePhaseId" | "currentStageOrder" | "approvedDocumentsCount" | "requiredDocumentsCount" | "documentDefinitionsSnapshot" | "approvalStagesSnapshot" | "createdAt" | "updatedAt", ExtArgs["result"]["documentationPhase"]>;
1681
1155
  export type DocumentationPhaseInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1682
1156
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
1683
1157
  phase?: boolean | Prisma.ApplicationPhaseDefaultArgs<ExtArgs>;
1684
1158
  documentationPlan?: boolean | Prisma.DocumentationPhase$documentationPlanArgs<ExtArgs>;
1685
1159
  sourceQuestionnairePhase?: boolean | Prisma.DocumentationPhase$sourceQuestionnairePhaseArgs<ExtArgs>;
1686
- currentStep?: boolean | Prisma.DocumentationPhase$currentStepArgs<ExtArgs>;
1687
- steps?: boolean | Prisma.DocumentationPhase$stepsArgs<ExtArgs>;
1688
1160
  stageProgress?: boolean | Prisma.DocumentationPhase$stageProgressArgs<ExtArgs>;
1689
1161
  _count?: boolean | Prisma.DocumentationPhaseCountOutputTypeDefaultArgs<ExtArgs>;
1690
1162
  };
@@ -1695,8 +1167,6 @@ export type $DocumentationPhasePayload<ExtArgs extends runtime.Types.Extensions.
1695
1167
  phase: Prisma.$ApplicationPhasePayload<ExtArgs>;
1696
1168
  documentationPlan: Prisma.$DocumentationPlanPayload<ExtArgs> | null;
1697
1169
  sourceQuestionnairePhase: Prisma.$QuestionnairePhasePayload<ExtArgs> | null;
1698
- currentStep: Prisma.$DocumentationStepPayload<ExtArgs> | null;
1699
- steps: Prisma.$DocumentationStepPayload<ExtArgs>[];
1700
1170
  stageProgress: Prisma.$ApprovalStageProgressPayload<ExtArgs>[];
1701
1171
  };
1702
1172
  scalars: runtime.Types.Extensions.GetPayloadResult<{
@@ -1705,15 +1175,11 @@ export type $DocumentationPhasePayload<ExtArgs extends runtime.Types.Extensions.
1705
1175
  phaseId: string;
1706
1176
  documentationPlanId: string | null;
1707
1177
  sourceQuestionnairePhaseId: string | null;
1708
- currentStepId: string | null;
1178
+ currentStageOrder: number;
1709
1179
  approvedDocumentsCount: number;
1710
1180
  requiredDocumentsCount: number;
1711
- completedStepsCount: number;
1712
- totalStepsCount: number;
1713
- minimumCompletionPercentage: number | null;
1714
- completionCriterion: $Enums.CompletionCriterion | null;
1715
- stepDefinitionsSnapshot: runtime.JsonValue | null;
1716
- requiredDocumentSnapshot: runtime.JsonValue | null;
1181
+ documentDefinitionsSnapshot: runtime.JsonValue | null;
1182
+ approvalStagesSnapshot: runtime.JsonValue | null;
1717
1183
  createdAt: Date;
1718
1184
  updatedAt: Date;
1719
1185
  }, ExtArgs["result"]["documentationPhase"]>;
@@ -1997,8 +1463,6 @@ export interface Prisma__DocumentationPhaseClient<T, Null = never, ExtArgs exten
1997
1463
  phase<T extends Prisma.ApplicationPhaseDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApplicationPhaseDefaultArgs<ExtArgs>>): Prisma.Prisma__ApplicationPhaseClient<runtime.Types.Result.GetResult<Prisma.$ApplicationPhasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1998
1464
  documentationPlan<T extends Prisma.DocumentationPhase$documentationPlanArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentationPhase$documentationPlanArgs<ExtArgs>>): Prisma.Prisma__DocumentationPlanClient<runtime.Types.Result.GetResult<Prisma.$DocumentationPlanPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1999
1465
  sourceQuestionnairePhase<T extends Prisma.DocumentationPhase$sourceQuestionnairePhaseArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentationPhase$sourceQuestionnairePhaseArgs<ExtArgs>>): Prisma.Prisma__QuestionnairePhaseClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePhasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2000
- currentStep<T extends Prisma.DocumentationPhase$currentStepArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentationPhase$currentStepArgs<ExtArgs>>): Prisma.Prisma__DocumentationStepClient<runtime.Types.Result.GetResult<Prisma.$DocumentationStepPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2001
- steps<T extends Prisma.DocumentationPhase$stepsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentationPhase$stepsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DocumentationStepPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2002
1466
  stageProgress<T extends Prisma.DocumentationPhase$stageProgressArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentationPhase$stageProgressArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApprovalStageProgressPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2003
1467
  /**
2004
1468
  * Attaches callbacks for the resolution and/or rejection of the Promise.
@@ -2030,15 +1494,11 @@ export interface DocumentationPhaseFieldRefs {
2030
1494
  readonly phaseId: Prisma.FieldRef<"DocumentationPhase", 'String'>;
2031
1495
  readonly documentationPlanId: Prisma.FieldRef<"DocumentationPhase", 'String'>;
2032
1496
  readonly sourceQuestionnairePhaseId: Prisma.FieldRef<"DocumentationPhase", 'String'>;
2033
- readonly currentStepId: Prisma.FieldRef<"DocumentationPhase", 'String'>;
1497
+ readonly currentStageOrder: Prisma.FieldRef<"DocumentationPhase", 'Int'>;
2034
1498
  readonly approvedDocumentsCount: Prisma.FieldRef<"DocumentationPhase", 'Int'>;
2035
1499
  readonly requiredDocumentsCount: Prisma.FieldRef<"DocumentationPhase", 'Int'>;
2036
- readonly completedStepsCount: Prisma.FieldRef<"DocumentationPhase", 'Int'>;
2037
- readonly totalStepsCount: Prisma.FieldRef<"DocumentationPhase", 'Int'>;
2038
- readonly minimumCompletionPercentage: Prisma.FieldRef<"DocumentationPhase", 'Float'>;
2039
- readonly completionCriterion: Prisma.FieldRef<"DocumentationPhase", 'CompletionCriterion'>;
2040
- readonly stepDefinitionsSnapshot: Prisma.FieldRef<"DocumentationPhase", 'Json'>;
2041
- readonly requiredDocumentSnapshot: Prisma.FieldRef<"DocumentationPhase", 'Json'>;
1500
+ readonly documentDefinitionsSnapshot: Prisma.FieldRef<"DocumentationPhase", 'Json'>;
1501
+ readonly approvalStagesSnapshot: Prisma.FieldRef<"DocumentationPhase", 'Json'>;
2042
1502
  readonly createdAt: Prisma.FieldRef<"DocumentationPhase", 'DateTime'>;
2043
1503
  readonly updatedAt: Prisma.FieldRef<"DocumentationPhase", 'DateTime'>;
2044
1504
  }
@@ -2404,47 +1864,6 @@ export type DocumentationPhase$sourceQuestionnairePhaseArgs<ExtArgs extends runt
2404
1864
  include?: Prisma.QuestionnairePhaseInclude<ExtArgs> | null;
2405
1865
  where?: Prisma.QuestionnairePhaseWhereInput;
2406
1866
  };
2407
- /**
2408
- * DocumentationPhase.currentStep
2409
- */
2410
- export type DocumentationPhase$currentStepArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2411
- /**
2412
- * Select specific fields to fetch from the DocumentationStep
2413
- */
2414
- select?: Prisma.DocumentationStepSelect<ExtArgs> | null;
2415
- /**
2416
- * Omit specific fields from the DocumentationStep
2417
- */
2418
- omit?: Prisma.DocumentationStepOmit<ExtArgs> | null;
2419
- /**
2420
- * Choose, which related nodes to fetch as well
2421
- */
2422
- include?: Prisma.DocumentationStepInclude<ExtArgs> | null;
2423
- where?: Prisma.DocumentationStepWhereInput;
2424
- };
2425
- /**
2426
- * DocumentationPhase.steps
2427
- */
2428
- export type DocumentationPhase$stepsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2429
- /**
2430
- * Select specific fields to fetch from the DocumentationStep
2431
- */
2432
- select?: Prisma.DocumentationStepSelect<ExtArgs> | null;
2433
- /**
2434
- * Omit specific fields from the DocumentationStep
2435
- */
2436
- omit?: Prisma.DocumentationStepOmit<ExtArgs> | null;
2437
- /**
2438
- * Choose, which related nodes to fetch as well
2439
- */
2440
- include?: Prisma.DocumentationStepInclude<ExtArgs> | null;
2441
- where?: Prisma.DocumentationStepWhereInput;
2442
- orderBy?: Prisma.DocumentationStepOrderByWithRelationInput | Prisma.DocumentationStepOrderByWithRelationInput[];
2443
- cursor?: Prisma.DocumentationStepWhereUniqueInput;
2444
- take?: number;
2445
- skip?: number;
2446
- distinct?: Prisma.DocumentationStepScalarFieldEnum | Prisma.DocumentationStepScalarFieldEnum[];
2447
- };
2448
1867
  /**
2449
1868
  * DocumentationPhase.stageProgress
2450
1869
  */