@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
@@ -97,7 +97,8 @@ export const ModelName = {
97
97
  PropertyUnit: 'PropertyUnit',
98
98
  PropertyAmenity: 'PropertyAmenity',
99
99
  DocumentationPlan: 'DocumentationPlan',
100
- DocumentationPlanStep: 'DocumentationPlanStep',
100
+ DocumentDefinition: 'DocumentDefinition',
101
+ ApprovalStage: 'ApprovalStage',
101
102
  QuestionnairePlan: 'QuestionnairePlan',
102
103
  QuestionnairePlanQuestion: 'QuestionnairePlanQuestion',
103
104
  PaymentPlan: 'PaymentPlan',
@@ -117,13 +118,12 @@ export const ModelName = {
117
118
  PaymentPhase: 'PaymentPhase',
118
119
  QuestionnaireField: 'QuestionnaireField',
119
120
  ApplicationEvent: 'ApplicationEvent',
120
- DocumentationStep: 'DocumentationStep',
121
- DocumentationStepDocument: 'DocumentationStepDocument',
122
- DocumentationStepApproval: 'DocumentationStepApproval',
123
121
  PaymentInstallment: 'PaymentInstallment',
124
122
  ApplicationPayment: 'ApplicationPayment',
125
123
  ApplicationDocument: 'ApplicationDocument',
126
124
  DocumentReview: 'DocumentReview',
125
+ ApprovalStageProgress: 'ApprovalStageProgress',
126
+ DocumentApproval: 'DocumentApproval',
127
127
  DocumentTemplate: 'DocumentTemplate',
128
128
  OfferLetter: 'OfferLetter',
129
129
  ApplicationTermination: 'ApplicationTermination',
@@ -490,33 +490,38 @@ export const DocumentationPlanScalarFieldEnum = {
490
490
  createdAt: 'createdAt',
491
491
  updatedAt: 'updatedAt'
492
492
  };
493
- export const DocumentationPlanStepScalarFieldEnum = {
493
+ export const DocumentDefinitionScalarFieldEnum = {
494
494
  id: 'id',
495
495
  planId: 'planId',
496
- name: 'name',
497
- stepType: 'stepType',
498
- order: 'order',
499
496
  documentType: 'documentType',
500
497
  documentName: 'documentName',
501
- metadata: 'metadata',
498
+ uploadedBy: 'uploadedBy',
499
+ order: 'order',
502
500
  isRequired: 'isRequired',
503
501
  description: 'description',
504
502
  maxSizeBytes: 'maxSizeBytes',
505
503
  allowedMimeTypes: 'allowedMimeTypes',
506
504
  expiryDays: 'expiryDays',
507
- requiresManualReview: 'requiresManualReview',
508
505
  minFiles: 'minFiles',
509
506
  maxFiles: 'maxFiles',
510
507
  condition: 'condition',
511
- reviewRequirements: 'reviewRequirements',
512
- reviewOrder: 'reviewOrder',
513
- gateActor: 'gateActor',
514
- gateAction: 'gateAction',
515
- gateRoleId: 'gateRoleId',
516
- gateInstructions: 'gateInstructions',
517
- allowReject: 'allowReject',
518
- rejectBehavior: 'rejectBehavior',
519
- requiresComment: 'requiresComment',
508
+ createdAt: 'createdAt',
509
+ updatedAt: 'updatedAt'
510
+ };
511
+ export const ApprovalStageScalarFieldEnum = {
512
+ id: 'id',
513
+ planId: 'planId',
514
+ name: 'name',
515
+ order: 'order',
516
+ reviewParty: 'reviewParty',
517
+ autoTransition: 'autoTransition',
518
+ waitForAllDocuments: 'waitForAllDocuments',
519
+ allowEarlyVisibility: 'allowEarlyVisibility',
520
+ onRejection: 'onRejection',
521
+ restartFromStageOrder: 'restartFromStageOrder',
522
+ organizationId: 'organizationId',
523
+ slaHours: 'slaHours',
524
+ description: 'description',
520
525
  createdAt: 'createdAt',
521
526
  updatedAt: 'updatedAt'
522
527
  };
@@ -776,15 +781,11 @@ export const DocumentationPhaseScalarFieldEnum = {
776
781
  phaseId: 'phaseId',
777
782
  documentationPlanId: 'documentationPlanId',
778
783
  sourceQuestionnairePhaseId: 'sourceQuestionnairePhaseId',
779
- currentStepId: 'currentStepId',
784
+ currentStageOrder: 'currentStageOrder',
780
785
  approvedDocumentsCount: 'approvedDocumentsCount',
781
786
  requiredDocumentsCount: 'requiredDocumentsCount',
782
- completedStepsCount: 'completedStepsCount',
783
- totalStepsCount: 'totalStepsCount',
784
- minimumCompletionPercentage: 'minimumCompletionPercentage',
785
- completionCriterion: 'completionCriterion',
786
- stepDefinitionsSnapshot: 'stepDefinitionsSnapshot',
787
- requiredDocumentSnapshot: 'requiredDocumentSnapshot',
787
+ documentDefinitionsSnapshot: 'documentDefinitionsSnapshot',
788
+ approvalStagesSnapshot: 'approvalStagesSnapshot',
788
789
  createdAt: 'createdAt',
789
790
  updatedAt: 'updatedAt'
790
791
  };
@@ -839,59 +840,6 @@ export const ApplicationEventScalarFieldEnum = {
839
840
  actorType: 'actorType',
840
841
  occurredAt: 'occurredAt'
841
842
  };
842
- export const DocumentationStepScalarFieldEnum = {
843
- id: 'id',
844
- tenantId: 'tenantId',
845
- documentationPhaseId: 'documentationPhaseId',
846
- name: 'name',
847
- documentName: 'documentName',
848
- description: 'description',
849
- stepType: 'stepType',
850
- order: 'order',
851
- status: 'status',
852
- actionReason: 'actionReason',
853
- submissionCount: 'submissionCount',
854
- lastSubmittedAt: 'lastSubmittedAt',
855
- metadata: 'metadata',
856
- requiresManualReview: 'requiresManualReview',
857
- condition: 'condition',
858
- reviewRequirements: 'reviewRequirements',
859
- reviewOrder: 'reviewOrder',
860
- assigneeId: 'assigneeId',
861
- gateActor: 'gateActor',
862
- gateAction: 'gateAction',
863
- gateRoleId: 'gateRoleId',
864
- gateInstructions: 'gateInstructions',
865
- allowReject: 'allowReject',
866
- rejectBehavior: 'rejectBehavior',
867
- requiresComment: 'requiresComment',
868
- gateActedAt: 'gateActedAt',
869
- gateActedById: 'gateActedById',
870
- gateDecision: 'gateDecision',
871
- gateComment: 'gateComment',
872
- dueDate: 'dueDate',
873
- completedAt: 'completedAt',
874
- createdAt: 'createdAt',
875
- updatedAt: 'updatedAt'
876
- };
877
- export const DocumentationStepDocumentScalarFieldEnum = {
878
- id: 'id',
879
- tenantId: 'tenantId',
880
- stepId: 'stepId',
881
- documentType: 'documentType',
882
- isRequired: 'isRequired',
883
- createdAt: 'createdAt'
884
- };
885
- export const DocumentationStepApprovalScalarFieldEnum = {
886
- id: 'id',
887
- tenantId: 'tenantId',
888
- stepId: 'stepId',
889
- approverId: 'approverId',
890
- decision: 'decision',
891
- comment: 'comment',
892
- decidedAt: 'decidedAt',
893
- createdAt: 'createdAt'
894
- };
895
843
  export const PaymentInstallmentScalarFieldEnum = {
896
844
  id: 'id',
897
845
  tenantId: 'tenantId',
@@ -936,6 +884,8 @@ export const ApplicationDocumentScalarFieldEnum = {
936
884
  applicationId: 'applicationId',
937
885
  phaseId: 'phaseId',
938
886
  stepId: 'stepId',
887
+ documentType: 'documentType',
888
+ documentName: 'documentName',
939
889
  name: 'name',
940
890
  url: 'url',
941
891
  type: 'type',
@@ -965,6 +915,39 @@ export const DocumentReviewScalarFieldEnum = {
965
915
  createdAt: 'createdAt',
966
916
  updatedAt: 'updatedAt'
967
917
  };
918
+ export const ApprovalStageProgressScalarFieldEnum = {
919
+ id: 'id',
920
+ tenantId: 'tenantId',
921
+ documentationPhaseId: 'documentationPhaseId',
922
+ approvalStageId: 'approvalStageId',
923
+ name: 'name',
924
+ order: 'order',
925
+ reviewParty: 'reviewParty',
926
+ autoTransition: 'autoTransition',
927
+ waitForAllDocuments: 'waitForAllDocuments',
928
+ allowEarlyVisibility: 'allowEarlyVisibility',
929
+ onRejection: 'onRejection',
930
+ restartFromStageOrder: 'restartFromStageOrder',
931
+ status: 'status',
932
+ activatedAt: 'activatedAt',
933
+ completedAt: 'completedAt',
934
+ completedById: 'completedById',
935
+ transitionComment: 'transitionComment',
936
+ createdAt: 'createdAt',
937
+ updatedAt: 'updatedAt'
938
+ };
939
+ export const DocumentApprovalScalarFieldEnum = {
940
+ id: 'id',
941
+ tenantId: 'tenantId',
942
+ documentId: 'documentId',
943
+ stageProgressId: 'stageProgressId',
944
+ reviewerId: 'reviewerId',
945
+ reviewParty: 'reviewParty',
946
+ decision: 'decision',
947
+ comment: 'comment',
948
+ reviewedAt: 'reviewedAt',
949
+ createdAt: 'createdAt'
950
+ };
968
951
  export const DocumentTemplateScalarFieldEnum = {
969
952
  id: 'id',
970
953
  tenantId: 'tenantId',
@@ -1509,17 +1492,20 @@ export const DocumentationPlanOrderByRelevanceFieldEnum = {
1509
1492
  name: 'name',
1510
1493
  description: 'description'
1511
1494
  };
1512
- export const DocumentationPlanStepOrderByRelevanceFieldEnum = {
1495
+ export const DocumentDefinitionOrderByRelevanceFieldEnum = {
1513
1496
  id: 'id',
1514
1497
  planId: 'planId',
1515
- name: 'name',
1516
1498
  documentType: 'documentType',
1517
1499
  documentName: 'documentName',
1518
1500
  description: 'description',
1519
- allowedMimeTypes: 'allowedMimeTypes',
1520
- reviewOrder: 'reviewOrder',
1521
- gateRoleId: 'gateRoleId',
1522
- gateInstructions: 'gateInstructions'
1501
+ allowedMimeTypes: 'allowedMimeTypes'
1502
+ };
1503
+ export const ApprovalStageOrderByRelevanceFieldEnum = {
1504
+ id: 'id',
1505
+ planId: 'planId',
1506
+ name: 'name',
1507
+ organizationId: 'organizationId',
1508
+ description: 'description'
1523
1509
  };
1524
1510
  export const QuestionnairePlanOrderByRelevanceFieldEnum = {
1525
1511
  id: 'id',
@@ -1649,8 +1635,7 @@ export const DocumentationPhaseOrderByRelevanceFieldEnum = {
1649
1635
  tenantId: 'tenantId',
1650
1636
  phaseId: 'phaseId',
1651
1637
  documentationPlanId: 'documentationPlanId',
1652
- sourceQuestionnairePhaseId: 'sourceQuestionnairePhaseId',
1653
- currentStepId: 'currentStepId'
1638
+ sourceQuestionnairePhaseId: 'sourceQuestionnairePhaseId'
1654
1639
  };
1655
1640
  export const PaymentPhaseOrderByRelevanceFieldEnum = {
1656
1641
  id: 'id',
@@ -1676,35 +1661,6 @@ export const ApplicationEventOrderByRelevanceFieldEnum = {
1676
1661
  trigger: 'trigger',
1677
1662
  actorId: 'actorId'
1678
1663
  };
1679
- export const DocumentationStepOrderByRelevanceFieldEnum = {
1680
- id: 'id',
1681
- tenantId: 'tenantId',
1682
- documentationPhaseId: 'documentationPhaseId',
1683
- name: 'name',
1684
- documentName: 'documentName',
1685
- description: 'description',
1686
- actionReason: 'actionReason',
1687
- reviewOrder: 'reviewOrder',
1688
- assigneeId: 'assigneeId',
1689
- gateRoleId: 'gateRoleId',
1690
- gateInstructions: 'gateInstructions',
1691
- gateActedById: 'gateActedById',
1692
- gateDecision: 'gateDecision',
1693
- gateComment: 'gateComment'
1694
- };
1695
- export const DocumentationStepDocumentOrderByRelevanceFieldEnum = {
1696
- id: 'id',
1697
- tenantId: 'tenantId',
1698
- stepId: 'stepId',
1699
- documentType: 'documentType'
1700
- };
1701
- export const DocumentationStepApprovalOrderByRelevanceFieldEnum = {
1702
- id: 'id',
1703
- tenantId: 'tenantId',
1704
- stepId: 'stepId',
1705
- approverId: 'approverId',
1706
- comment: 'comment'
1707
- };
1708
1664
  export const PaymentInstallmentOrderByRelevanceFieldEnum = {
1709
1665
  id: 'id',
1710
1666
  tenantId: 'tenantId',
@@ -1727,6 +1683,8 @@ export const ApplicationDocumentOrderByRelevanceFieldEnum = {
1727
1683
  applicationId: 'applicationId',
1728
1684
  phaseId: 'phaseId',
1729
1685
  stepId: 'stepId',
1686
+ documentType: 'documentType',
1687
+ documentName: 'documentName',
1730
1688
  name: 'name',
1731
1689
  url: 'url',
1732
1690
  type: 'type',
@@ -1743,6 +1701,23 @@ export const DocumentReviewOrderByRelevanceFieldEnum = {
1743
1701
  comments: 'comments',
1744
1702
  parentReviewId: 'parentReviewId'
1745
1703
  };
1704
+ export const ApprovalStageProgressOrderByRelevanceFieldEnum = {
1705
+ id: 'id',
1706
+ tenantId: 'tenantId',
1707
+ documentationPhaseId: 'documentationPhaseId',
1708
+ approvalStageId: 'approvalStageId',
1709
+ name: 'name',
1710
+ completedById: 'completedById',
1711
+ transitionComment: 'transitionComment'
1712
+ };
1713
+ export const DocumentApprovalOrderByRelevanceFieldEnum = {
1714
+ id: 'id',
1715
+ tenantId: 'tenantId',
1716
+ documentId: 'documentId',
1717
+ stageProgressId: 'stageProgressId',
1718
+ reviewerId: 'reviewerId',
1719
+ comment: 'comment'
1720
+ };
1746
1721
  export const DocumentTemplateOrderByRelevanceFieldEnum = {
1747
1722
  id: 'id',
1748
1723
  tenantId: 'tenantId',
@@ -56,7 +56,8 @@ export declare const ModelName: {
56
56
  readonly PropertyUnit: "PropertyUnit";
57
57
  readonly PropertyAmenity: "PropertyAmenity";
58
58
  readonly DocumentationPlan: "DocumentationPlan";
59
- readonly DocumentationPlanStep: "DocumentationPlanStep";
59
+ readonly DocumentDefinition: "DocumentDefinition";
60
+ readonly ApprovalStage: "ApprovalStage";
60
61
  readonly QuestionnairePlan: "QuestionnairePlan";
61
62
  readonly QuestionnairePlanQuestion: "QuestionnairePlanQuestion";
62
63
  readonly PaymentPlan: "PaymentPlan";
@@ -76,13 +77,12 @@ export declare const ModelName: {
76
77
  readonly PaymentPhase: "PaymentPhase";
77
78
  readonly QuestionnaireField: "QuestionnaireField";
78
79
  readonly ApplicationEvent: "ApplicationEvent";
79
- readonly DocumentationStep: "DocumentationStep";
80
- readonly DocumentationStepDocument: "DocumentationStepDocument";
81
- readonly DocumentationStepApproval: "DocumentationStepApproval";
82
80
  readonly PaymentInstallment: "PaymentInstallment";
83
81
  readonly ApplicationPayment: "ApplicationPayment";
84
82
  readonly ApplicationDocument: "ApplicationDocument";
85
83
  readonly DocumentReview: "DocumentReview";
84
+ readonly ApprovalStageProgress: "ApprovalStageProgress";
85
+ readonly DocumentApproval: "DocumentApproval";
86
86
  readonly DocumentTemplate: "DocumentTemplate";
87
87
  readonly OfferLetter: "OfferLetter";
88
88
  readonly ApplicationTermination: "ApplicationTermination";
@@ -478,37 +478,43 @@ export declare const DocumentationPlanScalarFieldEnum: {
478
478
  readonly updatedAt: "updatedAt";
479
479
  };
480
480
  export type DocumentationPlanScalarFieldEnum = (typeof DocumentationPlanScalarFieldEnum)[keyof typeof DocumentationPlanScalarFieldEnum];
481
- export declare const DocumentationPlanStepScalarFieldEnum: {
481
+ export declare const DocumentDefinitionScalarFieldEnum: {
482
482
  readonly id: "id";
483
483
  readonly planId: "planId";
484
- readonly name: "name";
485
- readonly stepType: "stepType";
486
- readonly order: "order";
487
484
  readonly documentType: "documentType";
488
485
  readonly documentName: "documentName";
489
- readonly metadata: "metadata";
486
+ readonly uploadedBy: "uploadedBy";
487
+ readonly order: "order";
490
488
  readonly isRequired: "isRequired";
491
489
  readonly description: "description";
492
490
  readonly maxSizeBytes: "maxSizeBytes";
493
491
  readonly allowedMimeTypes: "allowedMimeTypes";
494
492
  readonly expiryDays: "expiryDays";
495
- readonly requiresManualReview: "requiresManualReview";
496
493
  readonly minFiles: "minFiles";
497
494
  readonly maxFiles: "maxFiles";
498
495
  readonly condition: "condition";
499
- readonly reviewRequirements: "reviewRequirements";
500
- readonly reviewOrder: "reviewOrder";
501
- readonly gateActor: "gateActor";
502
- readonly gateAction: "gateAction";
503
- readonly gateRoleId: "gateRoleId";
504
- readonly gateInstructions: "gateInstructions";
505
- readonly allowReject: "allowReject";
506
- readonly rejectBehavior: "rejectBehavior";
507
- readonly requiresComment: "requiresComment";
508
496
  readonly createdAt: "createdAt";
509
497
  readonly updatedAt: "updatedAt";
510
498
  };
511
- export type DocumentationPlanStepScalarFieldEnum = (typeof DocumentationPlanStepScalarFieldEnum)[keyof typeof DocumentationPlanStepScalarFieldEnum];
499
+ export type DocumentDefinitionScalarFieldEnum = (typeof DocumentDefinitionScalarFieldEnum)[keyof typeof DocumentDefinitionScalarFieldEnum];
500
+ export declare const ApprovalStageScalarFieldEnum: {
501
+ readonly id: "id";
502
+ readonly planId: "planId";
503
+ readonly name: "name";
504
+ readonly order: "order";
505
+ readonly reviewParty: "reviewParty";
506
+ readonly autoTransition: "autoTransition";
507
+ readonly waitForAllDocuments: "waitForAllDocuments";
508
+ readonly allowEarlyVisibility: "allowEarlyVisibility";
509
+ readonly onRejection: "onRejection";
510
+ readonly restartFromStageOrder: "restartFromStageOrder";
511
+ readonly organizationId: "organizationId";
512
+ readonly slaHours: "slaHours";
513
+ readonly description: "description";
514
+ readonly createdAt: "createdAt";
515
+ readonly updatedAt: "updatedAt";
516
+ };
517
+ export type ApprovalStageScalarFieldEnum = (typeof ApprovalStageScalarFieldEnum)[keyof typeof ApprovalStageScalarFieldEnum];
512
518
  export declare const QuestionnairePlanScalarFieldEnum: {
513
519
  readonly id: "id";
514
520
  readonly tenantId: "tenantId";
@@ -780,15 +786,11 @@ export declare const DocumentationPhaseScalarFieldEnum: {
780
786
  readonly phaseId: "phaseId";
781
787
  readonly documentationPlanId: "documentationPlanId";
782
788
  readonly sourceQuestionnairePhaseId: "sourceQuestionnairePhaseId";
783
- readonly currentStepId: "currentStepId";
789
+ readonly currentStageOrder: "currentStageOrder";
784
790
  readonly approvedDocumentsCount: "approvedDocumentsCount";
785
791
  readonly requiredDocumentsCount: "requiredDocumentsCount";
786
- readonly completedStepsCount: "completedStepsCount";
787
- readonly totalStepsCount: "totalStepsCount";
788
- readonly minimumCompletionPercentage: "minimumCompletionPercentage";
789
- readonly completionCriterion: "completionCriterion";
790
- readonly stepDefinitionsSnapshot: "stepDefinitionsSnapshot";
791
- readonly requiredDocumentSnapshot: "requiredDocumentSnapshot";
792
+ readonly documentDefinitionsSnapshot: "documentDefinitionsSnapshot";
793
+ readonly approvalStagesSnapshot: "approvalStagesSnapshot";
792
794
  readonly createdAt: "createdAt";
793
795
  readonly updatedAt: "updatedAt";
794
796
  };
@@ -847,62 +849,6 @@ export declare const ApplicationEventScalarFieldEnum: {
847
849
  readonly occurredAt: "occurredAt";
848
850
  };
849
851
  export type ApplicationEventScalarFieldEnum = (typeof ApplicationEventScalarFieldEnum)[keyof typeof ApplicationEventScalarFieldEnum];
850
- export declare const DocumentationStepScalarFieldEnum: {
851
- readonly id: "id";
852
- readonly tenantId: "tenantId";
853
- readonly documentationPhaseId: "documentationPhaseId";
854
- readonly name: "name";
855
- readonly documentName: "documentName";
856
- readonly description: "description";
857
- readonly stepType: "stepType";
858
- readonly order: "order";
859
- readonly status: "status";
860
- readonly actionReason: "actionReason";
861
- readonly submissionCount: "submissionCount";
862
- readonly lastSubmittedAt: "lastSubmittedAt";
863
- readonly metadata: "metadata";
864
- readonly requiresManualReview: "requiresManualReview";
865
- readonly condition: "condition";
866
- readonly reviewRequirements: "reviewRequirements";
867
- readonly reviewOrder: "reviewOrder";
868
- readonly assigneeId: "assigneeId";
869
- readonly gateActor: "gateActor";
870
- readonly gateAction: "gateAction";
871
- readonly gateRoleId: "gateRoleId";
872
- readonly gateInstructions: "gateInstructions";
873
- readonly allowReject: "allowReject";
874
- readonly rejectBehavior: "rejectBehavior";
875
- readonly requiresComment: "requiresComment";
876
- readonly gateActedAt: "gateActedAt";
877
- readonly gateActedById: "gateActedById";
878
- readonly gateDecision: "gateDecision";
879
- readonly gateComment: "gateComment";
880
- readonly dueDate: "dueDate";
881
- readonly completedAt: "completedAt";
882
- readonly createdAt: "createdAt";
883
- readonly updatedAt: "updatedAt";
884
- };
885
- export type DocumentationStepScalarFieldEnum = (typeof DocumentationStepScalarFieldEnum)[keyof typeof DocumentationStepScalarFieldEnum];
886
- export declare const DocumentationStepDocumentScalarFieldEnum: {
887
- readonly id: "id";
888
- readonly tenantId: "tenantId";
889
- readonly stepId: "stepId";
890
- readonly documentType: "documentType";
891
- readonly isRequired: "isRequired";
892
- readonly createdAt: "createdAt";
893
- };
894
- export type DocumentationStepDocumentScalarFieldEnum = (typeof DocumentationStepDocumentScalarFieldEnum)[keyof typeof DocumentationStepDocumentScalarFieldEnum];
895
- export declare const DocumentationStepApprovalScalarFieldEnum: {
896
- readonly id: "id";
897
- readonly tenantId: "tenantId";
898
- readonly stepId: "stepId";
899
- readonly approverId: "approverId";
900
- readonly decision: "decision";
901
- readonly comment: "comment";
902
- readonly decidedAt: "decidedAt";
903
- readonly createdAt: "createdAt";
904
- };
905
- export type DocumentationStepApprovalScalarFieldEnum = (typeof DocumentationStepApprovalScalarFieldEnum)[keyof typeof DocumentationStepApprovalScalarFieldEnum];
906
852
  export declare const PaymentInstallmentScalarFieldEnum: {
907
853
  readonly id: "id";
908
854
  readonly tenantId: "tenantId";
@@ -949,6 +895,8 @@ export declare const ApplicationDocumentScalarFieldEnum: {
949
895
  readonly applicationId: "applicationId";
950
896
  readonly phaseId: "phaseId";
951
897
  readonly stepId: "stepId";
898
+ readonly documentType: "documentType";
899
+ readonly documentName: "documentName";
952
900
  readonly name: "name";
953
901
  readonly url: "url";
954
902
  readonly type: "type";
@@ -980,6 +928,41 @@ export declare const DocumentReviewScalarFieldEnum: {
980
928
  readonly updatedAt: "updatedAt";
981
929
  };
982
930
  export type DocumentReviewScalarFieldEnum = (typeof DocumentReviewScalarFieldEnum)[keyof typeof DocumentReviewScalarFieldEnum];
931
+ export declare const ApprovalStageProgressScalarFieldEnum: {
932
+ readonly id: "id";
933
+ readonly tenantId: "tenantId";
934
+ readonly documentationPhaseId: "documentationPhaseId";
935
+ readonly approvalStageId: "approvalStageId";
936
+ readonly name: "name";
937
+ readonly order: "order";
938
+ readonly reviewParty: "reviewParty";
939
+ readonly autoTransition: "autoTransition";
940
+ readonly waitForAllDocuments: "waitForAllDocuments";
941
+ readonly allowEarlyVisibility: "allowEarlyVisibility";
942
+ readonly onRejection: "onRejection";
943
+ readonly restartFromStageOrder: "restartFromStageOrder";
944
+ readonly status: "status";
945
+ readonly activatedAt: "activatedAt";
946
+ readonly completedAt: "completedAt";
947
+ readonly completedById: "completedById";
948
+ readonly transitionComment: "transitionComment";
949
+ readonly createdAt: "createdAt";
950
+ readonly updatedAt: "updatedAt";
951
+ };
952
+ export type ApprovalStageProgressScalarFieldEnum = (typeof ApprovalStageProgressScalarFieldEnum)[keyof typeof ApprovalStageProgressScalarFieldEnum];
953
+ export declare const DocumentApprovalScalarFieldEnum: {
954
+ readonly id: "id";
955
+ readonly tenantId: "tenantId";
956
+ readonly documentId: "documentId";
957
+ readonly stageProgressId: "stageProgressId";
958
+ readonly reviewerId: "reviewerId";
959
+ readonly reviewParty: "reviewParty";
960
+ readonly decision: "decision";
961
+ readonly comment: "comment";
962
+ readonly reviewedAt: "reviewedAt";
963
+ readonly createdAt: "createdAt";
964
+ };
965
+ export type DocumentApprovalScalarFieldEnum = (typeof DocumentApprovalScalarFieldEnum)[keyof typeof DocumentApprovalScalarFieldEnum];
983
966
  export declare const DocumentTemplateScalarFieldEnum: {
984
967
  readonly id: "id";
985
968
  readonly tenantId: "tenantId";
@@ -1574,19 +1557,23 @@ export declare const DocumentationPlanOrderByRelevanceFieldEnum: {
1574
1557
  readonly description: "description";
1575
1558
  };
1576
1559
  export type DocumentationPlanOrderByRelevanceFieldEnum = (typeof DocumentationPlanOrderByRelevanceFieldEnum)[keyof typeof DocumentationPlanOrderByRelevanceFieldEnum];
1577
- export declare const DocumentationPlanStepOrderByRelevanceFieldEnum: {
1560
+ export declare const DocumentDefinitionOrderByRelevanceFieldEnum: {
1578
1561
  readonly id: "id";
1579
1562
  readonly planId: "planId";
1580
- readonly name: "name";
1581
1563
  readonly documentType: "documentType";
1582
1564
  readonly documentName: "documentName";
1583
1565
  readonly description: "description";
1584
1566
  readonly allowedMimeTypes: "allowedMimeTypes";
1585
- readonly reviewOrder: "reviewOrder";
1586
- readonly gateRoleId: "gateRoleId";
1587
- readonly gateInstructions: "gateInstructions";
1588
1567
  };
1589
- export type DocumentationPlanStepOrderByRelevanceFieldEnum = (typeof DocumentationPlanStepOrderByRelevanceFieldEnum)[keyof typeof DocumentationPlanStepOrderByRelevanceFieldEnum];
1568
+ export type DocumentDefinitionOrderByRelevanceFieldEnum = (typeof DocumentDefinitionOrderByRelevanceFieldEnum)[keyof typeof DocumentDefinitionOrderByRelevanceFieldEnum];
1569
+ export declare const ApprovalStageOrderByRelevanceFieldEnum: {
1570
+ readonly id: "id";
1571
+ readonly planId: "planId";
1572
+ readonly name: "name";
1573
+ readonly organizationId: "organizationId";
1574
+ readonly description: "description";
1575
+ };
1576
+ export type ApprovalStageOrderByRelevanceFieldEnum = (typeof ApprovalStageOrderByRelevanceFieldEnum)[keyof typeof ApprovalStageOrderByRelevanceFieldEnum];
1590
1577
  export declare const QuestionnairePlanOrderByRelevanceFieldEnum: {
1591
1578
  readonly id: "id";
1592
1579
  readonly tenantId: "tenantId";
@@ -1731,7 +1718,6 @@ export declare const DocumentationPhaseOrderByRelevanceFieldEnum: {
1731
1718
  readonly phaseId: "phaseId";
1732
1719
  readonly documentationPlanId: "documentationPlanId";
1733
1720
  readonly sourceQuestionnairePhaseId: "sourceQuestionnairePhaseId";
1734
- readonly currentStepId: "currentStepId";
1735
1721
  };
1736
1722
  export type DocumentationPhaseOrderByRelevanceFieldEnum = (typeof DocumentationPhaseOrderByRelevanceFieldEnum)[keyof typeof DocumentationPhaseOrderByRelevanceFieldEnum];
1737
1723
  export declare const PaymentPhaseOrderByRelevanceFieldEnum: {
@@ -1761,38 +1747,6 @@ export declare const ApplicationEventOrderByRelevanceFieldEnum: {
1761
1747
  readonly actorId: "actorId";
1762
1748
  };
1763
1749
  export type ApplicationEventOrderByRelevanceFieldEnum = (typeof ApplicationEventOrderByRelevanceFieldEnum)[keyof typeof ApplicationEventOrderByRelevanceFieldEnum];
1764
- export declare const DocumentationStepOrderByRelevanceFieldEnum: {
1765
- readonly id: "id";
1766
- readonly tenantId: "tenantId";
1767
- readonly documentationPhaseId: "documentationPhaseId";
1768
- readonly name: "name";
1769
- readonly documentName: "documentName";
1770
- readonly description: "description";
1771
- readonly actionReason: "actionReason";
1772
- readonly reviewOrder: "reviewOrder";
1773
- readonly assigneeId: "assigneeId";
1774
- readonly gateRoleId: "gateRoleId";
1775
- readonly gateInstructions: "gateInstructions";
1776
- readonly gateActedById: "gateActedById";
1777
- readonly gateDecision: "gateDecision";
1778
- readonly gateComment: "gateComment";
1779
- };
1780
- export type DocumentationStepOrderByRelevanceFieldEnum = (typeof DocumentationStepOrderByRelevanceFieldEnum)[keyof typeof DocumentationStepOrderByRelevanceFieldEnum];
1781
- export declare const DocumentationStepDocumentOrderByRelevanceFieldEnum: {
1782
- readonly id: "id";
1783
- readonly tenantId: "tenantId";
1784
- readonly stepId: "stepId";
1785
- readonly documentType: "documentType";
1786
- };
1787
- export type DocumentationStepDocumentOrderByRelevanceFieldEnum = (typeof DocumentationStepDocumentOrderByRelevanceFieldEnum)[keyof typeof DocumentationStepDocumentOrderByRelevanceFieldEnum];
1788
- export declare const DocumentationStepApprovalOrderByRelevanceFieldEnum: {
1789
- readonly id: "id";
1790
- readonly tenantId: "tenantId";
1791
- readonly stepId: "stepId";
1792
- readonly approverId: "approverId";
1793
- readonly comment: "comment";
1794
- };
1795
- export type DocumentationStepApprovalOrderByRelevanceFieldEnum = (typeof DocumentationStepApprovalOrderByRelevanceFieldEnum)[keyof typeof DocumentationStepApprovalOrderByRelevanceFieldEnum];
1796
1750
  export declare const PaymentInstallmentOrderByRelevanceFieldEnum: {
1797
1751
  readonly id: "id";
1798
1752
  readonly tenantId: "tenantId";
@@ -1817,6 +1771,8 @@ export declare const ApplicationDocumentOrderByRelevanceFieldEnum: {
1817
1771
  readonly applicationId: "applicationId";
1818
1772
  readonly phaseId: "phaseId";
1819
1773
  readonly stepId: "stepId";
1774
+ readonly documentType: "documentType";
1775
+ readonly documentName: "documentName";
1820
1776
  readonly name: "name";
1821
1777
  readonly url: "url";
1822
1778
  readonly type: "type";
@@ -1835,6 +1791,25 @@ export declare const DocumentReviewOrderByRelevanceFieldEnum: {
1835
1791
  readonly parentReviewId: "parentReviewId";
1836
1792
  };
1837
1793
  export type DocumentReviewOrderByRelevanceFieldEnum = (typeof DocumentReviewOrderByRelevanceFieldEnum)[keyof typeof DocumentReviewOrderByRelevanceFieldEnum];
1794
+ export declare const ApprovalStageProgressOrderByRelevanceFieldEnum: {
1795
+ readonly id: "id";
1796
+ readonly tenantId: "tenantId";
1797
+ readonly documentationPhaseId: "documentationPhaseId";
1798
+ readonly approvalStageId: "approvalStageId";
1799
+ readonly name: "name";
1800
+ readonly completedById: "completedById";
1801
+ readonly transitionComment: "transitionComment";
1802
+ };
1803
+ export type ApprovalStageProgressOrderByRelevanceFieldEnum = (typeof ApprovalStageProgressOrderByRelevanceFieldEnum)[keyof typeof ApprovalStageProgressOrderByRelevanceFieldEnum];
1804
+ export declare const DocumentApprovalOrderByRelevanceFieldEnum: {
1805
+ readonly id: "id";
1806
+ readonly tenantId: "tenantId";
1807
+ readonly documentId: "documentId";
1808
+ readonly stageProgressId: "stageProgressId";
1809
+ readonly reviewerId: "reviewerId";
1810
+ readonly comment: "comment";
1811
+ };
1812
+ export type DocumentApprovalOrderByRelevanceFieldEnum = (typeof DocumentApprovalOrderByRelevanceFieldEnum)[keyof typeof DocumentApprovalOrderByRelevanceFieldEnum];
1838
1813
  export declare const DocumentTemplateOrderByRelevanceFieldEnum: {
1839
1814
  readonly id: "id";
1840
1815
  readonly tenantId: "tenantId";