@valentine-efagene/qshelter-common 2.0.120 → 2.0.122
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/migrations/20260116090633_add_question_category_enum/migration.sql +8 -0
- package/prisma/schema.prisma +191 -1
|
@@ -237,6 +237,8 @@ export declare const ModelName: {
|
|
|
237
237
|
readonly RolePermission: "RolePermission";
|
|
238
238
|
readonly UserRole: "UserRole";
|
|
239
239
|
readonly TenantMembership: "TenantMembership";
|
|
240
|
+
readonly Organization: "Organization";
|
|
241
|
+
readonly OrganizationMember: "OrganizationMember";
|
|
240
242
|
readonly Tenant: "Tenant";
|
|
241
243
|
readonly ApiKey: "ApiKey";
|
|
242
244
|
readonly RefreshToken: "RefreshToken";
|
|
@@ -311,7 +313,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
311
313
|
omit: GlobalOmitOptions;
|
|
312
314
|
};
|
|
313
315
|
meta: {
|
|
314
|
-
modelProps: "user" | "role" | "permission" | "rolePermission" | "userRole" | "tenantMembership" | "tenant" | "apiKey" | "refreshToken" | "passwordReset" | "userSuspension" | "emailPreference" | "deviceEndpoint" | "social" | "oAuthState" | "wallet" | "transaction" | "settings" | "property" | "propertyMedia" | "propertyDocument" | "amenity" | "propertyVariant" | "propertyVariantAmenity" | "propertyVariantMedia" | "propertyUnit" | "propertyAmenity" | "documentationPlan" | "documentationPlanStep" | "questionnairePlan" | "questionnairePlanQuestion" | "paymentPlan" | "propertyPaymentMethod" | "propertyPaymentMethodLink" | "propertyPaymentMethodPhase" | "phaseEventAttachment" | "paymentMethodPhaseStep" | "stepEventAttachment" | "paymentMethodPhaseDocument" | "paymentMethodPhaseField" | "application" | "applicationRefund" | "applicationPhase" | "questionnairePhase" | "documentationPhase" | "paymentPhase" | "questionnaireField" | "applicationEvent" | "documentationStep" | "documentationStepDocument" | "documentationStepApproval" | "paymentInstallment" | "applicationPayment" | "applicationDocument" | "documentTemplate" | "offerLetter" | "applicationTermination" | "paymentMethodChangeRequest" | "documentRequirementRule" | "eventChannel" | "eventType" | "eventHandler" | "workflowEvent" | "eventHandlerExecution" | "domainEvent" | "propertyTransferRequest" | "approvalRequest" | "workflowBlocker";
|
|
316
|
+
modelProps: "user" | "role" | "permission" | "rolePermission" | "userRole" | "tenantMembership" | "organization" | "organizationMember" | "tenant" | "apiKey" | "refreshToken" | "passwordReset" | "userSuspension" | "emailPreference" | "deviceEndpoint" | "social" | "oAuthState" | "wallet" | "transaction" | "settings" | "property" | "propertyMedia" | "propertyDocument" | "amenity" | "propertyVariant" | "propertyVariantAmenity" | "propertyVariantMedia" | "propertyUnit" | "propertyAmenity" | "documentationPlan" | "documentationPlanStep" | "questionnairePlan" | "questionnairePlanQuestion" | "paymentPlan" | "propertyPaymentMethod" | "propertyPaymentMethodLink" | "propertyPaymentMethodPhase" | "phaseEventAttachment" | "paymentMethodPhaseStep" | "stepEventAttachment" | "paymentMethodPhaseDocument" | "paymentMethodPhaseField" | "application" | "applicationRefund" | "applicationPhase" | "questionnairePhase" | "documentationPhase" | "paymentPhase" | "questionnaireField" | "applicationEvent" | "documentationStep" | "documentationStepDocument" | "documentationStepApproval" | "paymentInstallment" | "applicationPayment" | "applicationDocument" | "documentTemplate" | "offerLetter" | "applicationTermination" | "paymentMethodChangeRequest" | "documentRequirementRule" | "eventChannel" | "eventType" | "eventHandler" | "workflowEvent" | "eventHandlerExecution" | "domainEvent" | "propertyTransferRequest" | "approvalRequest" | "workflowBlocker";
|
|
315
317
|
txIsolationLevel: TransactionIsolationLevel;
|
|
316
318
|
};
|
|
317
319
|
model: {
|
|
@@ -711,6 +713,138 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
711
713
|
};
|
|
712
714
|
};
|
|
713
715
|
};
|
|
716
|
+
Organization: {
|
|
717
|
+
payload: Prisma.$OrganizationPayload<ExtArgs>;
|
|
718
|
+
fields: Prisma.OrganizationFieldRefs;
|
|
719
|
+
operations: {
|
|
720
|
+
findUnique: {
|
|
721
|
+
args: Prisma.OrganizationFindUniqueArgs<ExtArgs>;
|
|
722
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OrganizationPayload> | null;
|
|
723
|
+
};
|
|
724
|
+
findUniqueOrThrow: {
|
|
725
|
+
args: Prisma.OrganizationFindUniqueOrThrowArgs<ExtArgs>;
|
|
726
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OrganizationPayload>;
|
|
727
|
+
};
|
|
728
|
+
findFirst: {
|
|
729
|
+
args: Prisma.OrganizationFindFirstArgs<ExtArgs>;
|
|
730
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OrganizationPayload> | null;
|
|
731
|
+
};
|
|
732
|
+
findFirstOrThrow: {
|
|
733
|
+
args: Prisma.OrganizationFindFirstOrThrowArgs<ExtArgs>;
|
|
734
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OrganizationPayload>;
|
|
735
|
+
};
|
|
736
|
+
findMany: {
|
|
737
|
+
args: Prisma.OrganizationFindManyArgs<ExtArgs>;
|
|
738
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OrganizationPayload>[];
|
|
739
|
+
};
|
|
740
|
+
create: {
|
|
741
|
+
args: Prisma.OrganizationCreateArgs<ExtArgs>;
|
|
742
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OrganizationPayload>;
|
|
743
|
+
};
|
|
744
|
+
createMany: {
|
|
745
|
+
args: Prisma.OrganizationCreateManyArgs<ExtArgs>;
|
|
746
|
+
result: BatchPayload;
|
|
747
|
+
};
|
|
748
|
+
delete: {
|
|
749
|
+
args: Prisma.OrganizationDeleteArgs<ExtArgs>;
|
|
750
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OrganizationPayload>;
|
|
751
|
+
};
|
|
752
|
+
update: {
|
|
753
|
+
args: Prisma.OrganizationUpdateArgs<ExtArgs>;
|
|
754
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OrganizationPayload>;
|
|
755
|
+
};
|
|
756
|
+
deleteMany: {
|
|
757
|
+
args: Prisma.OrganizationDeleteManyArgs<ExtArgs>;
|
|
758
|
+
result: BatchPayload;
|
|
759
|
+
};
|
|
760
|
+
updateMany: {
|
|
761
|
+
args: Prisma.OrganizationUpdateManyArgs<ExtArgs>;
|
|
762
|
+
result: BatchPayload;
|
|
763
|
+
};
|
|
764
|
+
upsert: {
|
|
765
|
+
args: Prisma.OrganizationUpsertArgs<ExtArgs>;
|
|
766
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OrganizationPayload>;
|
|
767
|
+
};
|
|
768
|
+
aggregate: {
|
|
769
|
+
args: Prisma.OrganizationAggregateArgs<ExtArgs>;
|
|
770
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateOrganization>;
|
|
771
|
+
};
|
|
772
|
+
groupBy: {
|
|
773
|
+
args: Prisma.OrganizationGroupByArgs<ExtArgs>;
|
|
774
|
+
result: runtime.Types.Utils.Optional<Prisma.OrganizationGroupByOutputType>[];
|
|
775
|
+
};
|
|
776
|
+
count: {
|
|
777
|
+
args: Prisma.OrganizationCountArgs<ExtArgs>;
|
|
778
|
+
result: runtime.Types.Utils.Optional<Prisma.OrganizationCountAggregateOutputType> | number;
|
|
779
|
+
};
|
|
780
|
+
};
|
|
781
|
+
};
|
|
782
|
+
OrganizationMember: {
|
|
783
|
+
payload: Prisma.$OrganizationMemberPayload<ExtArgs>;
|
|
784
|
+
fields: Prisma.OrganizationMemberFieldRefs;
|
|
785
|
+
operations: {
|
|
786
|
+
findUnique: {
|
|
787
|
+
args: Prisma.OrganizationMemberFindUniqueArgs<ExtArgs>;
|
|
788
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OrganizationMemberPayload> | null;
|
|
789
|
+
};
|
|
790
|
+
findUniqueOrThrow: {
|
|
791
|
+
args: Prisma.OrganizationMemberFindUniqueOrThrowArgs<ExtArgs>;
|
|
792
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OrganizationMemberPayload>;
|
|
793
|
+
};
|
|
794
|
+
findFirst: {
|
|
795
|
+
args: Prisma.OrganizationMemberFindFirstArgs<ExtArgs>;
|
|
796
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OrganizationMemberPayload> | null;
|
|
797
|
+
};
|
|
798
|
+
findFirstOrThrow: {
|
|
799
|
+
args: Prisma.OrganizationMemberFindFirstOrThrowArgs<ExtArgs>;
|
|
800
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OrganizationMemberPayload>;
|
|
801
|
+
};
|
|
802
|
+
findMany: {
|
|
803
|
+
args: Prisma.OrganizationMemberFindManyArgs<ExtArgs>;
|
|
804
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OrganizationMemberPayload>[];
|
|
805
|
+
};
|
|
806
|
+
create: {
|
|
807
|
+
args: Prisma.OrganizationMemberCreateArgs<ExtArgs>;
|
|
808
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OrganizationMemberPayload>;
|
|
809
|
+
};
|
|
810
|
+
createMany: {
|
|
811
|
+
args: Prisma.OrganizationMemberCreateManyArgs<ExtArgs>;
|
|
812
|
+
result: BatchPayload;
|
|
813
|
+
};
|
|
814
|
+
delete: {
|
|
815
|
+
args: Prisma.OrganizationMemberDeleteArgs<ExtArgs>;
|
|
816
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OrganizationMemberPayload>;
|
|
817
|
+
};
|
|
818
|
+
update: {
|
|
819
|
+
args: Prisma.OrganizationMemberUpdateArgs<ExtArgs>;
|
|
820
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OrganizationMemberPayload>;
|
|
821
|
+
};
|
|
822
|
+
deleteMany: {
|
|
823
|
+
args: Prisma.OrganizationMemberDeleteManyArgs<ExtArgs>;
|
|
824
|
+
result: BatchPayload;
|
|
825
|
+
};
|
|
826
|
+
updateMany: {
|
|
827
|
+
args: Prisma.OrganizationMemberUpdateManyArgs<ExtArgs>;
|
|
828
|
+
result: BatchPayload;
|
|
829
|
+
};
|
|
830
|
+
upsert: {
|
|
831
|
+
args: Prisma.OrganizationMemberUpsertArgs<ExtArgs>;
|
|
832
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OrganizationMemberPayload>;
|
|
833
|
+
};
|
|
834
|
+
aggregate: {
|
|
835
|
+
args: Prisma.OrganizationMemberAggregateArgs<ExtArgs>;
|
|
836
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateOrganizationMember>;
|
|
837
|
+
};
|
|
838
|
+
groupBy: {
|
|
839
|
+
args: Prisma.OrganizationMemberGroupByArgs<ExtArgs>;
|
|
840
|
+
result: runtime.Types.Utils.Optional<Prisma.OrganizationMemberGroupByOutputType>[];
|
|
841
|
+
};
|
|
842
|
+
count: {
|
|
843
|
+
args: Prisma.OrganizationMemberCountArgs<ExtArgs>;
|
|
844
|
+
result: runtime.Types.Utils.Optional<Prisma.OrganizationMemberCountAggregateOutputType> | number;
|
|
845
|
+
};
|
|
846
|
+
};
|
|
847
|
+
};
|
|
714
848
|
Tenant: {
|
|
715
849
|
payload: Prisma.$TenantPayload<ExtArgs>;
|
|
716
850
|
fields: Prisma.TenantFieldRefs;
|
|
@@ -4904,6 +5038,52 @@ export declare const TenantMembershipScalarFieldEnum: {
|
|
|
4904
5038
|
readonly updatedAt: "updatedAt";
|
|
4905
5039
|
};
|
|
4906
5040
|
export type TenantMembershipScalarFieldEnum = (typeof TenantMembershipScalarFieldEnum)[keyof typeof TenantMembershipScalarFieldEnum];
|
|
5041
|
+
export declare const OrganizationScalarFieldEnum: {
|
|
5042
|
+
readonly id: "id";
|
|
5043
|
+
readonly tenantId: "tenantId";
|
|
5044
|
+
readonly name: "name";
|
|
5045
|
+
readonly type: "type";
|
|
5046
|
+
readonly status: "status";
|
|
5047
|
+
readonly email: "email";
|
|
5048
|
+
readonly phone: "phone";
|
|
5049
|
+
readonly address: "address";
|
|
5050
|
+
readonly city: "city";
|
|
5051
|
+
readonly state: "state";
|
|
5052
|
+
readonly country: "country";
|
|
5053
|
+
readonly website: "website";
|
|
5054
|
+
readonly logoUrl: "logoUrl";
|
|
5055
|
+
readonly description: "description";
|
|
5056
|
+
readonly bankCode: "bankCode";
|
|
5057
|
+
readonly bankLicenseNo: "bankLicenseNo";
|
|
5058
|
+
readonly swiftCode: "swiftCode";
|
|
5059
|
+
readonly sortCode: "sortCode";
|
|
5060
|
+
readonly cacNumber: "cacNumber";
|
|
5061
|
+
readonly cacCertificateUrl: "cacCertificateUrl";
|
|
5062
|
+
readonly taxId: "taxId";
|
|
5063
|
+
readonly approvedAt: "approvedAt";
|
|
5064
|
+
readonly approvedById: "approvedById";
|
|
5065
|
+
readonly createdAt: "createdAt";
|
|
5066
|
+
readonly updatedAt: "updatedAt";
|
|
5067
|
+
};
|
|
5068
|
+
export type OrganizationScalarFieldEnum = (typeof OrganizationScalarFieldEnum)[keyof typeof OrganizationScalarFieldEnum];
|
|
5069
|
+
export declare const OrganizationMemberScalarFieldEnum: {
|
|
5070
|
+
readonly id: "id";
|
|
5071
|
+
readonly organizationId: "organizationId";
|
|
5072
|
+
readonly userId: "userId";
|
|
5073
|
+
readonly role: "role";
|
|
5074
|
+
readonly title: "title";
|
|
5075
|
+
readonly department: "department";
|
|
5076
|
+
readonly employeeId: "employeeId";
|
|
5077
|
+
readonly isActive: "isActive";
|
|
5078
|
+
readonly canApprove: "canApprove";
|
|
5079
|
+
readonly approvalLimit: "approvalLimit";
|
|
5080
|
+
readonly invitedAt: "invitedAt";
|
|
5081
|
+
readonly acceptedAt: "acceptedAt";
|
|
5082
|
+
readonly invitedBy: "invitedBy";
|
|
5083
|
+
readonly createdAt: "createdAt";
|
|
5084
|
+
readonly updatedAt: "updatedAt";
|
|
5085
|
+
};
|
|
5086
|
+
export type OrganizationMemberScalarFieldEnum = (typeof OrganizationMemberScalarFieldEnum)[keyof typeof OrganizationMemberScalarFieldEnum];
|
|
4907
5087
|
export declare const TenantScalarFieldEnum: {
|
|
4908
5088
|
readonly id: "id";
|
|
4909
5089
|
readonly name: "name";
|
|
@@ -5461,6 +5641,7 @@ export declare const DocumentationPhaseScalarFieldEnum: {
|
|
|
5461
5641
|
readonly tenantId: "tenantId";
|
|
5462
5642
|
readonly phaseId: "phaseId";
|
|
5463
5643
|
readonly documentationPlanId: "documentationPlanId";
|
|
5644
|
+
readonly sourceQuestionnairePhaseId: "sourceQuestionnairePhaseId";
|
|
5464
5645
|
readonly currentStepId: "currentStepId";
|
|
5465
5646
|
readonly approvedDocumentsCount: "approvedDocumentsCount";
|
|
5466
5647
|
readonly requiredDocumentsCount: "requiredDocumentsCount";
|
|
@@ -5541,6 +5722,8 @@ export declare const DocumentationStepScalarFieldEnum: {
|
|
|
5541
5722
|
readonly submissionCount: "submissionCount";
|
|
5542
5723
|
readonly lastSubmittedAt: "lastSubmittedAt";
|
|
5543
5724
|
readonly metadata: "metadata";
|
|
5725
|
+
readonly requiresManualReview: "requiresManualReview";
|
|
5726
|
+
readonly condition: "condition";
|
|
5544
5727
|
readonly assigneeId: "assigneeId";
|
|
5545
5728
|
readonly gateActor: "gateActor";
|
|
5546
5729
|
readonly gateAction: "gateAction";
|
|
@@ -6017,6 +6200,39 @@ export declare const TenantMembershipOrderByRelevanceFieldEnum: {
|
|
|
6017
6200
|
readonly roleId: "roleId";
|
|
6018
6201
|
};
|
|
6019
6202
|
export type TenantMembershipOrderByRelevanceFieldEnum = (typeof TenantMembershipOrderByRelevanceFieldEnum)[keyof typeof TenantMembershipOrderByRelevanceFieldEnum];
|
|
6203
|
+
export declare const OrganizationOrderByRelevanceFieldEnum: {
|
|
6204
|
+
readonly id: "id";
|
|
6205
|
+
readonly tenantId: "tenantId";
|
|
6206
|
+
readonly name: "name";
|
|
6207
|
+
readonly email: "email";
|
|
6208
|
+
readonly phone: "phone";
|
|
6209
|
+
readonly address: "address";
|
|
6210
|
+
readonly city: "city";
|
|
6211
|
+
readonly state: "state";
|
|
6212
|
+
readonly country: "country";
|
|
6213
|
+
readonly website: "website";
|
|
6214
|
+
readonly logoUrl: "logoUrl";
|
|
6215
|
+
readonly description: "description";
|
|
6216
|
+
readonly bankCode: "bankCode";
|
|
6217
|
+
readonly bankLicenseNo: "bankLicenseNo";
|
|
6218
|
+
readonly swiftCode: "swiftCode";
|
|
6219
|
+
readonly sortCode: "sortCode";
|
|
6220
|
+
readonly cacNumber: "cacNumber";
|
|
6221
|
+
readonly cacCertificateUrl: "cacCertificateUrl";
|
|
6222
|
+
readonly taxId: "taxId";
|
|
6223
|
+
readonly approvedById: "approvedById";
|
|
6224
|
+
};
|
|
6225
|
+
export type OrganizationOrderByRelevanceFieldEnum = (typeof OrganizationOrderByRelevanceFieldEnum)[keyof typeof OrganizationOrderByRelevanceFieldEnum];
|
|
6226
|
+
export declare const OrganizationMemberOrderByRelevanceFieldEnum: {
|
|
6227
|
+
readonly id: "id";
|
|
6228
|
+
readonly organizationId: "organizationId";
|
|
6229
|
+
readonly userId: "userId";
|
|
6230
|
+
readonly title: "title";
|
|
6231
|
+
readonly department: "department";
|
|
6232
|
+
readonly employeeId: "employeeId";
|
|
6233
|
+
readonly invitedBy: "invitedBy";
|
|
6234
|
+
};
|
|
6235
|
+
export type OrganizationMemberOrderByRelevanceFieldEnum = (typeof OrganizationMemberOrderByRelevanceFieldEnum)[keyof typeof OrganizationMemberOrderByRelevanceFieldEnum];
|
|
6020
6236
|
export declare const TenantOrderByRelevanceFieldEnum: {
|
|
6021
6237
|
readonly id: "id";
|
|
6022
6238
|
readonly name: "name";
|
|
@@ -6219,7 +6435,6 @@ export declare const QuestionnairePlanQuestionOrderByRelevanceFieldEnum: {
|
|
|
6219
6435
|
readonly questionKey: "questionKey";
|
|
6220
6436
|
readonly questionText: "questionText";
|
|
6221
6437
|
readonly helpText: "helpText";
|
|
6222
|
-
readonly category: "category";
|
|
6223
6438
|
};
|
|
6224
6439
|
export type QuestionnairePlanQuestionOrderByRelevanceFieldEnum = (typeof QuestionnairePlanQuestionOrderByRelevanceFieldEnum)[keyof typeof QuestionnairePlanQuestionOrderByRelevanceFieldEnum];
|
|
6225
6440
|
export declare const PaymentPlanOrderByRelevanceFieldEnum: {
|
|
@@ -6350,6 +6565,7 @@ export declare const DocumentationPhaseOrderByRelevanceFieldEnum: {
|
|
|
6350
6565
|
readonly tenantId: "tenantId";
|
|
6351
6566
|
readonly phaseId: "phaseId";
|
|
6352
6567
|
readonly documentationPlanId: "documentationPlanId";
|
|
6568
|
+
readonly sourceQuestionnairePhaseId: "sourceQuestionnairePhaseId";
|
|
6353
6569
|
readonly currentStepId: "currentStepId";
|
|
6354
6570
|
};
|
|
6355
6571
|
export type DocumentationPhaseOrderByRelevanceFieldEnum = (typeof DocumentationPhaseOrderByRelevanceFieldEnum)[keyof typeof DocumentationPhaseOrderByRelevanceFieldEnum];
|
|
@@ -6635,6 +6851,22 @@ export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$Prisma
|
|
|
6635
6851
|
* Reference to a field of type 'PermissionEffect'
|
|
6636
6852
|
*/
|
|
6637
6853
|
export type EnumPermissionEffectFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PermissionEffect'>;
|
|
6854
|
+
/**
|
|
6855
|
+
* Reference to a field of type 'OrganizationType'
|
|
6856
|
+
*/
|
|
6857
|
+
export type EnumOrganizationTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'OrganizationType'>;
|
|
6858
|
+
/**
|
|
6859
|
+
* Reference to a field of type 'OrganizationStatus'
|
|
6860
|
+
*/
|
|
6861
|
+
export type EnumOrganizationStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'OrganizationStatus'>;
|
|
6862
|
+
/**
|
|
6863
|
+
* Reference to a field of type 'OrganizationRole'
|
|
6864
|
+
*/
|
|
6865
|
+
export type EnumOrganizationRoleFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'OrganizationRole'>;
|
|
6866
|
+
/**
|
|
6867
|
+
* Reference to a field of type 'Decimal'
|
|
6868
|
+
*/
|
|
6869
|
+
export type DecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Decimal'>;
|
|
6638
6870
|
/**
|
|
6639
6871
|
* Reference to a field of type 'Float'
|
|
6640
6872
|
*/
|
|
@@ -6671,6 +6903,10 @@ export type EnumQuestionnaireCategoryFieldRefInput<$PrismaModel> = FieldRefInput
|
|
|
6671
6903
|
* Reference to a field of type 'QuestionType'
|
|
6672
6904
|
*/
|
|
6673
6905
|
export type EnumQuestionTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QuestionType'>;
|
|
6906
|
+
/**
|
|
6907
|
+
* Reference to a field of type 'QuestionCategory'
|
|
6908
|
+
*/
|
|
6909
|
+
export type EnumQuestionCategoryFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QuestionCategory'>;
|
|
6674
6910
|
/**
|
|
6675
6911
|
* Reference to a field of type 'PaymentFrequency'
|
|
6676
6912
|
*/
|
|
@@ -6915,6 +7151,8 @@ export type GlobalOmitConfig = {
|
|
|
6915
7151
|
rolePermission?: Prisma.RolePermissionOmit;
|
|
6916
7152
|
userRole?: Prisma.UserRoleOmit;
|
|
6917
7153
|
tenantMembership?: Prisma.TenantMembershipOmit;
|
|
7154
|
+
organization?: Prisma.OrganizationOmit;
|
|
7155
|
+
organizationMember?: Prisma.OrganizationMemberOmit;
|
|
6918
7156
|
tenant?: Prisma.TenantOmit;
|
|
6919
7157
|
apiKey?: Prisma.ApiKeyOmit;
|
|
6920
7158
|
refreshToken?: Prisma.RefreshTokenOmit;
|
|
@@ -73,6 +73,8 @@ export const ModelName = {
|
|
|
73
73
|
RolePermission: 'RolePermission',
|
|
74
74
|
UserRole: 'UserRole',
|
|
75
75
|
TenantMembership: 'TenantMembership',
|
|
76
|
+
Organization: 'Organization',
|
|
77
|
+
OrganizationMember: 'OrganizationMember',
|
|
76
78
|
Tenant: 'Tenant',
|
|
77
79
|
ApiKey: 'ApiKey',
|
|
78
80
|
RefreshToken: 'RefreshToken',
|
|
@@ -206,6 +208,50 @@ export const TenantMembershipScalarFieldEnum = {
|
|
|
206
208
|
createdAt: 'createdAt',
|
|
207
209
|
updatedAt: 'updatedAt'
|
|
208
210
|
};
|
|
211
|
+
export const OrganizationScalarFieldEnum = {
|
|
212
|
+
id: 'id',
|
|
213
|
+
tenantId: 'tenantId',
|
|
214
|
+
name: 'name',
|
|
215
|
+
type: 'type',
|
|
216
|
+
status: 'status',
|
|
217
|
+
email: 'email',
|
|
218
|
+
phone: 'phone',
|
|
219
|
+
address: 'address',
|
|
220
|
+
city: 'city',
|
|
221
|
+
state: 'state',
|
|
222
|
+
country: 'country',
|
|
223
|
+
website: 'website',
|
|
224
|
+
logoUrl: 'logoUrl',
|
|
225
|
+
description: 'description',
|
|
226
|
+
bankCode: 'bankCode',
|
|
227
|
+
bankLicenseNo: 'bankLicenseNo',
|
|
228
|
+
swiftCode: 'swiftCode',
|
|
229
|
+
sortCode: 'sortCode',
|
|
230
|
+
cacNumber: 'cacNumber',
|
|
231
|
+
cacCertificateUrl: 'cacCertificateUrl',
|
|
232
|
+
taxId: 'taxId',
|
|
233
|
+
approvedAt: 'approvedAt',
|
|
234
|
+
approvedById: 'approvedById',
|
|
235
|
+
createdAt: 'createdAt',
|
|
236
|
+
updatedAt: 'updatedAt'
|
|
237
|
+
};
|
|
238
|
+
export const OrganizationMemberScalarFieldEnum = {
|
|
239
|
+
id: 'id',
|
|
240
|
+
organizationId: 'organizationId',
|
|
241
|
+
userId: 'userId',
|
|
242
|
+
role: 'role',
|
|
243
|
+
title: 'title',
|
|
244
|
+
department: 'department',
|
|
245
|
+
employeeId: 'employeeId',
|
|
246
|
+
isActive: 'isActive',
|
|
247
|
+
canApprove: 'canApprove',
|
|
248
|
+
approvalLimit: 'approvalLimit',
|
|
249
|
+
invitedAt: 'invitedAt',
|
|
250
|
+
acceptedAt: 'acceptedAt',
|
|
251
|
+
invitedBy: 'invitedBy',
|
|
252
|
+
createdAt: 'createdAt',
|
|
253
|
+
updatedAt: 'updatedAt'
|
|
254
|
+
};
|
|
209
255
|
export const TenantScalarFieldEnum = {
|
|
210
256
|
id: 'id',
|
|
211
257
|
name: 'name',
|
|
@@ -725,6 +771,7 @@ export const DocumentationPhaseScalarFieldEnum = {
|
|
|
725
771
|
tenantId: 'tenantId',
|
|
726
772
|
phaseId: 'phaseId',
|
|
727
773
|
documentationPlanId: 'documentationPlanId',
|
|
774
|
+
sourceQuestionnairePhaseId: 'sourceQuestionnairePhaseId',
|
|
728
775
|
currentStepId: 'currentStepId',
|
|
729
776
|
approvedDocumentsCount: 'approvedDocumentsCount',
|
|
730
777
|
requiredDocumentsCount: 'requiredDocumentsCount',
|
|
@@ -801,6 +848,8 @@ export const DocumentationStepScalarFieldEnum = {
|
|
|
801
848
|
submissionCount: 'submissionCount',
|
|
802
849
|
lastSubmittedAt: 'lastSubmittedAt',
|
|
803
850
|
metadata: 'metadata',
|
|
851
|
+
requiresManualReview: 'requiresManualReview',
|
|
852
|
+
condition: 'condition',
|
|
804
853
|
assigneeId: 'assigneeId',
|
|
805
854
|
gateActor: 'gateActor',
|
|
806
855
|
gateAction: 'gateAction',
|
|
@@ -1245,6 +1294,37 @@ export const TenantMembershipOrderByRelevanceFieldEnum = {
|
|
|
1245
1294
|
tenantId: 'tenantId',
|
|
1246
1295
|
roleId: 'roleId'
|
|
1247
1296
|
};
|
|
1297
|
+
export const OrganizationOrderByRelevanceFieldEnum = {
|
|
1298
|
+
id: 'id',
|
|
1299
|
+
tenantId: 'tenantId',
|
|
1300
|
+
name: 'name',
|
|
1301
|
+
email: 'email',
|
|
1302
|
+
phone: 'phone',
|
|
1303
|
+
address: 'address',
|
|
1304
|
+
city: 'city',
|
|
1305
|
+
state: 'state',
|
|
1306
|
+
country: 'country',
|
|
1307
|
+
website: 'website',
|
|
1308
|
+
logoUrl: 'logoUrl',
|
|
1309
|
+
description: 'description',
|
|
1310
|
+
bankCode: 'bankCode',
|
|
1311
|
+
bankLicenseNo: 'bankLicenseNo',
|
|
1312
|
+
swiftCode: 'swiftCode',
|
|
1313
|
+
sortCode: 'sortCode',
|
|
1314
|
+
cacNumber: 'cacNumber',
|
|
1315
|
+
cacCertificateUrl: 'cacCertificateUrl',
|
|
1316
|
+
taxId: 'taxId',
|
|
1317
|
+
approvedById: 'approvedById'
|
|
1318
|
+
};
|
|
1319
|
+
export const OrganizationMemberOrderByRelevanceFieldEnum = {
|
|
1320
|
+
id: 'id',
|
|
1321
|
+
organizationId: 'organizationId',
|
|
1322
|
+
userId: 'userId',
|
|
1323
|
+
title: 'title',
|
|
1324
|
+
department: 'department',
|
|
1325
|
+
employeeId: 'employeeId',
|
|
1326
|
+
invitedBy: 'invitedBy'
|
|
1327
|
+
};
|
|
1248
1328
|
export const TenantOrderByRelevanceFieldEnum = {
|
|
1249
1329
|
id: 'id',
|
|
1250
1330
|
name: 'name',
|
|
@@ -1422,8 +1502,7 @@ export const QuestionnairePlanQuestionOrderByRelevanceFieldEnum = {
|
|
|
1422
1502
|
questionnairePlanId: 'questionnairePlanId',
|
|
1423
1503
|
questionKey: 'questionKey',
|
|
1424
1504
|
questionText: 'questionText',
|
|
1425
|
-
helpText: 'helpText'
|
|
1426
|
-
category: 'category'
|
|
1505
|
+
helpText: 'helpText'
|
|
1427
1506
|
};
|
|
1428
1507
|
export const PaymentPlanOrderByRelevanceFieldEnum = {
|
|
1429
1508
|
id: 'id',
|
|
@@ -1540,6 +1619,7 @@ export const DocumentationPhaseOrderByRelevanceFieldEnum = {
|
|
|
1540
1619
|
tenantId: 'tenantId',
|
|
1541
1620
|
phaseId: 'phaseId',
|
|
1542
1621
|
documentationPlanId: 'documentationPlanId',
|
|
1622
|
+
sourceQuestionnairePhaseId: 'sourceQuestionnairePhaseId',
|
|
1543
1623
|
currentStepId: 'currentStepId'
|
|
1544
1624
|
};
|
|
1545
1625
|
export const PaymentPhaseOrderByRelevanceFieldEnum = {
|
|
@@ -32,6 +32,8 @@ export declare const ModelName: {
|
|
|
32
32
|
readonly RolePermission: "RolePermission";
|
|
33
33
|
readonly UserRole: "UserRole";
|
|
34
34
|
readonly TenantMembership: "TenantMembership";
|
|
35
|
+
readonly Organization: "Organization";
|
|
36
|
+
readonly OrganizationMember: "OrganizationMember";
|
|
35
37
|
readonly Tenant: "Tenant";
|
|
36
38
|
readonly ApiKey: "ApiKey";
|
|
37
39
|
readonly RefreshToken: "RefreshToken";
|
|
@@ -170,6 +172,52 @@ export declare const TenantMembershipScalarFieldEnum: {
|
|
|
170
172
|
readonly updatedAt: "updatedAt";
|
|
171
173
|
};
|
|
172
174
|
export type TenantMembershipScalarFieldEnum = (typeof TenantMembershipScalarFieldEnum)[keyof typeof TenantMembershipScalarFieldEnum];
|
|
175
|
+
export declare const OrganizationScalarFieldEnum: {
|
|
176
|
+
readonly id: "id";
|
|
177
|
+
readonly tenantId: "tenantId";
|
|
178
|
+
readonly name: "name";
|
|
179
|
+
readonly type: "type";
|
|
180
|
+
readonly status: "status";
|
|
181
|
+
readonly email: "email";
|
|
182
|
+
readonly phone: "phone";
|
|
183
|
+
readonly address: "address";
|
|
184
|
+
readonly city: "city";
|
|
185
|
+
readonly state: "state";
|
|
186
|
+
readonly country: "country";
|
|
187
|
+
readonly website: "website";
|
|
188
|
+
readonly logoUrl: "logoUrl";
|
|
189
|
+
readonly description: "description";
|
|
190
|
+
readonly bankCode: "bankCode";
|
|
191
|
+
readonly bankLicenseNo: "bankLicenseNo";
|
|
192
|
+
readonly swiftCode: "swiftCode";
|
|
193
|
+
readonly sortCode: "sortCode";
|
|
194
|
+
readonly cacNumber: "cacNumber";
|
|
195
|
+
readonly cacCertificateUrl: "cacCertificateUrl";
|
|
196
|
+
readonly taxId: "taxId";
|
|
197
|
+
readonly approvedAt: "approvedAt";
|
|
198
|
+
readonly approvedById: "approvedById";
|
|
199
|
+
readonly createdAt: "createdAt";
|
|
200
|
+
readonly updatedAt: "updatedAt";
|
|
201
|
+
};
|
|
202
|
+
export type OrganizationScalarFieldEnum = (typeof OrganizationScalarFieldEnum)[keyof typeof OrganizationScalarFieldEnum];
|
|
203
|
+
export declare const OrganizationMemberScalarFieldEnum: {
|
|
204
|
+
readonly id: "id";
|
|
205
|
+
readonly organizationId: "organizationId";
|
|
206
|
+
readonly userId: "userId";
|
|
207
|
+
readonly role: "role";
|
|
208
|
+
readonly title: "title";
|
|
209
|
+
readonly department: "department";
|
|
210
|
+
readonly employeeId: "employeeId";
|
|
211
|
+
readonly isActive: "isActive";
|
|
212
|
+
readonly canApprove: "canApprove";
|
|
213
|
+
readonly approvalLimit: "approvalLimit";
|
|
214
|
+
readonly invitedAt: "invitedAt";
|
|
215
|
+
readonly acceptedAt: "acceptedAt";
|
|
216
|
+
readonly invitedBy: "invitedBy";
|
|
217
|
+
readonly createdAt: "createdAt";
|
|
218
|
+
readonly updatedAt: "updatedAt";
|
|
219
|
+
};
|
|
220
|
+
export type OrganizationMemberScalarFieldEnum = (typeof OrganizationMemberScalarFieldEnum)[keyof typeof OrganizationMemberScalarFieldEnum];
|
|
173
221
|
export declare const TenantScalarFieldEnum: {
|
|
174
222
|
readonly id: "id";
|
|
175
223
|
readonly name: "name";
|
|
@@ -727,6 +775,7 @@ export declare const DocumentationPhaseScalarFieldEnum: {
|
|
|
727
775
|
readonly tenantId: "tenantId";
|
|
728
776
|
readonly phaseId: "phaseId";
|
|
729
777
|
readonly documentationPlanId: "documentationPlanId";
|
|
778
|
+
readonly sourceQuestionnairePhaseId: "sourceQuestionnairePhaseId";
|
|
730
779
|
readonly currentStepId: "currentStepId";
|
|
731
780
|
readonly approvedDocumentsCount: "approvedDocumentsCount";
|
|
732
781
|
readonly requiredDocumentsCount: "requiredDocumentsCount";
|
|
@@ -807,6 +856,8 @@ export declare const DocumentationStepScalarFieldEnum: {
|
|
|
807
856
|
readonly submissionCount: "submissionCount";
|
|
808
857
|
readonly lastSubmittedAt: "lastSubmittedAt";
|
|
809
858
|
readonly metadata: "metadata";
|
|
859
|
+
readonly requiresManualReview: "requiresManualReview";
|
|
860
|
+
readonly condition: "condition";
|
|
810
861
|
readonly assigneeId: "assigneeId";
|
|
811
862
|
readonly gateActor: "gateActor";
|
|
812
863
|
readonly gateAction: "gateAction";
|
|
@@ -1283,6 +1334,39 @@ export declare const TenantMembershipOrderByRelevanceFieldEnum: {
|
|
|
1283
1334
|
readonly roleId: "roleId";
|
|
1284
1335
|
};
|
|
1285
1336
|
export type TenantMembershipOrderByRelevanceFieldEnum = (typeof TenantMembershipOrderByRelevanceFieldEnum)[keyof typeof TenantMembershipOrderByRelevanceFieldEnum];
|
|
1337
|
+
export declare const OrganizationOrderByRelevanceFieldEnum: {
|
|
1338
|
+
readonly id: "id";
|
|
1339
|
+
readonly tenantId: "tenantId";
|
|
1340
|
+
readonly name: "name";
|
|
1341
|
+
readonly email: "email";
|
|
1342
|
+
readonly phone: "phone";
|
|
1343
|
+
readonly address: "address";
|
|
1344
|
+
readonly city: "city";
|
|
1345
|
+
readonly state: "state";
|
|
1346
|
+
readonly country: "country";
|
|
1347
|
+
readonly website: "website";
|
|
1348
|
+
readonly logoUrl: "logoUrl";
|
|
1349
|
+
readonly description: "description";
|
|
1350
|
+
readonly bankCode: "bankCode";
|
|
1351
|
+
readonly bankLicenseNo: "bankLicenseNo";
|
|
1352
|
+
readonly swiftCode: "swiftCode";
|
|
1353
|
+
readonly sortCode: "sortCode";
|
|
1354
|
+
readonly cacNumber: "cacNumber";
|
|
1355
|
+
readonly cacCertificateUrl: "cacCertificateUrl";
|
|
1356
|
+
readonly taxId: "taxId";
|
|
1357
|
+
readonly approvedById: "approvedById";
|
|
1358
|
+
};
|
|
1359
|
+
export type OrganizationOrderByRelevanceFieldEnum = (typeof OrganizationOrderByRelevanceFieldEnum)[keyof typeof OrganizationOrderByRelevanceFieldEnum];
|
|
1360
|
+
export declare const OrganizationMemberOrderByRelevanceFieldEnum: {
|
|
1361
|
+
readonly id: "id";
|
|
1362
|
+
readonly organizationId: "organizationId";
|
|
1363
|
+
readonly userId: "userId";
|
|
1364
|
+
readonly title: "title";
|
|
1365
|
+
readonly department: "department";
|
|
1366
|
+
readonly employeeId: "employeeId";
|
|
1367
|
+
readonly invitedBy: "invitedBy";
|
|
1368
|
+
};
|
|
1369
|
+
export type OrganizationMemberOrderByRelevanceFieldEnum = (typeof OrganizationMemberOrderByRelevanceFieldEnum)[keyof typeof OrganizationMemberOrderByRelevanceFieldEnum];
|
|
1286
1370
|
export declare const TenantOrderByRelevanceFieldEnum: {
|
|
1287
1371
|
readonly id: "id";
|
|
1288
1372
|
readonly name: "name";
|
|
@@ -1485,7 +1569,6 @@ export declare const QuestionnairePlanQuestionOrderByRelevanceFieldEnum: {
|
|
|
1485
1569
|
readonly questionKey: "questionKey";
|
|
1486
1570
|
readonly questionText: "questionText";
|
|
1487
1571
|
readonly helpText: "helpText";
|
|
1488
|
-
readonly category: "category";
|
|
1489
1572
|
};
|
|
1490
1573
|
export type QuestionnairePlanQuestionOrderByRelevanceFieldEnum = (typeof QuestionnairePlanQuestionOrderByRelevanceFieldEnum)[keyof typeof QuestionnairePlanQuestionOrderByRelevanceFieldEnum];
|
|
1491
1574
|
export declare const PaymentPlanOrderByRelevanceFieldEnum: {
|
|
@@ -1616,6 +1699,7 @@ export declare const DocumentationPhaseOrderByRelevanceFieldEnum: {
|
|
|
1616
1699
|
readonly tenantId: "tenantId";
|
|
1617
1700
|
readonly phaseId: "phaseId";
|
|
1618
1701
|
readonly documentationPlanId: "documentationPlanId";
|
|
1702
|
+
readonly sourceQuestionnairePhaseId: "sourceQuestionnairePhaseId";
|
|
1619
1703
|
readonly currentStepId: "currentStepId";
|
|
1620
1704
|
};
|
|
1621
1705
|
export type DocumentationPhaseOrderByRelevanceFieldEnum = (typeof DocumentationPhaseOrderByRelevanceFieldEnum)[keyof typeof DocumentationPhaseOrderByRelevanceFieldEnum];
|