@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
@@ -21,6 +21,7 @@ export type ApplicationPhaseSumAggregateOutputType = {
21
21
  };
22
22
  export type ApplicationPhaseMinAggregateOutputType = {
23
23
  id: string | null;
24
+ tenantId: string | null;
24
25
  applicationId: string | null;
25
26
  name: string | null;
26
27
  description: string | null;
@@ -39,6 +40,7 @@ export type ApplicationPhaseMinAggregateOutputType = {
39
40
  };
40
41
  export type ApplicationPhaseMaxAggregateOutputType = {
41
42
  id: string | null;
43
+ tenantId: string | null;
42
44
  applicationId: string | null;
43
45
  name: string | null;
44
46
  description: string | null;
@@ -57,6 +59,7 @@ export type ApplicationPhaseMaxAggregateOutputType = {
57
59
  };
58
60
  export type ApplicationPhaseCountAggregateOutputType = {
59
61
  id: number;
62
+ tenantId: number;
60
63
  applicationId: number;
61
64
  name: number;
62
65
  description: number;
@@ -82,6 +85,7 @@ export type ApplicationPhaseSumAggregateInputType = {
82
85
  };
83
86
  export type ApplicationPhaseMinAggregateInputType = {
84
87
  id?: true;
88
+ tenantId?: true;
85
89
  applicationId?: true;
86
90
  name?: true;
87
91
  description?: true;
@@ -100,6 +104,7 @@ export type ApplicationPhaseMinAggregateInputType = {
100
104
  };
101
105
  export type ApplicationPhaseMaxAggregateInputType = {
102
106
  id?: true;
107
+ tenantId?: true;
103
108
  applicationId?: true;
104
109
  name?: true;
105
110
  description?: true;
@@ -118,6 +123,7 @@ export type ApplicationPhaseMaxAggregateInputType = {
118
123
  };
119
124
  export type ApplicationPhaseCountAggregateInputType = {
120
125
  id?: true;
126
+ tenantId?: true;
121
127
  applicationId?: true;
122
128
  name?: true;
123
129
  description?: true;
@@ -213,6 +219,7 @@ export type ApplicationPhaseGroupByArgs<ExtArgs extends runtime.Types.Extensions
213
219
  };
214
220
  export type ApplicationPhaseGroupByOutputType = {
215
221
  id: string;
222
+ tenantId: string;
216
223
  applicationId: string;
217
224
  name: string;
218
225
  description: string | null;
@@ -242,6 +249,7 @@ export type ApplicationPhaseWhereInput = {
242
249
  OR?: Prisma.ApplicationPhaseWhereInput[];
243
250
  NOT?: Prisma.ApplicationPhaseWhereInput | Prisma.ApplicationPhaseWhereInput[];
244
251
  id?: Prisma.StringFilter<"ApplicationPhase"> | string;
252
+ tenantId?: Prisma.StringFilter<"ApplicationPhase"> | string;
245
253
  applicationId?: Prisma.StringFilter<"ApplicationPhase"> | string;
246
254
  name?: Prisma.StringFilter<"ApplicationPhase"> | string;
247
255
  description?: Prisma.StringNullableFilter<"ApplicationPhase"> | string | null;
@@ -257,6 +265,7 @@ export type ApplicationPhaseWhereInput = {
257
265
  requiresPreviousPhaseCompletion?: Prisma.BoolFilter<"ApplicationPhase"> | boolean;
258
266
  createdAt?: Prisma.DateTimeFilter<"ApplicationPhase"> | Date | string;
259
267
  updatedAt?: Prisma.DateTimeFilter<"ApplicationPhase"> | Date | string;
268
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
260
269
  application?: Prisma.XOR<Prisma.ApplicationScalarRelationFilter, Prisma.ApplicationWhereInput>;
261
270
  questionnairePhase?: Prisma.XOR<Prisma.QuestionnairePhaseNullableScalarRelationFilter, Prisma.QuestionnairePhaseWhereInput> | null;
262
271
  documentationPhase?: Prisma.XOR<Prisma.DocumentationPhaseNullableScalarRelationFilter, Prisma.DocumentationPhaseWhereInput> | null;
@@ -266,6 +275,7 @@ export type ApplicationPhaseWhereInput = {
266
275
  };
267
276
  export type ApplicationPhaseOrderByWithRelationInput = {
268
277
  id?: Prisma.SortOrder;
278
+ tenantId?: Prisma.SortOrder;
269
279
  applicationId?: Prisma.SortOrder;
270
280
  name?: Prisma.SortOrder;
271
281
  description?: Prisma.SortOrderInput | Prisma.SortOrder;
@@ -281,6 +291,7 @@ export type ApplicationPhaseOrderByWithRelationInput = {
281
291
  requiresPreviousPhaseCompletion?: Prisma.SortOrder;
282
292
  createdAt?: Prisma.SortOrder;
283
293
  updatedAt?: Prisma.SortOrder;
294
+ tenant?: Prisma.TenantOrderByWithRelationInput;
284
295
  application?: Prisma.ApplicationOrderByWithRelationInput;
285
296
  questionnairePhase?: Prisma.QuestionnairePhaseOrderByWithRelationInput;
286
297
  documentationPhase?: Prisma.DocumentationPhaseOrderByWithRelationInput;
@@ -294,6 +305,7 @@ export type ApplicationPhaseWhereUniqueInput = Prisma.AtLeast<{
294
305
  AND?: Prisma.ApplicationPhaseWhereInput | Prisma.ApplicationPhaseWhereInput[];
295
306
  OR?: Prisma.ApplicationPhaseWhereInput[];
296
307
  NOT?: Prisma.ApplicationPhaseWhereInput | Prisma.ApplicationPhaseWhereInput[];
308
+ tenantId?: Prisma.StringFilter<"ApplicationPhase"> | string;
297
309
  applicationId?: Prisma.StringFilter<"ApplicationPhase"> | string;
298
310
  name?: Prisma.StringFilter<"ApplicationPhase"> | string;
299
311
  description?: Prisma.StringNullableFilter<"ApplicationPhase"> | string | null;
@@ -309,6 +321,7 @@ export type ApplicationPhaseWhereUniqueInput = Prisma.AtLeast<{
309
321
  requiresPreviousPhaseCompletion?: Prisma.BoolFilter<"ApplicationPhase"> | boolean;
310
322
  createdAt?: Prisma.DateTimeFilter<"ApplicationPhase"> | Date | string;
311
323
  updatedAt?: Prisma.DateTimeFilter<"ApplicationPhase"> | Date | string;
324
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
312
325
  application?: Prisma.XOR<Prisma.ApplicationScalarRelationFilter, Prisma.ApplicationWhereInput>;
313
326
  questionnairePhase?: Prisma.XOR<Prisma.QuestionnairePhaseNullableScalarRelationFilter, Prisma.QuestionnairePhaseWhereInput> | null;
314
327
  documentationPhase?: Prisma.XOR<Prisma.DocumentationPhaseNullableScalarRelationFilter, Prisma.DocumentationPhaseWhereInput> | null;
@@ -318,6 +331,7 @@ export type ApplicationPhaseWhereUniqueInput = Prisma.AtLeast<{
318
331
  }, "id">;
319
332
  export type ApplicationPhaseOrderByWithAggregationInput = {
320
333
  id?: Prisma.SortOrder;
334
+ tenantId?: Prisma.SortOrder;
321
335
  applicationId?: Prisma.SortOrder;
322
336
  name?: Prisma.SortOrder;
323
337
  description?: Prisma.SortOrderInput | Prisma.SortOrder;
@@ -344,6 +358,7 @@ export type ApplicationPhaseScalarWhereWithAggregatesInput = {
344
358
  OR?: Prisma.ApplicationPhaseScalarWhereWithAggregatesInput[];
345
359
  NOT?: Prisma.ApplicationPhaseScalarWhereWithAggregatesInput | Prisma.ApplicationPhaseScalarWhereWithAggregatesInput[];
346
360
  id?: Prisma.StringWithAggregatesFilter<"ApplicationPhase"> | string;
361
+ tenantId?: Prisma.StringWithAggregatesFilter<"ApplicationPhase"> | string;
347
362
  applicationId?: Prisma.StringWithAggregatesFilter<"ApplicationPhase"> | string;
348
363
  name?: Prisma.StringWithAggregatesFilter<"ApplicationPhase"> | string;
349
364
  description?: Prisma.StringNullableWithAggregatesFilter<"ApplicationPhase"> | string | null;
@@ -376,6 +391,7 @@ export type ApplicationPhaseCreateInput = {
376
391
  requiresPreviousPhaseCompletion?: boolean;
377
392
  createdAt?: Date | string;
378
393
  updatedAt?: Date | string;
394
+ tenant: Prisma.TenantCreateNestedOneWithoutApplicationPhasesInput;
379
395
  application: Prisma.ApplicationCreateNestedOneWithoutPhasesInput;
380
396
  questionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutPhaseInput;
381
397
  documentationPhase?: Prisma.DocumentationPhaseCreateNestedOneWithoutPhaseInput;
@@ -385,6 +401,7 @@ export type ApplicationPhaseCreateInput = {
385
401
  };
386
402
  export type ApplicationPhaseUncheckedCreateInput = {
387
403
  id?: string;
404
+ tenantId: string;
388
405
  applicationId: string;
389
406
  name: string;
390
407
  description?: string | null;
@@ -422,6 +439,7 @@ export type ApplicationPhaseUpdateInput = {
422
439
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
423
440
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
424
441
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
442
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationPhasesNestedInput;
425
443
  application?: Prisma.ApplicationUpdateOneRequiredWithoutPhasesNestedInput;
426
444
  questionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutPhaseNestedInput;
427
445
  documentationPhase?: Prisma.DocumentationPhaseUpdateOneWithoutPhaseNestedInput;
@@ -431,6 +449,7 @@ export type ApplicationPhaseUpdateInput = {
431
449
  };
432
450
  export type ApplicationPhaseUncheckedUpdateInput = {
433
451
  id?: Prisma.StringFieldUpdateOperationsInput | string;
452
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
434
453
  applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
435
454
  name?: Prisma.StringFieldUpdateOperationsInput | string;
436
455
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -454,6 +473,7 @@ export type ApplicationPhaseUncheckedUpdateInput = {
454
473
  };
455
474
  export type ApplicationPhaseCreateManyInput = {
456
475
  id?: string;
476
+ tenantId: string;
457
477
  applicationId: string;
458
478
  name: string;
459
479
  description?: string | null;
@@ -489,6 +509,7 @@ export type ApplicationPhaseUpdateManyMutationInput = {
489
509
  };
490
510
  export type ApplicationPhaseUncheckedUpdateManyInput = {
491
511
  id?: Prisma.StringFieldUpdateOperationsInput | string;
512
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
492
513
  applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
493
514
  name?: Prisma.StringFieldUpdateOperationsInput | string;
494
515
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -505,10 +526,6 @@ export type ApplicationPhaseUncheckedUpdateManyInput = {
505
526
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
506
527
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
507
528
  };
508
- export type ApplicationPhaseNullableScalarRelationFilter = {
509
- is?: Prisma.ApplicationPhaseWhereInput | null;
510
- isNot?: Prisma.ApplicationPhaseWhereInput | null;
511
- };
512
529
  export type ApplicationPhaseListRelationFilter = {
513
530
  every?: Prisma.ApplicationPhaseWhereInput;
514
531
  some?: Prisma.ApplicationPhaseWhereInput;
@@ -517,6 +534,10 @@ export type ApplicationPhaseListRelationFilter = {
517
534
  export type ApplicationPhaseOrderByRelationAggregateInput = {
518
535
  _count?: Prisma.SortOrder;
519
536
  };
537
+ export type ApplicationPhaseNullableScalarRelationFilter = {
538
+ is?: Prisma.ApplicationPhaseWhereInput | null;
539
+ isNot?: Prisma.ApplicationPhaseWhereInput | null;
540
+ };
520
541
  export type ApplicationPhaseOrderByRelevanceInput = {
521
542
  fields: Prisma.ApplicationPhaseOrderByRelevanceFieldEnum | Prisma.ApplicationPhaseOrderByRelevanceFieldEnum[];
522
543
  sort: Prisma.SortOrder;
@@ -524,6 +545,7 @@ export type ApplicationPhaseOrderByRelevanceInput = {
524
545
  };
525
546
  export type ApplicationPhaseCountOrderByAggregateInput = {
526
547
  id?: Prisma.SortOrder;
548
+ tenantId?: Prisma.SortOrder;
527
549
  applicationId?: Prisma.SortOrder;
528
550
  name?: Prisma.SortOrder;
529
551
  description?: Prisma.SortOrder;
@@ -545,6 +567,7 @@ export type ApplicationPhaseAvgOrderByAggregateInput = {
545
567
  };
546
568
  export type ApplicationPhaseMaxOrderByAggregateInput = {
547
569
  id?: Prisma.SortOrder;
570
+ tenantId?: Prisma.SortOrder;
548
571
  applicationId?: Prisma.SortOrder;
549
572
  name?: Prisma.SortOrder;
550
573
  description?: Prisma.SortOrder;
@@ -563,6 +586,7 @@ export type ApplicationPhaseMaxOrderByAggregateInput = {
563
586
  };
564
587
  export type ApplicationPhaseMinOrderByAggregateInput = {
565
588
  id?: Prisma.SortOrder;
589
+ tenantId?: Prisma.SortOrder;
566
590
  applicationId?: Prisma.SortOrder;
567
591
  name?: Prisma.SortOrder;
568
592
  description?: Prisma.SortOrder;
@@ -586,6 +610,44 @@ export type ApplicationPhaseScalarRelationFilter = {
586
610
  is?: Prisma.ApplicationPhaseWhereInput;
587
611
  isNot?: Prisma.ApplicationPhaseWhereInput;
588
612
  };
613
+ export type ApplicationPhaseCreateNestedManyWithoutTenantInput = {
614
+ create?: Prisma.XOR<Prisma.ApplicationPhaseCreateWithoutTenantInput, Prisma.ApplicationPhaseUncheckedCreateWithoutTenantInput> | Prisma.ApplicationPhaseCreateWithoutTenantInput[] | Prisma.ApplicationPhaseUncheckedCreateWithoutTenantInput[];
615
+ connectOrCreate?: Prisma.ApplicationPhaseCreateOrConnectWithoutTenantInput | Prisma.ApplicationPhaseCreateOrConnectWithoutTenantInput[];
616
+ createMany?: Prisma.ApplicationPhaseCreateManyTenantInputEnvelope;
617
+ connect?: Prisma.ApplicationPhaseWhereUniqueInput | Prisma.ApplicationPhaseWhereUniqueInput[];
618
+ };
619
+ export type ApplicationPhaseUncheckedCreateNestedManyWithoutTenantInput = {
620
+ create?: Prisma.XOR<Prisma.ApplicationPhaseCreateWithoutTenantInput, Prisma.ApplicationPhaseUncheckedCreateWithoutTenantInput> | Prisma.ApplicationPhaseCreateWithoutTenantInput[] | Prisma.ApplicationPhaseUncheckedCreateWithoutTenantInput[];
621
+ connectOrCreate?: Prisma.ApplicationPhaseCreateOrConnectWithoutTenantInput | Prisma.ApplicationPhaseCreateOrConnectWithoutTenantInput[];
622
+ createMany?: Prisma.ApplicationPhaseCreateManyTenantInputEnvelope;
623
+ connect?: Prisma.ApplicationPhaseWhereUniqueInput | Prisma.ApplicationPhaseWhereUniqueInput[];
624
+ };
625
+ export type ApplicationPhaseUpdateManyWithoutTenantNestedInput = {
626
+ create?: Prisma.XOR<Prisma.ApplicationPhaseCreateWithoutTenantInput, Prisma.ApplicationPhaseUncheckedCreateWithoutTenantInput> | Prisma.ApplicationPhaseCreateWithoutTenantInput[] | Prisma.ApplicationPhaseUncheckedCreateWithoutTenantInput[];
627
+ connectOrCreate?: Prisma.ApplicationPhaseCreateOrConnectWithoutTenantInput | Prisma.ApplicationPhaseCreateOrConnectWithoutTenantInput[];
628
+ upsert?: Prisma.ApplicationPhaseUpsertWithWhereUniqueWithoutTenantInput | Prisma.ApplicationPhaseUpsertWithWhereUniqueWithoutTenantInput[];
629
+ createMany?: Prisma.ApplicationPhaseCreateManyTenantInputEnvelope;
630
+ set?: Prisma.ApplicationPhaseWhereUniqueInput | Prisma.ApplicationPhaseWhereUniqueInput[];
631
+ disconnect?: Prisma.ApplicationPhaseWhereUniqueInput | Prisma.ApplicationPhaseWhereUniqueInput[];
632
+ delete?: Prisma.ApplicationPhaseWhereUniqueInput | Prisma.ApplicationPhaseWhereUniqueInput[];
633
+ connect?: Prisma.ApplicationPhaseWhereUniqueInput | Prisma.ApplicationPhaseWhereUniqueInput[];
634
+ update?: Prisma.ApplicationPhaseUpdateWithWhereUniqueWithoutTenantInput | Prisma.ApplicationPhaseUpdateWithWhereUniqueWithoutTenantInput[];
635
+ updateMany?: Prisma.ApplicationPhaseUpdateManyWithWhereWithoutTenantInput | Prisma.ApplicationPhaseUpdateManyWithWhereWithoutTenantInput[];
636
+ deleteMany?: Prisma.ApplicationPhaseScalarWhereInput | Prisma.ApplicationPhaseScalarWhereInput[];
637
+ };
638
+ export type ApplicationPhaseUncheckedUpdateManyWithoutTenantNestedInput = {
639
+ create?: Prisma.XOR<Prisma.ApplicationPhaseCreateWithoutTenantInput, Prisma.ApplicationPhaseUncheckedCreateWithoutTenantInput> | Prisma.ApplicationPhaseCreateWithoutTenantInput[] | Prisma.ApplicationPhaseUncheckedCreateWithoutTenantInput[];
640
+ connectOrCreate?: Prisma.ApplicationPhaseCreateOrConnectWithoutTenantInput | Prisma.ApplicationPhaseCreateOrConnectWithoutTenantInput[];
641
+ upsert?: Prisma.ApplicationPhaseUpsertWithWhereUniqueWithoutTenantInput | Prisma.ApplicationPhaseUpsertWithWhereUniqueWithoutTenantInput[];
642
+ createMany?: Prisma.ApplicationPhaseCreateManyTenantInputEnvelope;
643
+ set?: Prisma.ApplicationPhaseWhereUniqueInput | Prisma.ApplicationPhaseWhereUniqueInput[];
644
+ disconnect?: Prisma.ApplicationPhaseWhereUniqueInput | Prisma.ApplicationPhaseWhereUniqueInput[];
645
+ delete?: Prisma.ApplicationPhaseWhereUniqueInput | Prisma.ApplicationPhaseWhereUniqueInput[];
646
+ connect?: Prisma.ApplicationPhaseWhereUniqueInput | Prisma.ApplicationPhaseWhereUniqueInput[];
647
+ update?: Prisma.ApplicationPhaseUpdateWithWhereUniqueWithoutTenantInput | Prisma.ApplicationPhaseUpdateWithWhereUniqueWithoutTenantInput[];
648
+ updateMany?: Prisma.ApplicationPhaseUpdateManyWithWhereWithoutTenantInput | Prisma.ApplicationPhaseUpdateManyWithWhereWithoutTenantInput[];
649
+ deleteMany?: Prisma.ApplicationPhaseScalarWhereInput | Prisma.ApplicationPhaseScalarWhereInput[];
650
+ };
589
651
  export type ApplicationPhaseCreateNestedOneWithoutCurrentForApplicationsInput = {
590
652
  create?: Prisma.XOR<Prisma.ApplicationPhaseCreateWithoutCurrentForApplicationsInput, Prisma.ApplicationPhaseUncheckedCreateWithoutCurrentForApplicationsInput>;
591
653
  connectOrCreate?: Prisma.ApplicationPhaseCreateOrConnectWithoutCurrentForApplicationsInput;
@@ -691,6 +753,95 @@ export type ApplicationPhaseUpdateOneWithoutPaymentsNestedInput = {
691
753
  connect?: Prisma.ApplicationPhaseWhereUniqueInput;
692
754
  update?: Prisma.XOR<Prisma.XOR<Prisma.ApplicationPhaseUpdateToOneWithWhereWithoutPaymentsInput, Prisma.ApplicationPhaseUpdateWithoutPaymentsInput>, Prisma.ApplicationPhaseUncheckedUpdateWithoutPaymentsInput>;
693
755
  };
756
+ export type ApplicationPhaseCreateWithoutTenantInput = {
757
+ id?: string;
758
+ name: string;
759
+ description?: string | null;
760
+ phaseCategory: $Enums.PhaseCategory;
761
+ phaseType: $Enums.PhaseType;
762
+ order: number;
763
+ status?: $Enums.PhaseStatus;
764
+ dueDate?: Date | string | null;
765
+ startDate?: Date | string | null;
766
+ endDate?: Date | string | null;
767
+ activatedAt?: Date | string | null;
768
+ completedAt?: Date | string | null;
769
+ requiresPreviousPhaseCompletion?: boolean;
770
+ createdAt?: Date | string;
771
+ updatedAt?: Date | string;
772
+ application: Prisma.ApplicationCreateNestedOneWithoutPhasesInput;
773
+ questionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutPhaseInput;
774
+ documentationPhase?: Prisma.DocumentationPhaseCreateNestedOneWithoutPhaseInput;
775
+ paymentPhase?: Prisma.PaymentPhaseCreateNestedOneWithoutPhaseInput;
776
+ payments?: Prisma.ApplicationPaymentCreateNestedManyWithoutPhaseInput;
777
+ currentForApplications?: Prisma.ApplicationCreateNestedManyWithoutCurrentPhaseInput;
778
+ };
779
+ export type ApplicationPhaseUncheckedCreateWithoutTenantInput = {
780
+ id?: string;
781
+ applicationId: string;
782
+ name: string;
783
+ description?: string | null;
784
+ phaseCategory: $Enums.PhaseCategory;
785
+ phaseType: $Enums.PhaseType;
786
+ order: number;
787
+ status?: $Enums.PhaseStatus;
788
+ dueDate?: Date | string | null;
789
+ startDate?: Date | string | null;
790
+ endDate?: Date | string | null;
791
+ activatedAt?: Date | string | null;
792
+ completedAt?: Date | string | null;
793
+ requiresPreviousPhaseCompletion?: boolean;
794
+ createdAt?: Date | string;
795
+ updatedAt?: Date | string;
796
+ questionnairePhase?: Prisma.QuestionnairePhaseUncheckedCreateNestedOneWithoutPhaseInput;
797
+ documentationPhase?: Prisma.DocumentationPhaseUncheckedCreateNestedOneWithoutPhaseInput;
798
+ paymentPhase?: Prisma.PaymentPhaseUncheckedCreateNestedOneWithoutPhaseInput;
799
+ payments?: Prisma.ApplicationPaymentUncheckedCreateNestedManyWithoutPhaseInput;
800
+ currentForApplications?: Prisma.ApplicationUncheckedCreateNestedManyWithoutCurrentPhaseInput;
801
+ };
802
+ export type ApplicationPhaseCreateOrConnectWithoutTenantInput = {
803
+ where: Prisma.ApplicationPhaseWhereUniqueInput;
804
+ create: Prisma.XOR<Prisma.ApplicationPhaseCreateWithoutTenantInput, Prisma.ApplicationPhaseUncheckedCreateWithoutTenantInput>;
805
+ };
806
+ export type ApplicationPhaseCreateManyTenantInputEnvelope = {
807
+ data: Prisma.ApplicationPhaseCreateManyTenantInput | Prisma.ApplicationPhaseCreateManyTenantInput[];
808
+ skipDuplicates?: boolean;
809
+ };
810
+ export type ApplicationPhaseUpsertWithWhereUniqueWithoutTenantInput = {
811
+ where: Prisma.ApplicationPhaseWhereUniqueInput;
812
+ update: Prisma.XOR<Prisma.ApplicationPhaseUpdateWithoutTenantInput, Prisma.ApplicationPhaseUncheckedUpdateWithoutTenantInput>;
813
+ create: Prisma.XOR<Prisma.ApplicationPhaseCreateWithoutTenantInput, Prisma.ApplicationPhaseUncheckedCreateWithoutTenantInput>;
814
+ };
815
+ export type ApplicationPhaseUpdateWithWhereUniqueWithoutTenantInput = {
816
+ where: Prisma.ApplicationPhaseWhereUniqueInput;
817
+ data: Prisma.XOR<Prisma.ApplicationPhaseUpdateWithoutTenantInput, Prisma.ApplicationPhaseUncheckedUpdateWithoutTenantInput>;
818
+ };
819
+ export type ApplicationPhaseUpdateManyWithWhereWithoutTenantInput = {
820
+ where: Prisma.ApplicationPhaseScalarWhereInput;
821
+ data: Prisma.XOR<Prisma.ApplicationPhaseUpdateManyMutationInput, Prisma.ApplicationPhaseUncheckedUpdateManyWithoutTenantInput>;
822
+ };
823
+ export type ApplicationPhaseScalarWhereInput = {
824
+ AND?: Prisma.ApplicationPhaseScalarWhereInput | Prisma.ApplicationPhaseScalarWhereInput[];
825
+ OR?: Prisma.ApplicationPhaseScalarWhereInput[];
826
+ NOT?: Prisma.ApplicationPhaseScalarWhereInput | Prisma.ApplicationPhaseScalarWhereInput[];
827
+ id?: Prisma.StringFilter<"ApplicationPhase"> | string;
828
+ tenantId?: Prisma.StringFilter<"ApplicationPhase"> | string;
829
+ applicationId?: Prisma.StringFilter<"ApplicationPhase"> | string;
830
+ name?: Prisma.StringFilter<"ApplicationPhase"> | string;
831
+ description?: Prisma.StringNullableFilter<"ApplicationPhase"> | string | null;
832
+ phaseCategory?: Prisma.EnumPhaseCategoryFilter<"ApplicationPhase"> | $Enums.PhaseCategory;
833
+ phaseType?: Prisma.EnumPhaseTypeFilter<"ApplicationPhase"> | $Enums.PhaseType;
834
+ order?: Prisma.IntFilter<"ApplicationPhase"> | number;
835
+ status?: Prisma.EnumPhaseStatusFilter<"ApplicationPhase"> | $Enums.PhaseStatus;
836
+ dueDate?: Prisma.DateTimeNullableFilter<"ApplicationPhase"> | Date | string | null;
837
+ startDate?: Prisma.DateTimeNullableFilter<"ApplicationPhase"> | Date | string | null;
838
+ endDate?: Prisma.DateTimeNullableFilter<"ApplicationPhase"> | Date | string | null;
839
+ activatedAt?: Prisma.DateTimeNullableFilter<"ApplicationPhase"> | Date | string | null;
840
+ completedAt?: Prisma.DateTimeNullableFilter<"ApplicationPhase"> | Date | string | null;
841
+ requiresPreviousPhaseCompletion?: Prisma.BoolFilter<"ApplicationPhase"> | boolean;
842
+ createdAt?: Prisma.DateTimeFilter<"ApplicationPhase"> | Date | string;
843
+ updatedAt?: Prisma.DateTimeFilter<"ApplicationPhase"> | Date | string;
844
+ };
694
845
  export type ApplicationPhaseCreateWithoutCurrentForApplicationsInput = {
695
846
  id?: string;
696
847
  name: string;
@@ -707,6 +858,7 @@ export type ApplicationPhaseCreateWithoutCurrentForApplicationsInput = {
707
858
  requiresPreviousPhaseCompletion?: boolean;
708
859
  createdAt?: Date | string;
709
860
  updatedAt?: Date | string;
861
+ tenant: Prisma.TenantCreateNestedOneWithoutApplicationPhasesInput;
710
862
  application: Prisma.ApplicationCreateNestedOneWithoutPhasesInput;
711
863
  questionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutPhaseInput;
712
864
  documentationPhase?: Prisma.DocumentationPhaseCreateNestedOneWithoutPhaseInput;
@@ -715,6 +867,7 @@ export type ApplicationPhaseCreateWithoutCurrentForApplicationsInput = {
715
867
  };
716
868
  export type ApplicationPhaseUncheckedCreateWithoutCurrentForApplicationsInput = {
717
869
  id?: string;
870
+ tenantId: string;
718
871
  applicationId: string;
719
872
  name: string;
720
873
  description?: string | null;
@@ -755,6 +908,7 @@ export type ApplicationPhaseCreateWithoutApplicationInput = {
755
908
  requiresPreviousPhaseCompletion?: boolean;
756
909
  createdAt?: Date | string;
757
910
  updatedAt?: Date | string;
911
+ tenant: Prisma.TenantCreateNestedOneWithoutApplicationPhasesInput;
758
912
  questionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutPhaseInput;
759
913
  documentationPhase?: Prisma.DocumentationPhaseCreateNestedOneWithoutPhaseInput;
760
914
  paymentPhase?: Prisma.PaymentPhaseCreateNestedOneWithoutPhaseInput;
@@ -763,6 +917,7 @@ export type ApplicationPhaseCreateWithoutApplicationInput = {
763
917
  };
764
918
  export type ApplicationPhaseUncheckedCreateWithoutApplicationInput = {
765
919
  id?: string;
920
+ tenantId: string;
766
921
  name: string;
767
922
  description?: string | null;
768
923
  phaseCategory: $Enums.PhaseCategory;
@@ -816,6 +971,7 @@ export type ApplicationPhaseUpdateWithoutCurrentForApplicationsInput = {
816
971
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
817
972
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
818
973
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
974
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationPhasesNestedInput;
819
975
  application?: Prisma.ApplicationUpdateOneRequiredWithoutPhasesNestedInput;
820
976
  questionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutPhaseNestedInput;
821
977
  documentationPhase?: Prisma.DocumentationPhaseUpdateOneWithoutPhaseNestedInput;
@@ -824,6 +980,7 @@ export type ApplicationPhaseUpdateWithoutCurrentForApplicationsInput = {
824
980
  };
825
981
  export type ApplicationPhaseUncheckedUpdateWithoutCurrentForApplicationsInput = {
826
982
  id?: Prisma.StringFieldUpdateOperationsInput | string;
983
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
827
984
  applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
828
985
  name?: Prisma.StringFieldUpdateOperationsInput | string;
829
986
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -857,27 +1014,6 @@ export type ApplicationPhaseUpdateManyWithWhereWithoutApplicationInput = {
857
1014
  where: Prisma.ApplicationPhaseScalarWhereInput;
858
1015
  data: Prisma.XOR<Prisma.ApplicationPhaseUpdateManyMutationInput, Prisma.ApplicationPhaseUncheckedUpdateManyWithoutApplicationInput>;
859
1016
  };
860
- export type ApplicationPhaseScalarWhereInput = {
861
- AND?: Prisma.ApplicationPhaseScalarWhereInput | Prisma.ApplicationPhaseScalarWhereInput[];
862
- OR?: Prisma.ApplicationPhaseScalarWhereInput[];
863
- NOT?: Prisma.ApplicationPhaseScalarWhereInput | Prisma.ApplicationPhaseScalarWhereInput[];
864
- id?: Prisma.StringFilter<"ApplicationPhase"> | string;
865
- applicationId?: Prisma.StringFilter<"ApplicationPhase"> | string;
866
- name?: Prisma.StringFilter<"ApplicationPhase"> | string;
867
- description?: Prisma.StringNullableFilter<"ApplicationPhase"> | string | null;
868
- phaseCategory?: Prisma.EnumPhaseCategoryFilter<"ApplicationPhase"> | $Enums.PhaseCategory;
869
- phaseType?: Prisma.EnumPhaseTypeFilter<"ApplicationPhase"> | $Enums.PhaseType;
870
- order?: Prisma.IntFilter<"ApplicationPhase"> | number;
871
- status?: Prisma.EnumPhaseStatusFilter<"ApplicationPhase"> | $Enums.PhaseStatus;
872
- dueDate?: Prisma.DateTimeNullableFilter<"ApplicationPhase"> | Date | string | null;
873
- startDate?: Prisma.DateTimeNullableFilter<"ApplicationPhase"> | Date | string | null;
874
- endDate?: Prisma.DateTimeNullableFilter<"ApplicationPhase"> | Date | string | null;
875
- activatedAt?: Prisma.DateTimeNullableFilter<"ApplicationPhase"> | Date | string | null;
876
- completedAt?: Prisma.DateTimeNullableFilter<"ApplicationPhase"> | Date | string | null;
877
- requiresPreviousPhaseCompletion?: Prisma.BoolFilter<"ApplicationPhase"> | boolean;
878
- createdAt?: Prisma.DateTimeFilter<"ApplicationPhase"> | Date | string;
879
- updatedAt?: Prisma.DateTimeFilter<"ApplicationPhase"> | Date | string;
880
- };
881
1017
  export type ApplicationPhaseCreateWithoutQuestionnairePhaseInput = {
882
1018
  id?: string;
883
1019
  name: string;
@@ -894,6 +1030,7 @@ export type ApplicationPhaseCreateWithoutQuestionnairePhaseInput = {
894
1030
  requiresPreviousPhaseCompletion?: boolean;
895
1031
  createdAt?: Date | string;
896
1032
  updatedAt?: Date | string;
1033
+ tenant: Prisma.TenantCreateNestedOneWithoutApplicationPhasesInput;
897
1034
  application: Prisma.ApplicationCreateNestedOneWithoutPhasesInput;
898
1035
  documentationPhase?: Prisma.DocumentationPhaseCreateNestedOneWithoutPhaseInput;
899
1036
  paymentPhase?: Prisma.PaymentPhaseCreateNestedOneWithoutPhaseInput;
@@ -902,6 +1039,7 @@ export type ApplicationPhaseCreateWithoutQuestionnairePhaseInput = {
902
1039
  };
903
1040
  export type ApplicationPhaseUncheckedCreateWithoutQuestionnairePhaseInput = {
904
1041
  id?: string;
1042
+ tenantId: string;
905
1043
  applicationId: string;
906
1044
  name: string;
907
1045
  description?: string | null;
@@ -951,6 +1089,7 @@ export type ApplicationPhaseUpdateWithoutQuestionnairePhaseInput = {
951
1089
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
952
1090
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
953
1091
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1092
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationPhasesNestedInput;
954
1093
  application?: Prisma.ApplicationUpdateOneRequiredWithoutPhasesNestedInput;
955
1094
  documentationPhase?: Prisma.DocumentationPhaseUpdateOneWithoutPhaseNestedInput;
956
1095
  paymentPhase?: Prisma.PaymentPhaseUpdateOneWithoutPhaseNestedInput;
@@ -959,6 +1098,7 @@ export type ApplicationPhaseUpdateWithoutQuestionnairePhaseInput = {
959
1098
  };
960
1099
  export type ApplicationPhaseUncheckedUpdateWithoutQuestionnairePhaseInput = {
961
1100
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1101
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
962
1102
  applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
963
1103
  name?: Prisma.StringFieldUpdateOperationsInput | string;
964
1104
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -995,6 +1135,7 @@ export type ApplicationPhaseCreateWithoutDocumentationPhaseInput = {
995
1135
  requiresPreviousPhaseCompletion?: boolean;
996
1136
  createdAt?: Date | string;
997
1137
  updatedAt?: Date | string;
1138
+ tenant: Prisma.TenantCreateNestedOneWithoutApplicationPhasesInput;
998
1139
  application: Prisma.ApplicationCreateNestedOneWithoutPhasesInput;
999
1140
  questionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutPhaseInput;
1000
1141
  paymentPhase?: Prisma.PaymentPhaseCreateNestedOneWithoutPhaseInput;
@@ -1003,6 +1144,7 @@ export type ApplicationPhaseCreateWithoutDocumentationPhaseInput = {
1003
1144
  };
1004
1145
  export type ApplicationPhaseUncheckedCreateWithoutDocumentationPhaseInput = {
1005
1146
  id?: string;
1147
+ tenantId: string;
1006
1148
  applicationId: string;
1007
1149
  name: string;
1008
1150
  description?: string | null;
@@ -1052,6 +1194,7 @@ export type ApplicationPhaseUpdateWithoutDocumentationPhaseInput = {
1052
1194
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1053
1195
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1054
1196
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1197
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationPhasesNestedInput;
1055
1198
  application?: Prisma.ApplicationUpdateOneRequiredWithoutPhasesNestedInput;
1056
1199
  questionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutPhaseNestedInput;
1057
1200
  paymentPhase?: Prisma.PaymentPhaseUpdateOneWithoutPhaseNestedInput;
@@ -1060,6 +1203,7 @@ export type ApplicationPhaseUpdateWithoutDocumentationPhaseInput = {
1060
1203
  };
1061
1204
  export type ApplicationPhaseUncheckedUpdateWithoutDocumentationPhaseInput = {
1062
1205
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1206
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1063
1207
  applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1064
1208
  name?: Prisma.StringFieldUpdateOperationsInput | string;
1065
1209
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1096,6 +1240,7 @@ export type ApplicationPhaseCreateWithoutPaymentPhaseInput = {
1096
1240
  requiresPreviousPhaseCompletion?: boolean;
1097
1241
  createdAt?: Date | string;
1098
1242
  updatedAt?: Date | string;
1243
+ tenant: Prisma.TenantCreateNestedOneWithoutApplicationPhasesInput;
1099
1244
  application: Prisma.ApplicationCreateNestedOneWithoutPhasesInput;
1100
1245
  questionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutPhaseInput;
1101
1246
  documentationPhase?: Prisma.DocumentationPhaseCreateNestedOneWithoutPhaseInput;
@@ -1104,6 +1249,7 @@ export type ApplicationPhaseCreateWithoutPaymentPhaseInput = {
1104
1249
  };
1105
1250
  export type ApplicationPhaseUncheckedCreateWithoutPaymentPhaseInput = {
1106
1251
  id?: string;
1252
+ tenantId: string;
1107
1253
  applicationId: string;
1108
1254
  name: string;
1109
1255
  description?: string | null;
@@ -1153,6 +1299,7 @@ export type ApplicationPhaseUpdateWithoutPaymentPhaseInput = {
1153
1299
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1154
1300
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1155
1301
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1302
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationPhasesNestedInput;
1156
1303
  application?: Prisma.ApplicationUpdateOneRequiredWithoutPhasesNestedInput;
1157
1304
  questionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutPhaseNestedInput;
1158
1305
  documentationPhase?: Prisma.DocumentationPhaseUpdateOneWithoutPhaseNestedInput;
@@ -1161,6 +1308,7 @@ export type ApplicationPhaseUpdateWithoutPaymentPhaseInput = {
1161
1308
  };
1162
1309
  export type ApplicationPhaseUncheckedUpdateWithoutPaymentPhaseInput = {
1163
1310
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1311
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1164
1312
  applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1165
1313
  name?: Prisma.StringFieldUpdateOperationsInput | string;
1166
1314
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1197,6 +1345,7 @@ export type ApplicationPhaseCreateWithoutPaymentsInput = {
1197
1345
  requiresPreviousPhaseCompletion?: boolean;
1198
1346
  createdAt?: Date | string;
1199
1347
  updatedAt?: Date | string;
1348
+ tenant: Prisma.TenantCreateNestedOneWithoutApplicationPhasesInput;
1200
1349
  application: Prisma.ApplicationCreateNestedOneWithoutPhasesInput;
1201
1350
  questionnairePhase?: Prisma.QuestionnairePhaseCreateNestedOneWithoutPhaseInput;
1202
1351
  documentationPhase?: Prisma.DocumentationPhaseCreateNestedOneWithoutPhaseInput;
@@ -1205,6 +1354,7 @@ export type ApplicationPhaseCreateWithoutPaymentsInput = {
1205
1354
  };
1206
1355
  export type ApplicationPhaseUncheckedCreateWithoutPaymentsInput = {
1207
1356
  id?: string;
1357
+ tenantId: string;
1208
1358
  applicationId: string;
1209
1359
  name: string;
1210
1360
  description?: string | null;
@@ -1254,6 +1404,7 @@ export type ApplicationPhaseUpdateWithoutPaymentsInput = {
1254
1404
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1255
1405
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1256
1406
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1407
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationPhasesNestedInput;
1257
1408
  application?: Prisma.ApplicationUpdateOneRequiredWithoutPhasesNestedInput;
1258
1409
  questionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutPhaseNestedInput;
1259
1410
  documentationPhase?: Prisma.DocumentationPhaseUpdateOneWithoutPhaseNestedInput;
@@ -1262,6 +1413,7 @@ export type ApplicationPhaseUpdateWithoutPaymentsInput = {
1262
1413
  };
1263
1414
  export type ApplicationPhaseUncheckedUpdateWithoutPaymentsInput = {
1264
1415
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1416
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1265
1417
  applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1266
1418
  name?: Prisma.StringFieldUpdateOperationsInput | string;
1267
1419
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1282,8 +1434,91 @@ export type ApplicationPhaseUncheckedUpdateWithoutPaymentsInput = {
1282
1434
  paymentPhase?: Prisma.PaymentPhaseUncheckedUpdateOneWithoutPhaseNestedInput;
1283
1435
  currentForApplications?: Prisma.ApplicationUncheckedUpdateManyWithoutCurrentPhaseNestedInput;
1284
1436
  };
1437
+ export type ApplicationPhaseCreateManyTenantInput = {
1438
+ id?: string;
1439
+ applicationId: string;
1440
+ name: string;
1441
+ description?: string | null;
1442
+ phaseCategory: $Enums.PhaseCategory;
1443
+ phaseType: $Enums.PhaseType;
1444
+ order: number;
1445
+ status?: $Enums.PhaseStatus;
1446
+ dueDate?: Date | string | null;
1447
+ startDate?: Date | string | null;
1448
+ endDate?: Date | string | null;
1449
+ activatedAt?: Date | string | null;
1450
+ completedAt?: Date | string | null;
1451
+ requiresPreviousPhaseCompletion?: boolean;
1452
+ createdAt?: Date | string;
1453
+ updatedAt?: Date | string;
1454
+ };
1455
+ export type ApplicationPhaseUpdateWithoutTenantInput = {
1456
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1457
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1458
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1459
+ phaseCategory?: Prisma.EnumPhaseCategoryFieldUpdateOperationsInput | $Enums.PhaseCategory;
1460
+ phaseType?: Prisma.EnumPhaseTypeFieldUpdateOperationsInput | $Enums.PhaseType;
1461
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
1462
+ status?: Prisma.EnumPhaseStatusFieldUpdateOperationsInput | $Enums.PhaseStatus;
1463
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1464
+ startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1465
+ endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1466
+ activatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1467
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1468
+ requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1469
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1470
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1471
+ application?: Prisma.ApplicationUpdateOneRequiredWithoutPhasesNestedInput;
1472
+ questionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutPhaseNestedInput;
1473
+ documentationPhase?: Prisma.DocumentationPhaseUpdateOneWithoutPhaseNestedInput;
1474
+ paymentPhase?: Prisma.PaymentPhaseUpdateOneWithoutPhaseNestedInput;
1475
+ payments?: Prisma.ApplicationPaymentUpdateManyWithoutPhaseNestedInput;
1476
+ currentForApplications?: Prisma.ApplicationUpdateManyWithoutCurrentPhaseNestedInput;
1477
+ };
1478
+ export type ApplicationPhaseUncheckedUpdateWithoutTenantInput = {
1479
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1480
+ applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1481
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1482
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1483
+ phaseCategory?: Prisma.EnumPhaseCategoryFieldUpdateOperationsInput | $Enums.PhaseCategory;
1484
+ phaseType?: Prisma.EnumPhaseTypeFieldUpdateOperationsInput | $Enums.PhaseType;
1485
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
1486
+ status?: Prisma.EnumPhaseStatusFieldUpdateOperationsInput | $Enums.PhaseStatus;
1487
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1488
+ startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1489
+ endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1490
+ activatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1491
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1492
+ requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1493
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1494
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1495
+ questionnairePhase?: Prisma.QuestionnairePhaseUncheckedUpdateOneWithoutPhaseNestedInput;
1496
+ documentationPhase?: Prisma.DocumentationPhaseUncheckedUpdateOneWithoutPhaseNestedInput;
1497
+ paymentPhase?: Prisma.PaymentPhaseUncheckedUpdateOneWithoutPhaseNestedInput;
1498
+ payments?: Prisma.ApplicationPaymentUncheckedUpdateManyWithoutPhaseNestedInput;
1499
+ currentForApplications?: Prisma.ApplicationUncheckedUpdateManyWithoutCurrentPhaseNestedInput;
1500
+ };
1501
+ export type ApplicationPhaseUncheckedUpdateManyWithoutTenantInput = {
1502
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1503
+ applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1504
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1505
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1506
+ phaseCategory?: Prisma.EnumPhaseCategoryFieldUpdateOperationsInput | $Enums.PhaseCategory;
1507
+ phaseType?: Prisma.EnumPhaseTypeFieldUpdateOperationsInput | $Enums.PhaseType;
1508
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
1509
+ status?: Prisma.EnumPhaseStatusFieldUpdateOperationsInput | $Enums.PhaseStatus;
1510
+ dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1511
+ startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1512
+ endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1513
+ activatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1514
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1515
+ requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1516
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1517
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1518
+ };
1285
1519
  export type ApplicationPhaseCreateManyApplicationInput = {
1286
1520
  id?: string;
1521
+ tenantId: string;
1287
1522
  name: string;
1288
1523
  description?: string | null;
1289
1524
  phaseCategory: $Enums.PhaseCategory;
@@ -1315,6 +1550,7 @@ export type ApplicationPhaseUpdateWithoutApplicationInput = {
1315
1550
  requiresPreviousPhaseCompletion?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1316
1551
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1317
1552
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1553
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutApplicationPhasesNestedInput;
1318
1554
  questionnairePhase?: Prisma.QuestionnairePhaseUpdateOneWithoutPhaseNestedInput;
1319
1555
  documentationPhase?: Prisma.DocumentationPhaseUpdateOneWithoutPhaseNestedInput;
1320
1556
  paymentPhase?: Prisma.PaymentPhaseUpdateOneWithoutPhaseNestedInput;
@@ -1323,6 +1559,7 @@ export type ApplicationPhaseUpdateWithoutApplicationInput = {
1323
1559
  };
1324
1560
  export type ApplicationPhaseUncheckedUpdateWithoutApplicationInput = {
1325
1561
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1562
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1326
1563
  name?: Prisma.StringFieldUpdateOperationsInput | string;
1327
1564
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1328
1565
  phaseCategory?: Prisma.EnumPhaseCategoryFieldUpdateOperationsInput | $Enums.PhaseCategory;
@@ -1345,6 +1582,7 @@ export type ApplicationPhaseUncheckedUpdateWithoutApplicationInput = {
1345
1582
  };
1346
1583
  export type ApplicationPhaseUncheckedUpdateManyWithoutApplicationInput = {
1347
1584
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1585
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1348
1586
  name?: Prisma.StringFieldUpdateOperationsInput | string;
1349
1587
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1350
1588
  phaseCategory?: Prisma.EnumPhaseCategoryFieldUpdateOperationsInput | $Enums.PhaseCategory;
@@ -1394,6 +1632,7 @@ export type ApplicationPhaseCountOutputTypeCountCurrentForApplicationsArgs<ExtAr
1394
1632
  };
1395
1633
  export type ApplicationPhaseSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1396
1634
  id?: boolean;
1635
+ tenantId?: boolean;
1397
1636
  applicationId?: boolean;
1398
1637
  name?: boolean;
1399
1638
  description?: boolean;
@@ -1409,6 +1648,7 @@ export type ApplicationPhaseSelect<ExtArgs extends runtime.Types.Extensions.Inte
1409
1648
  requiresPreviousPhaseCompletion?: boolean;
1410
1649
  createdAt?: boolean;
1411
1650
  updatedAt?: boolean;
1651
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
1412
1652
  application?: boolean | Prisma.ApplicationDefaultArgs<ExtArgs>;
1413
1653
  questionnairePhase?: boolean | Prisma.ApplicationPhase$questionnairePhaseArgs<ExtArgs>;
1414
1654
  documentationPhase?: boolean | Prisma.ApplicationPhase$documentationPhaseArgs<ExtArgs>;
@@ -1419,6 +1659,7 @@ export type ApplicationPhaseSelect<ExtArgs extends runtime.Types.Extensions.Inte
1419
1659
  }, ExtArgs["result"]["applicationPhase"]>;
1420
1660
  export type ApplicationPhaseSelectScalar = {
1421
1661
  id?: boolean;
1662
+ tenantId?: boolean;
1422
1663
  applicationId?: boolean;
1423
1664
  name?: boolean;
1424
1665
  description?: boolean;
@@ -1435,8 +1676,9 @@ export type ApplicationPhaseSelectScalar = {
1435
1676
  createdAt?: boolean;
1436
1677
  updatedAt?: boolean;
1437
1678
  };
1438
- export type ApplicationPhaseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "applicationId" | "name" | "description" | "phaseCategory" | "phaseType" | "order" | "status" | "dueDate" | "startDate" | "endDate" | "activatedAt" | "completedAt" | "requiresPreviousPhaseCompletion" | "createdAt" | "updatedAt", ExtArgs["result"]["applicationPhase"]>;
1679
+ export type ApplicationPhaseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "applicationId" | "name" | "description" | "phaseCategory" | "phaseType" | "order" | "status" | "dueDate" | "startDate" | "endDate" | "activatedAt" | "completedAt" | "requiresPreviousPhaseCompletion" | "createdAt" | "updatedAt", ExtArgs["result"]["applicationPhase"]>;
1439
1680
  export type ApplicationPhaseInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1681
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
1440
1682
  application?: boolean | Prisma.ApplicationDefaultArgs<ExtArgs>;
1441
1683
  questionnairePhase?: boolean | Prisma.ApplicationPhase$questionnairePhaseArgs<ExtArgs>;
1442
1684
  documentationPhase?: boolean | Prisma.ApplicationPhase$documentationPhaseArgs<ExtArgs>;
@@ -1448,6 +1690,7 @@ export type ApplicationPhaseInclude<ExtArgs extends runtime.Types.Extensions.Int
1448
1690
  export type $ApplicationPhasePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1449
1691
  name: "ApplicationPhase";
1450
1692
  objects: {
1693
+ tenant: Prisma.$TenantPayload<ExtArgs>;
1451
1694
  application: Prisma.$ApplicationPayload<ExtArgs>;
1452
1695
  questionnairePhase: Prisma.$QuestionnairePhasePayload<ExtArgs> | null;
1453
1696
  documentationPhase: Prisma.$DocumentationPhasePayload<ExtArgs> | null;
@@ -1457,6 +1700,7 @@ export type $ApplicationPhasePayload<ExtArgs extends runtime.Types.Extensions.In
1457
1700
  };
1458
1701
  scalars: runtime.Types.Extensions.GetPayloadResult<{
1459
1702
  id: string;
1703
+ tenantId: string;
1460
1704
  applicationId: string;
1461
1705
  name: string;
1462
1706
  description: string | null;
@@ -1749,6 +1993,7 @@ export interface ApplicationPhaseDelegate<ExtArgs extends runtime.Types.Extensio
1749
1993
  */
1750
1994
  export interface Prisma__ApplicationPhaseClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1751
1995
  readonly [Symbol.toStringTag]: "PrismaPromise";
1996
+ 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>;
1752
1997
  application<T extends Prisma.ApplicationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApplicationDefaultArgs<ExtArgs>>): Prisma.Prisma__ApplicationClient<runtime.Types.Result.GetResult<Prisma.$ApplicationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1753
1998
  questionnairePhase<T extends Prisma.ApplicationPhase$questionnairePhaseArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApplicationPhase$questionnairePhaseArgs<ExtArgs>>): Prisma.Prisma__QuestionnairePhaseClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePhasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1754
1999
  documentationPhase<T extends Prisma.ApplicationPhase$documentationPhaseArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApplicationPhase$documentationPhaseArgs<ExtArgs>>): Prisma.Prisma__DocumentationPhaseClient<runtime.Types.Result.GetResult<Prisma.$DocumentationPhasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
@@ -1781,6 +2026,7 @@ export interface Prisma__ApplicationPhaseClient<T, Null = never, ExtArgs extends
1781
2026
  */
1782
2027
  export interface ApplicationPhaseFieldRefs {
1783
2028
  readonly id: Prisma.FieldRef<"ApplicationPhase", 'String'>;
2029
+ readonly tenantId: Prisma.FieldRef<"ApplicationPhase", 'String'>;
1784
2030
  readonly applicationId: Prisma.FieldRef<"ApplicationPhase", 'String'>;
1785
2031
  readonly name: Prisma.FieldRef<"ApplicationPhase", 'String'>;
1786
2032
  readonly description: Prisma.FieldRef<"ApplicationPhase", 'String'>;