@valentine-efagene/qshelter-common 2.0.138 → 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 (33) 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 +120 -30
  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 +401 -5
  9. package/dist/generated/client/internal/prismaNamespace.js +108 -0
  10. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +116 -0
  11. package/dist/generated/client/internal/prismaNamespaceBrowser.js +108 -0
  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 +270 -0
  24. package/dist/generated/client/models/Tenant.d.ts +1281 -131
  25. package/dist/generated/client/models/User.d.ts +824 -0
  26. package/dist/generated/client/models/index.d.ts +4 -0
  27. package/dist/generated/client/models/index.js +4 -0
  28. package/dist/generated/client/models.d.ts +4 -0
  29. package/dist/src/utils/documentation-enums.d.ts +10 -1
  30. package/dist/src/utils/documentation-enums.js +8 -0
  31. package/package.json +1 -1
  32. package/prisma/migrations/20260119190336_add_document_approval_workflow/migration.sql +134 -0
  33. package/prisma/schema.prisma +244 -5
@@ -262,6 +262,8 @@ export declare const ModelName: {
262
262
  readonly PropertyAmenity: "PropertyAmenity";
263
263
  readonly DocumentationPlan: "DocumentationPlan";
264
264
  readonly DocumentationPlanStep: "DocumentationPlanStep";
265
+ readonly DocumentDefinition: "DocumentDefinition";
266
+ readonly ApprovalStage: "ApprovalStage";
265
267
  readonly QuestionnairePlan: "QuestionnairePlan";
266
268
  readonly QuestionnairePlanQuestion: "QuestionnairePlanQuestion";
267
269
  readonly PaymentPlan: "PaymentPlan";
@@ -288,6 +290,8 @@ export declare const ModelName: {
288
290
  readonly ApplicationPayment: "ApplicationPayment";
289
291
  readonly ApplicationDocument: "ApplicationDocument";
290
292
  readonly DocumentReview: "DocumentReview";
293
+ readonly ApprovalStageProgress: "ApprovalStageProgress";
294
+ readonly DocumentApproval: "DocumentApproval";
291
295
  readonly DocumentTemplate: "DocumentTemplate";
292
296
  readonly OfferLetter: "OfferLetter";
293
297
  readonly ApplicationTermination: "ApplicationTermination";
@@ -314,7 +318,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
314
318
  omit: GlobalOmitOptions;
315
319
  };
316
320
  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";
321
+ 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" | "documentDefinition" | "approvalStage" | "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" | "approvalStageProgress" | "documentApproval" | "documentTemplate" | "offerLetter" | "applicationTermination" | "paymentMethodChangeRequest" | "documentRequirementRule" | "eventChannel" | "eventType" | "eventHandler" | "workflowEvent" | "eventHandlerExecution" | "domainEvent" | "propertyTransferRequest" | "approvalRequest" | "workflowBlocker";
318
322
  txIsolationLevel: TransactionIsolationLevel;
319
323
  };
320
324
  model: {
@@ -2364,6 +2368,138 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
2364
2368
  };
2365
2369
  };
2366
2370
  };
2371
+ DocumentDefinition: {
2372
+ payload: Prisma.$DocumentDefinitionPayload<ExtArgs>;
2373
+ fields: Prisma.DocumentDefinitionFieldRefs;
2374
+ operations: {
2375
+ findUnique: {
2376
+ args: Prisma.DocumentDefinitionFindUniqueArgs<ExtArgs>;
2377
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentDefinitionPayload> | null;
2378
+ };
2379
+ findUniqueOrThrow: {
2380
+ args: Prisma.DocumentDefinitionFindUniqueOrThrowArgs<ExtArgs>;
2381
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentDefinitionPayload>;
2382
+ };
2383
+ findFirst: {
2384
+ args: Prisma.DocumentDefinitionFindFirstArgs<ExtArgs>;
2385
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentDefinitionPayload> | null;
2386
+ };
2387
+ findFirstOrThrow: {
2388
+ args: Prisma.DocumentDefinitionFindFirstOrThrowArgs<ExtArgs>;
2389
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentDefinitionPayload>;
2390
+ };
2391
+ findMany: {
2392
+ args: Prisma.DocumentDefinitionFindManyArgs<ExtArgs>;
2393
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentDefinitionPayload>[];
2394
+ };
2395
+ create: {
2396
+ args: Prisma.DocumentDefinitionCreateArgs<ExtArgs>;
2397
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentDefinitionPayload>;
2398
+ };
2399
+ createMany: {
2400
+ args: Prisma.DocumentDefinitionCreateManyArgs<ExtArgs>;
2401
+ result: BatchPayload;
2402
+ };
2403
+ delete: {
2404
+ args: Prisma.DocumentDefinitionDeleteArgs<ExtArgs>;
2405
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentDefinitionPayload>;
2406
+ };
2407
+ update: {
2408
+ args: Prisma.DocumentDefinitionUpdateArgs<ExtArgs>;
2409
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentDefinitionPayload>;
2410
+ };
2411
+ deleteMany: {
2412
+ args: Prisma.DocumentDefinitionDeleteManyArgs<ExtArgs>;
2413
+ result: BatchPayload;
2414
+ };
2415
+ updateMany: {
2416
+ args: Prisma.DocumentDefinitionUpdateManyArgs<ExtArgs>;
2417
+ result: BatchPayload;
2418
+ };
2419
+ upsert: {
2420
+ args: Prisma.DocumentDefinitionUpsertArgs<ExtArgs>;
2421
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentDefinitionPayload>;
2422
+ };
2423
+ aggregate: {
2424
+ args: Prisma.DocumentDefinitionAggregateArgs<ExtArgs>;
2425
+ result: runtime.Types.Utils.Optional<Prisma.AggregateDocumentDefinition>;
2426
+ };
2427
+ groupBy: {
2428
+ args: Prisma.DocumentDefinitionGroupByArgs<ExtArgs>;
2429
+ result: runtime.Types.Utils.Optional<Prisma.DocumentDefinitionGroupByOutputType>[];
2430
+ };
2431
+ count: {
2432
+ args: Prisma.DocumentDefinitionCountArgs<ExtArgs>;
2433
+ result: runtime.Types.Utils.Optional<Prisma.DocumentDefinitionCountAggregateOutputType> | number;
2434
+ };
2435
+ };
2436
+ };
2437
+ ApprovalStage: {
2438
+ payload: Prisma.$ApprovalStagePayload<ExtArgs>;
2439
+ fields: Prisma.ApprovalStageFieldRefs;
2440
+ operations: {
2441
+ findUnique: {
2442
+ args: Prisma.ApprovalStageFindUniqueArgs<ExtArgs>;
2443
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStagePayload> | null;
2444
+ };
2445
+ findUniqueOrThrow: {
2446
+ args: Prisma.ApprovalStageFindUniqueOrThrowArgs<ExtArgs>;
2447
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStagePayload>;
2448
+ };
2449
+ findFirst: {
2450
+ args: Prisma.ApprovalStageFindFirstArgs<ExtArgs>;
2451
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStagePayload> | null;
2452
+ };
2453
+ findFirstOrThrow: {
2454
+ args: Prisma.ApprovalStageFindFirstOrThrowArgs<ExtArgs>;
2455
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStagePayload>;
2456
+ };
2457
+ findMany: {
2458
+ args: Prisma.ApprovalStageFindManyArgs<ExtArgs>;
2459
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStagePayload>[];
2460
+ };
2461
+ create: {
2462
+ args: Prisma.ApprovalStageCreateArgs<ExtArgs>;
2463
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStagePayload>;
2464
+ };
2465
+ createMany: {
2466
+ args: Prisma.ApprovalStageCreateManyArgs<ExtArgs>;
2467
+ result: BatchPayload;
2468
+ };
2469
+ delete: {
2470
+ args: Prisma.ApprovalStageDeleteArgs<ExtArgs>;
2471
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStagePayload>;
2472
+ };
2473
+ update: {
2474
+ args: Prisma.ApprovalStageUpdateArgs<ExtArgs>;
2475
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStagePayload>;
2476
+ };
2477
+ deleteMany: {
2478
+ args: Prisma.ApprovalStageDeleteManyArgs<ExtArgs>;
2479
+ result: BatchPayload;
2480
+ };
2481
+ updateMany: {
2482
+ args: Prisma.ApprovalStageUpdateManyArgs<ExtArgs>;
2483
+ result: BatchPayload;
2484
+ };
2485
+ upsert: {
2486
+ args: Prisma.ApprovalStageUpsertArgs<ExtArgs>;
2487
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStagePayload>;
2488
+ };
2489
+ aggregate: {
2490
+ args: Prisma.ApprovalStageAggregateArgs<ExtArgs>;
2491
+ result: runtime.Types.Utils.Optional<Prisma.AggregateApprovalStage>;
2492
+ };
2493
+ groupBy: {
2494
+ args: Prisma.ApprovalStageGroupByArgs<ExtArgs>;
2495
+ result: runtime.Types.Utils.Optional<Prisma.ApprovalStageGroupByOutputType>[];
2496
+ };
2497
+ count: {
2498
+ args: Prisma.ApprovalStageCountArgs<ExtArgs>;
2499
+ result: runtime.Types.Utils.Optional<Prisma.ApprovalStageCountAggregateOutputType> | number;
2500
+ };
2501
+ };
2502
+ };
2367
2503
  QuestionnairePlan: {
2368
2504
  payload: Prisma.$QuestionnairePlanPayload<ExtArgs>;
2369
2505
  fields: Prisma.QuestionnairePlanFieldRefs;
@@ -4080,6 +4216,138 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
4080
4216
  };
4081
4217
  };
4082
4218
  };
4219
+ ApprovalStageProgress: {
4220
+ payload: Prisma.$ApprovalStageProgressPayload<ExtArgs>;
4221
+ fields: Prisma.ApprovalStageProgressFieldRefs;
4222
+ operations: {
4223
+ findUnique: {
4224
+ args: Prisma.ApprovalStageProgressFindUniqueArgs<ExtArgs>;
4225
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStageProgressPayload> | null;
4226
+ };
4227
+ findUniqueOrThrow: {
4228
+ args: Prisma.ApprovalStageProgressFindUniqueOrThrowArgs<ExtArgs>;
4229
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStageProgressPayload>;
4230
+ };
4231
+ findFirst: {
4232
+ args: Prisma.ApprovalStageProgressFindFirstArgs<ExtArgs>;
4233
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStageProgressPayload> | null;
4234
+ };
4235
+ findFirstOrThrow: {
4236
+ args: Prisma.ApprovalStageProgressFindFirstOrThrowArgs<ExtArgs>;
4237
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStageProgressPayload>;
4238
+ };
4239
+ findMany: {
4240
+ args: Prisma.ApprovalStageProgressFindManyArgs<ExtArgs>;
4241
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStageProgressPayload>[];
4242
+ };
4243
+ create: {
4244
+ args: Prisma.ApprovalStageProgressCreateArgs<ExtArgs>;
4245
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStageProgressPayload>;
4246
+ };
4247
+ createMany: {
4248
+ args: Prisma.ApprovalStageProgressCreateManyArgs<ExtArgs>;
4249
+ result: BatchPayload;
4250
+ };
4251
+ delete: {
4252
+ args: Prisma.ApprovalStageProgressDeleteArgs<ExtArgs>;
4253
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStageProgressPayload>;
4254
+ };
4255
+ update: {
4256
+ args: Prisma.ApprovalStageProgressUpdateArgs<ExtArgs>;
4257
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStageProgressPayload>;
4258
+ };
4259
+ deleteMany: {
4260
+ args: Prisma.ApprovalStageProgressDeleteManyArgs<ExtArgs>;
4261
+ result: BatchPayload;
4262
+ };
4263
+ updateMany: {
4264
+ args: Prisma.ApprovalStageProgressUpdateManyArgs<ExtArgs>;
4265
+ result: BatchPayload;
4266
+ };
4267
+ upsert: {
4268
+ args: Prisma.ApprovalStageProgressUpsertArgs<ExtArgs>;
4269
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalStageProgressPayload>;
4270
+ };
4271
+ aggregate: {
4272
+ args: Prisma.ApprovalStageProgressAggregateArgs<ExtArgs>;
4273
+ result: runtime.Types.Utils.Optional<Prisma.AggregateApprovalStageProgress>;
4274
+ };
4275
+ groupBy: {
4276
+ args: Prisma.ApprovalStageProgressGroupByArgs<ExtArgs>;
4277
+ result: runtime.Types.Utils.Optional<Prisma.ApprovalStageProgressGroupByOutputType>[];
4278
+ };
4279
+ count: {
4280
+ args: Prisma.ApprovalStageProgressCountArgs<ExtArgs>;
4281
+ result: runtime.Types.Utils.Optional<Prisma.ApprovalStageProgressCountAggregateOutputType> | number;
4282
+ };
4283
+ };
4284
+ };
4285
+ DocumentApproval: {
4286
+ payload: Prisma.$DocumentApprovalPayload<ExtArgs>;
4287
+ fields: Prisma.DocumentApprovalFieldRefs;
4288
+ operations: {
4289
+ findUnique: {
4290
+ args: Prisma.DocumentApprovalFindUniqueArgs<ExtArgs>;
4291
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentApprovalPayload> | null;
4292
+ };
4293
+ findUniqueOrThrow: {
4294
+ args: Prisma.DocumentApprovalFindUniqueOrThrowArgs<ExtArgs>;
4295
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentApprovalPayload>;
4296
+ };
4297
+ findFirst: {
4298
+ args: Prisma.DocumentApprovalFindFirstArgs<ExtArgs>;
4299
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentApprovalPayload> | null;
4300
+ };
4301
+ findFirstOrThrow: {
4302
+ args: Prisma.DocumentApprovalFindFirstOrThrowArgs<ExtArgs>;
4303
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentApprovalPayload>;
4304
+ };
4305
+ findMany: {
4306
+ args: Prisma.DocumentApprovalFindManyArgs<ExtArgs>;
4307
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentApprovalPayload>[];
4308
+ };
4309
+ create: {
4310
+ args: Prisma.DocumentApprovalCreateArgs<ExtArgs>;
4311
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentApprovalPayload>;
4312
+ };
4313
+ createMany: {
4314
+ args: Prisma.DocumentApprovalCreateManyArgs<ExtArgs>;
4315
+ result: BatchPayload;
4316
+ };
4317
+ delete: {
4318
+ args: Prisma.DocumentApprovalDeleteArgs<ExtArgs>;
4319
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentApprovalPayload>;
4320
+ };
4321
+ update: {
4322
+ args: Prisma.DocumentApprovalUpdateArgs<ExtArgs>;
4323
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentApprovalPayload>;
4324
+ };
4325
+ deleteMany: {
4326
+ args: Prisma.DocumentApprovalDeleteManyArgs<ExtArgs>;
4327
+ result: BatchPayload;
4328
+ };
4329
+ updateMany: {
4330
+ args: Prisma.DocumentApprovalUpdateManyArgs<ExtArgs>;
4331
+ result: BatchPayload;
4332
+ };
4333
+ upsert: {
4334
+ args: Prisma.DocumentApprovalUpsertArgs<ExtArgs>;
4335
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentApprovalPayload>;
4336
+ };
4337
+ aggregate: {
4338
+ args: Prisma.DocumentApprovalAggregateArgs<ExtArgs>;
4339
+ result: runtime.Types.Utils.Optional<Prisma.AggregateDocumentApproval>;
4340
+ };
4341
+ groupBy: {
4342
+ args: Prisma.DocumentApprovalGroupByArgs<ExtArgs>;
4343
+ result: runtime.Types.Utils.Optional<Prisma.DocumentApprovalGroupByOutputType>[];
4344
+ };
4345
+ count: {
4346
+ args: Prisma.DocumentApprovalCountArgs<ExtArgs>;
4347
+ result: runtime.Types.Utils.Optional<Prisma.DocumentApprovalCountAggregateOutputType> | number;
4348
+ };
4349
+ };
4350
+ };
4083
4351
  DocumentTemplate: {
4084
4352
  payload: Prisma.$DocumentTemplatePayload<ExtArgs>;
4085
4353
  fields: Prisma.DocumentTemplateFieldRefs;
@@ -5441,6 +5709,43 @@ export declare const DocumentationPlanStepScalarFieldEnum: {
5441
5709
  readonly updatedAt: "updatedAt";
5442
5710
  };
5443
5711
  export type DocumentationPlanStepScalarFieldEnum = (typeof DocumentationPlanStepScalarFieldEnum)[keyof typeof DocumentationPlanStepScalarFieldEnum];
5712
+ export declare const DocumentDefinitionScalarFieldEnum: {
5713
+ readonly id: "id";
5714
+ readonly planId: "planId";
5715
+ readonly documentType: "documentType";
5716
+ readonly documentName: "documentName";
5717
+ readonly uploadedBy: "uploadedBy";
5718
+ readonly order: "order";
5719
+ readonly isRequired: "isRequired";
5720
+ readonly description: "description";
5721
+ readonly maxSizeBytes: "maxSizeBytes";
5722
+ readonly allowedMimeTypes: "allowedMimeTypes";
5723
+ readonly expiryDays: "expiryDays";
5724
+ readonly minFiles: "minFiles";
5725
+ readonly maxFiles: "maxFiles";
5726
+ readonly condition: "condition";
5727
+ readonly createdAt: "createdAt";
5728
+ readonly updatedAt: "updatedAt";
5729
+ };
5730
+ export type DocumentDefinitionScalarFieldEnum = (typeof DocumentDefinitionScalarFieldEnum)[keyof typeof DocumentDefinitionScalarFieldEnum];
5731
+ export declare const ApprovalStageScalarFieldEnum: {
5732
+ readonly id: "id";
5733
+ readonly planId: "planId";
5734
+ readonly name: "name";
5735
+ readonly order: "order";
5736
+ readonly reviewParty: "reviewParty";
5737
+ readonly autoTransition: "autoTransition";
5738
+ readonly waitForAllDocuments: "waitForAllDocuments";
5739
+ readonly allowEarlyVisibility: "allowEarlyVisibility";
5740
+ readonly onRejection: "onRejection";
5741
+ readonly restartFromStageOrder: "restartFromStageOrder";
5742
+ readonly organizationId: "organizationId";
5743
+ readonly slaHours: "slaHours";
5744
+ readonly description: "description";
5745
+ readonly createdAt: "createdAt";
5746
+ readonly updatedAt: "updatedAt";
5747
+ };
5748
+ export type ApprovalStageScalarFieldEnum = (typeof ApprovalStageScalarFieldEnum)[keyof typeof ApprovalStageScalarFieldEnum];
5444
5749
  export declare const QuestionnairePlanScalarFieldEnum: {
5445
5750
  readonly id: "id";
5446
5751
  readonly tenantId: "tenantId";
@@ -5881,6 +6186,8 @@ export declare const ApplicationDocumentScalarFieldEnum: {
5881
6186
  readonly applicationId: "applicationId";
5882
6187
  readonly phaseId: "phaseId";
5883
6188
  readonly stepId: "stepId";
6189
+ readonly documentType: "documentType";
6190
+ readonly documentName: "documentName";
5884
6191
  readonly name: "name";
5885
6192
  readonly url: "url";
5886
6193
  readonly type: "type";
@@ -5912,6 +6219,41 @@ export declare const DocumentReviewScalarFieldEnum: {
5912
6219
  readonly updatedAt: "updatedAt";
5913
6220
  };
5914
6221
  export type DocumentReviewScalarFieldEnum = (typeof DocumentReviewScalarFieldEnum)[keyof typeof DocumentReviewScalarFieldEnum];
6222
+ export declare const ApprovalStageProgressScalarFieldEnum: {
6223
+ readonly id: "id";
6224
+ readonly tenantId: "tenantId";
6225
+ readonly documentationPhaseId: "documentationPhaseId";
6226
+ readonly approvalStageId: "approvalStageId";
6227
+ readonly name: "name";
6228
+ readonly order: "order";
6229
+ readonly reviewParty: "reviewParty";
6230
+ readonly autoTransition: "autoTransition";
6231
+ readonly waitForAllDocuments: "waitForAllDocuments";
6232
+ readonly allowEarlyVisibility: "allowEarlyVisibility";
6233
+ readonly onRejection: "onRejection";
6234
+ readonly restartFromStageOrder: "restartFromStageOrder";
6235
+ readonly status: "status";
6236
+ readonly activatedAt: "activatedAt";
6237
+ readonly completedAt: "completedAt";
6238
+ readonly completedById: "completedById";
6239
+ readonly transitionComment: "transitionComment";
6240
+ readonly createdAt: "createdAt";
6241
+ readonly updatedAt: "updatedAt";
6242
+ };
6243
+ export type ApprovalStageProgressScalarFieldEnum = (typeof ApprovalStageProgressScalarFieldEnum)[keyof typeof ApprovalStageProgressScalarFieldEnum];
6244
+ export declare const DocumentApprovalScalarFieldEnum: {
6245
+ readonly id: "id";
6246
+ readonly tenantId: "tenantId";
6247
+ readonly documentId: "documentId";
6248
+ readonly stageProgressId: "stageProgressId";
6249
+ readonly reviewerId: "reviewerId";
6250
+ readonly reviewParty: "reviewParty";
6251
+ readonly decision: "decision";
6252
+ readonly comment: "comment";
6253
+ readonly reviewedAt: "reviewedAt";
6254
+ readonly createdAt: "createdAt";
6255
+ };
6256
+ export type DocumentApprovalScalarFieldEnum = (typeof DocumentApprovalScalarFieldEnum)[keyof typeof DocumentApprovalScalarFieldEnum];
5915
6257
  export declare const DocumentTemplateScalarFieldEnum: {
5916
6258
  readonly id: "id";
5917
6259
  readonly tenantId: "tenantId";
@@ -6519,6 +6861,23 @@ export declare const DocumentationPlanStepOrderByRelevanceFieldEnum: {
6519
6861
  readonly gateInstructions: "gateInstructions";
6520
6862
  };
6521
6863
  export type DocumentationPlanStepOrderByRelevanceFieldEnum = (typeof DocumentationPlanStepOrderByRelevanceFieldEnum)[keyof typeof DocumentationPlanStepOrderByRelevanceFieldEnum];
6864
+ export declare const DocumentDefinitionOrderByRelevanceFieldEnum: {
6865
+ readonly id: "id";
6866
+ readonly planId: "planId";
6867
+ readonly documentType: "documentType";
6868
+ readonly documentName: "documentName";
6869
+ readonly description: "description";
6870
+ readonly allowedMimeTypes: "allowedMimeTypes";
6871
+ };
6872
+ export type DocumentDefinitionOrderByRelevanceFieldEnum = (typeof DocumentDefinitionOrderByRelevanceFieldEnum)[keyof typeof DocumentDefinitionOrderByRelevanceFieldEnum];
6873
+ export declare const ApprovalStageOrderByRelevanceFieldEnum: {
6874
+ readonly id: "id";
6875
+ readonly planId: "planId";
6876
+ readonly name: "name";
6877
+ readonly organizationId: "organizationId";
6878
+ readonly description: "description";
6879
+ };
6880
+ export type ApprovalStageOrderByRelevanceFieldEnum = (typeof ApprovalStageOrderByRelevanceFieldEnum)[keyof typeof ApprovalStageOrderByRelevanceFieldEnum];
6522
6881
  export declare const QuestionnairePlanOrderByRelevanceFieldEnum: {
6523
6882
  readonly id: "id";
6524
6883
  readonly tenantId: "tenantId";
@@ -6749,6 +7108,8 @@ export declare const ApplicationDocumentOrderByRelevanceFieldEnum: {
6749
7108
  readonly applicationId: "applicationId";
6750
7109
  readonly phaseId: "phaseId";
6751
7110
  readonly stepId: "stepId";
7111
+ readonly documentType: "documentType";
7112
+ readonly documentName: "documentName";
6752
7113
  readonly name: "name";
6753
7114
  readonly url: "url";
6754
7115
  readonly type: "type";
@@ -6767,6 +7128,25 @@ export declare const DocumentReviewOrderByRelevanceFieldEnum: {
6767
7128
  readonly parentReviewId: "parentReviewId";
6768
7129
  };
6769
7130
  export type DocumentReviewOrderByRelevanceFieldEnum = (typeof DocumentReviewOrderByRelevanceFieldEnum)[keyof typeof DocumentReviewOrderByRelevanceFieldEnum];
7131
+ export declare const ApprovalStageProgressOrderByRelevanceFieldEnum: {
7132
+ readonly id: "id";
7133
+ readonly tenantId: "tenantId";
7134
+ readonly documentationPhaseId: "documentationPhaseId";
7135
+ readonly approvalStageId: "approvalStageId";
7136
+ readonly name: "name";
7137
+ readonly completedById: "completedById";
7138
+ readonly transitionComment: "transitionComment";
7139
+ };
7140
+ export type ApprovalStageProgressOrderByRelevanceFieldEnum = (typeof ApprovalStageProgressOrderByRelevanceFieldEnum)[keyof typeof ApprovalStageProgressOrderByRelevanceFieldEnum];
7141
+ export declare const DocumentApprovalOrderByRelevanceFieldEnum: {
7142
+ readonly id: "id";
7143
+ readonly tenantId: "tenantId";
7144
+ readonly documentId: "documentId";
7145
+ readonly stageProgressId: "stageProgressId";
7146
+ readonly reviewerId: "reviewerId";
7147
+ readonly comment: "comment";
7148
+ };
7149
+ export type DocumentApprovalOrderByRelevanceFieldEnum = (typeof DocumentApprovalOrderByRelevanceFieldEnum)[keyof typeof DocumentApprovalOrderByRelevanceFieldEnum];
6770
7150
  export declare const DocumentTemplateOrderByRelevanceFieldEnum: {
6771
7151
  readonly id: "id";
6772
7152
  readonly tenantId: "tenantId";
@@ -7002,6 +7382,18 @@ export type EnumGateActionFieldRefInput<$PrismaModel> = FieldRefInputType<$Prism
7002
7382
  * Reference to a field of type 'GateRejectBehavior'
7003
7383
  */
7004
7384
  export type EnumGateRejectBehaviorFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'GateRejectBehavior'>;
7385
+ /**
7386
+ * Reference to a field of type 'UploadedBy'
7387
+ */
7388
+ export type EnumUploadedByFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'UploadedBy'>;
7389
+ /**
7390
+ * Reference to a field of type 'ReviewParty'
7391
+ */
7392
+ export type EnumReviewPartyFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ReviewParty'>;
7393
+ /**
7394
+ * Reference to a field of type 'RejectionBehavior'
7395
+ */
7396
+ export type EnumRejectionBehaviorFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'RejectionBehavior'>;
7005
7397
  /**
7006
7398
  * Reference to a field of type 'ScoringStrategy'
7007
7399
  */
@@ -7090,14 +7482,14 @@ export type EnumPaymentStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$Pr
7090
7482
  * Reference to a field of type 'DocumentStatus'
7091
7483
  */
7092
7484
  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
7485
  /**
7098
7486
  * Reference to a field of type 'ReviewDecision'
7099
7487
  */
7100
7488
  export type EnumReviewDecisionFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ReviewDecision'>;
7489
+ /**
7490
+ * Reference to a field of type 'StageStatus'
7491
+ */
7492
+ export type EnumStageStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'StageStatus'>;
7101
7493
  /**
7102
7494
  * Reference to a field of type 'OfferLetterType'
7103
7495
  */
@@ -7295,6 +7687,8 @@ export type GlobalOmitConfig = {
7295
7687
  propertyAmenity?: Prisma.PropertyAmenityOmit;
7296
7688
  documentationPlan?: Prisma.DocumentationPlanOmit;
7297
7689
  documentationPlanStep?: Prisma.DocumentationPlanStepOmit;
7690
+ documentDefinition?: Prisma.DocumentDefinitionOmit;
7691
+ approvalStage?: Prisma.ApprovalStageOmit;
7298
7692
  questionnairePlan?: Prisma.QuestionnairePlanOmit;
7299
7693
  questionnairePlanQuestion?: Prisma.QuestionnairePlanQuestionOmit;
7300
7694
  paymentPlan?: Prisma.PaymentPlanOmit;
@@ -7321,6 +7715,8 @@ export type GlobalOmitConfig = {
7321
7715
  applicationPayment?: Prisma.ApplicationPaymentOmit;
7322
7716
  applicationDocument?: Prisma.ApplicationDocumentOmit;
7323
7717
  documentReview?: Prisma.DocumentReviewOmit;
7718
+ approvalStageProgress?: Prisma.ApprovalStageProgressOmit;
7719
+ documentApproval?: Prisma.DocumentApprovalOmit;
7324
7720
  documentTemplate?: Prisma.DocumentTemplateOmit;
7325
7721
  offerLetter?: Prisma.OfferLetterOmit;
7326
7722
  applicationTermination?: Prisma.ApplicationTerminationOmit;
@@ -98,6 +98,8 @@ export const ModelName = {
98
98
  PropertyAmenity: 'PropertyAmenity',
99
99
  DocumentationPlan: 'DocumentationPlan',
100
100
  DocumentationPlanStep: 'DocumentationPlanStep',
101
+ DocumentDefinition: 'DocumentDefinition',
102
+ ApprovalStage: 'ApprovalStage',
101
103
  QuestionnairePlan: 'QuestionnairePlan',
102
104
  QuestionnairePlanQuestion: 'QuestionnairePlanQuestion',
103
105
  PaymentPlan: 'PaymentPlan',
@@ -124,6 +126,8 @@ export const ModelName = {
124
126
  ApplicationPayment: 'ApplicationPayment',
125
127
  ApplicationDocument: 'ApplicationDocument',
126
128
  DocumentReview: 'DocumentReview',
129
+ ApprovalStageProgress: 'ApprovalStageProgress',
130
+ DocumentApproval: 'DocumentApproval',
127
131
  DocumentTemplate: 'DocumentTemplate',
128
132
  OfferLetter: 'OfferLetter',
129
133
  ApplicationTermination: 'ApplicationTermination',
@@ -520,6 +524,41 @@ export const DocumentationPlanStepScalarFieldEnum = {
520
524
  createdAt: 'createdAt',
521
525
  updatedAt: 'updatedAt'
522
526
  };
527
+ export const DocumentDefinitionScalarFieldEnum = {
528
+ id: 'id',
529
+ planId: 'planId',
530
+ documentType: 'documentType',
531
+ documentName: 'documentName',
532
+ uploadedBy: 'uploadedBy',
533
+ order: 'order',
534
+ isRequired: 'isRequired',
535
+ description: 'description',
536
+ maxSizeBytes: 'maxSizeBytes',
537
+ allowedMimeTypes: 'allowedMimeTypes',
538
+ expiryDays: 'expiryDays',
539
+ minFiles: 'minFiles',
540
+ maxFiles: 'maxFiles',
541
+ condition: 'condition',
542
+ createdAt: 'createdAt',
543
+ updatedAt: 'updatedAt'
544
+ };
545
+ export const ApprovalStageScalarFieldEnum = {
546
+ id: 'id',
547
+ planId: 'planId',
548
+ name: 'name',
549
+ order: 'order',
550
+ reviewParty: 'reviewParty',
551
+ autoTransition: 'autoTransition',
552
+ waitForAllDocuments: 'waitForAllDocuments',
553
+ allowEarlyVisibility: 'allowEarlyVisibility',
554
+ onRejection: 'onRejection',
555
+ restartFromStageOrder: 'restartFromStageOrder',
556
+ organizationId: 'organizationId',
557
+ slaHours: 'slaHours',
558
+ description: 'description',
559
+ createdAt: 'createdAt',
560
+ updatedAt: 'updatedAt'
561
+ };
523
562
  export const QuestionnairePlanScalarFieldEnum = {
524
563
  id: 'id',
525
564
  tenantId: 'tenantId',
@@ -936,6 +975,8 @@ export const ApplicationDocumentScalarFieldEnum = {
936
975
  applicationId: 'applicationId',
937
976
  phaseId: 'phaseId',
938
977
  stepId: 'stepId',
978
+ documentType: 'documentType',
979
+ documentName: 'documentName',
939
980
  name: 'name',
940
981
  url: 'url',
941
982
  type: 'type',
@@ -965,6 +1006,39 @@ export const DocumentReviewScalarFieldEnum = {
965
1006
  createdAt: 'createdAt',
966
1007
  updatedAt: 'updatedAt'
967
1008
  };
1009
+ export const ApprovalStageProgressScalarFieldEnum = {
1010
+ id: 'id',
1011
+ tenantId: 'tenantId',
1012
+ documentationPhaseId: 'documentationPhaseId',
1013
+ approvalStageId: 'approvalStageId',
1014
+ name: 'name',
1015
+ order: 'order',
1016
+ reviewParty: 'reviewParty',
1017
+ autoTransition: 'autoTransition',
1018
+ waitForAllDocuments: 'waitForAllDocuments',
1019
+ allowEarlyVisibility: 'allowEarlyVisibility',
1020
+ onRejection: 'onRejection',
1021
+ restartFromStageOrder: 'restartFromStageOrder',
1022
+ status: 'status',
1023
+ activatedAt: 'activatedAt',
1024
+ completedAt: 'completedAt',
1025
+ completedById: 'completedById',
1026
+ transitionComment: 'transitionComment',
1027
+ createdAt: 'createdAt',
1028
+ updatedAt: 'updatedAt'
1029
+ };
1030
+ export const DocumentApprovalScalarFieldEnum = {
1031
+ id: 'id',
1032
+ tenantId: 'tenantId',
1033
+ documentId: 'documentId',
1034
+ stageProgressId: 'stageProgressId',
1035
+ reviewerId: 'reviewerId',
1036
+ reviewParty: 'reviewParty',
1037
+ decision: 'decision',
1038
+ comment: 'comment',
1039
+ reviewedAt: 'reviewedAt',
1040
+ createdAt: 'createdAt'
1041
+ };
968
1042
  export const DocumentTemplateScalarFieldEnum = {
969
1043
  id: 'id',
970
1044
  tenantId: 'tenantId',
@@ -1521,6 +1595,21 @@ export const DocumentationPlanStepOrderByRelevanceFieldEnum = {
1521
1595
  gateRoleId: 'gateRoleId',
1522
1596
  gateInstructions: 'gateInstructions'
1523
1597
  };
1598
+ export const DocumentDefinitionOrderByRelevanceFieldEnum = {
1599
+ id: 'id',
1600
+ planId: 'planId',
1601
+ documentType: 'documentType',
1602
+ documentName: 'documentName',
1603
+ description: 'description',
1604
+ allowedMimeTypes: 'allowedMimeTypes'
1605
+ };
1606
+ export const ApprovalStageOrderByRelevanceFieldEnum = {
1607
+ id: 'id',
1608
+ planId: 'planId',
1609
+ name: 'name',
1610
+ organizationId: 'organizationId',
1611
+ description: 'description'
1612
+ };
1524
1613
  export const QuestionnairePlanOrderByRelevanceFieldEnum = {
1525
1614
  id: 'id',
1526
1615
  tenantId: 'tenantId',
@@ -1727,6 +1816,8 @@ export const ApplicationDocumentOrderByRelevanceFieldEnum = {
1727
1816
  applicationId: 'applicationId',
1728
1817
  phaseId: 'phaseId',
1729
1818
  stepId: 'stepId',
1819
+ documentType: 'documentType',
1820
+ documentName: 'documentName',
1730
1821
  name: 'name',
1731
1822
  url: 'url',
1732
1823
  type: 'type',
@@ -1743,6 +1834,23 @@ export const DocumentReviewOrderByRelevanceFieldEnum = {
1743
1834
  comments: 'comments',
1744
1835
  parentReviewId: 'parentReviewId'
1745
1836
  };
1837
+ export const ApprovalStageProgressOrderByRelevanceFieldEnum = {
1838
+ id: 'id',
1839
+ tenantId: 'tenantId',
1840
+ documentationPhaseId: 'documentationPhaseId',
1841
+ approvalStageId: 'approvalStageId',
1842
+ name: 'name',
1843
+ completedById: 'completedById',
1844
+ transitionComment: 'transitionComment'
1845
+ };
1846
+ export const DocumentApprovalOrderByRelevanceFieldEnum = {
1847
+ id: 'id',
1848
+ tenantId: 'tenantId',
1849
+ documentId: 'documentId',
1850
+ stageProgressId: 'stageProgressId',
1851
+ reviewerId: 'reviewerId',
1852
+ comment: 'comment'
1853
+ };
1746
1854
  export const DocumentTemplateOrderByRelevanceFieldEnum = {
1747
1855
  id: 'id',
1748
1856
  tenantId: 'tenantId',