@valentine-efagene/qshelter-common 2.0.142 → 2.0.144
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.
- package/dist/generated/client/browser.d.ts +32 -0
- package/dist/generated/client/client.d.ts +32 -0
- package/dist/generated/client/commonInputTypes.d.ts +354 -144
- package/dist/generated/client/enums.d.ts +45 -0
- package/dist/generated/client/enums.js +39 -0
- package/dist/generated/client/internal/class.d.ts +66 -0
- package/dist/generated/client/internal/class.js +2 -2
- package/dist/generated/client/internal/prismaNamespace.d.ts +633 -3
- package/dist/generated/client/internal/prismaNamespace.js +193 -1
- package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +204 -0
- package/dist/generated/client/internal/prismaNamespaceBrowser.js +193 -1
- package/dist/generated/client/models/Application.d.ts +669 -1
- package/dist/generated/client/models/ApplicationDocument.d.ts +577 -1
- package/dist/generated/client/models/ApplicationOrganization.d.ts +2385 -0
- package/dist/generated/client/models/ApplicationOrganization.js +1 -0
- package/dist/generated/client/models/BankDocumentRequirement.d.ts +1932 -0
- package/dist/generated/client/models/BankDocumentRequirement.js +1 -0
- package/dist/generated/client/models/DocumentExpiryWarning.d.ts +1141 -0
- package/dist/generated/client/models/DocumentExpiryWarning.js +1 -0
- package/dist/generated/client/models/Organization.d.ts +390 -0
- package/dist/generated/client/models/PropertyMedia.d.ts +0 -7
- package/dist/generated/client/models/PropertyPaymentMethod.d.ts +192 -3
- package/dist/generated/client/models/PropertyVariant.d.ts +0 -7
- package/dist/generated/client/models/ScheduledJob.d.ts +1317 -0
- package/dist/generated/client/models/ScheduledJob.js +1 -0
- package/dist/generated/client/models/StateTransitionDefinition.d.ts +1104 -0
- package/dist/generated/client/models/StateTransitionDefinition.js +1 -0
- package/dist/generated/client/models/StateTransitionLog.d.ts +1383 -0
- package/dist/generated/client/models/StateTransitionLog.js +1 -0
- package/dist/generated/client/models/Tenant.d.ts +2535 -798
- package/dist/generated/client/models/index.d.ts +6 -0
- package/dist/generated/client/models/index.js +6 -0
- package/dist/generated/client/models.d.ts +6 -0
- package/dist/src/prisma/tenant.js +4 -0
- package/package.json +1 -1
- package/prisma/migrations/20260120024650_add_questionnaire_phase_review/migration.sql +102 -0
- package/prisma/schema.prisma +423 -2
|
@@ -3,6 +3,7 @@ export * from './ApiKey';
|
|
|
3
3
|
export * from './Application';
|
|
4
4
|
export * from './ApplicationDocument';
|
|
5
5
|
export * from './ApplicationEvent';
|
|
6
|
+
export * from './ApplicationOrganization';
|
|
6
7
|
export * from './ApplicationPayment';
|
|
7
8
|
export * from './ApplicationPhase';
|
|
8
9
|
export * from './ApplicationRefund';
|
|
@@ -10,9 +11,11 @@ export * from './ApplicationTermination';
|
|
|
10
11
|
export * from './ApprovalRequest';
|
|
11
12
|
export * from './ApprovalStage';
|
|
12
13
|
export * from './ApprovalStageProgress';
|
|
14
|
+
export * from './BankDocumentRequirement';
|
|
13
15
|
export * from './DeviceEndpoint';
|
|
14
16
|
export * from './DocumentApproval';
|
|
15
17
|
export * from './DocumentDefinition';
|
|
18
|
+
export * from './DocumentExpiryWarning';
|
|
16
19
|
export * from './DocumentRequirementRule';
|
|
17
20
|
export * from './DocumentReview';
|
|
18
21
|
export * from './DocumentTemplate';
|
|
@@ -58,8 +61,11 @@ export * from './QuestionnairePlanQuestion';
|
|
|
58
61
|
export * from './RefreshToken';
|
|
59
62
|
export * from './Role';
|
|
60
63
|
export * from './RolePermission';
|
|
64
|
+
export * from './ScheduledJob';
|
|
61
65
|
export * from './Settings';
|
|
62
66
|
export * from './Social';
|
|
67
|
+
export * from './StateTransitionDefinition';
|
|
68
|
+
export * from './StateTransitionLog';
|
|
63
69
|
export * from './StepEventAttachment';
|
|
64
70
|
export * from './Tenant';
|
|
65
71
|
export * from './TenantMembership';
|
|
@@ -3,6 +3,7 @@ export * from './ApiKey';
|
|
|
3
3
|
export * from './Application';
|
|
4
4
|
export * from './ApplicationDocument';
|
|
5
5
|
export * from './ApplicationEvent';
|
|
6
|
+
export * from './ApplicationOrganization';
|
|
6
7
|
export * from './ApplicationPayment';
|
|
7
8
|
export * from './ApplicationPhase';
|
|
8
9
|
export * from './ApplicationRefund';
|
|
@@ -10,9 +11,11 @@ export * from './ApplicationTermination';
|
|
|
10
11
|
export * from './ApprovalRequest';
|
|
11
12
|
export * from './ApprovalStage';
|
|
12
13
|
export * from './ApprovalStageProgress';
|
|
14
|
+
export * from './BankDocumentRequirement';
|
|
13
15
|
export * from './DeviceEndpoint';
|
|
14
16
|
export * from './DocumentApproval';
|
|
15
17
|
export * from './DocumentDefinition';
|
|
18
|
+
export * from './DocumentExpiryWarning';
|
|
16
19
|
export * from './DocumentRequirementRule';
|
|
17
20
|
export * from './DocumentReview';
|
|
18
21
|
export * from './DocumentTemplate';
|
|
@@ -58,8 +61,11 @@ export * from './QuestionnairePlanQuestion';
|
|
|
58
61
|
export * from './RefreshToken';
|
|
59
62
|
export * from './Role';
|
|
60
63
|
export * from './RolePermission';
|
|
64
|
+
export * from './ScheduledJob';
|
|
61
65
|
export * from './Settings';
|
|
62
66
|
export * from './Social';
|
|
67
|
+
export * from './StateTransitionDefinition';
|
|
68
|
+
export * from './StateTransitionLog';
|
|
63
69
|
export * from './StepEventAttachment';
|
|
64
70
|
export * from './Tenant';
|
|
65
71
|
export * from './TenantMembership';
|
|
@@ -6,6 +6,7 @@ export type * from './models/UserRole.js';
|
|
|
6
6
|
export type * from './models/TenantMembership.js';
|
|
7
7
|
export type * from './models/Organization.js';
|
|
8
8
|
export type * from './models/OrganizationMember.js';
|
|
9
|
+
export type * from './models/BankDocumentRequirement.js';
|
|
9
10
|
export type * from './models/Tenant.js';
|
|
10
11
|
export type * from './models/ApiKey.js';
|
|
11
12
|
export type * from './models/RefreshToken.js';
|
|
@@ -42,6 +43,7 @@ export type * from './models/StepEventAttachment.js';
|
|
|
42
43
|
export type * from './models/PaymentMethodPhaseDocument.js';
|
|
43
44
|
export type * from './models/PaymentMethodPhaseField.js';
|
|
44
45
|
export type * from './models/Application.js';
|
|
46
|
+
export type * from './models/ApplicationOrganization.js';
|
|
45
47
|
export type * from './models/ApplicationRefund.js';
|
|
46
48
|
export type * from './models/ApplicationPhase.js';
|
|
47
49
|
export type * from './models/QuestionnairePhase.js';
|
|
@@ -70,4 +72,8 @@ export type * from './models/DomainEvent.js';
|
|
|
70
72
|
export type * from './models/PropertyTransferRequest.js';
|
|
71
73
|
export type * from './models/ApprovalRequest.js';
|
|
72
74
|
export type * from './models/WorkflowBlocker.js';
|
|
75
|
+
export type * from './models/StateTransitionDefinition.js';
|
|
76
|
+
export type * from './models/StateTransitionLog.js';
|
|
77
|
+
export type * from './models/ScheduledJob.js';
|
|
78
|
+
export type * from './models/DocumentExpiryWarning.js';
|
|
73
79
|
export type * from './commonInputTypes.js';
|
|
@@ -38,6 +38,10 @@ const OPTIONAL_TENANT_MODELS = [
|
|
|
38
38
|
"role",
|
|
39
39
|
// Permission can be global template or tenant-specific
|
|
40
40
|
"permission",
|
|
41
|
+
// StateTransitionDefinition can be global template or tenant-specific
|
|
42
|
+
"stateTransitionDefinition",
|
|
43
|
+
// ScheduledJob can be system-wide or tenant-specific
|
|
44
|
+
"scheduledJob",
|
|
41
45
|
];
|
|
42
46
|
function isGlobalModel(model) {
|
|
43
47
|
// Prisma extensions pass model name in camelCase
|
package/package.json
CHANGED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to drop the column `completedStepsCount` on the `documentation_phases` table. All the data in the column will be lost.
|
|
5
|
+
- You are about to drop the column `completionCriterion` on the `documentation_phases` table. All the data in the column will be lost.
|
|
6
|
+
- You are about to drop the column `currentStepId` on the `documentation_phases` table. All the data in the column will be lost.
|
|
7
|
+
- You are about to drop the column `minimumCompletionPercentage` on the `documentation_phases` table. All the data in the column will be lost.
|
|
8
|
+
- You are about to drop the column `requiredDocumentSnapshot` on the `documentation_phases` table. All the data in the column will be lost.
|
|
9
|
+
- You are about to drop the column `stepDefinitionsSnapshot` on the `documentation_phases` table. All the data in the column will be lost.
|
|
10
|
+
- You are about to drop the column `totalStepsCount` on the `documentation_phases` table. All the data in the column will be lost.
|
|
11
|
+
- You are about to drop the `documentation_plan_steps` table. If the table is not empty, all the data it contains will be lost.
|
|
12
|
+
- You are about to drop the `documentation_step_approvals` table. If the table is not empty, all the data it contains will be lost.
|
|
13
|
+
- You are about to drop the `documentation_step_documents` table. If the table is not empty, all the data it contains will be lost.
|
|
14
|
+
- You are about to drop the `documentation_steps` table. If the table is not empty, all the data it contains will be lost.
|
|
15
|
+
|
|
16
|
+
*/
|
|
17
|
+
-- DropForeignKey
|
|
18
|
+
ALTER TABLE `documentation_phases` DROP FOREIGN KEY `documentation_phases_currentStepId_fkey`;
|
|
19
|
+
|
|
20
|
+
-- DropForeignKey
|
|
21
|
+
ALTER TABLE `documentation_plan_steps` DROP FOREIGN KEY `documentation_plan_steps_planId_fkey`;
|
|
22
|
+
|
|
23
|
+
-- DropForeignKey
|
|
24
|
+
ALTER TABLE `documentation_step_approvals` DROP FOREIGN KEY `documentation_step_approvals_approverId_fkey`;
|
|
25
|
+
|
|
26
|
+
-- DropForeignKey
|
|
27
|
+
ALTER TABLE `documentation_step_approvals` DROP FOREIGN KEY `documentation_step_approvals_stepId_fkey`;
|
|
28
|
+
|
|
29
|
+
-- DropForeignKey
|
|
30
|
+
ALTER TABLE `documentation_step_approvals` DROP FOREIGN KEY `documentation_step_approvals_tenantId_fkey`;
|
|
31
|
+
|
|
32
|
+
-- DropForeignKey
|
|
33
|
+
ALTER TABLE `documentation_step_documents` DROP FOREIGN KEY `documentation_step_documents_stepId_fkey`;
|
|
34
|
+
|
|
35
|
+
-- DropForeignKey
|
|
36
|
+
ALTER TABLE `documentation_step_documents` DROP FOREIGN KEY `documentation_step_documents_tenantId_fkey`;
|
|
37
|
+
|
|
38
|
+
-- DropForeignKey
|
|
39
|
+
ALTER TABLE `documentation_steps` DROP FOREIGN KEY `documentation_steps_assigneeId_fkey`;
|
|
40
|
+
|
|
41
|
+
-- DropForeignKey
|
|
42
|
+
ALTER TABLE `documentation_steps` DROP FOREIGN KEY `documentation_steps_documentationPhaseId_fkey`;
|
|
43
|
+
|
|
44
|
+
-- DropForeignKey
|
|
45
|
+
ALTER TABLE `documentation_steps` DROP FOREIGN KEY `documentation_steps_gateActedById_fkey`;
|
|
46
|
+
|
|
47
|
+
-- DropForeignKey
|
|
48
|
+
ALTER TABLE `documentation_steps` DROP FOREIGN KEY `documentation_steps_tenantId_fkey`;
|
|
49
|
+
|
|
50
|
+
-- DropIndex
|
|
51
|
+
DROP INDEX `documentation_phases_currentStepId_idx` ON `documentation_phases`;
|
|
52
|
+
|
|
53
|
+
-- AlterTable
|
|
54
|
+
ALTER TABLE `documentation_phases` DROP COLUMN `completedStepsCount`,
|
|
55
|
+
DROP COLUMN `completionCriterion`,
|
|
56
|
+
DROP COLUMN `currentStepId`,
|
|
57
|
+
DROP COLUMN `minimumCompletionPercentage`,
|
|
58
|
+
DROP COLUMN `requiredDocumentSnapshot`,
|
|
59
|
+
DROP COLUMN `stepDefinitionsSnapshot`,
|
|
60
|
+
DROP COLUMN `totalStepsCount`,
|
|
61
|
+
ADD COLUMN `approvalStagesSnapshot` JSON NULL,
|
|
62
|
+
ADD COLUMN `currentStageOrder` INTEGER NOT NULL DEFAULT 1,
|
|
63
|
+
ADD COLUMN `documentDefinitionsSnapshot` JSON NULL;
|
|
64
|
+
|
|
65
|
+
-- DropTable
|
|
66
|
+
DROP TABLE `documentation_plan_steps`;
|
|
67
|
+
|
|
68
|
+
-- DropTable
|
|
69
|
+
DROP TABLE `documentation_step_approvals`;
|
|
70
|
+
|
|
71
|
+
-- DropTable
|
|
72
|
+
DROP TABLE `documentation_step_documents`;
|
|
73
|
+
|
|
74
|
+
-- DropTable
|
|
75
|
+
DROP TABLE `documentation_steps`;
|
|
76
|
+
|
|
77
|
+
-- CreateTable
|
|
78
|
+
CREATE TABLE `questionnaire_phase_reviews` (
|
|
79
|
+
`id` VARCHAR(191) NOT NULL,
|
|
80
|
+
`tenantId` VARCHAR(191) NOT NULL,
|
|
81
|
+
`questionnairePhaseId` VARCHAR(191) NOT NULL,
|
|
82
|
+
`reviewerId` VARCHAR(191) NOT NULL,
|
|
83
|
+
`decision` ENUM('PENDING', 'APPROVED', 'REJECTED', 'CHANGES_REQUESTED', 'WAIVED') NOT NULL,
|
|
84
|
+
`notes` TEXT NULL,
|
|
85
|
+
`scoreAtReview` INTEGER NULL,
|
|
86
|
+
`passedAtReview` BOOLEAN NULL,
|
|
87
|
+
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
88
|
+
|
|
89
|
+
INDEX `questionnaire_phase_reviews_tenantId_idx`(`tenantId`),
|
|
90
|
+
INDEX `questionnaire_phase_reviews_questionnairePhaseId_idx`(`questionnairePhaseId`),
|
|
91
|
+
INDEX `questionnaire_phase_reviews_reviewerId_idx`(`reviewerId`),
|
|
92
|
+
PRIMARY KEY (`id`)
|
|
93
|
+
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
94
|
+
|
|
95
|
+
-- AddForeignKey
|
|
96
|
+
ALTER TABLE `questionnaire_phase_reviews` ADD CONSTRAINT `questionnaire_phase_reviews_tenantId_fkey` FOREIGN KEY (`tenantId`) REFERENCES `tenants`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
97
|
+
|
|
98
|
+
-- AddForeignKey
|
|
99
|
+
ALTER TABLE `questionnaire_phase_reviews` ADD CONSTRAINT `questionnaire_phase_reviews_questionnairePhaseId_fkey` FOREIGN KEY (`questionnairePhaseId`) REFERENCES `questionnaire_phases`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
100
|
+
|
|
101
|
+
-- AddForeignKey
|
|
102
|
+
ALTER TABLE `questionnaire_phase_reviews` ADD CONSTRAINT `questionnaire_phase_reviews_reviewerId_fkey` FOREIGN KEY (`reviewerId`) REFERENCES `users`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|