@valentine-efagene/qshelter-common 2.0.119 → 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 +260 -0
- package/dist/generated/client/enums.d.ts +79 -0
- package/dist/generated/client/enums.js +71 -1
- 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 +277 -2
- package/dist/generated/client/internal/prismaNamespace.js +109 -4
- package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +110 -1
- package/dist/generated/client/internal/prismaNamespaceBrowser.js +109 -4
- package/dist/generated/client/models/DocumentationPhase.d.ts +243 -1
- package/dist/generated/client/models/DocumentationPlanStep.d.ts +241 -1
- package/dist/generated/client/models/DocumentationStep.d.ts +1017 -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 +776 -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
|
@@ -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";
|
|
@@ -5180,6 +5360,13 @@ export declare const DocumentationPlanStepScalarFieldEnum: {
|
|
|
5180
5360
|
readonly minFiles: "minFiles";
|
|
5181
5361
|
readonly maxFiles: "maxFiles";
|
|
5182
5362
|
readonly condition: "condition";
|
|
5363
|
+
readonly gateActor: "gateActor";
|
|
5364
|
+
readonly gateAction: "gateAction";
|
|
5365
|
+
readonly gateRoleId: "gateRoleId";
|
|
5366
|
+
readonly gateInstructions: "gateInstructions";
|
|
5367
|
+
readonly allowReject: "allowReject";
|
|
5368
|
+
readonly rejectBehavior: "rejectBehavior";
|
|
5369
|
+
readonly requiresComment: "requiresComment";
|
|
5183
5370
|
readonly createdAt: "createdAt";
|
|
5184
5371
|
readonly updatedAt: "updatedAt";
|
|
5185
5372
|
};
|
|
@@ -5454,6 +5641,7 @@ export declare const DocumentationPhaseScalarFieldEnum: {
|
|
|
5454
5641
|
readonly tenantId: "tenantId";
|
|
5455
5642
|
readonly phaseId: "phaseId";
|
|
5456
5643
|
readonly documentationPlanId: "documentationPlanId";
|
|
5644
|
+
readonly sourceQuestionnairePhaseId: "sourceQuestionnairePhaseId";
|
|
5457
5645
|
readonly currentStepId: "currentStepId";
|
|
5458
5646
|
readonly approvedDocumentsCount: "approvedDocumentsCount";
|
|
5459
5647
|
readonly requiredDocumentsCount: "requiredDocumentsCount";
|
|
@@ -5534,7 +5722,20 @@ export declare const DocumentationStepScalarFieldEnum: {
|
|
|
5534
5722
|
readonly submissionCount: "submissionCount";
|
|
5535
5723
|
readonly lastSubmittedAt: "lastSubmittedAt";
|
|
5536
5724
|
readonly metadata: "metadata";
|
|
5725
|
+
readonly requiresManualReview: "requiresManualReview";
|
|
5726
|
+
readonly condition: "condition";
|
|
5537
5727
|
readonly assigneeId: "assigneeId";
|
|
5728
|
+
readonly gateActor: "gateActor";
|
|
5729
|
+
readonly gateAction: "gateAction";
|
|
5730
|
+
readonly gateRoleId: "gateRoleId";
|
|
5731
|
+
readonly gateInstructions: "gateInstructions";
|
|
5732
|
+
readonly allowReject: "allowReject";
|
|
5733
|
+
readonly rejectBehavior: "rejectBehavior";
|
|
5734
|
+
readonly requiresComment: "requiresComment";
|
|
5735
|
+
readonly gateActedAt: "gateActedAt";
|
|
5736
|
+
readonly gateActedById: "gateActedById";
|
|
5737
|
+
readonly gateDecision: "gateDecision";
|
|
5738
|
+
readonly gateComment: "gateComment";
|
|
5538
5739
|
readonly dueDate: "dueDate";
|
|
5539
5740
|
readonly completedAt: "completedAt";
|
|
5540
5741
|
readonly createdAt: "createdAt";
|
|
@@ -5999,6 +6200,39 @@ export declare const TenantMembershipOrderByRelevanceFieldEnum: {
|
|
|
5999
6200
|
readonly roleId: "roleId";
|
|
6000
6201
|
};
|
|
6001
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];
|
|
6002
6236
|
export declare const TenantOrderByRelevanceFieldEnum: {
|
|
6003
6237
|
readonly id: "id";
|
|
6004
6238
|
readonly name: "name";
|
|
@@ -6184,6 +6418,8 @@ export declare const DocumentationPlanStepOrderByRelevanceFieldEnum: {
|
|
|
6184
6418
|
readonly documentType: "documentType";
|
|
6185
6419
|
readonly description: "description";
|
|
6186
6420
|
readonly allowedMimeTypes: "allowedMimeTypes";
|
|
6421
|
+
readonly gateRoleId: "gateRoleId";
|
|
6422
|
+
readonly gateInstructions: "gateInstructions";
|
|
6187
6423
|
};
|
|
6188
6424
|
export type DocumentationPlanStepOrderByRelevanceFieldEnum = (typeof DocumentationPlanStepOrderByRelevanceFieldEnum)[keyof typeof DocumentationPlanStepOrderByRelevanceFieldEnum];
|
|
6189
6425
|
export declare const QuestionnairePlanOrderByRelevanceFieldEnum: {
|
|
@@ -6199,7 +6435,6 @@ export declare const QuestionnairePlanQuestionOrderByRelevanceFieldEnum: {
|
|
|
6199
6435
|
readonly questionKey: "questionKey";
|
|
6200
6436
|
readonly questionText: "questionText";
|
|
6201
6437
|
readonly helpText: "helpText";
|
|
6202
|
-
readonly category: "category";
|
|
6203
6438
|
};
|
|
6204
6439
|
export type QuestionnairePlanQuestionOrderByRelevanceFieldEnum = (typeof QuestionnairePlanQuestionOrderByRelevanceFieldEnum)[keyof typeof QuestionnairePlanQuestionOrderByRelevanceFieldEnum];
|
|
6205
6440
|
export declare const PaymentPlanOrderByRelevanceFieldEnum: {
|
|
@@ -6330,6 +6565,7 @@ export declare const DocumentationPhaseOrderByRelevanceFieldEnum: {
|
|
|
6330
6565
|
readonly tenantId: "tenantId";
|
|
6331
6566
|
readonly phaseId: "phaseId";
|
|
6332
6567
|
readonly documentationPlanId: "documentationPlanId";
|
|
6568
|
+
readonly sourceQuestionnairePhaseId: "sourceQuestionnairePhaseId";
|
|
6333
6569
|
readonly currentStepId: "currentStepId";
|
|
6334
6570
|
};
|
|
6335
6571
|
export type DocumentationPhaseOrderByRelevanceFieldEnum = (typeof DocumentationPhaseOrderByRelevanceFieldEnum)[keyof typeof DocumentationPhaseOrderByRelevanceFieldEnum];
|
|
@@ -6368,6 +6604,11 @@ export declare const DocumentationStepOrderByRelevanceFieldEnum: {
|
|
|
6368
6604
|
readonly description: "description";
|
|
6369
6605
|
readonly actionReason: "actionReason";
|
|
6370
6606
|
readonly assigneeId: "assigneeId";
|
|
6607
|
+
readonly gateRoleId: "gateRoleId";
|
|
6608
|
+
readonly gateInstructions: "gateInstructions";
|
|
6609
|
+
readonly gateActedById: "gateActedById";
|
|
6610
|
+
readonly gateDecision: "gateDecision";
|
|
6611
|
+
readonly gateComment: "gateComment";
|
|
6371
6612
|
};
|
|
6372
6613
|
export type DocumentationStepOrderByRelevanceFieldEnum = (typeof DocumentationStepOrderByRelevanceFieldEnum)[keyof typeof DocumentationStepOrderByRelevanceFieldEnum];
|
|
6373
6614
|
export declare const DocumentationStepDocumentOrderByRelevanceFieldEnum: {
|
|
@@ -6610,6 +6851,22 @@ export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$Prisma
|
|
|
6610
6851
|
* Reference to a field of type 'PermissionEffect'
|
|
6611
6852
|
*/
|
|
6612
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'>;
|
|
6613
6870
|
/**
|
|
6614
6871
|
* Reference to a field of type 'Float'
|
|
6615
6872
|
*/
|
|
@@ -6622,6 +6879,18 @@ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'In
|
|
|
6622
6879
|
* Reference to a field of type 'StepType'
|
|
6623
6880
|
*/
|
|
6624
6881
|
export type EnumStepTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'StepType'>;
|
|
6882
|
+
/**
|
|
6883
|
+
* Reference to a field of type 'GateActor'
|
|
6884
|
+
*/
|
|
6885
|
+
export type EnumGateActorFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'GateActor'>;
|
|
6886
|
+
/**
|
|
6887
|
+
* Reference to a field of type 'GateAction'
|
|
6888
|
+
*/
|
|
6889
|
+
export type EnumGateActionFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'GateAction'>;
|
|
6890
|
+
/**
|
|
6891
|
+
* Reference to a field of type 'GateRejectBehavior'
|
|
6892
|
+
*/
|
|
6893
|
+
export type EnumGateRejectBehaviorFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'GateRejectBehavior'>;
|
|
6625
6894
|
/**
|
|
6626
6895
|
* Reference to a field of type 'ScoringStrategy'
|
|
6627
6896
|
*/
|
|
@@ -6634,6 +6903,10 @@ export type EnumQuestionnaireCategoryFieldRefInput<$PrismaModel> = FieldRefInput
|
|
|
6634
6903
|
* Reference to a field of type 'QuestionType'
|
|
6635
6904
|
*/
|
|
6636
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'>;
|
|
6637
6910
|
/**
|
|
6638
6911
|
* Reference to a field of type 'PaymentFrequency'
|
|
6639
6912
|
*/
|
|
@@ -6878,6 +7151,8 @@ export type GlobalOmitConfig = {
|
|
|
6878
7151
|
rolePermission?: Prisma.RolePermissionOmit;
|
|
6879
7152
|
userRole?: Prisma.UserRoleOmit;
|
|
6880
7153
|
tenantMembership?: Prisma.TenantMembershipOmit;
|
|
7154
|
+
organization?: Prisma.OrganizationOmit;
|
|
7155
|
+
organizationMember?: Prisma.OrganizationMemberOmit;
|
|
6881
7156
|
tenant?: Prisma.TenantOmit;
|
|
6882
7157
|
apiKey?: Prisma.ApiKeyOmit;
|
|
6883
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',
|
|
@@ -460,6 +506,13 @@ export const DocumentationPlanStepScalarFieldEnum = {
|
|
|
460
506
|
minFiles: 'minFiles',
|
|
461
507
|
maxFiles: 'maxFiles',
|
|
462
508
|
condition: 'condition',
|
|
509
|
+
gateActor: 'gateActor',
|
|
510
|
+
gateAction: 'gateAction',
|
|
511
|
+
gateRoleId: 'gateRoleId',
|
|
512
|
+
gateInstructions: 'gateInstructions',
|
|
513
|
+
allowReject: 'allowReject',
|
|
514
|
+
rejectBehavior: 'rejectBehavior',
|
|
515
|
+
requiresComment: 'requiresComment',
|
|
463
516
|
createdAt: 'createdAt',
|
|
464
517
|
updatedAt: 'updatedAt'
|
|
465
518
|
};
|
|
@@ -718,6 +771,7 @@ export const DocumentationPhaseScalarFieldEnum = {
|
|
|
718
771
|
tenantId: 'tenantId',
|
|
719
772
|
phaseId: 'phaseId',
|
|
720
773
|
documentationPlanId: 'documentationPlanId',
|
|
774
|
+
sourceQuestionnairePhaseId: 'sourceQuestionnairePhaseId',
|
|
721
775
|
currentStepId: 'currentStepId',
|
|
722
776
|
approvedDocumentsCount: 'approvedDocumentsCount',
|
|
723
777
|
requiredDocumentsCount: 'requiredDocumentsCount',
|
|
@@ -794,7 +848,20 @@ export const DocumentationStepScalarFieldEnum = {
|
|
|
794
848
|
submissionCount: 'submissionCount',
|
|
795
849
|
lastSubmittedAt: 'lastSubmittedAt',
|
|
796
850
|
metadata: 'metadata',
|
|
851
|
+
requiresManualReview: 'requiresManualReview',
|
|
852
|
+
condition: 'condition',
|
|
797
853
|
assigneeId: 'assigneeId',
|
|
854
|
+
gateActor: 'gateActor',
|
|
855
|
+
gateAction: 'gateAction',
|
|
856
|
+
gateRoleId: 'gateRoleId',
|
|
857
|
+
gateInstructions: 'gateInstructions',
|
|
858
|
+
allowReject: 'allowReject',
|
|
859
|
+
rejectBehavior: 'rejectBehavior',
|
|
860
|
+
requiresComment: 'requiresComment',
|
|
861
|
+
gateActedAt: 'gateActedAt',
|
|
862
|
+
gateActedById: 'gateActedById',
|
|
863
|
+
gateDecision: 'gateDecision',
|
|
864
|
+
gateComment: 'gateComment',
|
|
798
865
|
dueDate: 'dueDate',
|
|
799
866
|
completedAt: 'completedAt',
|
|
800
867
|
createdAt: 'createdAt',
|
|
@@ -1227,6 +1294,37 @@ export const TenantMembershipOrderByRelevanceFieldEnum = {
|
|
|
1227
1294
|
tenantId: 'tenantId',
|
|
1228
1295
|
roleId: 'roleId'
|
|
1229
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
|
+
};
|
|
1230
1328
|
export const TenantOrderByRelevanceFieldEnum = {
|
|
1231
1329
|
id: 'id',
|
|
1232
1330
|
name: 'name',
|
|
@@ -1389,7 +1487,9 @@ export const DocumentationPlanStepOrderByRelevanceFieldEnum = {
|
|
|
1389
1487
|
name: 'name',
|
|
1390
1488
|
documentType: 'documentType',
|
|
1391
1489
|
description: 'description',
|
|
1392
|
-
allowedMimeTypes: 'allowedMimeTypes'
|
|
1490
|
+
allowedMimeTypes: 'allowedMimeTypes',
|
|
1491
|
+
gateRoleId: 'gateRoleId',
|
|
1492
|
+
gateInstructions: 'gateInstructions'
|
|
1393
1493
|
};
|
|
1394
1494
|
export const QuestionnairePlanOrderByRelevanceFieldEnum = {
|
|
1395
1495
|
id: 'id',
|
|
@@ -1402,8 +1502,7 @@ export const QuestionnairePlanQuestionOrderByRelevanceFieldEnum = {
|
|
|
1402
1502
|
questionnairePlanId: 'questionnairePlanId',
|
|
1403
1503
|
questionKey: 'questionKey',
|
|
1404
1504
|
questionText: 'questionText',
|
|
1405
|
-
helpText: 'helpText'
|
|
1406
|
-
category: 'category'
|
|
1505
|
+
helpText: 'helpText'
|
|
1407
1506
|
};
|
|
1408
1507
|
export const PaymentPlanOrderByRelevanceFieldEnum = {
|
|
1409
1508
|
id: 'id',
|
|
@@ -1520,6 +1619,7 @@ export const DocumentationPhaseOrderByRelevanceFieldEnum = {
|
|
|
1520
1619
|
tenantId: 'tenantId',
|
|
1521
1620
|
phaseId: 'phaseId',
|
|
1522
1621
|
documentationPlanId: 'documentationPlanId',
|
|
1622
|
+
sourceQuestionnairePhaseId: 'sourceQuestionnairePhaseId',
|
|
1523
1623
|
currentStepId: 'currentStepId'
|
|
1524
1624
|
};
|
|
1525
1625
|
export const PaymentPhaseOrderByRelevanceFieldEnum = {
|
|
@@ -1553,7 +1653,12 @@ export const DocumentationStepOrderByRelevanceFieldEnum = {
|
|
|
1553
1653
|
name: 'name',
|
|
1554
1654
|
description: 'description',
|
|
1555
1655
|
actionReason: 'actionReason',
|
|
1556
|
-
assigneeId: 'assigneeId'
|
|
1656
|
+
assigneeId: 'assigneeId',
|
|
1657
|
+
gateRoleId: 'gateRoleId',
|
|
1658
|
+
gateInstructions: 'gateInstructions',
|
|
1659
|
+
gateActedById: 'gateActedById',
|
|
1660
|
+
gateDecision: 'gateDecision',
|
|
1661
|
+
gateComment: 'gateComment'
|
|
1557
1662
|
};
|
|
1558
1663
|
export const DocumentationStepDocumentOrderByRelevanceFieldEnum = {
|
|
1559
1664
|
id: 'id',
|