@valentine-efagene/qshelter-common 2.0.102 → 2.0.104

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 (31) 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 +174 -84
  4. package/dist/generated/client/enums.d.ts +34 -0
  5. package/dist/generated/client/enums.js +31 -0
  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 +389 -5
  9. package/dist/generated/client/internal/prismaNamespace.js +96 -0
  10. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +104 -0
  11. package/dist/generated/client/internal/prismaNamespaceBrowser.js +96 -0
  12. package/dist/generated/client/models/DocumentationPhase.d.ts +231 -1
  13. package/dist/generated/client/models/DocumentationPlan.d.ts +1555 -0
  14. package/dist/generated/client/models/DocumentationPlan.js +1 -0
  15. package/dist/generated/client/models/DocumentationPlanStep.d.ts +1220 -0
  16. package/dist/generated/client/models/DocumentationPlanStep.js +1 -0
  17. package/dist/generated/client/models/PaymentMethodPhaseStep.d.ts +0 -3
  18. package/dist/generated/client/models/PropertyPaymentMethodPhase.d.ts +585 -1
  19. package/dist/generated/client/models/QuestionnairePhase.d.ts +413 -1
  20. package/dist/generated/client/models/QuestionnairePlan.d.ts +1844 -0
  21. package/dist/generated/client/models/QuestionnairePlan.js +1 -0
  22. package/dist/generated/client/models/QuestionnairePlanQuestion.d.ts +1444 -0
  23. package/dist/generated/client/models/QuestionnairePlanQuestion.js +1 -0
  24. package/dist/generated/client/models/Tenant.d.ts +1208 -118
  25. package/dist/generated/client/models/index.d.ts +4 -0
  26. package/dist/generated/client/models/index.js +4 -0
  27. package/dist/generated/client/models.d.ts +4 -0
  28. package/dist/src/prisma/tenant.js +4 -0
  29. package/package.json +1 -1
  30. package/prisma/migrations/20260114034523_add_documentation_plan/migration.sql +52 -0
  31. package/prisma/schema.prisma +210 -8
@@ -53,6 +53,10 @@ export declare const ModelName: {
53
53
  readonly PropertyVariantMedia: "PropertyVariantMedia";
54
54
  readonly PropertyUnit: "PropertyUnit";
55
55
  readonly PropertyAmenity: "PropertyAmenity";
56
+ readonly DocumentationPlan: "DocumentationPlan";
57
+ readonly DocumentationPlanStep: "DocumentationPlanStep";
58
+ readonly QuestionnairePlan: "QuestionnairePlan";
59
+ readonly QuestionnairePlanQuestion: "QuestionnairePlanQuestion";
56
60
  readonly PaymentPlan: "PaymentPlan";
57
61
  readonly PropertyPaymentMethod: "PropertyPaymentMethod";
58
62
  readonly PropertyPaymentMethodLink: "PropertyPaymentMethodLink";
@@ -414,6 +418,64 @@ export declare const PropertyAmenityScalarFieldEnum: {
414
418
  readonly createdAt: "createdAt";
415
419
  };
416
420
  export type PropertyAmenityScalarFieldEnum = (typeof PropertyAmenityScalarFieldEnum)[keyof typeof PropertyAmenityScalarFieldEnum];
421
+ export declare const DocumentationPlanScalarFieldEnum: {
422
+ readonly id: "id";
423
+ readonly tenantId: "tenantId";
424
+ readonly name: "name";
425
+ readonly description: "description";
426
+ readonly isActive: "isActive";
427
+ readonly requiredDocumentTypes: "requiredDocumentTypes";
428
+ readonly createdAt: "createdAt";
429
+ readonly updatedAt: "updatedAt";
430
+ };
431
+ export type DocumentationPlanScalarFieldEnum = (typeof DocumentationPlanScalarFieldEnum)[keyof typeof DocumentationPlanScalarFieldEnum];
432
+ export declare const DocumentationPlanStepScalarFieldEnum: {
433
+ readonly id: "id";
434
+ readonly planId: "planId";
435
+ readonly name: "name";
436
+ readonly stepType: "stepType";
437
+ readonly order: "order";
438
+ readonly documentType: "documentType";
439
+ readonly metadata: "metadata";
440
+ readonly createdAt: "createdAt";
441
+ readonly updatedAt: "updatedAt";
442
+ };
443
+ export type DocumentationPlanStepScalarFieldEnum = (typeof DocumentationPlanStepScalarFieldEnum)[keyof typeof DocumentationPlanStepScalarFieldEnum];
444
+ export declare const QuestionnairePlanScalarFieldEnum: {
445
+ readonly id: "id";
446
+ readonly tenantId: "tenantId";
447
+ readonly name: "name";
448
+ readonly description: "description";
449
+ readonly version: "version";
450
+ readonly isActive: "isActive";
451
+ readonly passingScore: "passingScore";
452
+ readonly scoringStrategy: "scoringStrategy";
453
+ readonly autoDecisionEnabled: "autoDecisionEnabled";
454
+ readonly estimatedMinutes: "estimatedMinutes";
455
+ readonly category: "category";
456
+ readonly createdAt: "createdAt";
457
+ readonly updatedAt: "updatedAt";
458
+ };
459
+ export type QuestionnairePlanScalarFieldEnum = (typeof QuestionnairePlanScalarFieldEnum)[keyof typeof QuestionnairePlanScalarFieldEnum];
460
+ export declare const QuestionnairePlanQuestionScalarFieldEnum: {
461
+ readonly id: "id";
462
+ readonly questionnairePlanId: "questionnairePlanId";
463
+ readonly questionKey: "questionKey";
464
+ readonly questionText: "questionText";
465
+ readonly helpText: "helpText";
466
+ readonly questionType: "questionType";
467
+ readonly order: "order";
468
+ readonly isRequired: "isRequired";
469
+ readonly validationRules: "validationRules";
470
+ readonly options: "options";
471
+ readonly scoreWeight: "scoreWeight";
472
+ readonly scoringRules: "scoringRules";
473
+ readonly showIf: "showIf";
474
+ readonly category: "category";
475
+ readonly createdAt: "createdAt";
476
+ readonly updatedAt: "updatedAt";
477
+ };
478
+ export type QuestionnairePlanQuestionScalarFieldEnum = (typeof QuestionnairePlanQuestionScalarFieldEnum)[keyof typeof QuestionnairePlanQuestionScalarFieldEnum];
417
479
  export declare const PaymentPlanScalarFieldEnum: {
418
480
  readonly id: "id";
419
481
  readonly tenantId: "tenantId";
@@ -463,6 +525,8 @@ export declare const PropertyPaymentMethodPhaseScalarFieldEnum: {
463
525
  readonly tenantId: "tenantId";
464
526
  readonly paymentMethodId: "paymentMethodId";
465
527
  readonly paymentPlanId: "paymentPlanId";
528
+ readonly documentationPlanId: "documentationPlanId";
529
+ readonly questionnairePlanId: "questionnairePlanId";
466
530
  readonly name: "name";
467
531
  readonly description: "description";
468
532
  readonly phaseCategory: "phaseCategory";
@@ -622,8 +686,13 @@ export declare const QuestionnairePhaseScalarFieldEnum: {
622
686
  readonly id: "id";
623
687
  readonly tenantId: "tenantId";
624
688
  readonly phaseId: "phaseId";
689
+ readonly questionnairePlanId: "questionnairePlanId";
625
690
  readonly completedFieldsCount: "completedFieldsCount";
626
691
  readonly totalFieldsCount: "totalFieldsCount";
692
+ readonly totalScore: "totalScore";
693
+ readonly passingScore: "passingScore";
694
+ readonly passed: "passed";
695
+ readonly scoredAt: "scoredAt";
627
696
  readonly underwritingScore: "underwritingScore";
628
697
  readonly debtToIncomeRatio: "debtToIncomeRatio";
629
698
  readonly underwritingDecision: "underwritingDecision";
@@ -637,6 +706,7 @@ export declare const DocumentationPhaseScalarFieldEnum: {
637
706
  readonly id: "id";
638
707
  readonly tenantId: "tenantId";
639
708
  readonly phaseId: "phaseId";
709
+ readonly documentationPlanId: "documentationPlanId";
640
710
  readonly currentStepId: "currentStepId";
641
711
  readonly approvedDocumentsCount: "approvedDocumentsCount";
642
712
  readonly requiredDocumentsCount: "requiredDocumentsCount";
@@ -1353,6 +1423,36 @@ export declare const PropertyAmenityOrderByRelevanceFieldEnum: {
1353
1423
  readonly amenityId: "amenityId";
1354
1424
  };
1355
1425
  export type PropertyAmenityOrderByRelevanceFieldEnum = (typeof PropertyAmenityOrderByRelevanceFieldEnum)[keyof typeof PropertyAmenityOrderByRelevanceFieldEnum];
1426
+ export declare const DocumentationPlanOrderByRelevanceFieldEnum: {
1427
+ readonly id: "id";
1428
+ readonly tenantId: "tenantId";
1429
+ readonly name: "name";
1430
+ readonly description: "description";
1431
+ };
1432
+ export type DocumentationPlanOrderByRelevanceFieldEnum = (typeof DocumentationPlanOrderByRelevanceFieldEnum)[keyof typeof DocumentationPlanOrderByRelevanceFieldEnum];
1433
+ export declare const DocumentationPlanStepOrderByRelevanceFieldEnum: {
1434
+ readonly id: "id";
1435
+ readonly planId: "planId";
1436
+ readonly name: "name";
1437
+ readonly documentType: "documentType";
1438
+ };
1439
+ export type DocumentationPlanStepOrderByRelevanceFieldEnum = (typeof DocumentationPlanStepOrderByRelevanceFieldEnum)[keyof typeof DocumentationPlanStepOrderByRelevanceFieldEnum];
1440
+ export declare const QuestionnairePlanOrderByRelevanceFieldEnum: {
1441
+ readonly id: "id";
1442
+ readonly tenantId: "tenantId";
1443
+ readonly name: "name";
1444
+ readonly description: "description";
1445
+ };
1446
+ export type QuestionnairePlanOrderByRelevanceFieldEnum = (typeof QuestionnairePlanOrderByRelevanceFieldEnum)[keyof typeof QuestionnairePlanOrderByRelevanceFieldEnum];
1447
+ export declare const QuestionnairePlanQuestionOrderByRelevanceFieldEnum: {
1448
+ readonly id: "id";
1449
+ readonly questionnairePlanId: "questionnairePlanId";
1450
+ readonly questionKey: "questionKey";
1451
+ readonly questionText: "questionText";
1452
+ readonly helpText: "helpText";
1453
+ readonly category: "category";
1454
+ };
1455
+ export type QuestionnairePlanQuestionOrderByRelevanceFieldEnum = (typeof QuestionnairePlanQuestionOrderByRelevanceFieldEnum)[keyof typeof QuestionnairePlanQuestionOrderByRelevanceFieldEnum];
1356
1456
  export declare const PaymentPlanOrderByRelevanceFieldEnum: {
1357
1457
  readonly id: "id";
1358
1458
  readonly tenantId: "tenantId";
@@ -1378,6 +1478,8 @@ export declare const PropertyPaymentMethodPhaseOrderByRelevanceFieldEnum: {
1378
1478
  readonly tenantId: "tenantId";
1379
1479
  readonly paymentMethodId: "paymentMethodId";
1380
1480
  readonly paymentPlanId: "paymentPlanId";
1481
+ readonly documentationPlanId: "documentationPlanId";
1482
+ readonly questionnairePlanId: "questionnairePlanId";
1381
1483
  readonly name: "name";
1382
1484
  readonly description: "description";
1383
1485
  };
@@ -1467,6 +1569,7 @@ export declare const QuestionnairePhaseOrderByRelevanceFieldEnum: {
1467
1569
  readonly id: "id";
1468
1570
  readonly tenantId: "tenantId";
1469
1571
  readonly phaseId: "phaseId";
1572
+ readonly questionnairePlanId: "questionnairePlanId";
1470
1573
  readonly underwritingDecision: "underwritingDecision";
1471
1574
  readonly underwritingNotes: "underwritingNotes";
1472
1575
  };
@@ -1475,6 +1578,7 @@ export declare const DocumentationPhaseOrderByRelevanceFieldEnum: {
1475
1578
  readonly id: "id";
1476
1579
  readonly tenantId: "tenantId";
1477
1580
  readonly phaseId: "phaseId";
1581
+ readonly documentationPlanId: "documentationPlanId";
1478
1582
  readonly currentStepId: "currentStepId";
1479
1583
  };
1480
1584
  export type DocumentationPhaseOrderByRelevanceFieldEnum = (typeof DocumentationPhaseOrderByRelevanceFieldEnum)[keyof typeof DocumentationPhaseOrderByRelevanceFieldEnum];
@@ -66,6 +66,10 @@ export const ModelName = {
66
66
  PropertyVariantMedia: 'PropertyVariantMedia',
67
67
  PropertyUnit: 'PropertyUnit',
68
68
  PropertyAmenity: 'PropertyAmenity',
69
+ DocumentationPlan: 'DocumentationPlan',
70
+ DocumentationPlanStep: 'DocumentationPlanStep',
71
+ QuestionnairePlan: 'QuestionnairePlan',
72
+ QuestionnairePlanQuestion: 'QuestionnairePlanQuestion',
69
73
  PaymentPlan: 'PaymentPlan',
70
74
  PropertyPaymentMethod: 'PropertyPaymentMethod',
71
75
  PropertyPaymentMethodLink: 'PropertyPaymentMethodLink',
@@ -401,6 +405,60 @@ export const PropertyAmenityScalarFieldEnum = {
401
405
  amenityId: 'amenityId',
402
406
  createdAt: 'createdAt'
403
407
  };
408
+ export const DocumentationPlanScalarFieldEnum = {
409
+ id: 'id',
410
+ tenantId: 'tenantId',
411
+ name: 'name',
412
+ description: 'description',
413
+ isActive: 'isActive',
414
+ requiredDocumentTypes: 'requiredDocumentTypes',
415
+ createdAt: 'createdAt',
416
+ updatedAt: 'updatedAt'
417
+ };
418
+ export const DocumentationPlanStepScalarFieldEnum = {
419
+ id: 'id',
420
+ planId: 'planId',
421
+ name: 'name',
422
+ stepType: 'stepType',
423
+ order: 'order',
424
+ documentType: 'documentType',
425
+ metadata: 'metadata',
426
+ createdAt: 'createdAt',
427
+ updatedAt: 'updatedAt'
428
+ };
429
+ export const QuestionnairePlanScalarFieldEnum = {
430
+ id: 'id',
431
+ tenantId: 'tenantId',
432
+ name: 'name',
433
+ description: 'description',
434
+ version: 'version',
435
+ isActive: 'isActive',
436
+ passingScore: 'passingScore',
437
+ scoringStrategy: 'scoringStrategy',
438
+ autoDecisionEnabled: 'autoDecisionEnabled',
439
+ estimatedMinutes: 'estimatedMinutes',
440
+ category: 'category',
441
+ createdAt: 'createdAt',
442
+ updatedAt: 'updatedAt'
443
+ };
444
+ export const QuestionnairePlanQuestionScalarFieldEnum = {
445
+ id: 'id',
446
+ questionnairePlanId: 'questionnairePlanId',
447
+ questionKey: 'questionKey',
448
+ questionText: 'questionText',
449
+ helpText: 'helpText',
450
+ questionType: 'questionType',
451
+ order: 'order',
452
+ isRequired: 'isRequired',
453
+ validationRules: 'validationRules',
454
+ options: 'options',
455
+ scoreWeight: 'scoreWeight',
456
+ scoringRules: 'scoringRules',
457
+ showIf: 'showIf',
458
+ category: 'category',
459
+ createdAt: 'createdAt',
460
+ updatedAt: 'updatedAt'
461
+ };
404
462
  export const PaymentPlanScalarFieldEnum = {
405
463
  id: 'id',
406
464
  tenantId: 'tenantId',
@@ -447,6 +505,8 @@ export const PropertyPaymentMethodPhaseScalarFieldEnum = {
447
505
  tenantId: 'tenantId',
448
506
  paymentMethodId: 'paymentMethodId',
449
507
  paymentPlanId: 'paymentPlanId',
508
+ documentationPlanId: 'documentationPlanId',
509
+ questionnairePlanId: 'questionnairePlanId',
450
510
  name: 'name',
451
511
  description: 'description',
452
512
  phaseCategory: 'phaseCategory',
@@ -597,8 +657,13 @@ export const QuestionnairePhaseScalarFieldEnum = {
597
657
  id: 'id',
598
658
  tenantId: 'tenantId',
599
659
  phaseId: 'phaseId',
660
+ questionnairePlanId: 'questionnairePlanId',
600
661
  completedFieldsCount: 'completedFieldsCount',
601
662
  totalFieldsCount: 'totalFieldsCount',
663
+ totalScore: 'totalScore',
664
+ passingScore: 'passingScore',
665
+ passed: 'passed',
666
+ scoredAt: 'scoredAt',
602
667
  underwritingScore: 'underwritingScore',
603
668
  debtToIncomeRatio: 'debtToIncomeRatio',
604
669
  underwritingDecision: 'underwritingDecision',
@@ -611,6 +676,7 @@ export const DocumentationPhaseScalarFieldEnum = {
611
676
  id: 'id',
612
677
  tenantId: 'tenantId',
613
678
  phaseId: 'phaseId',
679
+ documentationPlanId: 'documentationPlanId',
614
680
  currentStepId: 'currentStepId',
615
681
  approvedDocumentsCount: 'approvedDocumentsCount',
616
682
  requiredDocumentsCount: 'requiredDocumentsCount',
@@ -1270,6 +1336,32 @@ export const PropertyAmenityOrderByRelevanceFieldEnum = {
1270
1336
  propertyId: 'propertyId',
1271
1337
  amenityId: 'amenityId'
1272
1338
  };
1339
+ export const DocumentationPlanOrderByRelevanceFieldEnum = {
1340
+ id: 'id',
1341
+ tenantId: 'tenantId',
1342
+ name: 'name',
1343
+ description: 'description'
1344
+ };
1345
+ export const DocumentationPlanStepOrderByRelevanceFieldEnum = {
1346
+ id: 'id',
1347
+ planId: 'planId',
1348
+ name: 'name',
1349
+ documentType: 'documentType'
1350
+ };
1351
+ export const QuestionnairePlanOrderByRelevanceFieldEnum = {
1352
+ id: 'id',
1353
+ tenantId: 'tenantId',
1354
+ name: 'name',
1355
+ description: 'description'
1356
+ };
1357
+ export const QuestionnairePlanQuestionOrderByRelevanceFieldEnum = {
1358
+ id: 'id',
1359
+ questionnairePlanId: 'questionnairePlanId',
1360
+ questionKey: 'questionKey',
1361
+ questionText: 'questionText',
1362
+ helpText: 'helpText',
1363
+ category: 'category'
1364
+ };
1273
1365
  export const PaymentPlanOrderByRelevanceFieldEnum = {
1274
1366
  id: 'id',
1275
1367
  tenantId: 'tenantId',
@@ -1292,6 +1384,8 @@ export const PropertyPaymentMethodPhaseOrderByRelevanceFieldEnum = {
1292
1384
  tenantId: 'tenantId',
1293
1385
  paymentMethodId: 'paymentMethodId',
1294
1386
  paymentPlanId: 'paymentPlanId',
1387
+ documentationPlanId: 'documentationPlanId',
1388
+ questionnairePlanId: 'questionnairePlanId',
1295
1389
  name: 'name',
1296
1390
  description: 'description'
1297
1391
  };
@@ -1372,6 +1466,7 @@ export const QuestionnairePhaseOrderByRelevanceFieldEnum = {
1372
1466
  id: 'id',
1373
1467
  tenantId: 'tenantId',
1374
1468
  phaseId: 'phaseId',
1469
+ questionnairePlanId: 'questionnairePlanId',
1375
1470
  underwritingDecision: 'underwritingDecision',
1376
1471
  underwritingNotes: 'underwritingNotes'
1377
1472
  };
@@ -1379,6 +1474,7 @@ export const DocumentationPhaseOrderByRelevanceFieldEnum = {
1379
1474
  id: 'id',
1380
1475
  tenantId: 'tenantId',
1381
1476
  phaseId: 'phaseId',
1477
+ documentationPlanId: 'documentationPlanId',
1382
1478
  currentStepId: 'currentStepId'
1383
1479
  };
1384
1480
  export const PaymentPhaseOrderByRelevanceFieldEnum = {