@valentine-efagene/qshelter-common 2.0.137 → 2.0.139

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/generated/client/browser.d.ts +20 -0
  2. package/dist/generated/client/client.d.ts +20 -0
  3. package/dist/generated/client/commonInputTypes.d.ts +163 -73
  4. package/dist/generated/client/enums.d.ts +23 -0
  5. package/dist/generated/client/enums.js +21 -1
  6. package/dist/generated/client/internal/class.d.ts +44 -0
  7. package/dist/generated/client/internal/class.js +2 -2
  8. package/dist/generated/client/internal/prismaNamespace.d.ts +405 -6
  9. package/dist/generated/client/internal/prismaNamespace.js +112 -1
  10. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +120 -1
  11. package/dist/generated/client/internal/prismaNamespaceBrowser.js +112 -1
  12. package/dist/generated/client/models/ApplicationDocument.d.ts +290 -1
  13. package/dist/generated/client/models/ApprovalStage.d.ts +1605 -0
  14. package/dist/generated/client/models/ApprovalStage.js +1 -0
  15. package/dist/generated/client/models/ApprovalStageProgress.d.ts +2329 -0
  16. package/dist/generated/client/models/ApprovalStageProgress.js +1 -0
  17. package/dist/generated/client/models/DocumentApproval.d.ts +1611 -0
  18. package/dist/generated/client/models/DocumentApproval.js +1 -0
  19. package/dist/generated/client/models/DocumentDefinition.d.ts +1475 -0
  20. package/dist/generated/client/models/DocumentDefinition.js +1 -0
  21. package/dist/generated/client/models/DocumentReview.d.ts +0 -3
  22. package/dist/generated/client/models/DocumentationPhase.d.ts +167 -0
  23. package/dist/generated/client/models/DocumentationPlan.d.ts +271 -40
  24. package/dist/generated/client/models/DocumentationPlanStep.d.ts +34 -1
  25. package/dist/generated/client/models/DocumentationStep.d.ts +64 -1
  26. package/dist/generated/client/models/Tenant.d.ts +1281 -131
  27. package/dist/generated/client/models/User.d.ts +824 -0
  28. package/dist/generated/client/models/index.d.ts +4 -0
  29. package/dist/generated/client/models/index.js +4 -0
  30. package/dist/generated/client/models.d.ts +4 -0
  31. package/dist/src/utils/documentation-enums.d.ts +10 -1
  32. package/dist/src/utils/documentation-enums.js +8 -0
  33. package/package.json +1 -1
  34. package/prisma/migrations/20260119180401_add_document_name_remove_required_doc_types/migration.sql +14 -0
  35. package/prisma/migrations/20260119190336_add_document_approval_workflow/migration.sql +134 -0
  36. package/prisma/schema.prisma +253 -12
@@ -161,6 +161,16 @@ export type DocumentationPlan = Prisma.DocumentationPlanModel;
161
161
  *
162
162
  */
163
163
  export type DocumentationPlanStep = Prisma.DocumentationPlanStepModel;
164
+ /**
165
+ * Model DocumentDefinition
166
+ *
167
+ */
168
+ export type DocumentDefinition = Prisma.DocumentDefinitionModel;
169
+ /**
170
+ * Model ApprovalStage
171
+ *
172
+ */
173
+ export type ApprovalStage = Prisma.ApprovalStageModel;
164
174
  /**
165
175
  * Model QuestionnairePlan
166
176
  *
@@ -293,6 +303,16 @@ export type ApplicationDocument = Prisma.ApplicationDocumentModel;
293
303
  *
294
304
  */
295
305
  export type DocumentReview = Prisma.DocumentReviewModel;
306
+ /**
307
+ * Model ApprovalStageProgress
308
+ *
309
+ */
310
+ export type ApprovalStageProgress = Prisma.ApprovalStageProgressModel;
311
+ /**
312
+ * Model DocumentApproval
313
+ *
314
+ */
315
+ export type DocumentApproval = Prisma.DocumentApprovalModel;
296
316
  /**
297
317
  * Model DocumentTemplate
298
318
  *
@@ -178,6 +178,16 @@ export type DocumentationPlan = Prisma.DocumentationPlanModel;
178
178
  *
179
179
  */
180
180
  export type DocumentationPlanStep = Prisma.DocumentationPlanStepModel;
181
+ /**
182
+ * Model DocumentDefinition
183
+ *
184
+ */
185
+ export type DocumentDefinition = Prisma.DocumentDefinitionModel;
186
+ /**
187
+ * Model ApprovalStage
188
+ *
189
+ */
190
+ export type ApprovalStage = Prisma.ApprovalStageModel;
181
191
  /**
182
192
  * Model QuestionnairePlan
183
193
  *
@@ -310,6 +320,16 @@ export type ApplicationDocument = Prisma.ApplicationDocumentModel;
310
320
  *
311
321
  */
312
322
  export type DocumentReview = Prisma.DocumentReviewModel;
323
+ /**
324
+ * Model ApprovalStageProgress
325
+ *
326
+ */
327
+ export type ApprovalStageProgress = Prisma.ApprovalStageProgressModel;
328
+ /**
329
+ * Model DocumentApproval
330
+ *
331
+ */
332
+ export type DocumentApproval = Prisma.DocumentApprovalModel;
313
333
  /**
314
334
  * Model DocumentTemplate
315
335
  *
@@ -346,6 +346,12 @@ export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
346
346
  _min?: Prisma.NestedIntNullableFilter<$PrismaModel>;
347
347
  _max?: Prisma.NestedIntNullableFilter<$PrismaModel>;
348
348
  };
349
+ export type EnumStepTypeFilter<$PrismaModel = never> = {
350
+ equals?: $Enums.StepType | Prisma.EnumStepTypeFieldRefInput<$PrismaModel>;
351
+ in?: $Enums.StepType[];
352
+ notIn?: $Enums.StepType[];
353
+ not?: Prisma.NestedEnumStepTypeFilter<$PrismaModel> | $Enums.StepType;
354
+ };
349
355
  export type JsonNullableFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>, Required<JsonNullableFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>;
350
356
  export type JsonNullableFilterBase<$PrismaModel = never> = {
351
357
  equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
@@ -363,32 +369,6 @@ export type JsonNullableFilterBase<$PrismaModel = never> = {
363
369
  gte?: runtime.InputJsonValue;
364
370
  not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
365
371
  };
366
- export type JsonNullableWithAggregatesFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>, Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>;
367
- export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
368
- equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
369
- path?: string;
370
- mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
371
- string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
372
- string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
373
- string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
374
- array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
375
- array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
376
- array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
377
- lt?: runtime.InputJsonValue;
378
- lte?: runtime.InputJsonValue;
379
- gt?: runtime.InputJsonValue;
380
- gte?: runtime.InputJsonValue;
381
- not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
382
- _count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
383
- _min?: Prisma.NestedJsonNullableFilter<$PrismaModel>;
384
- _max?: Prisma.NestedJsonNullableFilter<$PrismaModel>;
385
- };
386
- export type EnumStepTypeFilter<$PrismaModel = never> = {
387
- equals?: $Enums.StepType | Prisma.EnumStepTypeFieldRefInput<$PrismaModel>;
388
- in?: $Enums.StepType[];
389
- notIn?: $Enums.StepType[];
390
- not?: Prisma.NestedEnumStepTypeFilter<$PrismaModel> | $Enums.StepType;
391
- };
392
372
  export type EnumGateActorNullableFilter<$PrismaModel = never> = {
393
373
  equals?: $Enums.GateActor | Prisma.EnumGateActorFieldRefInput<$PrismaModel> | null;
394
374
  in?: $Enums.GateActor[] | null;
@@ -416,6 +396,26 @@ export type EnumStepTypeWithAggregatesFilter<$PrismaModel = never> = {
416
396
  _min?: Prisma.NestedEnumStepTypeFilter<$PrismaModel>;
417
397
  _max?: Prisma.NestedEnumStepTypeFilter<$PrismaModel>;
418
398
  };
399
+ export type JsonNullableWithAggregatesFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>, Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>;
400
+ export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
401
+ equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
402
+ path?: string;
403
+ mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
404
+ string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
405
+ string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
406
+ string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
407
+ array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
408
+ array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
409
+ array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
410
+ lt?: runtime.InputJsonValue;
411
+ lte?: runtime.InputJsonValue;
412
+ gt?: runtime.InputJsonValue;
413
+ gte?: runtime.InputJsonValue;
414
+ not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
415
+ _count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
416
+ _min?: Prisma.NestedJsonNullableFilter<$PrismaModel>;
417
+ _max?: Prisma.NestedJsonNullableFilter<$PrismaModel>;
418
+ };
419
419
  export type EnumGateActorNullableWithAggregatesFilter<$PrismaModel = never> = {
420
420
  equals?: $Enums.GateActor | Prisma.EnumGateActorFieldRefInput<$PrismaModel> | null;
421
421
  in?: $Enums.GateActor[] | null;
@@ -443,6 +443,51 @@ export type EnumGateRejectBehaviorNullableWithAggregatesFilter<$PrismaModel = ne
443
443
  _min?: Prisma.NestedEnumGateRejectBehaviorNullableFilter<$PrismaModel>;
444
444
  _max?: Prisma.NestedEnumGateRejectBehaviorNullableFilter<$PrismaModel>;
445
445
  };
446
+ export type EnumUploadedByFilter<$PrismaModel = never> = {
447
+ equals?: $Enums.UploadedBy | Prisma.EnumUploadedByFieldRefInput<$PrismaModel>;
448
+ in?: $Enums.UploadedBy[];
449
+ notIn?: $Enums.UploadedBy[];
450
+ not?: Prisma.NestedEnumUploadedByFilter<$PrismaModel> | $Enums.UploadedBy;
451
+ };
452
+ export type EnumUploadedByWithAggregatesFilter<$PrismaModel = never> = {
453
+ equals?: $Enums.UploadedBy | Prisma.EnumUploadedByFieldRefInput<$PrismaModel>;
454
+ in?: $Enums.UploadedBy[];
455
+ notIn?: $Enums.UploadedBy[];
456
+ not?: Prisma.NestedEnumUploadedByWithAggregatesFilter<$PrismaModel> | $Enums.UploadedBy;
457
+ _count?: Prisma.NestedIntFilter<$PrismaModel>;
458
+ _min?: Prisma.NestedEnumUploadedByFilter<$PrismaModel>;
459
+ _max?: Prisma.NestedEnumUploadedByFilter<$PrismaModel>;
460
+ };
461
+ export type EnumReviewPartyFilter<$PrismaModel = never> = {
462
+ equals?: $Enums.ReviewParty | Prisma.EnumReviewPartyFieldRefInput<$PrismaModel>;
463
+ in?: $Enums.ReviewParty[];
464
+ notIn?: $Enums.ReviewParty[];
465
+ not?: Prisma.NestedEnumReviewPartyFilter<$PrismaModel> | $Enums.ReviewParty;
466
+ };
467
+ export type EnumRejectionBehaviorFilter<$PrismaModel = never> = {
468
+ equals?: $Enums.RejectionBehavior | Prisma.EnumRejectionBehaviorFieldRefInput<$PrismaModel>;
469
+ in?: $Enums.RejectionBehavior[];
470
+ notIn?: $Enums.RejectionBehavior[];
471
+ not?: Prisma.NestedEnumRejectionBehaviorFilter<$PrismaModel> | $Enums.RejectionBehavior;
472
+ };
473
+ export type EnumReviewPartyWithAggregatesFilter<$PrismaModel = never> = {
474
+ equals?: $Enums.ReviewParty | Prisma.EnumReviewPartyFieldRefInput<$PrismaModel>;
475
+ in?: $Enums.ReviewParty[];
476
+ notIn?: $Enums.ReviewParty[];
477
+ not?: Prisma.NestedEnumReviewPartyWithAggregatesFilter<$PrismaModel> | $Enums.ReviewParty;
478
+ _count?: Prisma.NestedIntFilter<$PrismaModel>;
479
+ _min?: Prisma.NestedEnumReviewPartyFilter<$PrismaModel>;
480
+ _max?: Prisma.NestedEnumReviewPartyFilter<$PrismaModel>;
481
+ };
482
+ export type EnumRejectionBehaviorWithAggregatesFilter<$PrismaModel = never> = {
483
+ equals?: $Enums.RejectionBehavior | Prisma.EnumRejectionBehaviorFieldRefInput<$PrismaModel>;
484
+ in?: $Enums.RejectionBehavior[];
485
+ notIn?: $Enums.RejectionBehavior[];
486
+ not?: Prisma.NestedEnumRejectionBehaviorWithAggregatesFilter<$PrismaModel> | $Enums.RejectionBehavior;
487
+ _count?: Prisma.NestedIntFilter<$PrismaModel>;
488
+ _min?: Prisma.NestedEnumRejectionBehaviorFilter<$PrismaModel>;
489
+ _max?: Prisma.NestedEnumRejectionBehaviorFilter<$PrismaModel>;
490
+ };
446
491
  export type EnumScoringStrategyFilter<$PrismaModel = never> = {
447
492
  equals?: $Enums.ScoringStrategy | Prisma.EnumScoringStrategyFieldRefInput<$PrismaModel>;
448
493
  in?: $Enums.ScoringStrategy[];
@@ -784,27 +829,12 @@ export type EnumDocumentStatusWithAggregatesFilter<$PrismaModel = never> = {
784
829
  _min?: Prisma.NestedEnumDocumentStatusFilter<$PrismaModel>;
785
830
  _max?: Prisma.NestedEnumDocumentStatusFilter<$PrismaModel>;
786
831
  };
787
- export type EnumReviewPartyFilter<$PrismaModel = never> = {
788
- equals?: $Enums.ReviewParty | Prisma.EnumReviewPartyFieldRefInput<$PrismaModel>;
789
- in?: $Enums.ReviewParty[];
790
- notIn?: $Enums.ReviewParty[];
791
- not?: Prisma.NestedEnumReviewPartyFilter<$PrismaModel> | $Enums.ReviewParty;
792
- };
793
832
  export type EnumReviewDecisionFilter<$PrismaModel = never> = {
794
833
  equals?: $Enums.ReviewDecision | Prisma.EnumReviewDecisionFieldRefInput<$PrismaModel>;
795
834
  in?: $Enums.ReviewDecision[];
796
835
  notIn?: $Enums.ReviewDecision[];
797
836
  not?: Prisma.NestedEnumReviewDecisionFilter<$PrismaModel> | $Enums.ReviewDecision;
798
837
  };
799
- export type EnumReviewPartyWithAggregatesFilter<$PrismaModel = never> = {
800
- equals?: $Enums.ReviewParty | Prisma.EnumReviewPartyFieldRefInput<$PrismaModel>;
801
- in?: $Enums.ReviewParty[];
802
- notIn?: $Enums.ReviewParty[];
803
- not?: Prisma.NestedEnumReviewPartyWithAggregatesFilter<$PrismaModel> | $Enums.ReviewParty;
804
- _count?: Prisma.NestedIntFilter<$PrismaModel>;
805
- _min?: Prisma.NestedEnumReviewPartyFilter<$PrismaModel>;
806
- _max?: Prisma.NestedEnumReviewPartyFilter<$PrismaModel>;
807
- };
808
838
  export type EnumReviewDecisionWithAggregatesFilter<$PrismaModel = never> = {
809
839
  equals?: $Enums.ReviewDecision | Prisma.EnumReviewDecisionFieldRefInput<$PrismaModel>;
810
840
  in?: $Enums.ReviewDecision[];
@@ -814,6 +844,21 @@ export type EnumReviewDecisionWithAggregatesFilter<$PrismaModel = never> = {
814
844
  _min?: Prisma.NestedEnumReviewDecisionFilter<$PrismaModel>;
815
845
  _max?: Prisma.NestedEnumReviewDecisionFilter<$PrismaModel>;
816
846
  };
847
+ export type EnumStageStatusFilter<$PrismaModel = never> = {
848
+ equals?: $Enums.StageStatus | Prisma.EnumStageStatusFieldRefInput<$PrismaModel>;
849
+ in?: $Enums.StageStatus[];
850
+ notIn?: $Enums.StageStatus[];
851
+ not?: Prisma.NestedEnumStageStatusFilter<$PrismaModel> | $Enums.StageStatus;
852
+ };
853
+ export type EnumStageStatusWithAggregatesFilter<$PrismaModel = never> = {
854
+ equals?: $Enums.StageStatus | Prisma.EnumStageStatusFieldRefInput<$PrismaModel>;
855
+ in?: $Enums.StageStatus[];
856
+ notIn?: $Enums.StageStatus[];
857
+ not?: Prisma.NestedEnumStageStatusWithAggregatesFilter<$PrismaModel> | $Enums.StageStatus;
858
+ _count?: Prisma.NestedIntFilter<$PrismaModel>;
859
+ _min?: Prisma.NestedEnumStageStatusFilter<$PrismaModel>;
860
+ _max?: Prisma.NestedEnumStageStatusFilter<$PrismaModel>;
861
+ };
817
862
  export type EnumOfferLetterTypeFilter<$PrismaModel = never> = {
818
863
  equals?: $Enums.OfferLetterType | Prisma.EnumOfferLetterTypeFieldRefInput<$PrismaModel>;
819
864
  in?: $Enums.OfferLetterType[];
@@ -1420,23 +1465,6 @@ export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
1420
1465
  _min?: Prisma.NestedIntNullableFilter<$PrismaModel>;
1421
1466
  _max?: Prisma.NestedIntNullableFilter<$PrismaModel>;
1422
1467
  };
1423
- export type NestedJsonNullableFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<NestedJsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>, Required<NestedJsonNullableFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>;
1424
- export type NestedJsonNullableFilterBase<$PrismaModel = never> = {
1425
- equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
1426
- path?: string;
1427
- mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
1428
- string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
1429
- string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
1430
- string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
1431
- array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
1432
- array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
1433
- array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
1434
- lt?: runtime.InputJsonValue;
1435
- lte?: runtime.InputJsonValue;
1436
- gt?: runtime.InputJsonValue;
1437
- gte?: runtime.InputJsonValue;
1438
- not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
1439
- };
1440
1468
  export type NestedEnumStepTypeFilter<$PrismaModel = never> = {
1441
1469
  equals?: $Enums.StepType | Prisma.EnumStepTypeFieldRefInput<$PrismaModel>;
1442
1470
  in?: $Enums.StepType[];
@@ -1470,6 +1498,23 @@ export type NestedEnumStepTypeWithAggregatesFilter<$PrismaModel = never> = {
1470
1498
  _min?: Prisma.NestedEnumStepTypeFilter<$PrismaModel>;
1471
1499
  _max?: Prisma.NestedEnumStepTypeFilter<$PrismaModel>;
1472
1500
  };
1501
+ export type NestedJsonNullableFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<NestedJsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>, Required<NestedJsonNullableFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>;
1502
+ export type NestedJsonNullableFilterBase<$PrismaModel = never> = {
1503
+ equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
1504
+ path?: string;
1505
+ mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
1506
+ string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
1507
+ string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
1508
+ string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
1509
+ array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
1510
+ array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
1511
+ array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
1512
+ lt?: runtime.InputJsonValue;
1513
+ lte?: runtime.InputJsonValue;
1514
+ gt?: runtime.InputJsonValue;
1515
+ gte?: runtime.InputJsonValue;
1516
+ not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
1517
+ };
1473
1518
  export type NestedEnumGateActorNullableWithAggregatesFilter<$PrismaModel = never> = {
1474
1519
  equals?: $Enums.GateActor | Prisma.EnumGateActorFieldRefInput<$PrismaModel> | null;
1475
1520
  in?: $Enums.GateActor[] | null;
@@ -1497,6 +1542,51 @@ export type NestedEnumGateRejectBehaviorNullableWithAggregatesFilter<$PrismaMode
1497
1542
  _min?: Prisma.NestedEnumGateRejectBehaviorNullableFilter<$PrismaModel>;
1498
1543
  _max?: Prisma.NestedEnumGateRejectBehaviorNullableFilter<$PrismaModel>;
1499
1544
  };
1545
+ export type NestedEnumUploadedByFilter<$PrismaModel = never> = {
1546
+ equals?: $Enums.UploadedBy | Prisma.EnumUploadedByFieldRefInput<$PrismaModel>;
1547
+ in?: $Enums.UploadedBy[];
1548
+ notIn?: $Enums.UploadedBy[];
1549
+ not?: Prisma.NestedEnumUploadedByFilter<$PrismaModel> | $Enums.UploadedBy;
1550
+ };
1551
+ export type NestedEnumUploadedByWithAggregatesFilter<$PrismaModel = never> = {
1552
+ equals?: $Enums.UploadedBy | Prisma.EnumUploadedByFieldRefInput<$PrismaModel>;
1553
+ in?: $Enums.UploadedBy[];
1554
+ notIn?: $Enums.UploadedBy[];
1555
+ not?: Prisma.NestedEnumUploadedByWithAggregatesFilter<$PrismaModel> | $Enums.UploadedBy;
1556
+ _count?: Prisma.NestedIntFilter<$PrismaModel>;
1557
+ _min?: Prisma.NestedEnumUploadedByFilter<$PrismaModel>;
1558
+ _max?: Prisma.NestedEnumUploadedByFilter<$PrismaModel>;
1559
+ };
1560
+ export type NestedEnumReviewPartyFilter<$PrismaModel = never> = {
1561
+ equals?: $Enums.ReviewParty | Prisma.EnumReviewPartyFieldRefInput<$PrismaModel>;
1562
+ in?: $Enums.ReviewParty[];
1563
+ notIn?: $Enums.ReviewParty[];
1564
+ not?: Prisma.NestedEnumReviewPartyFilter<$PrismaModel> | $Enums.ReviewParty;
1565
+ };
1566
+ export type NestedEnumRejectionBehaviorFilter<$PrismaModel = never> = {
1567
+ equals?: $Enums.RejectionBehavior | Prisma.EnumRejectionBehaviorFieldRefInput<$PrismaModel>;
1568
+ in?: $Enums.RejectionBehavior[];
1569
+ notIn?: $Enums.RejectionBehavior[];
1570
+ not?: Prisma.NestedEnumRejectionBehaviorFilter<$PrismaModel> | $Enums.RejectionBehavior;
1571
+ };
1572
+ export type NestedEnumReviewPartyWithAggregatesFilter<$PrismaModel = never> = {
1573
+ equals?: $Enums.ReviewParty | Prisma.EnumReviewPartyFieldRefInput<$PrismaModel>;
1574
+ in?: $Enums.ReviewParty[];
1575
+ notIn?: $Enums.ReviewParty[];
1576
+ not?: Prisma.NestedEnumReviewPartyWithAggregatesFilter<$PrismaModel> | $Enums.ReviewParty;
1577
+ _count?: Prisma.NestedIntFilter<$PrismaModel>;
1578
+ _min?: Prisma.NestedEnumReviewPartyFilter<$PrismaModel>;
1579
+ _max?: Prisma.NestedEnumReviewPartyFilter<$PrismaModel>;
1580
+ };
1581
+ export type NestedEnumRejectionBehaviorWithAggregatesFilter<$PrismaModel = never> = {
1582
+ equals?: $Enums.RejectionBehavior | Prisma.EnumRejectionBehaviorFieldRefInput<$PrismaModel>;
1583
+ in?: $Enums.RejectionBehavior[];
1584
+ notIn?: $Enums.RejectionBehavior[];
1585
+ not?: Prisma.NestedEnumRejectionBehaviorWithAggregatesFilter<$PrismaModel> | $Enums.RejectionBehavior;
1586
+ _count?: Prisma.NestedIntFilter<$PrismaModel>;
1587
+ _min?: Prisma.NestedEnumRejectionBehaviorFilter<$PrismaModel>;
1588
+ _max?: Prisma.NestedEnumRejectionBehaviorFilter<$PrismaModel>;
1589
+ };
1500
1590
  export type NestedEnumScoringStrategyFilter<$PrismaModel = never> = {
1501
1591
  equals?: $Enums.ScoringStrategy | Prisma.EnumScoringStrategyFieldRefInput<$PrismaModel>;
1502
1592
  in?: $Enums.ScoringStrategy[];
@@ -1838,27 +1928,12 @@ export type NestedEnumDocumentStatusWithAggregatesFilter<$PrismaModel = never> =
1838
1928
  _min?: Prisma.NestedEnumDocumentStatusFilter<$PrismaModel>;
1839
1929
  _max?: Prisma.NestedEnumDocumentStatusFilter<$PrismaModel>;
1840
1930
  };
1841
- export type NestedEnumReviewPartyFilter<$PrismaModel = never> = {
1842
- equals?: $Enums.ReviewParty | Prisma.EnumReviewPartyFieldRefInput<$PrismaModel>;
1843
- in?: $Enums.ReviewParty[];
1844
- notIn?: $Enums.ReviewParty[];
1845
- not?: Prisma.NestedEnumReviewPartyFilter<$PrismaModel> | $Enums.ReviewParty;
1846
- };
1847
1931
  export type NestedEnumReviewDecisionFilter<$PrismaModel = never> = {
1848
1932
  equals?: $Enums.ReviewDecision | Prisma.EnumReviewDecisionFieldRefInput<$PrismaModel>;
1849
1933
  in?: $Enums.ReviewDecision[];
1850
1934
  notIn?: $Enums.ReviewDecision[];
1851
1935
  not?: Prisma.NestedEnumReviewDecisionFilter<$PrismaModel> | $Enums.ReviewDecision;
1852
1936
  };
1853
- export type NestedEnumReviewPartyWithAggregatesFilter<$PrismaModel = never> = {
1854
- equals?: $Enums.ReviewParty | Prisma.EnumReviewPartyFieldRefInput<$PrismaModel>;
1855
- in?: $Enums.ReviewParty[];
1856
- notIn?: $Enums.ReviewParty[];
1857
- not?: Prisma.NestedEnumReviewPartyWithAggregatesFilter<$PrismaModel> | $Enums.ReviewParty;
1858
- _count?: Prisma.NestedIntFilter<$PrismaModel>;
1859
- _min?: Prisma.NestedEnumReviewPartyFilter<$PrismaModel>;
1860
- _max?: Prisma.NestedEnumReviewPartyFilter<$PrismaModel>;
1861
- };
1862
1937
  export type NestedEnumReviewDecisionWithAggregatesFilter<$PrismaModel = never> = {
1863
1938
  equals?: $Enums.ReviewDecision | Prisma.EnumReviewDecisionFieldRefInput<$PrismaModel>;
1864
1939
  in?: $Enums.ReviewDecision[];
@@ -1868,6 +1943,21 @@ export type NestedEnumReviewDecisionWithAggregatesFilter<$PrismaModel = never> =
1868
1943
  _min?: Prisma.NestedEnumReviewDecisionFilter<$PrismaModel>;
1869
1944
  _max?: Prisma.NestedEnumReviewDecisionFilter<$PrismaModel>;
1870
1945
  };
1946
+ export type NestedEnumStageStatusFilter<$PrismaModel = never> = {
1947
+ equals?: $Enums.StageStatus | Prisma.EnumStageStatusFieldRefInput<$PrismaModel>;
1948
+ in?: $Enums.StageStatus[];
1949
+ notIn?: $Enums.StageStatus[];
1950
+ not?: Prisma.NestedEnumStageStatusFilter<$PrismaModel> | $Enums.StageStatus;
1951
+ };
1952
+ export type NestedEnumStageStatusWithAggregatesFilter<$PrismaModel = never> = {
1953
+ equals?: $Enums.StageStatus | Prisma.EnumStageStatusFieldRefInput<$PrismaModel>;
1954
+ in?: $Enums.StageStatus[];
1955
+ notIn?: $Enums.StageStatus[];
1956
+ not?: Prisma.NestedEnumStageStatusWithAggregatesFilter<$PrismaModel> | $Enums.StageStatus;
1957
+ _count?: Prisma.NestedIntFilter<$PrismaModel>;
1958
+ _min?: Prisma.NestedEnumStageStatusFilter<$PrismaModel>;
1959
+ _max?: Prisma.NestedEnumStageStatusFilter<$PrismaModel>;
1960
+ };
1871
1961
  export type NestedEnumOfferLetterTypeFilter<$PrismaModel = never> = {
1872
1962
  equals?: $Enums.OfferLetterType | Prisma.EnumOfferLetterTypeFieldRefInput<$PrismaModel>;
1873
1963
  in?: $Enums.OfferLetterType[];
@@ -249,8 +249,31 @@ export declare const DocumentStatus: {
249
249
  readonly REJECTED: "REJECTED";
250
250
  readonly EXPIRED: "EXPIRED";
251
251
  readonly CANCELLED: "CANCELLED";
252
+ readonly NEEDS_REUPLOAD: "NEEDS_REUPLOAD";
252
253
  };
253
254
  export type DocumentStatus = (typeof DocumentStatus)[keyof typeof DocumentStatus];
255
+ export declare const StageStatus: {
256
+ readonly PENDING: "PENDING";
257
+ readonly IN_PROGRESS: "IN_PROGRESS";
258
+ readonly AWAITING_TRANSITION: "AWAITING_TRANSITION";
259
+ readonly COMPLETED: "COMPLETED";
260
+ };
261
+ export type StageStatus = (typeof StageStatus)[keyof typeof StageStatus];
262
+ export declare const UploadedBy: {
263
+ readonly CUSTOMER: "CUSTOMER";
264
+ readonly LENDER: "LENDER";
265
+ readonly DEVELOPER: "DEVELOPER";
266
+ readonly LEGAL: "LEGAL";
267
+ readonly INSURER: "INSURER";
268
+ readonly PLATFORM: "PLATFORM";
269
+ };
270
+ export type UploadedBy = (typeof UploadedBy)[keyof typeof UploadedBy];
271
+ export declare const RejectionBehavior: {
272
+ readonly CASCADE_BACK: "CASCADE_BACK";
273
+ readonly RESTART_CURRENT: "RESTART_CURRENT";
274
+ readonly RESTART_FROM_STAGE: "RESTART_FROM_STAGE";
275
+ };
276
+ export type RejectionBehavior = (typeof RejectionBehavior)[keyof typeof RejectionBehavior];
254
277
  export declare const OfferLetterType: {
255
278
  readonly PROVISIONAL: "PROVISIONAL";
256
279
  readonly FINAL: "FINAL";
@@ -230,7 +230,27 @@ export const DocumentStatus = {
230
230
  APPROVED: 'APPROVED',
231
231
  REJECTED: 'REJECTED',
232
232
  EXPIRED: 'EXPIRED',
233
- CANCELLED: 'CANCELLED'
233
+ CANCELLED: 'CANCELLED',
234
+ NEEDS_REUPLOAD: 'NEEDS_REUPLOAD'
235
+ };
236
+ export const StageStatus = {
237
+ PENDING: 'PENDING',
238
+ IN_PROGRESS: 'IN_PROGRESS',
239
+ AWAITING_TRANSITION: 'AWAITING_TRANSITION',
240
+ COMPLETED: 'COMPLETED'
241
+ };
242
+ export const UploadedBy = {
243
+ CUSTOMER: 'CUSTOMER',
244
+ LENDER: 'LENDER',
245
+ DEVELOPER: 'DEVELOPER',
246
+ LEGAL: 'LEGAL',
247
+ INSURER: 'INSURER',
248
+ PLATFORM: 'PLATFORM'
249
+ };
250
+ export const RejectionBehavior = {
251
+ CASCADE_BACK: 'CASCADE_BACK',
252
+ RESTART_CURRENT: 'RESTART_CURRENT',
253
+ RESTART_FROM_STAGE: 'RESTART_FROM_STAGE'
234
254
  };
235
255
  export const OfferLetterType = {
236
256
  PROVISIONAL: 'PROVISIONAL',
@@ -452,6 +452,28 @@ export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out
452
452
  get documentationPlanStep(): Prisma.DocumentationPlanStepDelegate<ExtArgs, {
453
453
  omit: OmitOpts;
454
454
  }>;
455
+ /**
456
+ * `prisma.documentDefinition`: Exposes CRUD operations for the **DocumentDefinition** model.
457
+ * Example usage:
458
+ * ```ts
459
+ * // Fetch zero or more DocumentDefinitions
460
+ * const documentDefinitions = await prisma.documentDefinition.findMany()
461
+ * ```
462
+ */
463
+ get documentDefinition(): Prisma.DocumentDefinitionDelegate<ExtArgs, {
464
+ omit: OmitOpts;
465
+ }>;
466
+ /**
467
+ * `prisma.approvalStage`: Exposes CRUD operations for the **ApprovalStage** model.
468
+ * Example usage:
469
+ * ```ts
470
+ * // Fetch zero or more ApprovalStages
471
+ * const approvalStages = await prisma.approvalStage.findMany()
472
+ * ```
473
+ */
474
+ get approvalStage(): Prisma.ApprovalStageDelegate<ExtArgs, {
475
+ omit: OmitOpts;
476
+ }>;
455
477
  /**
456
478
  * `prisma.questionnairePlan`: Exposes CRUD operations for the **QuestionnairePlan** model.
457
479
  * Example usage:
@@ -738,6 +760,28 @@ export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out
738
760
  get documentReview(): Prisma.DocumentReviewDelegate<ExtArgs, {
739
761
  omit: OmitOpts;
740
762
  }>;
763
+ /**
764
+ * `prisma.approvalStageProgress`: Exposes CRUD operations for the **ApprovalStageProgress** model.
765
+ * Example usage:
766
+ * ```ts
767
+ * // Fetch zero or more ApprovalStageProgresses
768
+ * const approvalStageProgresses = await prisma.approvalStageProgress.findMany()
769
+ * ```
770
+ */
771
+ get approvalStageProgress(): Prisma.ApprovalStageProgressDelegate<ExtArgs, {
772
+ omit: OmitOpts;
773
+ }>;
774
+ /**
775
+ * `prisma.documentApproval`: Exposes CRUD operations for the **DocumentApproval** model.
776
+ * Example usage:
777
+ * ```ts
778
+ * // Fetch zero or more DocumentApprovals
779
+ * const documentApprovals = await prisma.documentApproval.findMany()
780
+ * ```
781
+ */
782
+ get documentApproval(): Prisma.DocumentApprovalDelegate<ExtArgs, {
783
+ omit: OmitOpts;
784
+ }>;
741
785
  /**
742
786
  * `prisma.documentTemplate`: Exposes CRUD operations for the **DocumentTemplate** model.
743
787
  * Example usage: