@valentine-efagene/qshelter-common 2.0.120 → 2.0.121
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 +11 -0
- package/dist/generated/client/client.d.ts +11 -0
- package/dist/generated/client/commonInputTypes.d.ts +170 -0
- package/dist/generated/client/enums.d.ts +58 -0
- package/dist/generated/client/enums.js +52 -0
- package/dist/generated/client/internal/class.d.ts +22 -0
- package/dist/generated/client/internal/class.js +2 -2
- package/dist/generated/client/internal/prismaNamespace.d.ts +240 -2
- package/dist/generated/client/internal/prismaNamespace.js +82 -2
- package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +85 -1
- package/dist/generated/client/internal/prismaNamespaceBrowser.js +82 -2
- package/dist/generated/client/models/DocumentationPhase.d.ts +243 -1
- package/dist/generated/client/models/DocumentationStep.d.ts +121 -1
- package/dist/generated/client/models/Organization.d.ts +1930 -0
- package/dist/generated/client/models/Organization.js +1 -0
- package/dist/generated/client/models/OrganizationMember.d.ts +1598 -0
- package/dist/generated/client/models/OrganizationMember.js +1 -0
- package/dist/generated/client/models/QuestionnairePhase.d.ts +165 -0
- package/dist/generated/client/models/QuestionnairePlanQuestion.d.ts +25 -22
- package/dist/generated/client/models/Tenant.d.ts +555 -0
- package/dist/generated/client/models/User.d.ts +391 -0
- package/dist/generated/client/models.d.ts +2 -0
- package/dist/src/middleware/auth-context.d.ts +30 -1
- package/dist/src/middleware/auth-context.js +34 -1
- package/dist/src/prisma/tenant.js +2 -0
- package/dist/src/utils/condition-operators.d.ts +5 -23
- package/dist/src/utils/condition-operators.js +6 -19
- package/dist/src/utils/documentation-enums.d.ts +6 -0
- package/dist/src/utils/documentation-enums.js +6 -0
- package/package.json +1 -1
- package/prisma/migrations/20260115123703_add_organizations/migration.sql +69 -0
- package/prisma/migrations/20260115125519_add_requires_manual_review_to_step/migration.sql +2 -0
- package/prisma/migrations/20260115134106_add_conditional_step_support/migration.sql +11 -0
- package/prisma/schema.prisma +191 -1
|
@@ -45,6 +45,8 @@ export const ModelName = {
|
|
|
45
45
|
RolePermission: 'RolePermission',
|
|
46
46
|
UserRole: 'UserRole',
|
|
47
47
|
TenantMembership: 'TenantMembership',
|
|
48
|
+
Organization: 'Organization',
|
|
49
|
+
OrganizationMember: 'OrganizationMember',
|
|
48
50
|
Tenant: 'Tenant',
|
|
49
51
|
ApiKey: 'ApiKey',
|
|
50
52
|
RefreshToken: 'RefreshToken',
|
|
@@ -178,6 +180,50 @@ export const TenantMembershipScalarFieldEnum = {
|
|
|
178
180
|
createdAt: 'createdAt',
|
|
179
181
|
updatedAt: 'updatedAt'
|
|
180
182
|
};
|
|
183
|
+
export const OrganizationScalarFieldEnum = {
|
|
184
|
+
id: 'id',
|
|
185
|
+
tenantId: 'tenantId',
|
|
186
|
+
name: 'name',
|
|
187
|
+
type: 'type',
|
|
188
|
+
status: 'status',
|
|
189
|
+
email: 'email',
|
|
190
|
+
phone: 'phone',
|
|
191
|
+
address: 'address',
|
|
192
|
+
city: 'city',
|
|
193
|
+
state: 'state',
|
|
194
|
+
country: 'country',
|
|
195
|
+
website: 'website',
|
|
196
|
+
logoUrl: 'logoUrl',
|
|
197
|
+
description: 'description',
|
|
198
|
+
bankCode: 'bankCode',
|
|
199
|
+
bankLicenseNo: 'bankLicenseNo',
|
|
200
|
+
swiftCode: 'swiftCode',
|
|
201
|
+
sortCode: 'sortCode',
|
|
202
|
+
cacNumber: 'cacNumber',
|
|
203
|
+
cacCertificateUrl: 'cacCertificateUrl',
|
|
204
|
+
taxId: 'taxId',
|
|
205
|
+
approvedAt: 'approvedAt',
|
|
206
|
+
approvedById: 'approvedById',
|
|
207
|
+
createdAt: 'createdAt',
|
|
208
|
+
updatedAt: 'updatedAt'
|
|
209
|
+
};
|
|
210
|
+
export const OrganizationMemberScalarFieldEnum = {
|
|
211
|
+
id: 'id',
|
|
212
|
+
organizationId: 'organizationId',
|
|
213
|
+
userId: 'userId',
|
|
214
|
+
role: 'role',
|
|
215
|
+
title: 'title',
|
|
216
|
+
department: 'department',
|
|
217
|
+
employeeId: 'employeeId',
|
|
218
|
+
isActive: 'isActive',
|
|
219
|
+
canApprove: 'canApprove',
|
|
220
|
+
approvalLimit: 'approvalLimit',
|
|
221
|
+
invitedAt: 'invitedAt',
|
|
222
|
+
acceptedAt: 'acceptedAt',
|
|
223
|
+
invitedBy: 'invitedBy',
|
|
224
|
+
createdAt: 'createdAt',
|
|
225
|
+
updatedAt: 'updatedAt'
|
|
226
|
+
};
|
|
181
227
|
export const TenantScalarFieldEnum = {
|
|
182
228
|
id: 'id',
|
|
183
229
|
name: 'name',
|
|
@@ -697,6 +743,7 @@ export const DocumentationPhaseScalarFieldEnum = {
|
|
|
697
743
|
tenantId: 'tenantId',
|
|
698
744
|
phaseId: 'phaseId',
|
|
699
745
|
documentationPlanId: 'documentationPlanId',
|
|
746
|
+
sourceQuestionnairePhaseId: 'sourceQuestionnairePhaseId',
|
|
700
747
|
currentStepId: 'currentStepId',
|
|
701
748
|
approvedDocumentsCount: 'approvedDocumentsCount',
|
|
702
749
|
requiredDocumentsCount: 'requiredDocumentsCount',
|
|
@@ -773,6 +820,8 @@ export const DocumentationStepScalarFieldEnum = {
|
|
|
773
820
|
submissionCount: 'submissionCount',
|
|
774
821
|
lastSubmittedAt: 'lastSubmittedAt',
|
|
775
822
|
metadata: 'metadata',
|
|
823
|
+
requiresManualReview: 'requiresManualReview',
|
|
824
|
+
condition: 'condition',
|
|
776
825
|
assigneeId: 'assigneeId',
|
|
777
826
|
gateActor: 'gateActor',
|
|
778
827
|
gateAction: 'gateAction',
|
|
@@ -1217,6 +1266,37 @@ export const TenantMembershipOrderByRelevanceFieldEnum = {
|
|
|
1217
1266
|
tenantId: 'tenantId',
|
|
1218
1267
|
roleId: 'roleId'
|
|
1219
1268
|
};
|
|
1269
|
+
export const OrganizationOrderByRelevanceFieldEnum = {
|
|
1270
|
+
id: 'id',
|
|
1271
|
+
tenantId: 'tenantId',
|
|
1272
|
+
name: 'name',
|
|
1273
|
+
email: 'email',
|
|
1274
|
+
phone: 'phone',
|
|
1275
|
+
address: 'address',
|
|
1276
|
+
city: 'city',
|
|
1277
|
+
state: 'state',
|
|
1278
|
+
country: 'country',
|
|
1279
|
+
website: 'website',
|
|
1280
|
+
logoUrl: 'logoUrl',
|
|
1281
|
+
description: 'description',
|
|
1282
|
+
bankCode: 'bankCode',
|
|
1283
|
+
bankLicenseNo: 'bankLicenseNo',
|
|
1284
|
+
swiftCode: 'swiftCode',
|
|
1285
|
+
sortCode: 'sortCode',
|
|
1286
|
+
cacNumber: 'cacNumber',
|
|
1287
|
+
cacCertificateUrl: 'cacCertificateUrl',
|
|
1288
|
+
taxId: 'taxId',
|
|
1289
|
+
approvedById: 'approvedById'
|
|
1290
|
+
};
|
|
1291
|
+
export const OrganizationMemberOrderByRelevanceFieldEnum = {
|
|
1292
|
+
id: 'id',
|
|
1293
|
+
organizationId: 'organizationId',
|
|
1294
|
+
userId: 'userId',
|
|
1295
|
+
title: 'title',
|
|
1296
|
+
department: 'department',
|
|
1297
|
+
employeeId: 'employeeId',
|
|
1298
|
+
invitedBy: 'invitedBy'
|
|
1299
|
+
};
|
|
1220
1300
|
export const TenantOrderByRelevanceFieldEnum = {
|
|
1221
1301
|
id: 'id',
|
|
1222
1302
|
name: 'name',
|
|
@@ -1394,8 +1474,7 @@ export const QuestionnairePlanQuestionOrderByRelevanceFieldEnum = {
|
|
|
1394
1474
|
questionnairePlanId: 'questionnairePlanId',
|
|
1395
1475
|
questionKey: 'questionKey',
|
|
1396
1476
|
questionText: 'questionText',
|
|
1397
|
-
helpText: 'helpText'
|
|
1398
|
-
category: 'category'
|
|
1477
|
+
helpText: 'helpText'
|
|
1399
1478
|
};
|
|
1400
1479
|
export const PaymentPlanOrderByRelevanceFieldEnum = {
|
|
1401
1480
|
id: 'id',
|
|
@@ -1512,6 +1591,7 @@ export const DocumentationPhaseOrderByRelevanceFieldEnum = {
|
|
|
1512
1591
|
tenantId: 'tenantId',
|
|
1513
1592
|
phaseId: 'phaseId',
|
|
1514
1593
|
documentationPlanId: 'documentationPlanId',
|
|
1594
|
+
sourceQuestionnairePhaseId: 'sourceQuestionnairePhaseId',
|
|
1515
1595
|
currentStepId: 'currentStepId'
|
|
1516
1596
|
};
|
|
1517
1597
|
export const PaymentPhaseOrderByRelevanceFieldEnum = {
|