@valentine-efagene/qshelter-common 2.0.98 → 2.0.100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/generated/client/browser.d.ts +5 -0
  2. package/dist/generated/client/client.d.ts +5 -0
  3. package/dist/generated/client/commonInputTypes.d.ts +90 -0
  4. package/dist/generated/client/enums.d.ts +26 -0
  5. package/dist/generated/client/enums.js +23 -0
  6. package/dist/generated/client/internal/class.d.ts +11 -0
  7. package/dist/generated/client/internal/class.js +2 -2
  8. package/dist/generated/client/internal/prismaNamespace.d.ts +176 -1
  9. package/dist/generated/client/internal/prismaNamespace.js +95 -1
  10. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +96 -0
  11. package/dist/generated/client/internal/prismaNamespaceBrowser.js +95 -1
  12. package/dist/generated/client/models/Amenity.d.ts +183 -3
  13. package/dist/generated/client/models/ApplicationDocument.d.ts +183 -1
  14. package/dist/generated/client/models/ApplicationEvent.d.ts +190 -14
  15. package/dist/generated/client/models/ApplicationPayment.d.ts +225 -1
  16. package/dist/generated/client/models/ApplicationPhase.d.ts +272 -26
  17. package/dist/generated/client/models/DocumentationPhase.d.ts +224 -24
  18. package/dist/generated/client/models/DocumentationStep.d.ts +237 -1
  19. package/dist/generated/client/models/DocumentationStepApproval.d.ts +159 -1
  20. package/dist/generated/client/models/DocumentationStepDocument.d.ts +150 -10
  21. package/dist/generated/client/models/EventHandlerExecution.d.ts +208 -14
  22. package/dist/generated/client/models/PaymentInstallment.d.ts +228 -14
  23. package/dist/generated/client/models/PaymentMethodPhaseDocument.d.ts +178 -14
  24. package/dist/generated/client/models/PaymentMethodPhaseField.d.ts +208 -14
  25. package/dist/generated/client/models/PaymentMethodPhaseStep.d.ts +180 -14
  26. package/dist/generated/client/models/PaymentPhase.d.ts +214 -14
  27. package/dist/generated/client/models/PhaseEventAttachment.d.ts +178 -14
  28. package/dist/generated/client/models/PropertyAmenity.d.ts +145 -11
  29. package/dist/generated/client/models/PropertyDocument.d.ts +164 -12
  30. package/dist/generated/client/models/PropertyMedia.d.ts +183 -17
  31. package/dist/generated/client/models/PropertyPaymentMethodLink.d.ts +159 -13
  32. package/dist/generated/client/models/PropertyPaymentMethodPhase.d.ts +270 -14
  33. package/dist/generated/client/models/PropertyUnit.d.ts +230 -14
  34. package/dist/generated/client/models/PropertyVariant.d.ts +256 -14
  35. package/dist/generated/client/models/PropertyVariantAmenity.d.ts +145 -11
  36. package/dist/generated/client/models/PropertyVariantMedia.d.ts +171 -13
  37. package/dist/generated/client/models/QuestionnaireField.d.ts +232 -14
  38. package/dist/generated/client/models/QuestionnairePhase.d.ts +207 -1
  39. package/dist/generated/client/models/StepEventAttachment.d.ts +178 -14
  40. package/dist/generated/client/models/Tenant.d.ts +11653 -1153
  41. package/dist/generated/client/models/WorkflowBlocker.d.ts +1432 -0
  42. package/dist/generated/client/models/WorkflowBlocker.js +1 -0
  43. package/dist/generated/client/models/index.d.ts +1 -0
  44. package/dist/generated/client/models/index.js +1 -0
  45. package/dist/generated/client/models.d.ts +1 -0
  46. package/dist/src/index.d.ts +1 -0
  47. package/dist/src/index.js +1 -0
  48. package/dist/src/middleware/auth-context.d.ts +63 -6
  49. package/dist/src/middleware/auth-context.js +132 -13
  50. package/dist/src/prisma/tenant.js +26 -32
  51. package/dist/src/types/action-status.d.ts +137 -0
  52. package/dist/src/types/action-status.js +402 -0
  53. package/package.json +1 -1
  54. package/prisma/migrations/20260113000000_remove_workflow_analytics_summary/migration.sql +5 -0
  55. package/prisma/migrations/20260113110450_add_tenant_id_to_child_models/migration.sql +334 -0
  56. package/prisma/schema.prisma +273 -60
@@ -29,6 +29,7 @@ export type DocumentationPhaseSumAggregateOutputType = {
29
29
  };
30
30
  export type DocumentationPhaseMinAggregateOutputType = {
31
31
  id: string | null;
32
+ tenantId: string | null;
32
33
  phaseId: string | null;
33
34
  currentStepId: string | null;
34
35
  approvedDocumentsCount: number | null;
@@ -42,6 +43,7 @@ export type DocumentationPhaseMinAggregateOutputType = {
42
43
  };
43
44
  export type DocumentationPhaseMaxAggregateOutputType = {
44
45
  id: string | null;
46
+ tenantId: string | null;
45
47
  phaseId: string | null;
46
48
  currentStepId: string | null;
47
49
  approvedDocumentsCount: number | null;
@@ -55,6 +57,7 @@ export type DocumentationPhaseMaxAggregateOutputType = {
55
57
  };
56
58
  export type DocumentationPhaseCountAggregateOutputType = {
57
59
  id: number;
60
+ tenantId: number;
58
61
  phaseId: number;
59
62
  currentStepId: number;
60
63
  approvedDocumentsCount: number;
@@ -85,6 +88,7 @@ export type DocumentationPhaseSumAggregateInputType = {
85
88
  };
86
89
  export type DocumentationPhaseMinAggregateInputType = {
87
90
  id?: true;
91
+ tenantId?: true;
88
92
  phaseId?: true;
89
93
  currentStepId?: true;
90
94
  approvedDocumentsCount?: true;
@@ -98,6 +102,7 @@ export type DocumentationPhaseMinAggregateInputType = {
98
102
  };
99
103
  export type DocumentationPhaseMaxAggregateInputType = {
100
104
  id?: true;
105
+ tenantId?: true;
101
106
  phaseId?: true;
102
107
  currentStepId?: true;
103
108
  approvedDocumentsCount?: true;
@@ -111,6 +116,7 @@ export type DocumentationPhaseMaxAggregateInputType = {
111
116
  };
112
117
  export type DocumentationPhaseCountAggregateInputType = {
113
118
  id?: true;
119
+ tenantId?: true;
114
120
  phaseId?: true;
115
121
  currentStepId?: true;
116
122
  approvedDocumentsCount?: true;
@@ -203,6 +209,7 @@ export type DocumentationPhaseGroupByArgs<ExtArgs extends runtime.Types.Extensio
203
209
  };
204
210
  export type DocumentationPhaseGroupByOutputType = {
205
211
  id: string;
212
+ tenantId: string;
206
213
  phaseId: string;
207
214
  currentStepId: string | null;
208
215
  approvedDocumentsCount: number;
@@ -229,6 +236,7 @@ export type DocumentationPhaseWhereInput = {
229
236
  OR?: Prisma.DocumentationPhaseWhereInput[];
230
237
  NOT?: Prisma.DocumentationPhaseWhereInput | Prisma.DocumentationPhaseWhereInput[];
231
238
  id?: Prisma.StringFilter<"DocumentationPhase"> | string;
239
+ tenantId?: Prisma.StringFilter<"DocumentationPhase"> | string;
232
240
  phaseId?: Prisma.StringFilter<"DocumentationPhase"> | string;
233
241
  currentStepId?: Prisma.StringNullableFilter<"DocumentationPhase"> | string | null;
234
242
  approvedDocumentsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
@@ -241,12 +249,14 @@ export type DocumentationPhaseWhereInput = {
241
249
  requiredDocumentSnapshot?: Prisma.JsonNullableFilter<"DocumentationPhase">;
242
250
  createdAt?: Prisma.DateTimeFilter<"DocumentationPhase"> | Date | string;
243
251
  updatedAt?: Prisma.DateTimeFilter<"DocumentationPhase"> | Date | string;
252
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
244
253
  phase?: Prisma.XOR<Prisma.ApplicationPhaseScalarRelationFilter, Prisma.ApplicationPhaseWhereInput>;
245
254
  currentStep?: Prisma.XOR<Prisma.DocumentationStepNullableScalarRelationFilter, Prisma.DocumentationStepWhereInput> | null;
246
255
  steps?: Prisma.DocumentationStepListRelationFilter;
247
256
  };
248
257
  export type DocumentationPhaseOrderByWithRelationInput = {
249
258
  id?: Prisma.SortOrder;
259
+ tenantId?: Prisma.SortOrder;
250
260
  phaseId?: Prisma.SortOrder;
251
261
  currentStepId?: Prisma.SortOrderInput | Prisma.SortOrder;
252
262
  approvedDocumentsCount?: Prisma.SortOrder;
@@ -259,6 +269,7 @@ export type DocumentationPhaseOrderByWithRelationInput = {
259
269
  requiredDocumentSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
260
270
  createdAt?: Prisma.SortOrder;
261
271
  updatedAt?: Prisma.SortOrder;
272
+ tenant?: Prisma.TenantOrderByWithRelationInput;
262
273
  phase?: Prisma.ApplicationPhaseOrderByWithRelationInput;
263
274
  currentStep?: Prisma.DocumentationStepOrderByWithRelationInput;
264
275
  steps?: Prisma.DocumentationStepOrderByRelationAggregateInput;
@@ -270,6 +281,7 @@ export type DocumentationPhaseWhereUniqueInput = Prisma.AtLeast<{
270
281
  AND?: Prisma.DocumentationPhaseWhereInput | Prisma.DocumentationPhaseWhereInput[];
271
282
  OR?: Prisma.DocumentationPhaseWhereInput[];
272
283
  NOT?: Prisma.DocumentationPhaseWhereInput | Prisma.DocumentationPhaseWhereInput[];
284
+ tenantId?: Prisma.StringFilter<"DocumentationPhase"> | string;
273
285
  currentStepId?: Prisma.StringNullableFilter<"DocumentationPhase"> | string | null;
274
286
  approvedDocumentsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
275
287
  requiredDocumentsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
@@ -281,12 +293,14 @@ export type DocumentationPhaseWhereUniqueInput = Prisma.AtLeast<{
281
293
  requiredDocumentSnapshot?: Prisma.JsonNullableFilter<"DocumentationPhase">;
282
294
  createdAt?: Prisma.DateTimeFilter<"DocumentationPhase"> | Date | string;
283
295
  updatedAt?: Prisma.DateTimeFilter<"DocumentationPhase"> | Date | string;
296
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
284
297
  phase?: Prisma.XOR<Prisma.ApplicationPhaseScalarRelationFilter, Prisma.ApplicationPhaseWhereInput>;
285
298
  currentStep?: Prisma.XOR<Prisma.DocumentationStepNullableScalarRelationFilter, Prisma.DocumentationStepWhereInput> | null;
286
299
  steps?: Prisma.DocumentationStepListRelationFilter;
287
300
  }, "id" | "phaseId">;
288
301
  export type DocumentationPhaseOrderByWithAggregationInput = {
289
302
  id?: Prisma.SortOrder;
303
+ tenantId?: Prisma.SortOrder;
290
304
  phaseId?: Prisma.SortOrder;
291
305
  currentStepId?: Prisma.SortOrderInput | Prisma.SortOrder;
292
306
  approvedDocumentsCount?: Prisma.SortOrder;
@@ -310,6 +324,7 @@ export type DocumentationPhaseScalarWhereWithAggregatesInput = {
310
324
  OR?: Prisma.DocumentationPhaseScalarWhereWithAggregatesInput[];
311
325
  NOT?: Prisma.DocumentationPhaseScalarWhereWithAggregatesInput | Prisma.DocumentationPhaseScalarWhereWithAggregatesInput[];
312
326
  id?: Prisma.StringWithAggregatesFilter<"DocumentationPhase"> | string;
327
+ tenantId?: Prisma.StringWithAggregatesFilter<"DocumentationPhase"> | string;
313
328
  phaseId?: Prisma.StringWithAggregatesFilter<"DocumentationPhase"> | string;
314
329
  currentStepId?: Prisma.StringNullableWithAggregatesFilter<"DocumentationPhase"> | string | null;
315
330
  approvedDocumentsCount?: Prisma.IntWithAggregatesFilter<"DocumentationPhase"> | number;
@@ -335,12 +350,14 @@ export type DocumentationPhaseCreateInput = {
335
350
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
336
351
  createdAt?: Date | string;
337
352
  updatedAt?: Date | string;
353
+ tenant: Prisma.TenantCreateNestedOneWithoutDocumentationPhasesInput;
338
354
  phase: Prisma.ApplicationPhaseCreateNestedOneWithoutDocumentationPhaseInput;
339
355
  currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
340
356
  steps?: Prisma.DocumentationStepCreateNestedManyWithoutDocumentationPhaseInput;
341
357
  };
342
358
  export type DocumentationPhaseUncheckedCreateInput = {
343
359
  id?: string;
360
+ tenantId: string;
344
361
  phaseId: string;
345
362
  currentStepId?: string | null;
346
363
  approvedDocumentsCount?: number;
@@ -367,12 +384,14 @@ export type DocumentationPhaseUpdateInput = {
367
384
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
368
385
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
369
386
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
387
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentationPhasesNestedInput;
370
388
  phase?: Prisma.ApplicationPhaseUpdateOneRequiredWithoutDocumentationPhaseNestedInput;
371
389
  currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
372
390
  steps?: Prisma.DocumentationStepUpdateManyWithoutDocumentationPhaseNestedInput;
373
391
  };
374
392
  export type DocumentationPhaseUncheckedUpdateInput = {
375
393
  id?: Prisma.StringFieldUpdateOperationsInput | string;
394
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
376
395
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
377
396
  currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
378
397
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
@@ -389,6 +408,7 @@ export type DocumentationPhaseUncheckedUpdateInput = {
389
408
  };
390
409
  export type DocumentationPhaseCreateManyInput = {
391
410
  id?: string;
411
+ tenantId: string;
392
412
  phaseId: string;
393
413
  currentStepId?: string | null;
394
414
  approvedDocumentsCount?: number;
@@ -417,6 +437,7 @@ export type DocumentationPhaseUpdateManyMutationInput = {
417
437
  };
418
438
  export type DocumentationPhaseUncheckedUpdateManyInput = {
419
439
  id?: Prisma.StringFieldUpdateOperationsInput | string;
440
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
420
441
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
421
442
  currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
422
443
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
@@ -430,6 +451,14 @@ export type DocumentationPhaseUncheckedUpdateManyInput = {
430
451
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
431
452
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
432
453
  };
454
+ export type DocumentationPhaseListRelationFilter = {
455
+ every?: Prisma.DocumentationPhaseWhereInput;
456
+ some?: Prisma.DocumentationPhaseWhereInput;
457
+ none?: Prisma.DocumentationPhaseWhereInput;
458
+ };
459
+ export type DocumentationPhaseOrderByRelationAggregateInput = {
460
+ _count?: Prisma.SortOrder;
461
+ };
433
462
  export type DocumentationPhaseNullableScalarRelationFilter = {
434
463
  is?: Prisma.DocumentationPhaseWhereInput | null;
435
464
  isNot?: Prisma.DocumentationPhaseWhereInput | null;
@@ -441,6 +470,7 @@ export type DocumentationPhaseOrderByRelevanceInput = {
441
470
  };
442
471
  export type DocumentationPhaseCountOrderByAggregateInput = {
443
472
  id?: Prisma.SortOrder;
473
+ tenantId?: Prisma.SortOrder;
444
474
  phaseId?: Prisma.SortOrder;
445
475
  currentStepId?: Prisma.SortOrder;
446
476
  approvedDocumentsCount?: Prisma.SortOrder;
@@ -463,6 +493,7 @@ export type DocumentationPhaseAvgOrderByAggregateInput = {
463
493
  };
464
494
  export type DocumentationPhaseMaxOrderByAggregateInput = {
465
495
  id?: Prisma.SortOrder;
496
+ tenantId?: Prisma.SortOrder;
466
497
  phaseId?: Prisma.SortOrder;
467
498
  currentStepId?: Prisma.SortOrder;
468
499
  approvedDocumentsCount?: Prisma.SortOrder;
@@ -476,6 +507,7 @@ export type DocumentationPhaseMaxOrderByAggregateInput = {
476
507
  };
477
508
  export type DocumentationPhaseMinOrderByAggregateInput = {
478
509
  id?: Prisma.SortOrder;
510
+ tenantId?: Prisma.SortOrder;
479
511
  phaseId?: Prisma.SortOrder;
480
512
  currentStepId?: Prisma.SortOrder;
481
513
  approvedDocumentsCount?: Prisma.SortOrder;
@@ -498,13 +530,43 @@ export type DocumentationPhaseScalarRelationFilter = {
498
530
  is?: Prisma.DocumentationPhaseWhereInput;
499
531
  isNot?: Prisma.DocumentationPhaseWhereInput;
500
532
  };
501
- export type DocumentationPhaseListRelationFilter = {
502
- every?: Prisma.DocumentationPhaseWhereInput;
503
- some?: Prisma.DocumentationPhaseWhereInput;
504
- none?: Prisma.DocumentationPhaseWhereInput;
533
+ export type DocumentationPhaseCreateNestedManyWithoutTenantInput = {
534
+ create?: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutTenantInput, Prisma.DocumentationPhaseUncheckedCreateWithoutTenantInput> | Prisma.DocumentationPhaseCreateWithoutTenantInput[] | Prisma.DocumentationPhaseUncheckedCreateWithoutTenantInput[];
535
+ connectOrCreate?: Prisma.DocumentationPhaseCreateOrConnectWithoutTenantInput | Prisma.DocumentationPhaseCreateOrConnectWithoutTenantInput[];
536
+ createMany?: Prisma.DocumentationPhaseCreateManyTenantInputEnvelope;
537
+ connect?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
505
538
  };
506
- export type DocumentationPhaseOrderByRelationAggregateInput = {
507
- _count?: Prisma.SortOrder;
539
+ export type DocumentationPhaseUncheckedCreateNestedManyWithoutTenantInput = {
540
+ create?: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutTenantInput, Prisma.DocumentationPhaseUncheckedCreateWithoutTenantInput> | Prisma.DocumentationPhaseCreateWithoutTenantInput[] | Prisma.DocumentationPhaseUncheckedCreateWithoutTenantInput[];
541
+ connectOrCreate?: Prisma.DocumentationPhaseCreateOrConnectWithoutTenantInput | Prisma.DocumentationPhaseCreateOrConnectWithoutTenantInput[];
542
+ createMany?: Prisma.DocumentationPhaseCreateManyTenantInputEnvelope;
543
+ connect?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
544
+ };
545
+ export type DocumentationPhaseUpdateManyWithoutTenantNestedInput = {
546
+ create?: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutTenantInput, Prisma.DocumentationPhaseUncheckedCreateWithoutTenantInput> | Prisma.DocumentationPhaseCreateWithoutTenantInput[] | Prisma.DocumentationPhaseUncheckedCreateWithoutTenantInput[];
547
+ connectOrCreate?: Prisma.DocumentationPhaseCreateOrConnectWithoutTenantInput | Prisma.DocumentationPhaseCreateOrConnectWithoutTenantInput[];
548
+ upsert?: Prisma.DocumentationPhaseUpsertWithWhereUniqueWithoutTenantInput | Prisma.DocumentationPhaseUpsertWithWhereUniqueWithoutTenantInput[];
549
+ createMany?: Prisma.DocumentationPhaseCreateManyTenantInputEnvelope;
550
+ set?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
551
+ disconnect?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
552
+ delete?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
553
+ connect?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
554
+ update?: Prisma.DocumentationPhaseUpdateWithWhereUniqueWithoutTenantInput | Prisma.DocumentationPhaseUpdateWithWhereUniqueWithoutTenantInput[];
555
+ updateMany?: Prisma.DocumentationPhaseUpdateManyWithWhereWithoutTenantInput | Prisma.DocumentationPhaseUpdateManyWithWhereWithoutTenantInput[];
556
+ deleteMany?: Prisma.DocumentationPhaseScalarWhereInput | Prisma.DocumentationPhaseScalarWhereInput[];
557
+ };
558
+ export type DocumentationPhaseUncheckedUpdateManyWithoutTenantNestedInput = {
559
+ create?: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutTenantInput, Prisma.DocumentationPhaseUncheckedCreateWithoutTenantInput> | Prisma.DocumentationPhaseCreateWithoutTenantInput[] | Prisma.DocumentationPhaseUncheckedCreateWithoutTenantInput[];
560
+ connectOrCreate?: Prisma.DocumentationPhaseCreateOrConnectWithoutTenantInput | Prisma.DocumentationPhaseCreateOrConnectWithoutTenantInput[];
561
+ upsert?: Prisma.DocumentationPhaseUpsertWithWhereUniqueWithoutTenantInput | Prisma.DocumentationPhaseUpsertWithWhereUniqueWithoutTenantInput[];
562
+ createMany?: Prisma.DocumentationPhaseCreateManyTenantInputEnvelope;
563
+ set?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
564
+ disconnect?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
565
+ delete?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
566
+ connect?: Prisma.DocumentationPhaseWhereUniqueInput | Prisma.DocumentationPhaseWhereUniqueInput[];
567
+ update?: Prisma.DocumentationPhaseUpdateWithWhereUniqueWithoutTenantInput | Prisma.DocumentationPhaseUpdateWithWhereUniqueWithoutTenantInput[];
568
+ updateMany?: Prisma.DocumentationPhaseUpdateManyWithWhereWithoutTenantInput | Prisma.DocumentationPhaseUpdateManyWithWhereWithoutTenantInput[];
569
+ deleteMany?: Prisma.DocumentationPhaseScalarWhereInput | Prisma.DocumentationPhaseScalarWhereInput[];
508
570
  };
509
571
  export type DocumentationPhaseCreateNestedOneWithoutPhaseInput = {
510
572
  create?: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutPhaseInput, Prisma.DocumentationPhaseUncheckedCreateWithoutPhaseInput>;
@@ -584,6 +646,78 @@ export type DocumentationPhaseUncheckedUpdateManyWithoutCurrentStepNestedInput =
584
646
  updateMany?: Prisma.DocumentationPhaseUpdateManyWithWhereWithoutCurrentStepInput | Prisma.DocumentationPhaseUpdateManyWithWhereWithoutCurrentStepInput[];
585
647
  deleteMany?: Prisma.DocumentationPhaseScalarWhereInput | Prisma.DocumentationPhaseScalarWhereInput[];
586
648
  };
649
+ export type DocumentationPhaseCreateWithoutTenantInput = {
650
+ id?: string;
651
+ approvedDocumentsCount?: number;
652
+ requiredDocumentsCount?: number;
653
+ completedStepsCount?: number;
654
+ totalStepsCount?: number;
655
+ minimumCompletionPercentage?: number | null;
656
+ completionCriterion?: $Enums.CompletionCriterion | null;
657
+ stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
658
+ requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
659
+ createdAt?: Date | string;
660
+ updatedAt?: Date | string;
661
+ phase: Prisma.ApplicationPhaseCreateNestedOneWithoutDocumentationPhaseInput;
662
+ currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
663
+ steps?: Prisma.DocumentationStepCreateNestedManyWithoutDocumentationPhaseInput;
664
+ };
665
+ export type DocumentationPhaseUncheckedCreateWithoutTenantInput = {
666
+ id?: string;
667
+ phaseId: string;
668
+ currentStepId?: string | null;
669
+ approvedDocumentsCount?: number;
670
+ requiredDocumentsCount?: number;
671
+ completedStepsCount?: number;
672
+ totalStepsCount?: number;
673
+ minimumCompletionPercentage?: number | null;
674
+ completionCriterion?: $Enums.CompletionCriterion | null;
675
+ stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
676
+ requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
677
+ createdAt?: Date | string;
678
+ updatedAt?: Date | string;
679
+ steps?: Prisma.DocumentationStepUncheckedCreateNestedManyWithoutDocumentationPhaseInput;
680
+ };
681
+ export type DocumentationPhaseCreateOrConnectWithoutTenantInput = {
682
+ where: Prisma.DocumentationPhaseWhereUniqueInput;
683
+ create: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutTenantInput, Prisma.DocumentationPhaseUncheckedCreateWithoutTenantInput>;
684
+ };
685
+ export type DocumentationPhaseCreateManyTenantInputEnvelope = {
686
+ data: Prisma.DocumentationPhaseCreateManyTenantInput | Prisma.DocumentationPhaseCreateManyTenantInput[];
687
+ skipDuplicates?: boolean;
688
+ };
689
+ export type DocumentationPhaseUpsertWithWhereUniqueWithoutTenantInput = {
690
+ where: Prisma.DocumentationPhaseWhereUniqueInput;
691
+ update: Prisma.XOR<Prisma.DocumentationPhaseUpdateWithoutTenantInput, Prisma.DocumentationPhaseUncheckedUpdateWithoutTenantInput>;
692
+ create: Prisma.XOR<Prisma.DocumentationPhaseCreateWithoutTenantInput, Prisma.DocumentationPhaseUncheckedCreateWithoutTenantInput>;
693
+ };
694
+ export type DocumentationPhaseUpdateWithWhereUniqueWithoutTenantInput = {
695
+ where: Prisma.DocumentationPhaseWhereUniqueInput;
696
+ data: Prisma.XOR<Prisma.DocumentationPhaseUpdateWithoutTenantInput, Prisma.DocumentationPhaseUncheckedUpdateWithoutTenantInput>;
697
+ };
698
+ export type DocumentationPhaseUpdateManyWithWhereWithoutTenantInput = {
699
+ where: Prisma.DocumentationPhaseScalarWhereInput;
700
+ data: Prisma.XOR<Prisma.DocumentationPhaseUpdateManyMutationInput, Prisma.DocumentationPhaseUncheckedUpdateManyWithoutTenantInput>;
701
+ };
702
+ export type DocumentationPhaseScalarWhereInput = {
703
+ AND?: Prisma.DocumentationPhaseScalarWhereInput | Prisma.DocumentationPhaseScalarWhereInput[];
704
+ OR?: Prisma.DocumentationPhaseScalarWhereInput[];
705
+ NOT?: Prisma.DocumentationPhaseScalarWhereInput | Prisma.DocumentationPhaseScalarWhereInput[];
706
+ id?: Prisma.StringFilter<"DocumentationPhase"> | string;
707
+ tenantId?: Prisma.StringFilter<"DocumentationPhase"> | string;
708
+ phaseId?: Prisma.StringFilter<"DocumentationPhase"> | string;
709
+ currentStepId?: Prisma.StringNullableFilter<"DocumentationPhase"> | string | null;
710
+ approvedDocumentsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
711
+ requiredDocumentsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
712
+ completedStepsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
713
+ totalStepsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
714
+ minimumCompletionPercentage?: Prisma.FloatNullableFilter<"DocumentationPhase"> | number | null;
715
+ completionCriterion?: Prisma.EnumCompletionCriterionNullableFilter<"DocumentationPhase"> | $Enums.CompletionCriterion | null;
716
+ stepDefinitionsSnapshot?: Prisma.JsonNullableFilter<"DocumentationPhase">;
717
+ requiredDocumentSnapshot?: Prisma.JsonNullableFilter<"DocumentationPhase">;
718
+ createdAt?: Prisma.DateTimeFilter<"DocumentationPhase"> | Date | string;
719
+ updatedAt?: Prisma.DateTimeFilter<"DocumentationPhase"> | Date | string;
720
+ };
587
721
  export type DocumentationPhaseCreateWithoutPhaseInput = {
588
722
  id?: string;
589
723
  approvedDocumentsCount?: number;
@@ -596,11 +730,13 @@ export type DocumentationPhaseCreateWithoutPhaseInput = {
596
730
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
597
731
  createdAt?: Date | string;
598
732
  updatedAt?: Date | string;
733
+ tenant: Prisma.TenantCreateNestedOneWithoutDocumentationPhasesInput;
599
734
  currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
600
735
  steps?: Prisma.DocumentationStepCreateNestedManyWithoutDocumentationPhaseInput;
601
736
  };
602
737
  export type DocumentationPhaseUncheckedCreateWithoutPhaseInput = {
603
738
  id?: string;
739
+ tenantId: string;
604
740
  currentStepId?: string | null;
605
741
  approvedDocumentsCount?: number;
606
742
  requiredDocumentsCount?: number;
@@ -639,11 +775,13 @@ export type DocumentationPhaseUpdateWithoutPhaseInput = {
639
775
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
640
776
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
641
777
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
778
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentationPhasesNestedInput;
642
779
  currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
643
780
  steps?: Prisma.DocumentationStepUpdateManyWithoutDocumentationPhaseNestedInput;
644
781
  };
645
782
  export type DocumentationPhaseUncheckedUpdateWithoutPhaseInput = {
646
783
  id?: Prisma.StringFieldUpdateOperationsInput | string;
784
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
647
785
  currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
648
786
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
649
787
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
@@ -669,11 +807,13 @@ export type DocumentationPhaseCreateWithoutStepsInput = {
669
807
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
670
808
  createdAt?: Date | string;
671
809
  updatedAt?: Date | string;
810
+ tenant: Prisma.TenantCreateNestedOneWithoutDocumentationPhasesInput;
672
811
  phase: Prisma.ApplicationPhaseCreateNestedOneWithoutDocumentationPhaseInput;
673
812
  currentStep?: Prisma.DocumentationStepCreateNestedOneWithoutCurrentForPhaseInput;
674
813
  };
675
814
  export type DocumentationPhaseUncheckedCreateWithoutStepsInput = {
676
815
  id?: string;
816
+ tenantId: string;
677
817
  phaseId: string;
678
818
  currentStepId?: string | null;
679
819
  approvedDocumentsCount?: number;
@@ -703,11 +843,13 @@ export type DocumentationPhaseCreateWithoutCurrentStepInput = {
703
843
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
704
844
  createdAt?: Date | string;
705
845
  updatedAt?: Date | string;
846
+ tenant: Prisma.TenantCreateNestedOneWithoutDocumentationPhasesInput;
706
847
  phase: Prisma.ApplicationPhaseCreateNestedOneWithoutDocumentationPhaseInput;
707
848
  steps?: Prisma.DocumentationStepCreateNestedManyWithoutDocumentationPhaseInput;
708
849
  };
709
850
  export type DocumentationPhaseUncheckedCreateWithoutCurrentStepInput = {
710
851
  id?: string;
852
+ tenantId: string;
711
853
  phaseId: string;
712
854
  approvedDocumentsCount?: number;
713
855
  requiredDocumentsCount?: number;
@@ -750,11 +892,13 @@ export type DocumentationPhaseUpdateWithoutStepsInput = {
750
892
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
751
893
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
752
894
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
895
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentationPhasesNestedInput;
753
896
  phase?: Prisma.ApplicationPhaseUpdateOneRequiredWithoutDocumentationPhaseNestedInput;
754
897
  currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
755
898
  };
756
899
  export type DocumentationPhaseUncheckedUpdateWithoutStepsInput = {
757
900
  id?: Prisma.StringFieldUpdateOperationsInput | string;
901
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
758
902
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
759
903
  currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
760
904
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
@@ -781,26 +925,71 @@ export type DocumentationPhaseUpdateManyWithWhereWithoutCurrentStepInput = {
781
925
  where: Prisma.DocumentationPhaseScalarWhereInput;
782
926
  data: Prisma.XOR<Prisma.DocumentationPhaseUpdateManyMutationInput, Prisma.DocumentationPhaseUncheckedUpdateManyWithoutCurrentStepInput>;
783
927
  };
784
- export type DocumentationPhaseScalarWhereInput = {
785
- AND?: Prisma.DocumentationPhaseScalarWhereInput | Prisma.DocumentationPhaseScalarWhereInput[];
786
- OR?: Prisma.DocumentationPhaseScalarWhereInput[];
787
- NOT?: Prisma.DocumentationPhaseScalarWhereInput | Prisma.DocumentationPhaseScalarWhereInput[];
788
- id?: Prisma.StringFilter<"DocumentationPhase"> | string;
789
- phaseId?: Prisma.StringFilter<"DocumentationPhase"> | string;
790
- currentStepId?: Prisma.StringNullableFilter<"DocumentationPhase"> | string | null;
791
- approvedDocumentsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
792
- requiredDocumentsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
793
- completedStepsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
794
- totalStepsCount?: Prisma.IntFilter<"DocumentationPhase"> | number;
795
- minimumCompletionPercentage?: Prisma.FloatNullableFilter<"DocumentationPhase"> | number | null;
796
- completionCriterion?: Prisma.EnumCompletionCriterionNullableFilter<"DocumentationPhase"> | $Enums.CompletionCriterion | null;
797
- stepDefinitionsSnapshot?: Prisma.JsonNullableFilter<"DocumentationPhase">;
798
- requiredDocumentSnapshot?: Prisma.JsonNullableFilter<"DocumentationPhase">;
799
- createdAt?: Prisma.DateTimeFilter<"DocumentationPhase"> | Date | string;
800
- updatedAt?: Prisma.DateTimeFilter<"DocumentationPhase"> | Date | string;
928
+ export type DocumentationPhaseCreateManyTenantInput = {
929
+ id?: string;
930
+ phaseId: string;
931
+ currentStepId?: string | null;
932
+ approvedDocumentsCount?: number;
933
+ requiredDocumentsCount?: number;
934
+ completedStepsCount?: number;
935
+ totalStepsCount?: number;
936
+ minimumCompletionPercentage?: number | null;
937
+ completionCriterion?: $Enums.CompletionCriterion | null;
938
+ stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
939
+ requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
940
+ createdAt?: Date | string;
941
+ updatedAt?: Date | string;
942
+ };
943
+ export type DocumentationPhaseUpdateWithoutTenantInput = {
944
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
945
+ approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
946
+ requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
947
+ completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
948
+ totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
949
+ minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
950
+ completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
951
+ stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
952
+ requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
953
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
954
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
955
+ phase?: Prisma.ApplicationPhaseUpdateOneRequiredWithoutDocumentationPhaseNestedInput;
956
+ currentStep?: Prisma.DocumentationStepUpdateOneWithoutCurrentForPhaseNestedInput;
957
+ steps?: Prisma.DocumentationStepUpdateManyWithoutDocumentationPhaseNestedInput;
958
+ };
959
+ export type DocumentationPhaseUncheckedUpdateWithoutTenantInput = {
960
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
961
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
962
+ currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
963
+ approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
964
+ requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
965
+ completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
966
+ totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
967
+ minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
968
+ completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
969
+ stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
970
+ requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
971
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
972
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
973
+ steps?: Prisma.DocumentationStepUncheckedUpdateManyWithoutDocumentationPhaseNestedInput;
974
+ };
975
+ export type DocumentationPhaseUncheckedUpdateManyWithoutTenantInput = {
976
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
977
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
978
+ currentStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
979
+ approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
980
+ requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
981
+ completedStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
982
+ totalStepsCount?: Prisma.IntFieldUpdateOperationsInput | number;
983
+ minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
984
+ completionCriterion?: Prisma.NullableEnumCompletionCriterionFieldUpdateOperationsInput | $Enums.CompletionCriterion | null;
985
+ stepDefinitionsSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
986
+ requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
987
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
988
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
801
989
  };
802
990
  export type DocumentationPhaseCreateManyCurrentStepInput = {
803
991
  id?: string;
992
+ tenantId: string;
804
993
  phaseId: string;
805
994
  approvedDocumentsCount?: number;
806
995
  requiredDocumentsCount?: number;
@@ -825,11 +1014,13 @@ export type DocumentationPhaseUpdateWithoutCurrentStepInput = {
825
1014
  requiredDocumentSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
826
1015
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
827
1016
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1017
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentationPhasesNestedInput;
828
1018
  phase?: Prisma.ApplicationPhaseUpdateOneRequiredWithoutDocumentationPhaseNestedInput;
829
1019
  steps?: Prisma.DocumentationStepUpdateManyWithoutDocumentationPhaseNestedInput;
830
1020
  };
831
1021
  export type DocumentationPhaseUncheckedUpdateWithoutCurrentStepInput = {
832
1022
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1023
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
833
1024
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
834
1025
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
835
1026
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
@@ -845,6 +1036,7 @@ export type DocumentationPhaseUncheckedUpdateWithoutCurrentStepInput = {
845
1036
  };
846
1037
  export type DocumentationPhaseUncheckedUpdateManyWithoutCurrentStepInput = {
847
1038
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1039
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
848
1040
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
849
1041
  approvedDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
850
1042
  requiredDocumentsCount?: Prisma.IntFieldUpdateOperationsInput | number;
@@ -883,6 +1075,7 @@ export type DocumentationPhaseCountOutputTypeCountStepsArgs<ExtArgs extends runt
883
1075
  };
884
1076
  export type DocumentationPhaseSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
885
1077
  id?: boolean;
1078
+ tenantId?: boolean;
886
1079
  phaseId?: boolean;
887
1080
  currentStepId?: boolean;
888
1081
  approvedDocumentsCount?: boolean;
@@ -895,6 +1088,7 @@ export type DocumentationPhaseSelect<ExtArgs extends runtime.Types.Extensions.In
895
1088
  requiredDocumentSnapshot?: boolean;
896
1089
  createdAt?: boolean;
897
1090
  updatedAt?: boolean;
1091
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
898
1092
  phase?: boolean | Prisma.ApplicationPhaseDefaultArgs<ExtArgs>;
899
1093
  currentStep?: boolean | Prisma.DocumentationPhase$currentStepArgs<ExtArgs>;
900
1094
  steps?: boolean | Prisma.DocumentationPhase$stepsArgs<ExtArgs>;
@@ -902,6 +1096,7 @@ export type DocumentationPhaseSelect<ExtArgs extends runtime.Types.Extensions.In
902
1096
  }, ExtArgs["result"]["documentationPhase"]>;
903
1097
  export type DocumentationPhaseSelectScalar = {
904
1098
  id?: boolean;
1099
+ tenantId?: boolean;
905
1100
  phaseId?: boolean;
906
1101
  currentStepId?: boolean;
907
1102
  approvedDocumentsCount?: boolean;
@@ -915,8 +1110,9 @@ export type DocumentationPhaseSelectScalar = {
915
1110
  createdAt?: boolean;
916
1111
  updatedAt?: boolean;
917
1112
  };
918
- export type DocumentationPhaseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "phaseId" | "currentStepId" | "approvedDocumentsCount" | "requiredDocumentsCount" | "completedStepsCount" | "totalStepsCount" | "minimumCompletionPercentage" | "completionCriterion" | "stepDefinitionsSnapshot" | "requiredDocumentSnapshot" | "createdAt" | "updatedAt", ExtArgs["result"]["documentationPhase"]>;
1113
+ export type DocumentationPhaseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "phaseId" | "currentStepId" | "approvedDocumentsCount" | "requiredDocumentsCount" | "completedStepsCount" | "totalStepsCount" | "minimumCompletionPercentage" | "completionCriterion" | "stepDefinitionsSnapshot" | "requiredDocumentSnapshot" | "createdAt" | "updatedAt", ExtArgs["result"]["documentationPhase"]>;
919
1114
  export type DocumentationPhaseInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1115
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
920
1116
  phase?: boolean | Prisma.ApplicationPhaseDefaultArgs<ExtArgs>;
921
1117
  currentStep?: boolean | Prisma.DocumentationPhase$currentStepArgs<ExtArgs>;
922
1118
  steps?: boolean | Prisma.DocumentationPhase$stepsArgs<ExtArgs>;
@@ -925,12 +1121,14 @@ export type DocumentationPhaseInclude<ExtArgs extends runtime.Types.Extensions.I
925
1121
  export type $DocumentationPhasePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
926
1122
  name: "DocumentationPhase";
927
1123
  objects: {
1124
+ tenant: Prisma.$TenantPayload<ExtArgs>;
928
1125
  phase: Prisma.$ApplicationPhasePayload<ExtArgs>;
929
1126
  currentStep: Prisma.$DocumentationStepPayload<ExtArgs> | null;
930
1127
  steps: Prisma.$DocumentationStepPayload<ExtArgs>[];
931
1128
  };
932
1129
  scalars: runtime.Types.Extensions.GetPayloadResult<{
933
1130
  id: string;
1131
+ tenantId: string;
934
1132
  phaseId: string;
935
1133
  currentStepId: string | null;
936
1134
  approvedDocumentsCount: number;
@@ -1220,6 +1418,7 @@ export interface DocumentationPhaseDelegate<ExtArgs extends runtime.Types.Extens
1220
1418
  */
1221
1419
  export interface Prisma__DocumentationPhaseClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1222
1420
  readonly [Symbol.toStringTag]: "PrismaPromise";
1421
+ tenant<T extends Prisma.TenantDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TenantDefaultArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1223
1422
  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>;
1224
1423
  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>;
1225
1424
  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>;
@@ -1249,6 +1448,7 @@ export interface Prisma__DocumentationPhaseClient<T, Null = never, ExtArgs exten
1249
1448
  */
1250
1449
  export interface DocumentationPhaseFieldRefs {
1251
1450
  readonly id: Prisma.FieldRef<"DocumentationPhase", 'String'>;
1451
+ readonly tenantId: Prisma.FieldRef<"DocumentationPhase", 'String'>;
1252
1452
  readonly phaseId: Prisma.FieldRef<"DocumentationPhase", 'String'>;
1253
1453
  readonly currentStepId: Prisma.FieldRef<"DocumentationPhase", 'String'>;
1254
1454
  readonly approvedDocumentsCount: Prisma.FieldRef<"DocumentationPhase", 'Int'>;