@valentine-efagene/qshelter-common 2.0.138 → 2.0.139

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/generated/client/browser.d.ts +20 -0
  2. package/dist/generated/client/client.d.ts +20 -0
  3. package/dist/generated/client/commonInputTypes.d.ts +120 -30
  4. package/dist/generated/client/enums.d.ts +23 -0
  5. package/dist/generated/client/enums.js +21 -1
  6. package/dist/generated/client/internal/class.d.ts +44 -0
  7. package/dist/generated/client/internal/class.js +2 -2
  8. package/dist/generated/client/internal/prismaNamespace.d.ts +401 -5
  9. package/dist/generated/client/internal/prismaNamespace.js +108 -0
  10. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +116 -0
  11. package/dist/generated/client/internal/prismaNamespaceBrowser.js +108 -0
  12. package/dist/generated/client/models/ApplicationDocument.d.ts +290 -1
  13. package/dist/generated/client/models/ApprovalStage.d.ts +1605 -0
  14. package/dist/generated/client/models/ApprovalStage.js +1 -0
  15. package/dist/generated/client/models/ApprovalStageProgress.d.ts +2329 -0
  16. package/dist/generated/client/models/ApprovalStageProgress.js +1 -0
  17. package/dist/generated/client/models/DocumentApproval.d.ts +1611 -0
  18. package/dist/generated/client/models/DocumentApproval.js +1 -0
  19. package/dist/generated/client/models/DocumentDefinition.d.ts +1475 -0
  20. package/dist/generated/client/models/DocumentDefinition.js +1 -0
  21. package/dist/generated/client/models/DocumentReview.d.ts +0 -3
  22. package/dist/generated/client/models/DocumentationPhase.d.ts +167 -0
  23. package/dist/generated/client/models/DocumentationPlan.d.ts +270 -0
  24. package/dist/generated/client/models/Tenant.d.ts +1281 -131
  25. package/dist/generated/client/models/User.d.ts +824 -0
  26. package/dist/generated/client/models/index.d.ts +4 -0
  27. package/dist/generated/client/models/index.js +4 -0
  28. package/dist/generated/client/models.d.ts +4 -0
  29. package/dist/src/utils/documentation-enums.d.ts +10 -1
  30. package/dist/src/utils/documentation-enums.js +8 -0
  31. package/package.json +1 -1
  32. package/prisma/migrations/20260119190336_add_document_approval_workflow/migration.sql +134 -0
  33. package/prisma/schema.prisma +244 -5
@@ -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";
@@ -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";
@@ -949,6 +990,8 @@ export declare const ApplicationDocumentScalarFieldEnum: {
949
990
  readonly applicationId: "applicationId";
950
991
  readonly phaseId: "phaseId";
951
992
  readonly stepId: "stepId";
993
+ readonly documentType: "documentType";
994
+ readonly documentName: "documentName";
952
995
  readonly name: "name";
953
996
  readonly url: "url";
954
997
  readonly type: "type";
@@ -980,6 +1023,41 @@ export declare const DocumentReviewScalarFieldEnum: {
980
1023
  readonly updatedAt: "updatedAt";
981
1024
  };
982
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];
983
1061
  export declare const DocumentTemplateScalarFieldEnum: {
984
1062
  readonly id: "id";
985
1063
  readonly tenantId: "tenantId";
@@ -1587,6 +1665,23 @@ export declare const DocumentationPlanStepOrderByRelevanceFieldEnum: {
1587
1665
  readonly gateInstructions: "gateInstructions";
1588
1666
  };
1589
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];
1590
1685
  export declare const QuestionnairePlanOrderByRelevanceFieldEnum: {
1591
1686
  readonly id: "id";
1592
1687
  readonly tenantId: "tenantId";
@@ -1817,6 +1912,8 @@ export declare const ApplicationDocumentOrderByRelevanceFieldEnum: {
1817
1912
  readonly applicationId: "applicationId";
1818
1913
  readonly phaseId: "phaseId";
1819
1914
  readonly stepId: "stepId";
1915
+ readonly documentType: "documentType";
1916
+ readonly documentName: "documentName";
1820
1917
  readonly name: "name";
1821
1918
  readonly url: "url";
1822
1919
  readonly type: "type";
@@ -1835,6 +1932,25 @@ export declare const DocumentReviewOrderByRelevanceFieldEnum: {
1835
1932
  readonly parentReviewId: "parentReviewId";
1836
1933
  };
1837
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];
1838
1954
  export declare const DocumentTemplateOrderByRelevanceFieldEnum: {
1839
1955
  readonly id: "id";
1840
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',
@@ -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',
@@ -908,6 +947,8 @@ export const ApplicationDocumentScalarFieldEnum = {
908
947
  applicationId: 'applicationId',
909
948
  phaseId: 'phaseId',
910
949
  stepId: 'stepId',
950
+ documentType: 'documentType',
951
+ documentName: 'documentName',
911
952
  name: 'name',
912
953
  url: 'url',
913
954
  type: 'type',
@@ -937,6 +978,39 @@ export const DocumentReviewScalarFieldEnum = {
937
978
  createdAt: 'createdAt',
938
979
  updatedAt: 'updatedAt'
939
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
+ };
940
1014
  export const DocumentTemplateScalarFieldEnum = {
941
1015
  id: 'id',
942
1016
  tenantId: 'tenantId',
@@ -1493,6 +1567,21 @@ export const DocumentationPlanStepOrderByRelevanceFieldEnum = {
1493
1567
  gateRoleId: 'gateRoleId',
1494
1568
  gateInstructions: 'gateInstructions'
1495
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
+ };
1496
1585
  export const QuestionnairePlanOrderByRelevanceFieldEnum = {
1497
1586
  id: 'id',
1498
1587
  tenantId: 'tenantId',
@@ -1699,6 +1788,8 @@ export const ApplicationDocumentOrderByRelevanceFieldEnum = {
1699
1788
  applicationId: 'applicationId',
1700
1789
  phaseId: 'phaseId',
1701
1790
  stepId: 'stepId',
1791
+ documentType: 'documentType',
1792
+ documentName: 'documentName',
1702
1793
  name: 'name',
1703
1794
  url: 'url',
1704
1795
  type: 'type',
@@ -1715,6 +1806,23 @@ export const DocumentReviewOrderByRelevanceFieldEnum = {
1715
1806
  comments: 'comments',
1716
1807
  parentReviewId: 'parentReviewId'
1717
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
+ };
1718
1826
  export const DocumentTemplateOrderByRelevanceFieldEnum = {
1719
1827
  id: 'id',
1720
1828
  tenantId: 'tenantId',