@valentine-efagene/qshelter-common 2.0.138 → 2.0.140

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 (34) hide show
  1. package/dist/generated/client/browser.d.ts +17 -17
  2. package/dist/generated/client/client.d.ts +17 -17
  3. package/dist/generated/client/commonInputTypes.d.ts +142 -202
  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 +37 -37
  7. package/dist/generated/client/internal/class.js +2 -2
  8. package/dist/generated/client/internal/prismaNamespace.d.ts +348 -377
  9. package/dist/generated/client/internal/prismaNamespace.js +91 -116
  10. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +97 -122
  11. package/dist/generated/client/internal/prismaNamespaceBrowser.js +91 -116
  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 +215 -629
  23. package/dist/generated/client/models/DocumentationPlan.d.ts +188 -57
  24. package/dist/generated/client/models/PaymentMethodPhaseStep.d.ts +3 -0
  25. package/dist/generated/client/models/Tenant.d.ts +640 -1203
  26. package/dist/generated/client/models/User.d.ts +414 -817
  27. package/dist/generated/client/models/index.d.ts +4 -4
  28. package/dist/generated/client/models/index.js +4 -4
  29. package/dist/generated/client/models.d.ts +4 -4
  30. package/dist/src/utils/documentation-enums.d.ts +10 -1
  31. package/dist/src/utils/documentation-enums.js +8 -0
  32. package/package.json +1 -1
  33. package/prisma/migrations/20260119190336_add_document_approval_workflow/migration.sql +134 -0
  34. package/prisma/schema.prisma +229 -214
@@ -261,7 +261,8 @@ export declare const ModelName: {
261
261
  readonly PropertyUnit: "PropertyUnit";
262
262
  readonly PropertyAmenity: "PropertyAmenity";
263
263
  readonly DocumentationPlan: "DocumentationPlan";
264
- readonly DocumentationPlanStep: "DocumentationPlanStep";
264
+ readonly DocumentDefinition: "DocumentDefinition";
265
+ readonly ApprovalStage: "ApprovalStage";
265
266
  readonly QuestionnairePlan: "QuestionnairePlan";
266
267
  readonly QuestionnairePlanQuestion: "QuestionnairePlanQuestion";
267
268
  readonly PaymentPlan: "PaymentPlan";
@@ -281,13 +282,12 @@ export declare const ModelName: {
281
282
  readonly PaymentPhase: "PaymentPhase";
282
283
  readonly QuestionnaireField: "QuestionnaireField";
283
284
  readonly ApplicationEvent: "ApplicationEvent";
284
- readonly DocumentationStep: "DocumentationStep";
285
- readonly DocumentationStepDocument: "DocumentationStepDocument";
286
- readonly DocumentationStepApproval: "DocumentationStepApproval";
287
285
  readonly PaymentInstallment: "PaymentInstallment";
288
286
  readonly ApplicationPayment: "ApplicationPayment";
289
287
  readonly ApplicationDocument: "ApplicationDocument";
290
288
  readonly DocumentReview: "DocumentReview";
289
+ readonly ApprovalStageProgress: "ApprovalStageProgress";
290
+ readonly DocumentApproval: "DocumentApproval";
291
291
  readonly DocumentTemplate: "DocumentTemplate";
292
292
  readonly OfferLetter: "OfferLetter";
293
293
  readonly ApplicationTermination: "ApplicationTermination";
@@ -314,7 +314,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
314
314
  omit: GlobalOmitOptions;
315
315
  };
316
316
  meta: {
317
- modelProps: "user" | "role" | "permission" | "rolePermission" | "userRole" | "tenantMembership" | "organization" | "organizationMember" | "tenant" | "apiKey" | "refreshToken" | "passwordReset" | "userSuspension" | "emailPreference" | "deviceEndpoint" | "social" | "oAuthState" | "wallet" | "transaction" | "settings" | "property" | "propertyMedia" | "propertyDocument" | "amenity" | "propertyVariant" | "propertyVariantAmenity" | "propertyVariantMedia" | "propertyUnit" | "propertyAmenity" | "documentationPlan" | "documentationPlanStep" | "questionnairePlan" | "questionnairePlanQuestion" | "paymentPlan" | "propertyPaymentMethod" | "propertyPaymentMethodLink" | "propertyPaymentMethodPhase" | "phaseEventAttachment" | "paymentMethodPhaseStep" | "stepEventAttachment" | "paymentMethodPhaseDocument" | "paymentMethodPhaseField" | "application" | "applicationRefund" | "applicationPhase" | "questionnairePhase" | "documentationPhase" | "paymentPhase" | "questionnaireField" | "applicationEvent" | "documentationStep" | "documentationStepDocument" | "documentationStepApproval" | "paymentInstallment" | "applicationPayment" | "applicationDocument" | "documentReview" | "documentTemplate" | "offerLetter" | "applicationTermination" | "paymentMethodChangeRequest" | "documentRequirementRule" | "eventChannel" | "eventType" | "eventHandler" | "workflowEvent" | "eventHandlerExecution" | "domainEvent" | "propertyTransferRequest" | "approvalRequest" | "workflowBlocker";
317
+ modelProps: "user" | "role" | "permission" | "rolePermission" | "userRole" | "tenantMembership" | "organization" | "organizationMember" | "tenant" | "apiKey" | "refreshToken" | "passwordReset" | "userSuspension" | "emailPreference" | "deviceEndpoint" | "social" | "oAuthState" | "wallet" | "transaction" | "settings" | "property" | "propertyMedia" | "propertyDocument" | "amenity" | "propertyVariant" | "propertyVariantAmenity" | "propertyVariantMedia" | "propertyUnit" | "propertyAmenity" | "documentationPlan" | "documentDefinition" | "approvalStage" | "questionnairePlan" | "questionnairePlanQuestion" | "paymentPlan" | "propertyPaymentMethod" | "propertyPaymentMethodLink" | "propertyPaymentMethodPhase" | "phaseEventAttachment" | "paymentMethodPhaseStep" | "stepEventAttachment" | "paymentMethodPhaseDocument" | "paymentMethodPhaseField" | "application" | "applicationRefund" | "applicationPhase" | "questionnairePhase" | "documentationPhase" | "paymentPhase" | "questionnaireField" | "applicationEvent" | "paymentInstallment" | "applicationPayment" | "applicationDocument" | "documentReview" | "approvalStageProgress" | "documentApproval" | "documentTemplate" | "offerLetter" | "applicationTermination" | "paymentMethodChangeRequest" | "documentRequirementRule" | "eventChannel" | "eventType" | "eventHandler" | "workflowEvent" | "eventHandlerExecution" | "domainEvent" | "propertyTransferRequest" | "approvalRequest" | "workflowBlocker";
318
318
  txIsolationLevel: TransactionIsolationLevel;
319
319
  };
320
320
  model: {
@@ -2298,69 +2298,135 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
2298
2298
  };
2299
2299
  };
2300
2300
  };
2301
- DocumentationPlanStep: {
2302
- payload: Prisma.$DocumentationPlanStepPayload<ExtArgs>;
2303
- fields: Prisma.DocumentationPlanStepFieldRefs;
2301
+ DocumentDefinition: {
2302
+ payload: Prisma.$DocumentDefinitionPayload<ExtArgs>;
2303
+ fields: Prisma.DocumentDefinitionFieldRefs;
2304
2304
  operations: {
2305
2305
  findUnique: {
2306
- args: Prisma.DocumentationPlanStepFindUniqueArgs<ExtArgs>;
2307
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationPlanStepPayload> | null;
2306
+ args: Prisma.DocumentDefinitionFindUniqueArgs<ExtArgs>;
2307
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentDefinitionPayload> | null;
2308
2308
  };
2309
2309
  findUniqueOrThrow: {
2310
- args: Prisma.DocumentationPlanStepFindUniqueOrThrowArgs<ExtArgs>;
2311
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationPlanStepPayload>;
2310
+ args: Prisma.DocumentDefinitionFindUniqueOrThrowArgs<ExtArgs>;
2311
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentDefinitionPayload>;
2312
2312
  };
2313
2313
  findFirst: {
2314
- args: Prisma.DocumentationPlanStepFindFirstArgs<ExtArgs>;
2315
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationPlanStepPayload> | null;
2314
+ args: Prisma.DocumentDefinitionFindFirstArgs<ExtArgs>;
2315
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentDefinitionPayload> | null;
2316
2316
  };
2317
2317
  findFirstOrThrow: {
2318
- args: Prisma.DocumentationPlanStepFindFirstOrThrowArgs<ExtArgs>;
2319
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationPlanStepPayload>;
2318
+ args: Prisma.DocumentDefinitionFindFirstOrThrowArgs<ExtArgs>;
2319
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentDefinitionPayload>;
2320
2320
  };
2321
2321
  findMany: {
2322
- args: Prisma.DocumentationPlanStepFindManyArgs<ExtArgs>;
2323
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationPlanStepPayload>[];
2322
+ args: Prisma.DocumentDefinitionFindManyArgs<ExtArgs>;
2323
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentDefinitionPayload>[];
2324
2324
  };
2325
2325
  create: {
2326
- args: Prisma.DocumentationPlanStepCreateArgs<ExtArgs>;
2327
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationPlanStepPayload>;
2326
+ args: Prisma.DocumentDefinitionCreateArgs<ExtArgs>;
2327
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentDefinitionPayload>;
2328
2328
  };
2329
2329
  createMany: {
2330
- args: Prisma.DocumentationPlanStepCreateManyArgs<ExtArgs>;
2330
+ args: Prisma.DocumentDefinitionCreateManyArgs<ExtArgs>;
2331
2331
  result: BatchPayload;
2332
2332
  };
2333
2333
  delete: {
2334
- args: Prisma.DocumentationPlanStepDeleteArgs<ExtArgs>;
2335
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationPlanStepPayload>;
2334
+ args: Prisma.DocumentDefinitionDeleteArgs<ExtArgs>;
2335
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentDefinitionPayload>;
2336
2336
  };
2337
2337
  update: {
2338
- args: Prisma.DocumentationPlanStepUpdateArgs<ExtArgs>;
2339
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationPlanStepPayload>;
2338
+ args: Prisma.DocumentDefinitionUpdateArgs<ExtArgs>;
2339
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentDefinitionPayload>;
2340
2340
  };
2341
2341
  deleteMany: {
2342
- args: Prisma.DocumentationPlanStepDeleteManyArgs<ExtArgs>;
2342
+ args: Prisma.DocumentDefinitionDeleteManyArgs<ExtArgs>;
2343
2343
  result: BatchPayload;
2344
2344
  };
2345
2345
  updateMany: {
2346
- args: Prisma.DocumentationPlanStepUpdateManyArgs<ExtArgs>;
2346
+ args: Prisma.DocumentDefinitionUpdateManyArgs<ExtArgs>;
2347
2347
  result: BatchPayload;
2348
2348
  };
2349
2349
  upsert: {
2350
- args: Prisma.DocumentationPlanStepUpsertArgs<ExtArgs>;
2351
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationPlanStepPayload>;
2350
+ args: Prisma.DocumentDefinitionUpsertArgs<ExtArgs>;
2351
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentDefinitionPayload>;
2352
2352
  };
2353
2353
  aggregate: {
2354
- args: Prisma.DocumentationPlanStepAggregateArgs<ExtArgs>;
2355
- result: runtime.Types.Utils.Optional<Prisma.AggregateDocumentationPlanStep>;
2354
+ args: Prisma.DocumentDefinitionAggregateArgs<ExtArgs>;
2355
+ result: runtime.Types.Utils.Optional<Prisma.AggregateDocumentDefinition>;
2356
2356
  };
2357
2357
  groupBy: {
2358
- args: Prisma.DocumentationPlanStepGroupByArgs<ExtArgs>;
2359
- result: runtime.Types.Utils.Optional<Prisma.DocumentationPlanStepGroupByOutputType>[];
2358
+ args: Prisma.DocumentDefinitionGroupByArgs<ExtArgs>;
2359
+ result: runtime.Types.Utils.Optional<Prisma.DocumentDefinitionGroupByOutputType>[];
2360
2360
  };
2361
2361
  count: {
2362
- args: Prisma.DocumentationPlanStepCountArgs<ExtArgs>;
2363
- result: runtime.Types.Utils.Optional<Prisma.DocumentationPlanStepCountAggregateOutputType> | number;
2362
+ args: Prisma.DocumentDefinitionCountArgs<ExtArgs>;
2363
+ result: runtime.Types.Utils.Optional<Prisma.DocumentDefinitionCountAggregateOutputType> | number;
2364
+ };
2365
+ };
2366
+ };
2367
+ ApprovalStage: {
2368
+ payload: Prisma.$ApprovalStagePayload<ExtArgs>;
2369
+ fields: Prisma.ApprovalStageFieldRefs;
2370
+ operations: {
2371
+ findUnique: {
2372
+ args: Prisma.ApprovalStageFindUniqueArgs<ExtArgs>;
2373
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStagePayload> | null;
2374
+ };
2375
+ findUniqueOrThrow: {
2376
+ args: Prisma.ApprovalStageFindUniqueOrThrowArgs<ExtArgs>;
2377
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStagePayload>;
2378
+ };
2379
+ findFirst: {
2380
+ args: Prisma.ApprovalStageFindFirstArgs<ExtArgs>;
2381
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStagePayload> | null;
2382
+ };
2383
+ findFirstOrThrow: {
2384
+ args: Prisma.ApprovalStageFindFirstOrThrowArgs<ExtArgs>;
2385
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStagePayload>;
2386
+ };
2387
+ findMany: {
2388
+ args: Prisma.ApprovalStageFindManyArgs<ExtArgs>;
2389
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStagePayload>[];
2390
+ };
2391
+ create: {
2392
+ args: Prisma.ApprovalStageCreateArgs<ExtArgs>;
2393
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStagePayload>;
2394
+ };
2395
+ createMany: {
2396
+ args: Prisma.ApprovalStageCreateManyArgs<ExtArgs>;
2397
+ result: BatchPayload;
2398
+ };
2399
+ delete: {
2400
+ args: Prisma.ApprovalStageDeleteArgs<ExtArgs>;
2401
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStagePayload>;
2402
+ };
2403
+ update: {
2404
+ args: Prisma.ApprovalStageUpdateArgs<ExtArgs>;
2405
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStagePayload>;
2406
+ };
2407
+ deleteMany: {
2408
+ args: Prisma.ApprovalStageDeleteManyArgs<ExtArgs>;
2409
+ result: BatchPayload;
2410
+ };
2411
+ updateMany: {
2412
+ args: Prisma.ApprovalStageUpdateManyArgs<ExtArgs>;
2413
+ result: BatchPayload;
2414
+ };
2415
+ upsert: {
2416
+ args: Prisma.ApprovalStageUpsertArgs<ExtArgs>;
2417
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStagePayload>;
2418
+ };
2419
+ aggregate: {
2420
+ args: Prisma.ApprovalStageAggregateArgs<ExtArgs>;
2421
+ result: runtime.Types.Utils.Optional<Prisma.AggregateApprovalStage>;
2422
+ };
2423
+ groupBy: {
2424
+ args: Prisma.ApprovalStageGroupByArgs<ExtArgs>;
2425
+ result: runtime.Types.Utils.Optional<Prisma.ApprovalStageGroupByOutputType>[];
2426
+ };
2427
+ count: {
2428
+ args: Prisma.ApprovalStageCountArgs<ExtArgs>;
2429
+ result: runtime.Types.Utils.Optional<Prisma.ApprovalStageCountAggregateOutputType> | number;
2364
2430
  };
2365
2431
  };
2366
2432
  };
@@ -3618,204 +3684,6 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
3618
3684
  };
3619
3685
  };
3620
3686
  };
3621
- DocumentationStep: {
3622
- payload: Prisma.$DocumentationStepPayload<ExtArgs>;
3623
- fields: Prisma.DocumentationStepFieldRefs;
3624
- operations: {
3625
- findUnique: {
3626
- args: Prisma.DocumentationStepFindUniqueArgs<ExtArgs>;
3627
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepPayload> | null;
3628
- };
3629
- findUniqueOrThrow: {
3630
- args: Prisma.DocumentationStepFindUniqueOrThrowArgs<ExtArgs>;
3631
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepPayload>;
3632
- };
3633
- findFirst: {
3634
- args: Prisma.DocumentationStepFindFirstArgs<ExtArgs>;
3635
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepPayload> | null;
3636
- };
3637
- findFirstOrThrow: {
3638
- args: Prisma.DocumentationStepFindFirstOrThrowArgs<ExtArgs>;
3639
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepPayload>;
3640
- };
3641
- findMany: {
3642
- args: Prisma.DocumentationStepFindManyArgs<ExtArgs>;
3643
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepPayload>[];
3644
- };
3645
- create: {
3646
- args: Prisma.DocumentationStepCreateArgs<ExtArgs>;
3647
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepPayload>;
3648
- };
3649
- createMany: {
3650
- args: Prisma.DocumentationStepCreateManyArgs<ExtArgs>;
3651
- result: BatchPayload;
3652
- };
3653
- delete: {
3654
- args: Prisma.DocumentationStepDeleteArgs<ExtArgs>;
3655
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepPayload>;
3656
- };
3657
- update: {
3658
- args: Prisma.DocumentationStepUpdateArgs<ExtArgs>;
3659
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepPayload>;
3660
- };
3661
- deleteMany: {
3662
- args: Prisma.DocumentationStepDeleteManyArgs<ExtArgs>;
3663
- result: BatchPayload;
3664
- };
3665
- updateMany: {
3666
- args: Prisma.DocumentationStepUpdateManyArgs<ExtArgs>;
3667
- result: BatchPayload;
3668
- };
3669
- upsert: {
3670
- args: Prisma.DocumentationStepUpsertArgs<ExtArgs>;
3671
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepPayload>;
3672
- };
3673
- aggregate: {
3674
- args: Prisma.DocumentationStepAggregateArgs<ExtArgs>;
3675
- result: runtime.Types.Utils.Optional<Prisma.AggregateDocumentationStep>;
3676
- };
3677
- groupBy: {
3678
- args: Prisma.DocumentationStepGroupByArgs<ExtArgs>;
3679
- result: runtime.Types.Utils.Optional<Prisma.DocumentationStepGroupByOutputType>[];
3680
- };
3681
- count: {
3682
- args: Prisma.DocumentationStepCountArgs<ExtArgs>;
3683
- result: runtime.Types.Utils.Optional<Prisma.DocumentationStepCountAggregateOutputType> | number;
3684
- };
3685
- };
3686
- };
3687
- DocumentationStepDocument: {
3688
- payload: Prisma.$DocumentationStepDocumentPayload<ExtArgs>;
3689
- fields: Prisma.DocumentationStepDocumentFieldRefs;
3690
- operations: {
3691
- findUnique: {
3692
- args: Prisma.DocumentationStepDocumentFindUniqueArgs<ExtArgs>;
3693
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepDocumentPayload> | null;
3694
- };
3695
- findUniqueOrThrow: {
3696
- args: Prisma.DocumentationStepDocumentFindUniqueOrThrowArgs<ExtArgs>;
3697
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepDocumentPayload>;
3698
- };
3699
- findFirst: {
3700
- args: Prisma.DocumentationStepDocumentFindFirstArgs<ExtArgs>;
3701
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepDocumentPayload> | null;
3702
- };
3703
- findFirstOrThrow: {
3704
- args: Prisma.DocumentationStepDocumentFindFirstOrThrowArgs<ExtArgs>;
3705
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepDocumentPayload>;
3706
- };
3707
- findMany: {
3708
- args: Prisma.DocumentationStepDocumentFindManyArgs<ExtArgs>;
3709
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepDocumentPayload>[];
3710
- };
3711
- create: {
3712
- args: Prisma.DocumentationStepDocumentCreateArgs<ExtArgs>;
3713
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepDocumentPayload>;
3714
- };
3715
- createMany: {
3716
- args: Prisma.DocumentationStepDocumentCreateManyArgs<ExtArgs>;
3717
- result: BatchPayload;
3718
- };
3719
- delete: {
3720
- args: Prisma.DocumentationStepDocumentDeleteArgs<ExtArgs>;
3721
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepDocumentPayload>;
3722
- };
3723
- update: {
3724
- args: Prisma.DocumentationStepDocumentUpdateArgs<ExtArgs>;
3725
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepDocumentPayload>;
3726
- };
3727
- deleteMany: {
3728
- args: Prisma.DocumentationStepDocumentDeleteManyArgs<ExtArgs>;
3729
- result: BatchPayload;
3730
- };
3731
- updateMany: {
3732
- args: Prisma.DocumentationStepDocumentUpdateManyArgs<ExtArgs>;
3733
- result: BatchPayload;
3734
- };
3735
- upsert: {
3736
- args: Prisma.DocumentationStepDocumentUpsertArgs<ExtArgs>;
3737
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepDocumentPayload>;
3738
- };
3739
- aggregate: {
3740
- args: Prisma.DocumentationStepDocumentAggregateArgs<ExtArgs>;
3741
- result: runtime.Types.Utils.Optional<Prisma.AggregateDocumentationStepDocument>;
3742
- };
3743
- groupBy: {
3744
- args: Prisma.DocumentationStepDocumentGroupByArgs<ExtArgs>;
3745
- result: runtime.Types.Utils.Optional<Prisma.DocumentationStepDocumentGroupByOutputType>[];
3746
- };
3747
- count: {
3748
- args: Prisma.DocumentationStepDocumentCountArgs<ExtArgs>;
3749
- result: runtime.Types.Utils.Optional<Prisma.DocumentationStepDocumentCountAggregateOutputType> | number;
3750
- };
3751
- };
3752
- };
3753
- DocumentationStepApproval: {
3754
- payload: Prisma.$DocumentationStepApprovalPayload<ExtArgs>;
3755
- fields: Prisma.DocumentationStepApprovalFieldRefs;
3756
- operations: {
3757
- findUnique: {
3758
- args: Prisma.DocumentationStepApprovalFindUniqueArgs<ExtArgs>;
3759
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepApprovalPayload> | null;
3760
- };
3761
- findUniqueOrThrow: {
3762
- args: Prisma.DocumentationStepApprovalFindUniqueOrThrowArgs<ExtArgs>;
3763
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepApprovalPayload>;
3764
- };
3765
- findFirst: {
3766
- args: Prisma.DocumentationStepApprovalFindFirstArgs<ExtArgs>;
3767
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepApprovalPayload> | null;
3768
- };
3769
- findFirstOrThrow: {
3770
- args: Prisma.DocumentationStepApprovalFindFirstOrThrowArgs<ExtArgs>;
3771
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepApprovalPayload>;
3772
- };
3773
- findMany: {
3774
- args: Prisma.DocumentationStepApprovalFindManyArgs<ExtArgs>;
3775
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepApprovalPayload>[];
3776
- };
3777
- create: {
3778
- args: Prisma.DocumentationStepApprovalCreateArgs<ExtArgs>;
3779
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepApprovalPayload>;
3780
- };
3781
- createMany: {
3782
- args: Prisma.DocumentationStepApprovalCreateManyArgs<ExtArgs>;
3783
- result: BatchPayload;
3784
- };
3785
- delete: {
3786
- args: Prisma.DocumentationStepApprovalDeleteArgs<ExtArgs>;
3787
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepApprovalPayload>;
3788
- };
3789
- update: {
3790
- args: Prisma.DocumentationStepApprovalUpdateArgs<ExtArgs>;
3791
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepApprovalPayload>;
3792
- };
3793
- deleteMany: {
3794
- args: Prisma.DocumentationStepApprovalDeleteManyArgs<ExtArgs>;
3795
- result: BatchPayload;
3796
- };
3797
- updateMany: {
3798
- args: Prisma.DocumentationStepApprovalUpdateManyArgs<ExtArgs>;
3799
- result: BatchPayload;
3800
- };
3801
- upsert: {
3802
- args: Prisma.DocumentationStepApprovalUpsertArgs<ExtArgs>;
3803
- result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentationStepApprovalPayload>;
3804
- };
3805
- aggregate: {
3806
- args: Prisma.DocumentationStepApprovalAggregateArgs<ExtArgs>;
3807
- result: runtime.Types.Utils.Optional<Prisma.AggregateDocumentationStepApproval>;
3808
- };
3809
- groupBy: {
3810
- args: Prisma.DocumentationStepApprovalGroupByArgs<ExtArgs>;
3811
- result: runtime.Types.Utils.Optional<Prisma.DocumentationStepApprovalGroupByOutputType>[];
3812
- };
3813
- count: {
3814
- args: Prisma.DocumentationStepApprovalCountArgs<ExtArgs>;
3815
- result: runtime.Types.Utils.Optional<Prisma.DocumentationStepApprovalCountAggregateOutputType> | number;
3816
- };
3817
- };
3818
- };
3819
3687
  PaymentInstallment: {
3820
3688
  payload: Prisma.$PaymentInstallmentPayload<ExtArgs>;
3821
3689
  fields: Prisma.PaymentInstallmentFieldRefs;
@@ -4080,6 +3948,138 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
4080
3948
  };
4081
3949
  };
4082
3950
  };
3951
+ ApprovalStageProgress: {
3952
+ payload: Prisma.$ApprovalStageProgressPayload<ExtArgs>;
3953
+ fields: Prisma.ApprovalStageProgressFieldRefs;
3954
+ operations: {
3955
+ findUnique: {
3956
+ args: Prisma.ApprovalStageProgressFindUniqueArgs<ExtArgs>;
3957
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStageProgressPayload> | null;
3958
+ };
3959
+ findUniqueOrThrow: {
3960
+ args: Prisma.ApprovalStageProgressFindUniqueOrThrowArgs<ExtArgs>;
3961
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStageProgressPayload>;
3962
+ };
3963
+ findFirst: {
3964
+ args: Prisma.ApprovalStageProgressFindFirstArgs<ExtArgs>;
3965
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStageProgressPayload> | null;
3966
+ };
3967
+ findFirstOrThrow: {
3968
+ args: Prisma.ApprovalStageProgressFindFirstOrThrowArgs<ExtArgs>;
3969
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStageProgressPayload>;
3970
+ };
3971
+ findMany: {
3972
+ args: Prisma.ApprovalStageProgressFindManyArgs<ExtArgs>;
3973
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStageProgressPayload>[];
3974
+ };
3975
+ create: {
3976
+ args: Prisma.ApprovalStageProgressCreateArgs<ExtArgs>;
3977
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStageProgressPayload>;
3978
+ };
3979
+ createMany: {
3980
+ args: Prisma.ApprovalStageProgressCreateManyArgs<ExtArgs>;
3981
+ result: BatchPayload;
3982
+ };
3983
+ delete: {
3984
+ args: Prisma.ApprovalStageProgressDeleteArgs<ExtArgs>;
3985
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStageProgressPayload>;
3986
+ };
3987
+ update: {
3988
+ args: Prisma.ApprovalStageProgressUpdateArgs<ExtArgs>;
3989
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStageProgressPayload>;
3990
+ };
3991
+ deleteMany: {
3992
+ args: Prisma.ApprovalStageProgressDeleteManyArgs<ExtArgs>;
3993
+ result: BatchPayload;
3994
+ };
3995
+ updateMany: {
3996
+ args: Prisma.ApprovalStageProgressUpdateManyArgs<ExtArgs>;
3997
+ result: BatchPayload;
3998
+ };
3999
+ upsert: {
4000
+ args: Prisma.ApprovalStageProgressUpsertArgs<ExtArgs>;
4001
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStageProgressPayload>;
4002
+ };
4003
+ aggregate: {
4004
+ args: Prisma.ApprovalStageProgressAggregateArgs<ExtArgs>;
4005
+ result: runtime.Types.Utils.Optional<Prisma.AggregateApprovalStageProgress>;
4006
+ };
4007
+ groupBy: {
4008
+ args: Prisma.ApprovalStageProgressGroupByArgs<ExtArgs>;
4009
+ result: runtime.Types.Utils.Optional<Prisma.ApprovalStageProgressGroupByOutputType>[];
4010
+ };
4011
+ count: {
4012
+ args: Prisma.ApprovalStageProgressCountArgs<ExtArgs>;
4013
+ result: runtime.Types.Utils.Optional<Prisma.ApprovalStageProgressCountAggregateOutputType> | number;
4014
+ };
4015
+ };
4016
+ };
4017
+ DocumentApproval: {
4018
+ payload: Prisma.$DocumentApprovalPayload<ExtArgs>;
4019
+ fields: Prisma.DocumentApprovalFieldRefs;
4020
+ operations: {
4021
+ findUnique: {
4022
+ args: Prisma.DocumentApprovalFindUniqueArgs<ExtArgs>;
4023
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentApprovalPayload> | null;
4024
+ };
4025
+ findUniqueOrThrow: {
4026
+ args: Prisma.DocumentApprovalFindUniqueOrThrowArgs<ExtArgs>;
4027
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentApprovalPayload>;
4028
+ };
4029
+ findFirst: {
4030
+ args: Prisma.DocumentApprovalFindFirstArgs<ExtArgs>;
4031
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentApprovalPayload> | null;
4032
+ };
4033
+ findFirstOrThrow: {
4034
+ args: Prisma.DocumentApprovalFindFirstOrThrowArgs<ExtArgs>;
4035
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentApprovalPayload>;
4036
+ };
4037
+ findMany: {
4038
+ args: Prisma.DocumentApprovalFindManyArgs<ExtArgs>;
4039
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentApprovalPayload>[];
4040
+ };
4041
+ create: {
4042
+ args: Prisma.DocumentApprovalCreateArgs<ExtArgs>;
4043
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentApprovalPayload>;
4044
+ };
4045
+ createMany: {
4046
+ args: Prisma.DocumentApprovalCreateManyArgs<ExtArgs>;
4047
+ result: BatchPayload;
4048
+ };
4049
+ delete: {
4050
+ args: Prisma.DocumentApprovalDeleteArgs<ExtArgs>;
4051
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentApprovalPayload>;
4052
+ };
4053
+ update: {
4054
+ args: Prisma.DocumentApprovalUpdateArgs<ExtArgs>;
4055
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentApprovalPayload>;
4056
+ };
4057
+ deleteMany: {
4058
+ args: Prisma.DocumentApprovalDeleteManyArgs<ExtArgs>;
4059
+ result: BatchPayload;
4060
+ };
4061
+ updateMany: {
4062
+ args: Prisma.DocumentApprovalUpdateManyArgs<ExtArgs>;
4063
+ result: BatchPayload;
4064
+ };
4065
+ upsert: {
4066
+ args: Prisma.DocumentApprovalUpsertArgs<ExtArgs>;
4067
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentApprovalPayload>;
4068
+ };
4069
+ aggregate: {
4070
+ args: Prisma.DocumentApprovalAggregateArgs<ExtArgs>;
4071
+ result: runtime.Types.Utils.Optional<Prisma.AggregateDocumentApproval>;
4072
+ };
4073
+ groupBy: {
4074
+ args: Prisma.DocumentApprovalGroupByArgs<ExtArgs>;
4075
+ result: runtime.Types.Utils.Optional<Prisma.DocumentApprovalGroupByOutputType>[];
4076
+ };
4077
+ count: {
4078
+ args: Prisma.DocumentApprovalCountArgs<ExtArgs>;
4079
+ result: runtime.Types.Utils.Optional<Prisma.DocumentApprovalCountAggregateOutputType> | number;
4080
+ };
4081
+ };
4082
+ };
4083
4083
  DocumentTemplate: {
4084
4084
  payload: Prisma.$DocumentTemplatePayload<ExtArgs>;
4085
4085
  fields: Prisma.DocumentTemplateFieldRefs;
@@ -5410,37 +5410,43 @@ export declare const DocumentationPlanScalarFieldEnum: {
5410
5410
  readonly updatedAt: "updatedAt";
5411
5411
  };
5412
5412
  export type DocumentationPlanScalarFieldEnum = (typeof DocumentationPlanScalarFieldEnum)[keyof typeof DocumentationPlanScalarFieldEnum];
5413
- export declare const DocumentationPlanStepScalarFieldEnum: {
5413
+ export declare const DocumentDefinitionScalarFieldEnum: {
5414
5414
  readonly id: "id";
5415
5415
  readonly planId: "planId";
5416
- readonly name: "name";
5417
- readonly stepType: "stepType";
5418
- readonly order: "order";
5419
5416
  readonly documentType: "documentType";
5420
5417
  readonly documentName: "documentName";
5421
- readonly metadata: "metadata";
5418
+ readonly uploadedBy: "uploadedBy";
5419
+ readonly order: "order";
5422
5420
  readonly isRequired: "isRequired";
5423
5421
  readonly description: "description";
5424
5422
  readonly maxSizeBytes: "maxSizeBytes";
5425
5423
  readonly allowedMimeTypes: "allowedMimeTypes";
5426
5424
  readonly expiryDays: "expiryDays";
5427
- readonly requiresManualReview: "requiresManualReview";
5428
5425
  readonly minFiles: "minFiles";
5429
5426
  readonly maxFiles: "maxFiles";
5430
5427
  readonly condition: "condition";
5431
- readonly reviewRequirements: "reviewRequirements";
5432
- readonly reviewOrder: "reviewOrder";
5433
- readonly gateActor: "gateActor";
5434
- readonly gateAction: "gateAction";
5435
- readonly gateRoleId: "gateRoleId";
5436
- readonly gateInstructions: "gateInstructions";
5437
- readonly allowReject: "allowReject";
5438
- readonly rejectBehavior: "rejectBehavior";
5439
- readonly requiresComment: "requiresComment";
5440
5428
  readonly createdAt: "createdAt";
5441
5429
  readonly updatedAt: "updatedAt";
5442
5430
  };
5443
- export type DocumentationPlanStepScalarFieldEnum = (typeof DocumentationPlanStepScalarFieldEnum)[keyof typeof DocumentationPlanStepScalarFieldEnum];
5431
+ export type DocumentDefinitionScalarFieldEnum = (typeof DocumentDefinitionScalarFieldEnum)[keyof typeof DocumentDefinitionScalarFieldEnum];
5432
+ export declare const ApprovalStageScalarFieldEnum: {
5433
+ readonly id: "id";
5434
+ readonly planId: "planId";
5435
+ readonly name: "name";
5436
+ readonly order: "order";
5437
+ readonly reviewParty: "reviewParty";
5438
+ readonly autoTransition: "autoTransition";
5439
+ readonly waitForAllDocuments: "waitForAllDocuments";
5440
+ readonly allowEarlyVisibility: "allowEarlyVisibility";
5441
+ readonly onRejection: "onRejection";
5442
+ readonly restartFromStageOrder: "restartFromStageOrder";
5443
+ readonly organizationId: "organizationId";
5444
+ readonly slaHours: "slaHours";
5445
+ readonly description: "description";
5446
+ readonly createdAt: "createdAt";
5447
+ readonly updatedAt: "updatedAt";
5448
+ };
5449
+ export type ApprovalStageScalarFieldEnum = (typeof ApprovalStageScalarFieldEnum)[keyof typeof ApprovalStageScalarFieldEnum];
5444
5450
  export declare const QuestionnairePlanScalarFieldEnum: {
5445
5451
  readonly id: "id";
5446
5452
  readonly tenantId: "tenantId";
@@ -5712,15 +5718,11 @@ export declare const DocumentationPhaseScalarFieldEnum: {
5712
5718
  readonly phaseId: "phaseId";
5713
5719
  readonly documentationPlanId: "documentationPlanId";
5714
5720
  readonly sourceQuestionnairePhaseId: "sourceQuestionnairePhaseId";
5715
- readonly currentStepId: "currentStepId";
5721
+ readonly currentStageOrder: "currentStageOrder";
5716
5722
  readonly approvedDocumentsCount: "approvedDocumentsCount";
5717
5723
  readonly requiredDocumentsCount: "requiredDocumentsCount";
5718
- readonly completedStepsCount: "completedStepsCount";
5719
- readonly totalStepsCount: "totalStepsCount";
5720
- readonly minimumCompletionPercentage: "minimumCompletionPercentage";
5721
- readonly completionCriterion: "completionCriterion";
5722
- readonly stepDefinitionsSnapshot: "stepDefinitionsSnapshot";
5723
- readonly requiredDocumentSnapshot: "requiredDocumentSnapshot";
5724
+ readonly documentDefinitionsSnapshot: "documentDefinitionsSnapshot";
5725
+ readonly approvalStagesSnapshot: "approvalStagesSnapshot";
5724
5726
  readonly createdAt: "createdAt";
5725
5727
  readonly updatedAt: "updatedAt";
5726
5728
  };
@@ -5779,62 +5781,6 @@ export declare const ApplicationEventScalarFieldEnum: {
5779
5781
  readonly occurredAt: "occurredAt";
5780
5782
  };
5781
5783
  export type ApplicationEventScalarFieldEnum = (typeof ApplicationEventScalarFieldEnum)[keyof typeof ApplicationEventScalarFieldEnum];
5782
- export declare const DocumentationStepScalarFieldEnum: {
5783
- readonly id: "id";
5784
- readonly tenantId: "tenantId";
5785
- readonly documentationPhaseId: "documentationPhaseId";
5786
- readonly name: "name";
5787
- readonly documentName: "documentName";
5788
- readonly description: "description";
5789
- readonly stepType: "stepType";
5790
- readonly order: "order";
5791
- readonly status: "status";
5792
- readonly actionReason: "actionReason";
5793
- readonly submissionCount: "submissionCount";
5794
- readonly lastSubmittedAt: "lastSubmittedAt";
5795
- readonly metadata: "metadata";
5796
- readonly requiresManualReview: "requiresManualReview";
5797
- readonly condition: "condition";
5798
- readonly reviewRequirements: "reviewRequirements";
5799
- readonly reviewOrder: "reviewOrder";
5800
- readonly assigneeId: "assigneeId";
5801
- readonly gateActor: "gateActor";
5802
- readonly gateAction: "gateAction";
5803
- readonly gateRoleId: "gateRoleId";
5804
- readonly gateInstructions: "gateInstructions";
5805
- readonly allowReject: "allowReject";
5806
- readonly rejectBehavior: "rejectBehavior";
5807
- readonly requiresComment: "requiresComment";
5808
- readonly gateActedAt: "gateActedAt";
5809
- readonly gateActedById: "gateActedById";
5810
- readonly gateDecision: "gateDecision";
5811
- readonly gateComment: "gateComment";
5812
- readonly dueDate: "dueDate";
5813
- readonly completedAt: "completedAt";
5814
- readonly createdAt: "createdAt";
5815
- readonly updatedAt: "updatedAt";
5816
- };
5817
- export type DocumentationStepScalarFieldEnum = (typeof DocumentationStepScalarFieldEnum)[keyof typeof DocumentationStepScalarFieldEnum];
5818
- export declare const DocumentationStepDocumentScalarFieldEnum: {
5819
- readonly id: "id";
5820
- readonly tenantId: "tenantId";
5821
- readonly stepId: "stepId";
5822
- readonly documentType: "documentType";
5823
- readonly isRequired: "isRequired";
5824
- readonly createdAt: "createdAt";
5825
- };
5826
- export type DocumentationStepDocumentScalarFieldEnum = (typeof DocumentationStepDocumentScalarFieldEnum)[keyof typeof DocumentationStepDocumentScalarFieldEnum];
5827
- export declare const DocumentationStepApprovalScalarFieldEnum: {
5828
- readonly id: "id";
5829
- readonly tenantId: "tenantId";
5830
- readonly stepId: "stepId";
5831
- readonly approverId: "approverId";
5832
- readonly decision: "decision";
5833
- readonly comment: "comment";
5834
- readonly decidedAt: "decidedAt";
5835
- readonly createdAt: "createdAt";
5836
- };
5837
- export type DocumentationStepApprovalScalarFieldEnum = (typeof DocumentationStepApprovalScalarFieldEnum)[keyof typeof DocumentationStepApprovalScalarFieldEnum];
5838
5784
  export declare const PaymentInstallmentScalarFieldEnum: {
5839
5785
  readonly id: "id";
5840
5786
  readonly tenantId: "tenantId";
@@ -5881,6 +5827,8 @@ export declare const ApplicationDocumentScalarFieldEnum: {
5881
5827
  readonly applicationId: "applicationId";
5882
5828
  readonly phaseId: "phaseId";
5883
5829
  readonly stepId: "stepId";
5830
+ readonly documentType: "documentType";
5831
+ readonly documentName: "documentName";
5884
5832
  readonly name: "name";
5885
5833
  readonly url: "url";
5886
5834
  readonly type: "type";
@@ -5912,6 +5860,41 @@ export declare const DocumentReviewScalarFieldEnum: {
5912
5860
  readonly updatedAt: "updatedAt";
5913
5861
  };
5914
5862
  export type DocumentReviewScalarFieldEnum = (typeof DocumentReviewScalarFieldEnum)[keyof typeof DocumentReviewScalarFieldEnum];
5863
+ export declare const ApprovalStageProgressScalarFieldEnum: {
5864
+ readonly id: "id";
5865
+ readonly tenantId: "tenantId";
5866
+ readonly documentationPhaseId: "documentationPhaseId";
5867
+ readonly approvalStageId: "approvalStageId";
5868
+ readonly name: "name";
5869
+ readonly order: "order";
5870
+ readonly reviewParty: "reviewParty";
5871
+ readonly autoTransition: "autoTransition";
5872
+ readonly waitForAllDocuments: "waitForAllDocuments";
5873
+ readonly allowEarlyVisibility: "allowEarlyVisibility";
5874
+ readonly onRejection: "onRejection";
5875
+ readonly restartFromStageOrder: "restartFromStageOrder";
5876
+ readonly status: "status";
5877
+ readonly activatedAt: "activatedAt";
5878
+ readonly completedAt: "completedAt";
5879
+ readonly completedById: "completedById";
5880
+ readonly transitionComment: "transitionComment";
5881
+ readonly createdAt: "createdAt";
5882
+ readonly updatedAt: "updatedAt";
5883
+ };
5884
+ export type ApprovalStageProgressScalarFieldEnum = (typeof ApprovalStageProgressScalarFieldEnum)[keyof typeof ApprovalStageProgressScalarFieldEnum];
5885
+ export declare const DocumentApprovalScalarFieldEnum: {
5886
+ readonly id: "id";
5887
+ readonly tenantId: "tenantId";
5888
+ readonly documentId: "documentId";
5889
+ readonly stageProgressId: "stageProgressId";
5890
+ readonly reviewerId: "reviewerId";
5891
+ readonly reviewParty: "reviewParty";
5892
+ readonly decision: "decision";
5893
+ readonly comment: "comment";
5894
+ readonly reviewedAt: "reviewedAt";
5895
+ readonly createdAt: "createdAt";
5896
+ };
5897
+ export type DocumentApprovalScalarFieldEnum = (typeof DocumentApprovalScalarFieldEnum)[keyof typeof DocumentApprovalScalarFieldEnum];
5915
5898
  export declare const DocumentTemplateScalarFieldEnum: {
5916
5899
  readonly id: "id";
5917
5900
  readonly tenantId: "tenantId";
@@ -6506,19 +6489,23 @@ export declare const DocumentationPlanOrderByRelevanceFieldEnum: {
6506
6489
  readonly description: "description";
6507
6490
  };
6508
6491
  export type DocumentationPlanOrderByRelevanceFieldEnum = (typeof DocumentationPlanOrderByRelevanceFieldEnum)[keyof typeof DocumentationPlanOrderByRelevanceFieldEnum];
6509
- export declare const DocumentationPlanStepOrderByRelevanceFieldEnum: {
6492
+ export declare const DocumentDefinitionOrderByRelevanceFieldEnum: {
6510
6493
  readonly id: "id";
6511
6494
  readonly planId: "planId";
6512
- readonly name: "name";
6513
6495
  readonly documentType: "documentType";
6514
6496
  readonly documentName: "documentName";
6515
6497
  readonly description: "description";
6516
6498
  readonly allowedMimeTypes: "allowedMimeTypes";
6517
- readonly reviewOrder: "reviewOrder";
6518
- readonly gateRoleId: "gateRoleId";
6519
- readonly gateInstructions: "gateInstructions";
6520
6499
  };
6521
- export type DocumentationPlanStepOrderByRelevanceFieldEnum = (typeof DocumentationPlanStepOrderByRelevanceFieldEnum)[keyof typeof DocumentationPlanStepOrderByRelevanceFieldEnum];
6500
+ export type DocumentDefinitionOrderByRelevanceFieldEnum = (typeof DocumentDefinitionOrderByRelevanceFieldEnum)[keyof typeof DocumentDefinitionOrderByRelevanceFieldEnum];
6501
+ export declare const ApprovalStageOrderByRelevanceFieldEnum: {
6502
+ readonly id: "id";
6503
+ readonly planId: "planId";
6504
+ readonly name: "name";
6505
+ readonly organizationId: "organizationId";
6506
+ readonly description: "description";
6507
+ };
6508
+ export type ApprovalStageOrderByRelevanceFieldEnum = (typeof ApprovalStageOrderByRelevanceFieldEnum)[keyof typeof ApprovalStageOrderByRelevanceFieldEnum];
6522
6509
  export declare const QuestionnairePlanOrderByRelevanceFieldEnum: {
6523
6510
  readonly id: "id";
6524
6511
  readonly tenantId: "tenantId";
@@ -6663,7 +6650,6 @@ export declare const DocumentationPhaseOrderByRelevanceFieldEnum: {
6663
6650
  readonly phaseId: "phaseId";
6664
6651
  readonly documentationPlanId: "documentationPlanId";
6665
6652
  readonly sourceQuestionnairePhaseId: "sourceQuestionnairePhaseId";
6666
- readonly currentStepId: "currentStepId";
6667
6653
  };
6668
6654
  export type DocumentationPhaseOrderByRelevanceFieldEnum = (typeof DocumentationPhaseOrderByRelevanceFieldEnum)[keyof typeof DocumentationPhaseOrderByRelevanceFieldEnum];
6669
6655
  export declare const PaymentPhaseOrderByRelevanceFieldEnum: {
@@ -6693,38 +6679,6 @@ export declare const ApplicationEventOrderByRelevanceFieldEnum: {
6693
6679
  readonly actorId: "actorId";
6694
6680
  };
6695
6681
  export type ApplicationEventOrderByRelevanceFieldEnum = (typeof ApplicationEventOrderByRelevanceFieldEnum)[keyof typeof ApplicationEventOrderByRelevanceFieldEnum];
6696
- export declare const DocumentationStepOrderByRelevanceFieldEnum: {
6697
- readonly id: "id";
6698
- readonly tenantId: "tenantId";
6699
- readonly documentationPhaseId: "documentationPhaseId";
6700
- readonly name: "name";
6701
- readonly documentName: "documentName";
6702
- readonly description: "description";
6703
- readonly actionReason: "actionReason";
6704
- readonly reviewOrder: "reviewOrder";
6705
- readonly assigneeId: "assigneeId";
6706
- readonly gateRoleId: "gateRoleId";
6707
- readonly gateInstructions: "gateInstructions";
6708
- readonly gateActedById: "gateActedById";
6709
- readonly gateDecision: "gateDecision";
6710
- readonly gateComment: "gateComment";
6711
- };
6712
- export type DocumentationStepOrderByRelevanceFieldEnum = (typeof DocumentationStepOrderByRelevanceFieldEnum)[keyof typeof DocumentationStepOrderByRelevanceFieldEnum];
6713
- export declare const DocumentationStepDocumentOrderByRelevanceFieldEnum: {
6714
- readonly id: "id";
6715
- readonly tenantId: "tenantId";
6716
- readonly stepId: "stepId";
6717
- readonly documentType: "documentType";
6718
- };
6719
- export type DocumentationStepDocumentOrderByRelevanceFieldEnum = (typeof DocumentationStepDocumentOrderByRelevanceFieldEnum)[keyof typeof DocumentationStepDocumentOrderByRelevanceFieldEnum];
6720
- export declare const DocumentationStepApprovalOrderByRelevanceFieldEnum: {
6721
- readonly id: "id";
6722
- readonly tenantId: "tenantId";
6723
- readonly stepId: "stepId";
6724
- readonly approverId: "approverId";
6725
- readonly comment: "comment";
6726
- };
6727
- export type DocumentationStepApprovalOrderByRelevanceFieldEnum = (typeof DocumentationStepApprovalOrderByRelevanceFieldEnum)[keyof typeof DocumentationStepApprovalOrderByRelevanceFieldEnum];
6728
6682
  export declare const PaymentInstallmentOrderByRelevanceFieldEnum: {
6729
6683
  readonly id: "id";
6730
6684
  readonly tenantId: "tenantId";
@@ -6749,6 +6703,8 @@ export declare const ApplicationDocumentOrderByRelevanceFieldEnum: {
6749
6703
  readonly applicationId: "applicationId";
6750
6704
  readonly phaseId: "phaseId";
6751
6705
  readonly stepId: "stepId";
6706
+ readonly documentType: "documentType";
6707
+ readonly documentName: "documentName";
6752
6708
  readonly name: "name";
6753
6709
  readonly url: "url";
6754
6710
  readonly type: "type";
@@ -6767,6 +6723,25 @@ export declare const DocumentReviewOrderByRelevanceFieldEnum: {
6767
6723
  readonly parentReviewId: "parentReviewId";
6768
6724
  };
6769
6725
  export type DocumentReviewOrderByRelevanceFieldEnum = (typeof DocumentReviewOrderByRelevanceFieldEnum)[keyof typeof DocumentReviewOrderByRelevanceFieldEnum];
6726
+ export declare const ApprovalStageProgressOrderByRelevanceFieldEnum: {
6727
+ readonly id: "id";
6728
+ readonly tenantId: "tenantId";
6729
+ readonly documentationPhaseId: "documentationPhaseId";
6730
+ readonly approvalStageId: "approvalStageId";
6731
+ readonly name: "name";
6732
+ readonly completedById: "completedById";
6733
+ readonly transitionComment: "transitionComment";
6734
+ };
6735
+ export type ApprovalStageProgressOrderByRelevanceFieldEnum = (typeof ApprovalStageProgressOrderByRelevanceFieldEnum)[keyof typeof ApprovalStageProgressOrderByRelevanceFieldEnum];
6736
+ export declare const DocumentApprovalOrderByRelevanceFieldEnum: {
6737
+ readonly id: "id";
6738
+ readonly tenantId: "tenantId";
6739
+ readonly documentId: "documentId";
6740
+ readonly stageProgressId: "stageProgressId";
6741
+ readonly reviewerId: "reviewerId";
6742
+ readonly comment: "comment";
6743
+ };
6744
+ export type DocumentApprovalOrderByRelevanceFieldEnum = (typeof DocumentApprovalOrderByRelevanceFieldEnum)[keyof typeof DocumentApprovalOrderByRelevanceFieldEnum];
6770
6745
  export declare const DocumentTemplateOrderByRelevanceFieldEnum: {
6771
6746
  readonly id: "id";
6772
6747
  readonly tenantId: "tenantId";
@@ -6987,21 +6962,17 @@ export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, '
6987
6962
  */
6988
6963
  export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>;
6989
6964
  /**
6990
- * Reference to a field of type 'StepType'
6991
- */
6992
- export type EnumStepTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'StepType'>;
6993
- /**
6994
- * Reference to a field of type 'GateActor'
6965
+ * Reference to a field of type 'UploadedBy'
6995
6966
  */
6996
- export type EnumGateActorFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'GateActor'>;
6967
+ export type EnumUploadedByFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'UploadedBy'>;
6997
6968
  /**
6998
- * Reference to a field of type 'GateAction'
6969
+ * Reference to a field of type 'ReviewParty'
6999
6970
  */
7000
- export type EnumGateActionFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'GateAction'>;
6971
+ export type EnumReviewPartyFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ReviewParty'>;
7001
6972
  /**
7002
- * Reference to a field of type 'GateRejectBehavior'
6973
+ * Reference to a field of type 'RejectionBehavior'
7003
6974
  */
7004
- export type EnumGateRejectBehaviorFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'GateRejectBehavior'>;
6975
+ export type EnumRejectionBehaviorFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'RejectionBehavior'>;
7005
6976
  /**
7006
6977
  * Reference to a field of type 'ScoringStrategy'
7007
6978
  */
@@ -7038,6 +7009,10 @@ export type EnumCompletionCriterionFieldRefInput<$PrismaModel> = FieldRefInputTy
7038
7009
  * Reference to a field of type 'PhaseTrigger'
7039
7010
  */
7040
7011
  export type EnumPhaseTriggerFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PhaseTrigger'>;
7012
+ /**
7013
+ * Reference to a field of type 'StepType'
7014
+ */
7015
+ export type EnumStepTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'StepType'>;
7041
7016
  /**
7042
7017
  * Reference to a field of type 'StepTrigger'
7043
7018
  */
@@ -7070,14 +7045,6 @@ export type EnumApplicationEventGroupFieldRefInput<$PrismaModel> = FieldRefInput
7070
7045
  * Reference to a field of type 'EventActorType'
7071
7046
  */
7072
7047
  export type EnumEventActorTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'EventActorType'>;
7073
- /**
7074
- * Reference to a field of type 'StepStatus'
7075
- */
7076
- export type EnumStepStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'StepStatus'>;
7077
- /**
7078
- * Reference to a field of type 'ApprovalDecision'
7079
- */
7080
- export type EnumApprovalDecisionFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ApprovalDecision'>;
7081
7048
  /**
7082
7049
  * Reference to a field of type 'InstallmentStatus'
7083
7050
  */
@@ -7090,14 +7057,14 @@ export type EnumPaymentStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$Pr
7090
7057
  * Reference to a field of type 'DocumentStatus'
7091
7058
  */
7092
7059
  export type EnumDocumentStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DocumentStatus'>;
7093
- /**
7094
- * Reference to a field of type 'ReviewParty'
7095
- */
7096
- export type EnumReviewPartyFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ReviewParty'>;
7097
7060
  /**
7098
7061
  * Reference to a field of type 'ReviewDecision'
7099
7062
  */
7100
7063
  export type EnumReviewDecisionFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ReviewDecision'>;
7064
+ /**
7065
+ * Reference to a field of type 'StageStatus'
7066
+ */
7067
+ export type EnumStageStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'StageStatus'>;
7101
7068
  /**
7102
7069
  * Reference to a field of type 'OfferLetterType'
7103
7070
  */
@@ -7158,6 +7125,10 @@ export type EnumApprovalRequestStatusFieldRefInput<$PrismaModel> = FieldRefInput
7158
7125
  * Reference to a field of type 'ApprovalRequestPriority'
7159
7126
  */
7160
7127
  export type EnumApprovalRequestPriorityFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ApprovalRequestPriority'>;
7128
+ /**
7129
+ * Reference to a field of type 'ApprovalDecision'
7130
+ */
7131
+ export type EnumApprovalDecisionFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ApprovalDecision'>;
7161
7132
  /**
7162
7133
  * Reference to a field of type 'BlockerActor'
7163
7134
  */
@@ -7294,7 +7265,8 @@ export type GlobalOmitConfig = {
7294
7265
  propertyUnit?: Prisma.PropertyUnitOmit;
7295
7266
  propertyAmenity?: Prisma.PropertyAmenityOmit;
7296
7267
  documentationPlan?: Prisma.DocumentationPlanOmit;
7297
- documentationPlanStep?: Prisma.DocumentationPlanStepOmit;
7268
+ documentDefinition?: Prisma.DocumentDefinitionOmit;
7269
+ approvalStage?: Prisma.ApprovalStageOmit;
7298
7270
  questionnairePlan?: Prisma.QuestionnairePlanOmit;
7299
7271
  questionnairePlanQuestion?: Prisma.QuestionnairePlanQuestionOmit;
7300
7272
  paymentPlan?: Prisma.PaymentPlanOmit;
@@ -7314,13 +7286,12 @@ export type GlobalOmitConfig = {
7314
7286
  paymentPhase?: Prisma.PaymentPhaseOmit;
7315
7287
  questionnaireField?: Prisma.QuestionnaireFieldOmit;
7316
7288
  applicationEvent?: Prisma.ApplicationEventOmit;
7317
- documentationStep?: Prisma.DocumentationStepOmit;
7318
- documentationStepDocument?: Prisma.DocumentationStepDocumentOmit;
7319
- documentationStepApproval?: Prisma.DocumentationStepApprovalOmit;
7320
7289
  paymentInstallment?: Prisma.PaymentInstallmentOmit;
7321
7290
  applicationPayment?: Prisma.ApplicationPaymentOmit;
7322
7291
  applicationDocument?: Prisma.ApplicationDocumentOmit;
7323
7292
  documentReview?: Prisma.DocumentReviewOmit;
7293
+ approvalStageProgress?: Prisma.ApprovalStageProgressOmit;
7294
+ documentApproval?: Prisma.DocumentApprovalOmit;
7324
7295
  documentTemplate?: Prisma.DocumentTemplateOmit;
7325
7296
  offerLetter?: Prisma.OfferLetterOmit;
7326
7297
  applicationTermination?: Prisma.ApplicationTerminationOmit;