@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
@@ -69,7 +69,8 @@ export const ModelName = {
69
69
  PropertyUnit: 'PropertyUnit',
70
70
  PropertyAmenity: 'PropertyAmenity',
71
71
  DocumentationPlan: 'DocumentationPlan',
72
- DocumentationPlanStep: 'DocumentationPlanStep',
72
+ DocumentDefinition: 'DocumentDefinition',
73
+ ApprovalStage: 'ApprovalStage',
73
74
  QuestionnairePlan: 'QuestionnairePlan',
74
75
  QuestionnairePlanQuestion: 'QuestionnairePlanQuestion',
75
76
  PaymentPlan: 'PaymentPlan',
@@ -89,13 +90,12 @@ export const ModelName = {
89
90
  PaymentPhase: 'PaymentPhase',
90
91
  QuestionnaireField: 'QuestionnaireField',
91
92
  ApplicationEvent: 'ApplicationEvent',
92
- DocumentationStep: 'DocumentationStep',
93
- DocumentationStepDocument: 'DocumentationStepDocument',
94
- DocumentationStepApproval: 'DocumentationStepApproval',
95
93
  PaymentInstallment: 'PaymentInstallment',
96
94
  ApplicationPayment: 'ApplicationPayment',
97
95
  ApplicationDocument: 'ApplicationDocument',
98
96
  DocumentReview: 'DocumentReview',
97
+ ApprovalStageProgress: 'ApprovalStageProgress',
98
+ DocumentApproval: 'DocumentApproval',
99
99
  DocumentTemplate: 'DocumentTemplate',
100
100
  OfferLetter: 'OfferLetter',
101
101
  ApplicationTermination: 'ApplicationTermination',
@@ -462,33 +462,38 @@ export const DocumentationPlanScalarFieldEnum = {
462
462
  createdAt: 'createdAt',
463
463
  updatedAt: 'updatedAt'
464
464
  };
465
- export const DocumentationPlanStepScalarFieldEnum = {
465
+ export const DocumentDefinitionScalarFieldEnum = {
466
466
  id: 'id',
467
467
  planId: 'planId',
468
- name: 'name',
469
- stepType: 'stepType',
470
- order: 'order',
471
468
  documentType: 'documentType',
472
469
  documentName: 'documentName',
473
- metadata: 'metadata',
470
+ uploadedBy: 'uploadedBy',
471
+ order: 'order',
474
472
  isRequired: 'isRequired',
475
473
  description: 'description',
476
474
  maxSizeBytes: 'maxSizeBytes',
477
475
  allowedMimeTypes: 'allowedMimeTypes',
478
476
  expiryDays: 'expiryDays',
479
- requiresManualReview: 'requiresManualReview',
480
477
  minFiles: 'minFiles',
481
478
  maxFiles: 'maxFiles',
482
479
  condition: 'condition',
483
- reviewRequirements: 'reviewRequirements',
484
- reviewOrder: 'reviewOrder',
485
- gateActor: 'gateActor',
486
- gateAction: 'gateAction',
487
- gateRoleId: 'gateRoleId',
488
- gateInstructions: 'gateInstructions',
489
- allowReject: 'allowReject',
490
- rejectBehavior: 'rejectBehavior',
491
- requiresComment: 'requiresComment',
480
+ createdAt: 'createdAt',
481
+ updatedAt: 'updatedAt'
482
+ };
483
+ export const ApprovalStageScalarFieldEnum = {
484
+ id: 'id',
485
+ planId: 'planId',
486
+ name: 'name',
487
+ order: 'order',
488
+ reviewParty: 'reviewParty',
489
+ autoTransition: 'autoTransition',
490
+ waitForAllDocuments: 'waitForAllDocuments',
491
+ allowEarlyVisibility: 'allowEarlyVisibility',
492
+ onRejection: 'onRejection',
493
+ restartFromStageOrder: 'restartFromStageOrder',
494
+ organizationId: 'organizationId',
495
+ slaHours: 'slaHours',
496
+ description: 'description',
492
497
  createdAt: 'createdAt',
493
498
  updatedAt: 'updatedAt'
494
499
  };
@@ -748,15 +753,11 @@ export const DocumentationPhaseScalarFieldEnum = {
748
753
  phaseId: 'phaseId',
749
754
  documentationPlanId: 'documentationPlanId',
750
755
  sourceQuestionnairePhaseId: 'sourceQuestionnairePhaseId',
751
- currentStepId: 'currentStepId',
756
+ currentStageOrder: 'currentStageOrder',
752
757
  approvedDocumentsCount: 'approvedDocumentsCount',
753
758
  requiredDocumentsCount: 'requiredDocumentsCount',
754
- completedStepsCount: 'completedStepsCount',
755
- totalStepsCount: 'totalStepsCount',
756
- minimumCompletionPercentage: 'minimumCompletionPercentage',
757
- completionCriterion: 'completionCriterion',
758
- stepDefinitionsSnapshot: 'stepDefinitionsSnapshot',
759
- requiredDocumentSnapshot: 'requiredDocumentSnapshot',
759
+ documentDefinitionsSnapshot: 'documentDefinitionsSnapshot',
760
+ approvalStagesSnapshot: 'approvalStagesSnapshot',
760
761
  createdAt: 'createdAt',
761
762
  updatedAt: 'updatedAt'
762
763
  };
@@ -811,59 +812,6 @@ export const ApplicationEventScalarFieldEnum = {
811
812
  actorType: 'actorType',
812
813
  occurredAt: 'occurredAt'
813
814
  };
814
- export const DocumentationStepScalarFieldEnum = {
815
- id: 'id',
816
- tenantId: 'tenantId',
817
- documentationPhaseId: 'documentationPhaseId',
818
- name: 'name',
819
- documentName: 'documentName',
820
- description: 'description',
821
- stepType: 'stepType',
822
- order: 'order',
823
- status: 'status',
824
- actionReason: 'actionReason',
825
- submissionCount: 'submissionCount',
826
- lastSubmittedAt: 'lastSubmittedAt',
827
- metadata: 'metadata',
828
- requiresManualReview: 'requiresManualReview',
829
- condition: 'condition',
830
- reviewRequirements: 'reviewRequirements',
831
- reviewOrder: 'reviewOrder',
832
- assigneeId: 'assigneeId',
833
- gateActor: 'gateActor',
834
- gateAction: 'gateAction',
835
- gateRoleId: 'gateRoleId',
836
- gateInstructions: 'gateInstructions',
837
- allowReject: 'allowReject',
838
- rejectBehavior: 'rejectBehavior',
839
- requiresComment: 'requiresComment',
840
- gateActedAt: 'gateActedAt',
841
- gateActedById: 'gateActedById',
842
- gateDecision: 'gateDecision',
843
- gateComment: 'gateComment',
844
- dueDate: 'dueDate',
845
- completedAt: 'completedAt',
846
- createdAt: 'createdAt',
847
- updatedAt: 'updatedAt'
848
- };
849
- export const DocumentationStepDocumentScalarFieldEnum = {
850
- id: 'id',
851
- tenantId: 'tenantId',
852
- stepId: 'stepId',
853
- documentType: 'documentType',
854
- isRequired: 'isRequired',
855
- createdAt: 'createdAt'
856
- };
857
- export const DocumentationStepApprovalScalarFieldEnum = {
858
- id: 'id',
859
- tenantId: 'tenantId',
860
- stepId: 'stepId',
861
- approverId: 'approverId',
862
- decision: 'decision',
863
- comment: 'comment',
864
- decidedAt: 'decidedAt',
865
- createdAt: 'createdAt'
866
- };
867
815
  export const PaymentInstallmentScalarFieldEnum = {
868
816
  id: 'id',
869
817
  tenantId: 'tenantId',
@@ -908,6 +856,8 @@ export const ApplicationDocumentScalarFieldEnum = {
908
856
  applicationId: 'applicationId',
909
857
  phaseId: 'phaseId',
910
858
  stepId: 'stepId',
859
+ documentType: 'documentType',
860
+ documentName: 'documentName',
911
861
  name: 'name',
912
862
  url: 'url',
913
863
  type: 'type',
@@ -937,6 +887,39 @@ export const DocumentReviewScalarFieldEnum = {
937
887
  createdAt: 'createdAt',
938
888
  updatedAt: 'updatedAt'
939
889
  };
890
+ export const ApprovalStageProgressScalarFieldEnum = {
891
+ id: 'id',
892
+ tenantId: 'tenantId',
893
+ documentationPhaseId: 'documentationPhaseId',
894
+ approvalStageId: 'approvalStageId',
895
+ name: 'name',
896
+ order: 'order',
897
+ reviewParty: 'reviewParty',
898
+ autoTransition: 'autoTransition',
899
+ waitForAllDocuments: 'waitForAllDocuments',
900
+ allowEarlyVisibility: 'allowEarlyVisibility',
901
+ onRejection: 'onRejection',
902
+ restartFromStageOrder: 'restartFromStageOrder',
903
+ status: 'status',
904
+ activatedAt: 'activatedAt',
905
+ completedAt: 'completedAt',
906
+ completedById: 'completedById',
907
+ transitionComment: 'transitionComment',
908
+ createdAt: 'createdAt',
909
+ updatedAt: 'updatedAt'
910
+ };
911
+ export const DocumentApprovalScalarFieldEnum = {
912
+ id: 'id',
913
+ tenantId: 'tenantId',
914
+ documentId: 'documentId',
915
+ stageProgressId: 'stageProgressId',
916
+ reviewerId: 'reviewerId',
917
+ reviewParty: 'reviewParty',
918
+ decision: 'decision',
919
+ comment: 'comment',
920
+ reviewedAt: 'reviewedAt',
921
+ createdAt: 'createdAt'
922
+ };
940
923
  export const DocumentTemplateScalarFieldEnum = {
941
924
  id: 'id',
942
925
  tenantId: 'tenantId',
@@ -1481,17 +1464,20 @@ export const DocumentationPlanOrderByRelevanceFieldEnum = {
1481
1464
  name: 'name',
1482
1465
  description: 'description'
1483
1466
  };
1484
- export const DocumentationPlanStepOrderByRelevanceFieldEnum = {
1467
+ export const DocumentDefinitionOrderByRelevanceFieldEnum = {
1485
1468
  id: 'id',
1486
1469
  planId: 'planId',
1487
- name: 'name',
1488
1470
  documentType: 'documentType',
1489
1471
  documentName: 'documentName',
1490
1472
  description: 'description',
1491
- allowedMimeTypes: 'allowedMimeTypes',
1492
- reviewOrder: 'reviewOrder',
1493
- gateRoleId: 'gateRoleId',
1494
- gateInstructions: 'gateInstructions'
1473
+ allowedMimeTypes: 'allowedMimeTypes'
1474
+ };
1475
+ export const ApprovalStageOrderByRelevanceFieldEnum = {
1476
+ id: 'id',
1477
+ planId: 'planId',
1478
+ name: 'name',
1479
+ organizationId: 'organizationId',
1480
+ description: 'description'
1495
1481
  };
1496
1482
  export const QuestionnairePlanOrderByRelevanceFieldEnum = {
1497
1483
  id: 'id',
@@ -1621,8 +1607,7 @@ export const DocumentationPhaseOrderByRelevanceFieldEnum = {
1621
1607
  tenantId: 'tenantId',
1622
1608
  phaseId: 'phaseId',
1623
1609
  documentationPlanId: 'documentationPlanId',
1624
- sourceQuestionnairePhaseId: 'sourceQuestionnairePhaseId',
1625
- currentStepId: 'currentStepId'
1610
+ sourceQuestionnairePhaseId: 'sourceQuestionnairePhaseId'
1626
1611
  };
1627
1612
  export const PaymentPhaseOrderByRelevanceFieldEnum = {
1628
1613
  id: 'id',
@@ -1648,35 +1633,6 @@ export const ApplicationEventOrderByRelevanceFieldEnum = {
1648
1633
  trigger: 'trigger',
1649
1634
  actorId: 'actorId'
1650
1635
  };
1651
- export const DocumentationStepOrderByRelevanceFieldEnum = {
1652
- id: 'id',
1653
- tenantId: 'tenantId',
1654
- documentationPhaseId: 'documentationPhaseId',
1655
- name: 'name',
1656
- documentName: 'documentName',
1657
- description: 'description',
1658
- actionReason: 'actionReason',
1659
- reviewOrder: 'reviewOrder',
1660
- assigneeId: 'assigneeId',
1661
- gateRoleId: 'gateRoleId',
1662
- gateInstructions: 'gateInstructions',
1663
- gateActedById: 'gateActedById',
1664
- gateDecision: 'gateDecision',
1665
- gateComment: 'gateComment'
1666
- };
1667
- export const DocumentationStepDocumentOrderByRelevanceFieldEnum = {
1668
- id: 'id',
1669
- tenantId: 'tenantId',
1670
- stepId: 'stepId',
1671
- documentType: 'documentType'
1672
- };
1673
- export const DocumentationStepApprovalOrderByRelevanceFieldEnum = {
1674
- id: 'id',
1675
- tenantId: 'tenantId',
1676
- stepId: 'stepId',
1677
- approverId: 'approverId',
1678
- comment: 'comment'
1679
- };
1680
1636
  export const PaymentInstallmentOrderByRelevanceFieldEnum = {
1681
1637
  id: 'id',
1682
1638
  tenantId: 'tenantId',
@@ -1699,6 +1655,8 @@ export const ApplicationDocumentOrderByRelevanceFieldEnum = {
1699
1655
  applicationId: 'applicationId',
1700
1656
  phaseId: 'phaseId',
1701
1657
  stepId: 'stepId',
1658
+ documentType: 'documentType',
1659
+ documentName: 'documentName',
1702
1660
  name: 'name',
1703
1661
  url: 'url',
1704
1662
  type: 'type',
@@ -1715,6 +1673,23 @@ export const DocumentReviewOrderByRelevanceFieldEnum = {
1715
1673
  comments: 'comments',
1716
1674
  parentReviewId: 'parentReviewId'
1717
1675
  };
1676
+ export const ApprovalStageProgressOrderByRelevanceFieldEnum = {
1677
+ id: 'id',
1678
+ tenantId: 'tenantId',
1679
+ documentationPhaseId: 'documentationPhaseId',
1680
+ approvalStageId: 'approvalStageId',
1681
+ name: 'name',
1682
+ completedById: 'completedById',
1683
+ transitionComment: 'transitionComment'
1684
+ };
1685
+ export const DocumentApprovalOrderByRelevanceFieldEnum = {
1686
+ id: 'id',
1687
+ tenantId: 'tenantId',
1688
+ documentId: 'documentId',
1689
+ stageProgressId: 'stageProgressId',
1690
+ reviewerId: 'reviewerId',
1691
+ comment: 'comment'
1692
+ };
1718
1693
  export const DocumentTemplateOrderByRelevanceFieldEnum = {
1719
1694
  id: 'id',
1720
1695
  tenantId: 'tenantId',