@valentine-efagene/qshelter-common 2.0.137 → 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 (36) 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 +163 -73
  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 +405 -6
  9. package/dist/generated/client/internal/prismaNamespace.js +112 -1
  10. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +120 -1
  11. package/dist/generated/client/internal/prismaNamespaceBrowser.js +112 -1
  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 +271 -40
  24. package/dist/generated/client/models/DocumentationPlanStep.d.ts +34 -1
  25. package/dist/generated/client/models/DocumentationStep.d.ts +64 -1
  26. package/dist/generated/client/models/Tenant.d.ts +1281 -131
  27. package/dist/generated/client/models/User.d.ts +824 -0
  28. package/dist/generated/client/models/index.d.ts +4 -0
  29. package/dist/generated/client/models/index.js +4 -0
  30. package/dist/generated/client/models.d.ts +4 -0
  31. package/dist/src/utils/documentation-enums.d.ts +10 -1
  32. package/dist/src/utils/documentation-enums.js +8 -0
  33. package/package.json +1 -1
  34. package/prisma/migrations/20260119180401_add_document_name_remove_required_doc_types/migration.sql +14 -0
  35. package/prisma/migrations/20260119190336_add_document_approval_workflow/migration.sql +134 -0
  36. package/prisma/schema.prisma +253 -12
@@ -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',
@@ -487,7 +491,6 @@ export const DocumentationPlanScalarFieldEnum = {
487
491
  name: 'name',
488
492
  description: 'description',
489
493
  isActive: 'isActive',
490
- requiredDocumentTypes: 'requiredDocumentTypes',
491
494
  createdAt: 'createdAt',
492
495
  updatedAt: 'updatedAt'
493
496
  };
@@ -498,6 +501,7 @@ export const DocumentationPlanStepScalarFieldEnum = {
498
501
  stepType: 'stepType',
499
502
  order: 'order',
500
503
  documentType: 'documentType',
504
+ documentName: 'documentName',
501
505
  metadata: 'metadata',
502
506
  isRequired: 'isRequired',
503
507
  description: 'description',
@@ -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',
@@ -844,6 +883,7 @@ export const DocumentationStepScalarFieldEnum = {
844
883
  tenantId: 'tenantId',
845
884
  documentationPhaseId: 'documentationPhaseId',
846
885
  name: 'name',
886
+ documentName: 'documentName',
847
887
  description: 'description',
848
888
  stepType: 'stepType',
849
889
  order: 'order',
@@ -935,6 +975,8 @@ export const ApplicationDocumentScalarFieldEnum = {
935
975
  applicationId: 'applicationId',
936
976
  phaseId: 'phaseId',
937
977
  stepId: 'stepId',
978
+ documentType: 'documentType',
979
+ documentName: 'documentName',
938
980
  name: 'name',
939
981
  url: 'url',
940
982
  type: 'type',
@@ -964,6 +1006,39 @@ export const DocumentReviewScalarFieldEnum = {
964
1006
  createdAt: 'createdAt',
965
1007
  updatedAt: 'updatedAt'
966
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
+ };
967
1042
  export const DocumentTemplateScalarFieldEnum = {
968
1043
  id: 'id',
969
1044
  tenantId: 'tenantId',
@@ -1513,12 +1588,28 @@ export const DocumentationPlanStepOrderByRelevanceFieldEnum = {
1513
1588
  planId: 'planId',
1514
1589
  name: 'name',
1515
1590
  documentType: 'documentType',
1591
+ documentName: 'documentName',
1516
1592
  description: 'description',
1517
1593
  allowedMimeTypes: 'allowedMimeTypes',
1518
1594
  reviewOrder: 'reviewOrder',
1519
1595
  gateRoleId: 'gateRoleId',
1520
1596
  gateInstructions: 'gateInstructions'
1521
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
+ };
1522
1613
  export const QuestionnairePlanOrderByRelevanceFieldEnum = {
1523
1614
  id: 'id',
1524
1615
  tenantId: 'tenantId',
@@ -1679,6 +1770,7 @@ export const DocumentationStepOrderByRelevanceFieldEnum = {
1679
1770
  tenantId: 'tenantId',
1680
1771
  documentationPhaseId: 'documentationPhaseId',
1681
1772
  name: 'name',
1773
+ documentName: 'documentName',
1682
1774
  description: 'description',
1683
1775
  actionReason: 'actionReason',
1684
1776
  reviewOrder: 'reviewOrder',
@@ -1724,6 +1816,8 @@ export const ApplicationDocumentOrderByRelevanceFieldEnum = {
1724
1816
  applicationId: 'applicationId',
1725
1817
  phaseId: 'phaseId',
1726
1818
  stepId: 'stepId',
1819
+ documentType: 'documentType',
1820
+ documentName: 'documentName',
1727
1821
  name: 'name',
1728
1822
  url: 'url',
1729
1823
  type: 'type',
@@ -1740,6 +1834,23 @@ export const DocumentReviewOrderByRelevanceFieldEnum = {
1740
1834
  comments: 'comments',
1741
1835
  parentReviewId: 'parentReviewId'
1742
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
+ };
1743
1854
  export const DocumentTemplateOrderByRelevanceFieldEnum = {
1744
1855
  id: 'id',
1745
1856
  tenantId: 'tenantId',
@@ -57,6 +57,8 @@ export declare const ModelName: {
57
57
  readonly PropertyAmenity: "PropertyAmenity";
58
58
  readonly DocumentationPlan: "DocumentationPlan";
59
59
  readonly DocumentationPlanStep: "DocumentationPlanStep";
60
+ readonly DocumentDefinition: "DocumentDefinition";
61
+ readonly ApprovalStage: "ApprovalStage";
60
62
  readonly QuestionnairePlan: "QuestionnairePlan";
61
63
  readonly QuestionnairePlanQuestion: "QuestionnairePlanQuestion";
62
64
  readonly PaymentPlan: "PaymentPlan";
@@ -83,6 +85,8 @@ export declare const ModelName: {
83
85
  readonly ApplicationPayment: "ApplicationPayment";
84
86
  readonly ApplicationDocument: "ApplicationDocument";
85
87
  readonly DocumentReview: "DocumentReview";
88
+ readonly ApprovalStageProgress: "ApprovalStageProgress";
89
+ readonly DocumentApproval: "DocumentApproval";
86
90
  readonly DocumentTemplate: "DocumentTemplate";
87
91
  readonly OfferLetter: "OfferLetter";
88
92
  readonly ApplicationTermination: "ApplicationTermination";
@@ -474,7 +478,6 @@ export declare const DocumentationPlanScalarFieldEnum: {
474
478
  readonly name: "name";
475
479
  readonly description: "description";
476
480
  readonly isActive: "isActive";
477
- readonly requiredDocumentTypes: "requiredDocumentTypes";
478
481
  readonly createdAt: "createdAt";
479
482
  readonly updatedAt: "updatedAt";
480
483
  };
@@ -486,6 +489,7 @@ export declare const DocumentationPlanStepScalarFieldEnum: {
486
489
  readonly stepType: "stepType";
487
490
  readonly order: "order";
488
491
  readonly documentType: "documentType";
492
+ readonly documentName: "documentName";
489
493
  readonly metadata: "metadata";
490
494
  readonly isRequired: "isRequired";
491
495
  readonly description: "description";
@@ -509,6 +513,43 @@ export declare const DocumentationPlanStepScalarFieldEnum: {
509
513
  readonly updatedAt: "updatedAt";
510
514
  };
511
515
  export type DocumentationPlanStepScalarFieldEnum = (typeof DocumentationPlanStepScalarFieldEnum)[keyof typeof DocumentationPlanStepScalarFieldEnum];
516
+ export declare const DocumentDefinitionScalarFieldEnum: {
517
+ readonly id: "id";
518
+ readonly planId: "planId";
519
+ readonly documentType: "documentType";
520
+ readonly documentName: "documentName";
521
+ readonly uploadedBy: "uploadedBy";
522
+ readonly order: "order";
523
+ readonly isRequired: "isRequired";
524
+ readonly description: "description";
525
+ readonly maxSizeBytes: "maxSizeBytes";
526
+ readonly allowedMimeTypes: "allowedMimeTypes";
527
+ readonly expiryDays: "expiryDays";
528
+ readonly minFiles: "minFiles";
529
+ readonly maxFiles: "maxFiles";
530
+ readonly condition: "condition";
531
+ readonly createdAt: "createdAt";
532
+ readonly updatedAt: "updatedAt";
533
+ };
534
+ export type DocumentDefinitionScalarFieldEnum = (typeof DocumentDefinitionScalarFieldEnum)[keyof typeof DocumentDefinitionScalarFieldEnum];
535
+ export declare const ApprovalStageScalarFieldEnum: {
536
+ readonly id: "id";
537
+ readonly planId: "planId";
538
+ readonly name: "name";
539
+ readonly order: "order";
540
+ readonly reviewParty: "reviewParty";
541
+ readonly autoTransition: "autoTransition";
542
+ readonly waitForAllDocuments: "waitForAllDocuments";
543
+ readonly allowEarlyVisibility: "allowEarlyVisibility";
544
+ readonly onRejection: "onRejection";
545
+ readonly restartFromStageOrder: "restartFromStageOrder";
546
+ readonly organizationId: "organizationId";
547
+ readonly slaHours: "slaHours";
548
+ readonly description: "description";
549
+ readonly createdAt: "createdAt";
550
+ readonly updatedAt: "updatedAt";
551
+ };
552
+ export type ApprovalStageScalarFieldEnum = (typeof ApprovalStageScalarFieldEnum)[keyof typeof ApprovalStageScalarFieldEnum];
512
553
  export declare const QuestionnairePlanScalarFieldEnum: {
513
554
  readonly id: "id";
514
555
  readonly tenantId: "tenantId";
@@ -852,6 +893,7 @@ export declare const DocumentationStepScalarFieldEnum: {
852
893
  readonly tenantId: "tenantId";
853
894
  readonly documentationPhaseId: "documentationPhaseId";
854
895
  readonly name: "name";
896
+ readonly documentName: "documentName";
855
897
  readonly description: "description";
856
898
  readonly stepType: "stepType";
857
899
  readonly order: "order";
@@ -948,6 +990,8 @@ export declare const ApplicationDocumentScalarFieldEnum: {
948
990
  readonly applicationId: "applicationId";
949
991
  readonly phaseId: "phaseId";
950
992
  readonly stepId: "stepId";
993
+ readonly documentType: "documentType";
994
+ readonly documentName: "documentName";
951
995
  readonly name: "name";
952
996
  readonly url: "url";
953
997
  readonly type: "type";
@@ -979,6 +1023,41 @@ export declare const DocumentReviewScalarFieldEnum: {
979
1023
  readonly updatedAt: "updatedAt";
980
1024
  };
981
1025
  export type DocumentReviewScalarFieldEnum = (typeof DocumentReviewScalarFieldEnum)[keyof typeof DocumentReviewScalarFieldEnum];
1026
+ export declare const ApprovalStageProgressScalarFieldEnum: {
1027
+ readonly id: "id";
1028
+ readonly tenantId: "tenantId";
1029
+ readonly documentationPhaseId: "documentationPhaseId";
1030
+ readonly approvalStageId: "approvalStageId";
1031
+ readonly name: "name";
1032
+ readonly order: "order";
1033
+ readonly reviewParty: "reviewParty";
1034
+ readonly autoTransition: "autoTransition";
1035
+ readonly waitForAllDocuments: "waitForAllDocuments";
1036
+ readonly allowEarlyVisibility: "allowEarlyVisibility";
1037
+ readonly onRejection: "onRejection";
1038
+ readonly restartFromStageOrder: "restartFromStageOrder";
1039
+ readonly status: "status";
1040
+ readonly activatedAt: "activatedAt";
1041
+ readonly completedAt: "completedAt";
1042
+ readonly completedById: "completedById";
1043
+ readonly transitionComment: "transitionComment";
1044
+ readonly createdAt: "createdAt";
1045
+ readonly updatedAt: "updatedAt";
1046
+ };
1047
+ export type ApprovalStageProgressScalarFieldEnum = (typeof ApprovalStageProgressScalarFieldEnum)[keyof typeof ApprovalStageProgressScalarFieldEnum];
1048
+ export declare const DocumentApprovalScalarFieldEnum: {
1049
+ readonly id: "id";
1050
+ readonly tenantId: "tenantId";
1051
+ readonly documentId: "documentId";
1052
+ readonly stageProgressId: "stageProgressId";
1053
+ readonly reviewerId: "reviewerId";
1054
+ readonly reviewParty: "reviewParty";
1055
+ readonly decision: "decision";
1056
+ readonly comment: "comment";
1057
+ readonly reviewedAt: "reviewedAt";
1058
+ readonly createdAt: "createdAt";
1059
+ };
1060
+ export type DocumentApprovalScalarFieldEnum = (typeof DocumentApprovalScalarFieldEnum)[keyof typeof DocumentApprovalScalarFieldEnum];
982
1061
  export declare const DocumentTemplateScalarFieldEnum: {
983
1062
  readonly id: "id";
984
1063
  readonly tenantId: "tenantId";
@@ -1578,6 +1657,7 @@ export declare const DocumentationPlanStepOrderByRelevanceFieldEnum: {
1578
1657
  readonly planId: "planId";
1579
1658
  readonly name: "name";
1580
1659
  readonly documentType: "documentType";
1660
+ readonly documentName: "documentName";
1581
1661
  readonly description: "description";
1582
1662
  readonly allowedMimeTypes: "allowedMimeTypes";
1583
1663
  readonly reviewOrder: "reviewOrder";
@@ -1585,6 +1665,23 @@ export declare const DocumentationPlanStepOrderByRelevanceFieldEnum: {
1585
1665
  readonly gateInstructions: "gateInstructions";
1586
1666
  };
1587
1667
  export type DocumentationPlanStepOrderByRelevanceFieldEnum = (typeof DocumentationPlanStepOrderByRelevanceFieldEnum)[keyof typeof DocumentationPlanStepOrderByRelevanceFieldEnum];
1668
+ export declare const DocumentDefinitionOrderByRelevanceFieldEnum: {
1669
+ readonly id: "id";
1670
+ readonly planId: "planId";
1671
+ readonly documentType: "documentType";
1672
+ readonly documentName: "documentName";
1673
+ readonly description: "description";
1674
+ readonly allowedMimeTypes: "allowedMimeTypes";
1675
+ };
1676
+ export type DocumentDefinitionOrderByRelevanceFieldEnum = (typeof DocumentDefinitionOrderByRelevanceFieldEnum)[keyof typeof DocumentDefinitionOrderByRelevanceFieldEnum];
1677
+ export declare const ApprovalStageOrderByRelevanceFieldEnum: {
1678
+ readonly id: "id";
1679
+ readonly planId: "planId";
1680
+ readonly name: "name";
1681
+ readonly organizationId: "organizationId";
1682
+ readonly description: "description";
1683
+ };
1684
+ export type ApprovalStageOrderByRelevanceFieldEnum = (typeof ApprovalStageOrderByRelevanceFieldEnum)[keyof typeof ApprovalStageOrderByRelevanceFieldEnum];
1588
1685
  export declare const QuestionnairePlanOrderByRelevanceFieldEnum: {
1589
1686
  readonly id: "id";
1590
1687
  readonly tenantId: "tenantId";
@@ -1764,6 +1861,7 @@ export declare const DocumentationStepOrderByRelevanceFieldEnum: {
1764
1861
  readonly tenantId: "tenantId";
1765
1862
  readonly documentationPhaseId: "documentationPhaseId";
1766
1863
  readonly name: "name";
1864
+ readonly documentName: "documentName";
1767
1865
  readonly description: "description";
1768
1866
  readonly actionReason: "actionReason";
1769
1867
  readonly reviewOrder: "reviewOrder";
@@ -1814,6 +1912,8 @@ export declare const ApplicationDocumentOrderByRelevanceFieldEnum: {
1814
1912
  readonly applicationId: "applicationId";
1815
1913
  readonly phaseId: "phaseId";
1816
1914
  readonly stepId: "stepId";
1915
+ readonly documentType: "documentType";
1916
+ readonly documentName: "documentName";
1817
1917
  readonly name: "name";
1818
1918
  readonly url: "url";
1819
1919
  readonly type: "type";
@@ -1832,6 +1932,25 @@ export declare const DocumentReviewOrderByRelevanceFieldEnum: {
1832
1932
  readonly parentReviewId: "parentReviewId";
1833
1933
  };
1834
1934
  export type DocumentReviewOrderByRelevanceFieldEnum = (typeof DocumentReviewOrderByRelevanceFieldEnum)[keyof typeof DocumentReviewOrderByRelevanceFieldEnum];
1935
+ export declare const ApprovalStageProgressOrderByRelevanceFieldEnum: {
1936
+ readonly id: "id";
1937
+ readonly tenantId: "tenantId";
1938
+ readonly documentationPhaseId: "documentationPhaseId";
1939
+ readonly approvalStageId: "approvalStageId";
1940
+ readonly name: "name";
1941
+ readonly completedById: "completedById";
1942
+ readonly transitionComment: "transitionComment";
1943
+ };
1944
+ export type ApprovalStageProgressOrderByRelevanceFieldEnum = (typeof ApprovalStageProgressOrderByRelevanceFieldEnum)[keyof typeof ApprovalStageProgressOrderByRelevanceFieldEnum];
1945
+ export declare const DocumentApprovalOrderByRelevanceFieldEnum: {
1946
+ readonly id: "id";
1947
+ readonly tenantId: "tenantId";
1948
+ readonly documentId: "documentId";
1949
+ readonly stageProgressId: "stageProgressId";
1950
+ readonly reviewerId: "reviewerId";
1951
+ readonly comment: "comment";
1952
+ };
1953
+ export type DocumentApprovalOrderByRelevanceFieldEnum = (typeof DocumentApprovalOrderByRelevanceFieldEnum)[keyof typeof DocumentApprovalOrderByRelevanceFieldEnum];
1835
1954
  export declare const DocumentTemplateOrderByRelevanceFieldEnum: {
1836
1955
  readonly id: "id";
1837
1956
  readonly tenantId: "tenantId";
@@ -70,6 +70,8 @@ export const ModelName = {
70
70
  PropertyAmenity: 'PropertyAmenity',
71
71
  DocumentationPlan: 'DocumentationPlan',
72
72
  DocumentationPlanStep: 'DocumentationPlanStep',
73
+ DocumentDefinition: 'DocumentDefinition',
74
+ ApprovalStage: 'ApprovalStage',
73
75
  QuestionnairePlan: 'QuestionnairePlan',
74
76
  QuestionnairePlanQuestion: 'QuestionnairePlanQuestion',
75
77
  PaymentPlan: 'PaymentPlan',
@@ -96,6 +98,8 @@ export const ModelName = {
96
98
  ApplicationPayment: 'ApplicationPayment',
97
99
  ApplicationDocument: 'ApplicationDocument',
98
100
  DocumentReview: 'DocumentReview',
101
+ ApprovalStageProgress: 'ApprovalStageProgress',
102
+ DocumentApproval: 'DocumentApproval',
99
103
  DocumentTemplate: 'DocumentTemplate',
100
104
  OfferLetter: 'OfferLetter',
101
105
  ApplicationTermination: 'ApplicationTermination',
@@ -459,7 +463,6 @@ export const DocumentationPlanScalarFieldEnum = {
459
463
  name: 'name',
460
464
  description: 'description',
461
465
  isActive: 'isActive',
462
- requiredDocumentTypes: 'requiredDocumentTypes',
463
466
  createdAt: 'createdAt',
464
467
  updatedAt: 'updatedAt'
465
468
  };
@@ -470,6 +473,7 @@ export const DocumentationPlanStepScalarFieldEnum = {
470
473
  stepType: 'stepType',
471
474
  order: 'order',
472
475
  documentType: 'documentType',
476
+ documentName: 'documentName',
473
477
  metadata: 'metadata',
474
478
  isRequired: 'isRequired',
475
479
  description: 'description',
@@ -492,6 +496,41 @@ export const DocumentationPlanStepScalarFieldEnum = {
492
496
  createdAt: 'createdAt',
493
497
  updatedAt: 'updatedAt'
494
498
  };
499
+ export const DocumentDefinitionScalarFieldEnum = {
500
+ id: 'id',
501
+ planId: 'planId',
502
+ documentType: 'documentType',
503
+ documentName: 'documentName',
504
+ uploadedBy: 'uploadedBy',
505
+ order: 'order',
506
+ isRequired: 'isRequired',
507
+ description: 'description',
508
+ maxSizeBytes: 'maxSizeBytes',
509
+ allowedMimeTypes: 'allowedMimeTypes',
510
+ expiryDays: 'expiryDays',
511
+ minFiles: 'minFiles',
512
+ maxFiles: 'maxFiles',
513
+ condition: 'condition',
514
+ createdAt: 'createdAt',
515
+ updatedAt: 'updatedAt'
516
+ };
517
+ export const ApprovalStageScalarFieldEnum = {
518
+ id: 'id',
519
+ planId: 'planId',
520
+ name: 'name',
521
+ order: 'order',
522
+ reviewParty: 'reviewParty',
523
+ autoTransition: 'autoTransition',
524
+ waitForAllDocuments: 'waitForAllDocuments',
525
+ allowEarlyVisibility: 'allowEarlyVisibility',
526
+ onRejection: 'onRejection',
527
+ restartFromStageOrder: 'restartFromStageOrder',
528
+ organizationId: 'organizationId',
529
+ slaHours: 'slaHours',
530
+ description: 'description',
531
+ createdAt: 'createdAt',
532
+ updatedAt: 'updatedAt'
533
+ };
495
534
  export const QuestionnairePlanScalarFieldEnum = {
496
535
  id: 'id',
497
536
  tenantId: 'tenantId',
@@ -816,6 +855,7 @@ export const DocumentationStepScalarFieldEnum = {
816
855
  tenantId: 'tenantId',
817
856
  documentationPhaseId: 'documentationPhaseId',
818
857
  name: 'name',
858
+ documentName: 'documentName',
819
859
  description: 'description',
820
860
  stepType: 'stepType',
821
861
  order: 'order',
@@ -907,6 +947,8 @@ export const ApplicationDocumentScalarFieldEnum = {
907
947
  applicationId: 'applicationId',
908
948
  phaseId: 'phaseId',
909
949
  stepId: 'stepId',
950
+ documentType: 'documentType',
951
+ documentName: 'documentName',
910
952
  name: 'name',
911
953
  url: 'url',
912
954
  type: 'type',
@@ -936,6 +978,39 @@ export const DocumentReviewScalarFieldEnum = {
936
978
  createdAt: 'createdAt',
937
979
  updatedAt: 'updatedAt'
938
980
  };
981
+ export const ApprovalStageProgressScalarFieldEnum = {
982
+ id: 'id',
983
+ tenantId: 'tenantId',
984
+ documentationPhaseId: 'documentationPhaseId',
985
+ approvalStageId: 'approvalStageId',
986
+ name: 'name',
987
+ order: 'order',
988
+ reviewParty: 'reviewParty',
989
+ autoTransition: 'autoTransition',
990
+ waitForAllDocuments: 'waitForAllDocuments',
991
+ allowEarlyVisibility: 'allowEarlyVisibility',
992
+ onRejection: 'onRejection',
993
+ restartFromStageOrder: 'restartFromStageOrder',
994
+ status: 'status',
995
+ activatedAt: 'activatedAt',
996
+ completedAt: 'completedAt',
997
+ completedById: 'completedById',
998
+ transitionComment: 'transitionComment',
999
+ createdAt: 'createdAt',
1000
+ updatedAt: 'updatedAt'
1001
+ };
1002
+ export const DocumentApprovalScalarFieldEnum = {
1003
+ id: 'id',
1004
+ tenantId: 'tenantId',
1005
+ documentId: 'documentId',
1006
+ stageProgressId: 'stageProgressId',
1007
+ reviewerId: 'reviewerId',
1008
+ reviewParty: 'reviewParty',
1009
+ decision: 'decision',
1010
+ comment: 'comment',
1011
+ reviewedAt: 'reviewedAt',
1012
+ createdAt: 'createdAt'
1013
+ };
939
1014
  export const DocumentTemplateScalarFieldEnum = {
940
1015
  id: 'id',
941
1016
  tenantId: 'tenantId',
@@ -1485,12 +1560,28 @@ export const DocumentationPlanStepOrderByRelevanceFieldEnum = {
1485
1560
  planId: 'planId',
1486
1561
  name: 'name',
1487
1562
  documentType: 'documentType',
1563
+ documentName: 'documentName',
1488
1564
  description: 'description',
1489
1565
  allowedMimeTypes: 'allowedMimeTypes',
1490
1566
  reviewOrder: 'reviewOrder',
1491
1567
  gateRoleId: 'gateRoleId',
1492
1568
  gateInstructions: 'gateInstructions'
1493
1569
  };
1570
+ export const DocumentDefinitionOrderByRelevanceFieldEnum = {
1571
+ id: 'id',
1572
+ planId: 'planId',
1573
+ documentType: 'documentType',
1574
+ documentName: 'documentName',
1575
+ description: 'description',
1576
+ allowedMimeTypes: 'allowedMimeTypes'
1577
+ };
1578
+ export const ApprovalStageOrderByRelevanceFieldEnum = {
1579
+ id: 'id',
1580
+ planId: 'planId',
1581
+ name: 'name',
1582
+ organizationId: 'organizationId',
1583
+ description: 'description'
1584
+ };
1494
1585
  export const QuestionnairePlanOrderByRelevanceFieldEnum = {
1495
1586
  id: 'id',
1496
1587
  tenantId: 'tenantId',
@@ -1651,6 +1742,7 @@ export const DocumentationStepOrderByRelevanceFieldEnum = {
1651
1742
  tenantId: 'tenantId',
1652
1743
  documentationPhaseId: 'documentationPhaseId',
1653
1744
  name: 'name',
1745
+ documentName: 'documentName',
1654
1746
  description: 'description',
1655
1747
  actionReason: 'actionReason',
1656
1748
  reviewOrder: 'reviewOrder',
@@ -1696,6 +1788,8 @@ export const ApplicationDocumentOrderByRelevanceFieldEnum = {
1696
1788
  applicationId: 'applicationId',
1697
1789
  phaseId: 'phaseId',
1698
1790
  stepId: 'stepId',
1791
+ documentType: 'documentType',
1792
+ documentName: 'documentName',
1699
1793
  name: 'name',
1700
1794
  url: 'url',
1701
1795
  type: 'type',
@@ -1712,6 +1806,23 @@ export const DocumentReviewOrderByRelevanceFieldEnum = {
1712
1806
  comments: 'comments',
1713
1807
  parentReviewId: 'parentReviewId'
1714
1808
  };
1809
+ export const ApprovalStageProgressOrderByRelevanceFieldEnum = {
1810
+ id: 'id',
1811
+ tenantId: 'tenantId',
1812
+ documentationPhaseId: 'documentationPhaseId',
1813
+ approvalStageId: 'approvalStageId',
1814
+ name: 'name',
1815
+ completedById: 'completedById',
1816
+ transitionComment: 'transitionComment'
1817
+ };
1818
+ export const DocumentApprovalOrderByRelevanceFieldEnum = {
1819
+ id: 'id',
1820
+ tenantId: 'tenantId',
1821
+ documentId: 'documentId',
1822
+ stageProgressId: 'stageProgressId',
1823
+ reviewerId: 'reviewerId',
1824
+ comment: 'comment'
1825
+ };
1715
1826
  export const DocumentTemplateOrderByRelevanceFieldEnum = {
1716
1827
  id: 'id',
1717
1828
  tenantId: 'tenantId',