@trycompai/db 1.3.22 → 2.0.0
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/client.d.ts +2 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +4 -5
- package/dist/client.ts +5 -2
- package/dist/generated/prisma/client.d.ts +427 -0
- package/dist/generated/prisma/client.d.ts.map +1 -0
- package/dist/generated/prisma/client.js +73 -0
- package/dist/generated/prisma/commonInputTypes.d.ts +2082 -0
- package/dist/generated/prisma/commonInputTypes.d.ts.map +1 -0
- package/dist/generated/prisma/commonInputTypes.js +11 -0
- package/dist/generated/prisma/enums.d.ts +367 -0
- package/dist/generated/prisma/enums.d.ts.map +1 -0
- package/dist/generated/prisma/enums.js +329 -0
- package/dist/generated/prisma/internal/class.d.ts +1000 -0
- package/dist/generated/prisma/internal/class.d.ts.map +1 -0
- package/dist/generated/prisma/internal/class.js +87 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +8063 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -0
- package/dist/generated/prisma/internal/prismaNamespace.js +1256 -0
- package/dist/generated/prisma/models/Account.d.ts +1456 -0
- package/dist/generated/prisma/models/Account.d.ts.map +1 -0
- package/dist/generated/prisma/models/Account.js +2 -0
- package/dist/generated/prisma/models/ApiKey.d.ts +1387 -0
- package/dist/generated/prisma/models/ApiKey.d.ts.map +1 -0
- package/dist/generated/prisma/models/ApiKey.js +2 -0
- package/dist/generated/prisma/models/Attachment.d.ts +1520 -0
- package/dist/generated/prisma/models/Attachment.d.ts.map +1 -0
- package/dist/generated/prisma/models/Attachment.js +2 -0
- package/dist/generated/prisma/models/AuditLog.d.ts +1590 -0
- package/dist/generated/prisma/models/AuditLog.d.ts.map +1 -0
- package/dist/generated/prisma/models/AuditLog.js +2 -0
- package/dist/generated/prisma/models/BrowserAutomation.d.ts +1507 -0
- package/dist/generated/prisma/models/BrowserAutomation.d.ts.map +1 -0
- package/dist/generated/prisma/models/BrowserAutomation.js +2 -0
- package/dist/generated/prisma/models/BrowserAutomationRun.d.ts +1455 -0
- package/dist/generated/prisma/models/BrowserAutomationRun.d.ts.map +1 -0
- package/dist/generated/prisma/models/BrowserAutomationRun.js +2 -0
- package/dist/generated/prisma/models/BrowserbaseContext.d.ts +1139 -0
- package/dist/generated/prisma/models/BrowserbaseContext.d.ts.map +1 -0
- package/dist/generated/prisma/models/BrowserbaseContext.js +2 -0
- package/dist/generated/prisma/models/Comment.d.ts +1502 -0
- package/dist/generated/prisma/models/Comment.d.ts.map +1 -0
- package/dist/generated/prisma/models/Comment.js +2 -0
- package/dist/generated/prisma/models/Context.d.ts +1254 -0
- package/dist/generated/prisma/models/Context.d.ts.map +1 -0
- package/dist/generated/prisma/models/Context.js +2 -0
- package/dist/generated/prisma/models/Control.d.ts +1965 -0
- package/dist/generated/prisma/models/Control.d.ts.map +1 -0
- package/dist/generated/prisma/models/Control.js +2 -0
- package/dist/generated/prisma/models/ControlDocumentType.d.ts +1115 -0
- package/dist/generated/prisma/models/ControlDocumentType.d.ts.map +1 -0
- package/dist/generated/prisma/models/ControlDocumentType.js +2 -0
- package/dist/generated/prisma/models/Device.d.ts +1858 -0
- package/dist/generated/prisma/models/Device.d.ts.map +1 -0
- package/dist/generated/prisma/models/Device.js +2 -0
- package/dist/generated/prisma/models/DynamicCheck.d.ts +1517 -0
- package/dist/generated/prisma/models/DynamicCheck.d.ts.map +1 -0
- package/dist/generated/prisma/models/DynamicCheck.js +2 -0
- package/dist/generated/prisma/models/DynamicIntegration.d.ts +1528 -0
- package/dist/generated/prisma/models/DynamicIntegration.d.ts.map +1 -0
- package/dist/generated/prisma/models/DynamicIntegration.js +2 -0
- package/dist/generated/prisma/models/EmployeeTrainingVideoCompletion.d.ts +1146 -0
- package/dist/generated/prisma/models/EmployeeTrainingVideoCompletion.d.ts.map +1 -0
- package/dist/generated/prisma/models/EmployeeTrainingVideoCompletion.js +2 -0
- package/dist/generated/prisma/models/EvidenceAutomation.d.ts +1533 -0
- package/dist/generated/prisma/models/EvidenceAutomation.d.ts.map +1 -0
- package/dist/generated/prisma/models/EvidenceAutomation.js +2 -0
- package/dist/generated/prisma/models/EvidenceAutomationRun.d.ts +1833 -0
- package/dist/generated/prisma/models/EvidenceAutomationRun.d.ts.map +1 -0
- package/dist/generated/prisma/models/EvidenceAutomationRun.js +2 -0
- package/dist/generated/prisma/models/EvidenceAutomationVersion.d.ts +1331 -0
- package/dist/generated/prisma/models/EvidenceAutomationVersion.d.ts.map +1 -0
- package/dist/generated/prisma/models/EvidenceAutomationVersion.js +2 -0
- package/dist/generated/prisma/models/EvidenceSubmission.d.ts +1905 -0
- package/dist/generated/prisma/models/EvidenceSubmission.d.ts.map +1 -0
- package/dist/generated/prisma/models/EvidenceSubmission.js +2 -0
- package/dist/generated/prisma/models/Finding.d.ts +2386 -0
- package/dist/generated/prisma/models/Finding.d.ts.map +1 -0
- package/dist/generated/prisma/models/Finding.js +2 -0
- package/dist/generated/prisma/models/FindingTemplate.d.ts +1264 -0
- package/dist/generated/prisma/models/FindingTemplate.d.ts.map +1 -0
- package/dist/generated/prisma/models/FindingTemplate.js +2 -0
- package/dist/generated/prisma/models/FleetPolicyResult.d.ts +1484 -0
- package/dist/generated/prisma/models/FleetPolicyResult.d.ts.map +1 -0
- package/dist/generated/prisma/models/FleetPolicyResult.js +2 -0
- package/dist/generated/prisma/models/FrameworkEditorControlTemplate.d.ts +1669 -0
- package/dist/generated/prisma/models/FrameworkEditorControlTemplate.d.ts.map +1 -0
- package/dist/generated/prisma/models/FrameworkEditorControlTemplate.js +2 -0
- package/dist/generated/prisma/models/FrameworkEditorFramework.d.ts +1581 -0
- package/dist/generated/prisma/models/FrameworkEditorFramework.d.ts.map +1 -0
- package/dist/generated/prisma/models/FrameworkEditorFramework.js +2 -0
- package/dist/generated/prisma/models/FrameworkEditorPolicyTemplate.d.ts +1428 -0
- package/dist/generated/prisma/models/FrameworkEditorPolicyTemplate.d.ts.map +1 -0
- package/dist/generated/prisma/models/FrameworkEditorPolicyTemplate.js +2 -0
- package/dist/generated/prisma/models/FrameworkEditorRequirement.d.ts +1525 -0
- package/dist/generated/prisma/models/FrameworkEditorRequirement.d.ts.map +1 -0
- package/dist/generated/prisma/models/FrameworkEditorRequirement.js +2 -0
- package/dist/generated/prisma/models/FrameworkEditorTaskTemplate.d.ts +1434 -0
- package/dist/generated/prisma/models/FrameworkEditorTaskTemplate.d.ts.map +1 -0
- package/dist/generated/prisma/models/FrameworkEditorTaskTemplate.js +2 -0
- package/dist/generated/prisma/models/FrameworkEditorVideo.d.ts +1054 -0
- package/dist/generated/prisma/models/FrameworkEditorVideo.d.ts.map +1 -0
- package/dist/generated/prisma/models/FrameworkEditorVideo.js +2 -0
- package/dist/generated/prisma/models/FrameworkInstance.d.ts +1321 -0
- package/dist/generated/prisma/models/FrameworkInstance.d.ts.map +1 -0
- package/dist/generated/prisma/models/FrameworkInstance.js +2 -0
- package/dist/generated/prisma/models/GlobalVendors.d.ts +1358 -0
- package/dist/generated/prisma/models/GlobalVendors.d.ts.map +1 -0
- package/dist/generated/prisma/models/GlobalVendors.js +2 -0
- package/dist/generated/prisma/models/Integration.d.ts +1363 -0
- package/dist/generated/prisma/models/Integration.d.ts.map +1 -0
- package/dist/generated/prisma/models/Integration.js +2 -0
- package/dist/generated/prisma/models/IntegrationCheckResult.d.ts +1408 -0
- package/dist/generated/prisma/models/IntegrationCheckResult.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationCheckResult.js +2 -0
- package/dist/generated/prisma/models/IntegrationCheckRun.d.ts +1958 -0
- package/dist/generated/prisma/models/IntegrationCheckRun.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationCheckRun.js +2 -0
- package/dist/generated/prisma/models/IntegrationConnection.d.ts +2472 -0
- package/dist/generated/prisma/models/IntegrationConnection.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationConnection.js +2 -0
- package/dist/generated/prisma/models/IntegrationCredentialVersion.d.ts +1298 -0
- package/dist/generated/prisma/models/IntegrationCredentialVersion.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationCredentialVersion.js +2 -0
- package/dist/generated/prisma/models/IntegrationOAuthApp.d.ts +1362 -0
- package/dist/generated/prisma/models/IntegrationOAuthApp.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationOAuthApp.js +2 -0
- package/dist/generated/prisma/models/IntegrationOAuthState.d.ts +1131 -0
- package/dist/generated/prisma/models/IntegrationOAuthState.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationOAuthState.js +2 -0
- package/dist/generated/prisma/models/IntegrationPlatformCredential.d.ts +1237 -0
- package/dist/generated/prisma/models/IntegrationPlatformCredential.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationPlatformCredential.js +2 -0
- package/dist/generated/prisma/models/IntegrationPlatformFinding.d.ts +1652 -0
- package/dist/generated/prisma/models/IntegrationPlatformFinding.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationPlatformFinding.js +2 -0
- package/dist/generated/prisma/models/IntegrationProvider.d.ts +1300 -0
- package/dist/generated/prisma/models/IntegrationProvider.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationProvider.js +2 -0
- package/dist/generated/prisma/models/IntegrationResult.d.ts +1539 -0
- package/dist/generated/prisma/models/IntegrationResult.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationResult.js +2 -0
- package/dist/generated/prisma/models/IntegrationRun.d.ts +1596 -0
- package/dist/generated/prisma/models/IntegrationRun.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationRun.js +2 -0
- package/dist/generated/prisma/models/IntegrationSyncLog.d.ts +1716 -0
- package/dist/generated/prisma/models/IntegrationSyncLog.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationSyncLog.js +2 -0
- package/dist/generated/prisma/models/Invitation.d.ts +1404 -0
- package/dist/generated/prisma/models/Invitation.d.ts.map +1 -0
- package/dist/generated/prisma/models/Invitation.js +2 -0
- package/dist/generated/prisma/models/Jwks.d.ts +998 -0
- package/dist/generated/prisma/models/Jwks.d.ts.map +1 -0
- package/dist/generated/prisma/models/Jwks.js +2 -0
- package/dist/generated/prisma/models/KnowledgeBaseDocument.d.ts +1463 -0
- package/dist/generated/prisma/models/KnowledgeBaseDocument.d.ts.map +1 -0
- package/dist/generated/prisma/models/KnowledgeBaseDocument.js +2 -0
- package/dist/generated/prisma/models/Member.d.ts +5530 -0
- package/dist/generated/prisma/models/Member.d.ts.map +1 -0
- package/dist/generated/prisma/models/Member.js +2 -0
- package/dist/generated/prisma/models/Onboarding.d.ts +1376 -0
- package/dist/generated/prisma/models/Onboarding.d.ts.map +1 -0
- package/dist/generated/prisma/models/Onboarding.js +2 -0
- package/dist/generated/prisma/models/Organization.d.ts +14367 -0
- package/dist/generated/prisma/models/Organization.d.ts.map +1 -0
- package/dist/generated/prisma/models/Organization.js +2 -0
- package/dist/generated/prisma/models/OrganizationBilling.d.ts +1222 -0
- package/dist/generated/prisma/models/OrganizationBilling.d.ts.map +1 -0
- package/dist/generated/prisma/models/OrganizationBilling.js +2 -0
- package/dist/generated/prisma/models/OrganizationChart.d.ts +1248 -0
- package/dist/generated/prisma/models/OrganizationChart.d.ts.map +1 -0
- package/dist/generated/prisma/models/OrganizationChart.js +2 -0
- package/dist/generated/prisma/models/OrganizationRole.d.ts +1251 -0
- package/dist/generated/prisma/models/OrganizationRole.d.ts.map +1 -0
- package/dist/generated/prisma/models/OrganizationRole.js +2 -0
- package/dist/generated/prisma/models/PentestSubscription.d.ts +1497 -0
- package/dist/generated/prisma/models/PentestSubscription.d.ts.map +1 -0
- package/dist/generated/prisma/models/PentestSubscription.js +2 -0
- package/dist/generated/prisma/models/Policy.d.ts +3356 -0
- package/dist/generated/prisma/models/Policy.d.ts.map +1 -0
- package/dist/generated/prisma/models/Policy.js +2 -0
- package/dist/generated/prisma/models/PolicyVersion.d.ts +1619 -0
- package/dist/generated/prisma/models/PolicyVersion.d.ts.map +1 -0
- package/dist/generated/prisma/models/PolicyVersion.js +2 -0
- package/dist/generated/prisma/models/Questionnaire.d.ts +1808 -0
- package/dist/generated/prisma/models/Questionnaire.d.ts.map +1 -0
- package/dist/generated/prisma/models/Questionnaire.js +2 -0
- package/dist/generated/prisma/models/QuestionnaireQuestionAnswer.d.ts +1422 -0
- package/dist/generated/prisma/models/QuestionnaireQuestionAnswer.d.ts.map +1 -0
- package/dist/generated/prisma/models/QuestionnaireQuestionAnswer.js +2 -0
- package/dist/generated/prisma/models/RequirementMap.d.ts +1345 -0
- package/dist/generated/prisma/models/RequirementMap.d.ts.map +1 -0
- package/dist/generated/prisma/models/RequirementMap.js +2 -0
- package/dist/generated/prisma/models/Risk.d.ts +1975 -0
- package/dist/generated/prisma/models/Risk.d.ts.map +1 -0
- package/dist/generated/prisma/models/Risk.js +2 -0
- package/dist/generated/prisma/models/RoleNotificationSetting.d.ts +1391 -0
- package/dist/generated/prisma/models/RoleNotificationSetting.d.ts.map +1 -0
- package/dist/generated/prisma/models/RoleNotificationSetting.js +2 -0
- package/dist/generated/prisma/models/SOAAnswer.d.ts +1498 -0
- package/dist/generated/prisma/models/SOAAnswer.d.ts.map +1 -0
- package/dist/generated/prisma/models/SOAAnswer.js +2 -0
- package/dist/generated/prisma/models/SOADocument.d.ts +2272 -0
- package/dist/generated/prisma/models/SOADocument.d.ts.map +1 -0
- package/dist/generated/prisma/models/SOADocument.js +2 -0
- package/dist/generated/prisma/models/SOAFrameworkConfiguration.d.ts +1445 -0
- package/dist/generated/prisma/models/SOAFrameworkConfiguration.d.ts.map +1 -0
- package/dist/generated/prisma/models/SOAFrameworkConfiguration.js +2 -0
- package/dist/generated/prisma/models/Secret.d.ts +1321 -0
- package/dist/generated/prisma/models/Secret.d.ts.map +1 -0
- package/dist/generated/prisma/models/Secret.js +2 -0
- package/dist/generated/prisma/models/SecurityPenetrationTestRun.d.ts +1176 -0
- package/dist/generated/prisma/models/SecurityPenetrationTestRun.d.ts.map +1 -0
- package/dist/generated/prisma/models/SecurityPenetrationTestRun.js +2 -0
- package/dist/generated/prisma/models/SecurityQuestionnaireManualAnswer.d.ts +1510 -0
- package/dist/generated/prisma/models/SecurityQuestionnaireManualAnswer.d.ts.map +1 -0
- package/dist/generated/prisma/models/SecurityQuestionnaireManualAnswer.js +2 -0
- package/dist/generated/prisma/models/Session.d.ts +1351 -0
- package/dist/generated/prisma/models/Session.d.ts.map +1 -0
- package/dist/generated/prisma/models/Session.js +2 -0
- package/dist/generated/prisma/models/Task.d.ts +3980 -0
- package/dist/generated/prisma/models/Task.d.ts.map +1 -0
- package/dist/generated/prisma/models/Task.js +2 -0
- package/dist/generated/prisma/models/TaskItem.d.ts +1961 -0
- package/dist/generated/prisma/models/TaskItem.d.ts.map +1 -0
- package/dist/generated/prisma/models/TaskItem.js +2 -0
- package/dist/generated/prisma/models/Trust.d.ts +2242 -0
- package/dist/generated/prisma/models/Trust.d.ts.map +1 -0
- package/dist/generated/prisma/models/Trust.js +2 -0
- package/dist/generated/prisma/models/TrustAccessGrant.d.ts +1888 -0
- package/dist/generated/prisma/models/TrustAccessGrant.d.ts.map +1 -0
- package/dist/generated/prisma/models/TrustAccessGrant.js +2 -0
- package/dist/generated/prisma/models/TrustAccessRequest.d.ts +2103 -0
- package/dist/generated/prisma/models/TrustAccessRequest.d.ts.map +1 -0
- package/dist/generated/prisma/models/TrustAccessRequest.js +2 -0
- package/dist/generated/prisma/models/TrustCustomLink.d.ts +1354 -0
- package/dist/generated/prisma/models/TrustCustomLink.d.ts.map +1 -0
- package/dist/generated/prisma/models/TrustCustomLink.js +2 -0
- package/dist/generated/prisma/models/TrustDocument.d.ts +1281 -0
- package/dist/generated/prisma/models/TrustDocument.d.ts.map +1 -0
- package/dist/generated/prisma/models/TrustDocument.js +2 -0
- package/dist/generated/prisma/models/TrustNDAAgreement.d.ts +1877 -0
- package/dist/generated/prisma/models/TrustNDAAgreement.d.ts.map +1 -0
- package/dist/generated/prisma/models/TrustNDAAgreement.js +2 -0
- package/dist/generated/prisma/models/TrustResource.d.ts +1328 -0
- package/dist/generated/prisma/models/TrustResource.d.ts.map +1 -0
- package/dist/generated/prisma/models/TrustResource.js +2 -0
- package/dist/generated/prisma/models/User.d.ts +3070 -0
- package/dist/generated/prisma/models/User.d.ts.map +1 -0
- package/dist/generated/prisma/models/User.js +2 -0
- package/dist/generated/prisma/models/Vendor.d.ts +2307 -0
- package/dist/generated/prisma/models/Vendor.d.ts.map +1 -0
- package/dist/generated/prisma/models/Vendor.js +2 -0
- package/dist/generated/prisma/models/VendorContact.d.ts +1246 -0
- package/dist/generated/prisma/models/VendorContact.d.ts.map +1 -0
- package/dist/generated/prisma/models/VendorContact.js +2 -0
- package/dist/generated/prisma/models/Verification.d.ts +1026 -0
- package/dist/generated/prisma/models/Verification.d.ts.map +1 -0
- package/dist/generated/prisma/models/Verification.js +2 -0
- package/dist/generated/prisma/models.d.ts +82 -0
- package/dist/generated/prisma/models.d.ts.map +1 -0
- package/dist/generated/prisma/models.js +2 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -3
- package/dist/index.ts +1 -2
- package/dist/postinstall.js +1 -1
- package/dist/schema.prisma +455 -39
- package/package.json +56 -55
|
@@ -0,0 +1,1222 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
3
|
+
/**
|
|
4
|
+
* Model OrganizationBilling
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export type OrganizationBillingModel = runtime.Types.Result.DefaultSelection<Prisma.$OrganizationBillingPayload>;
|
|
8
|
+
export type AggregateOrganizationBilling = {
|
|
9
|
+
_count: OrganizationBillingCountAggregateOutputType | null;
|
|
10
|
+
_min: OrganizationBillingMinAggregateOutputType | null;
|
|
11
|
+
_max: OrganizationBillingMaxAggregateOutputType | null;
|
|
12
|
+
};
|
|
13
|
+
export type OrganizationBillingMinAggregateOutputType = {
|
|
14
|
+
id: string | null;
|
|
15
|
+
organizationId: string | null;
|
|
16
|
+
stripeCustomerId: string | null;
|
|
17
|
+
createdAt: Date | null;
|
|
18
|
+
updatedAt: Date | null;
|
|
19
|
+
};
|
|
20
|
+
export type OrganizationBillingMaxAggregateOutputType = {
|
|
21
|
+
id: string | null;
|
|
22
|
+
organizationId: string | null;
|
|
23
|
+
stripeCustomerId: string | null;
|
|
24
|
+
createdAt: Date | null;
|
|
25
|
+
updatedAt: Date | null;
|
|
26
|
+
};
|
|
27
|
+
export type OrganizationBillingCountAggregateOutputType = {
|
|
28
|
+
id: number;
|
|
29
|
+
organizationId: number;
|
|
30
|
+
stripeCustomerId: number;
|
|
31
|
+
createdAt: number;
|
|
32
|
+
updatedAt: number;
|
|
33
|
+
_all: number;
|
|
34
|
+
};
|
|
35
|
+
export type OrganizationBillingMinAggregateInputType = {
|
|
36
|
+
id?: true;
|
|
37
|
+
organizationId?: true;
|
|
38
|
+
stripeCustomerId?: true;
|
|
39
|
+
createdAt?: true;
|
|
40
|
+
updatedAt?: true;
|
|
41
|
+
};
|
|
42
|
+
export type OrganizationBillingMaxAggregateInputType = {
|
|
43
|
+
id?: true;
|
|
44
|
+
organizationId?: true;
|
|
45
|
+
stripeCustomerId?: true;
|
|
46
|
+
createdAt?: true;
|
|
47
|
+
updatedAt?: true;
|
|
48
|
+
};
|
|
49
|
+
export type OrganizationBillingCountAggregateInputType = {
|
|
50
|
+
id?: true;
|
|
51
|
+
organizationId?: true;
|
|
52
|
+
stripeCustomerId?: true;
|
|
53
|
+
createdAt?: true;
|
|
54
|
+
updatedAt?: true;
|
|
55
|
+
_all?: true;
|
|
56
|
+
};
|
|
57
|
+
export type OrganizationBillingAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
58
|
+
/**
|
|
59
|
+
* Filter which OrganizationBilling to aggregate.
|
|
60
|
+
*/
|
|
61
|
+
where?: Prisma.OrganizationBillingWhereInput;
|
|
62
|
+
/**
|
|
63
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
64
|
+
*
|
|
65
|
+
* Determine the order of OrganizationBillings to fetch.
|
|
66
|
+
*/
|
|
67
|
+
orderBy?: Prisma.OrganizationBillingOrderByWithRelationInput | Prisma.OrganizationBillingOrderByWithRelationInput[];
|
|
68
|
+
/**
|
|
69
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
70
|
+
*
|
|
71
|
+
* Sets the start position
|
|
72
|
+
*/
|
|
73
|
+
cursor?: Prisma.OrganizationBillingWhereUniqueInput;
|
|
74
|
+
/**
|
|
75
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
76
|
+
*
|
|
77
|
+
* Take `±n` OrganizationBillings from the position of the cursor.
|
|
78
|
+
*/
|
|
79
|
+
take?: number;
|
|
80
|
+
/**
|
|
81
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
82
|
+
*
|
|
83
|
+
* Skip the first `n` OrganizationBillings.
|
|
84
|
+
*/
|
|
85
|
+
skip?: number;
|
|
86
|
+
/**
|
|
87
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
88
|
+
*
|
|
89
|
+
* Count returned OrganizationBillings
|
|
90
|
+
**/
|
|
91
|
+
_count?: true | OrganizationBillingCountAggregateInputType;
|
|
92
|
+
/**
|
|
93
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
94
|
+
*
|
|
95
|
+
* Select which fields to find the minimum value
|
|
96
|
+
**/
|
|
97
|
+
_min?: OrganizationBillingMinAggregateInputType;
|
|
98
|
+
/**
|
|
99
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
100
|
+
*
|
|
101
|
+
* Select which fields to find the maximum value
|
|
102
|
+
**/
|
|
103
|
+
_max?: OrganizationBillingMaxAggregateInputType;
|
|
104
|
+
};
|
|
105
|
+
export type GetOrganizationBillingAggregateType<T extends OrganizationBillingAggregateArgs> = {
|
|
106
|
+
[P in keyof T & keyof AggregateOrganizationBilling]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateOrganizationBilling[P]> : Prisma.GetScalarType<T[P], AggregateOrganizationBilling[P]>;
|
|
107
|
+
};
|
|
108
|
+
export type OrganizationBillingGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
109
|
+
where?: Prisma.OrganizationBillingWhereInput;
|
|
110
|
+
orderBy?: Prisma.OrganizationBillingOrderByWithAggregationInput | Prisma.OrganizationBillingOrderByWithAggregationInput[];
|
|
111
|
+
by: Prisma.OrganizationBillingScalarFieldEnum[] | Prisma.OrganizationBillingScalarFieldEnum;
|
|
112
|
+
having?: Prisma.OrganizationBillingScalarWhereWithAggregatesInput;
|
|
113
|
+
take?: number;
|
|
114
|
+
skip?: number;
|
|
115
|
+
_count?: OrganizationBillingCountAggregateInputType | true;
|
|
116
|
+
_min?: OrganizationBillingMinAggregateInputType;
|
|
117
|
+
_max?: OrganizationBillingMaxAggregateInputType;
|
|
118
|
+
};
|
|
119
|
+
export type OrganizationBillingGroupByOutputType = {
|
|
120
|
+
id: string;
|
|
121
|
+
organizationId: string;
|
|
122
|
+
stripeCustomerId: string;
|
|
123
|
+
createdAt: Date;
|
|
124
|
+
updatedAt: Date;
|
|
125
|
+
_count: OrganizationBillingCountAggregateOutputType | null;
|
|
126
|
+
_min: OrganizationBillingMinAggregateOutputType | null;
|
|
127
|
+
_max: OrganizationBillingMaxAggregateOutputType | null;
|
|
128
|
+
};
|
|
129
|
+
export type GetOrganizationBillingGroupByPayload<T extends OrganizationBillingGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<OrganizationBillingGroupByOutputType, T['by']> & {
|
|
130
|
+
[P in ((keyof T) & (keyof OrganizationBillingGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], OrganizationBillingGroupByOutputType[P]> : Prisma.GetScalarType<T[P], OrganizationBillingGroupByOutputType[P]>;
|
|
131
|
+
}>>;
|
|
132
|
+
export type OrganizationBillingWhereInput = {
|
|
133
|
+
AND?: Prisma.OrganizationBillingWhereInput | Prisma.OrganizationBillingWhereInput[];
|
|
134
|
+
OR?: Prisma.OrganizationBillingWhereInput[];
|
|
135
|
+
NOT?: Prisma.OrganizationBillingWhereInput | Prisma.OrganizationBillingWhereInput[];
|
|
136
|
+
id?: Prisma.StringFilter<"OrganizationBilling"> | string;
|
|
137
|
+
organizationId?: Prisma.StringFilter<"OrganizationBilling"> | string;
|
|
138
|
+
stripeCustomerId?: Prisma.StringFilter<"OrganizationBilling"> | string;
|
|
139
|
+
createdAt?: Prisma.DateTimeFilter<"OrganizationBilling"> | Date | string;
|
|
140
|
+
updatedAt?: Prisma.DateTimeFilter<"OrganizationBilling"> | Date | string;
|
|
141
|
+
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
142
|
+
pentestSubscription?: Prisma.XOR<Prisma.PentestSubscriptionNullableScalarRelationFilter, Prisma.PentestSubscriptionWhereInput> | null;
|
|
143
|
+
};
|
|
144
|
+
export type OrganizationBillingOrderByWithRelationInput = {
|
|
145
|
+
id?: Prisma.SortOrder;
|
|
146
|
+
organizationId?: Prisma.SortOrder;
|
|
147
|
+
stripeCustomerId?: Prisma.SortOrder;
|
|
148
|
+
createdAt?: Prisma.SortOrder;
|
|
149
|
+
updatedAt?: Prisma.SortOrder;
|
|
150
|
+
organization?: Prisma.OrganizationOrderByWithRelationInput;
|
|
151
|
+
pentestSubscription?: Prisma.PentestSubscriptionOrderByWithRelationInput;
|
|
152
|
+
};
|
|
153
|
+
export type OrganizationBillingWhereUniqueInput = Prisma.AtLeast<{
|
|
154
|
+
id?: string;
|
|
155
|
+
organizationId?: string;
|
|
156
|
+
AND?: Prisma.OrganizationBillingWhereInput | Prisma.OrganizationBillingWhereInput[];
|
|
157
|
+
OR?: Prisma.OrganizationBillingWhereInput[];
|
|
158
|
+
NOT?: Prisma.OrganizationBillingWhereInput | Prisma.OrganizationBillingWhereInput[];
|
|
159
|
+
stripeCustomerId?: Prisma.StringFilter<"OrganizationBilling"> | string;
|
|
160
|
+
createdAt?: Prisma.DateTimeFilter<"OrganizationBilling"> | Date | string;
|
|
161
|
+
updatedAt?: Prisma.DateTimeFilter<"OrganizationBilling"> | Date | string;
|
|
162
|
+
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
163
|
+
pentestSubscription?: Prisma.XOR<Prisma.PentestSubscriptionNullableScalarRelationFilter, Prisma.PentestSubscriptionWhereInput> | null;
|
|
164
|
+
}, "id" | "organizationId">;
|
|
165
|
+
export type OrganizationBillingOrderByWithAggregationInput = {
|
|
166
|
+
id?: Prisma.SortOrder;
|
|
167
|
+
organizationId?: Prisma.SortOrder;
|
|
168
|
+
stripeCustomerId?: Prisma.SortOrder;
|
|
169
|
+
createdAt?: Prisma.SortOrder;
|
|
170
|
+
updatedAt?: Prisma.SortOrder;
|
|
171
|
+
_count?: Prisma.OrganizationBillingCountOrderByAggregateInput;
|
|
172
|
+
_max?: Prisma.OrganizationBillingMaxOrderByAggregateInput;
|
|
173
|
+
_min?: Prisma.OrganizationBillingMinOrderByAggregateInput;
|
|
174
|
+
};
|
|
175
|
+
export type OrganizationBillingScalarWhereWithAggregatesInput = {
|
|
176
|
+
AND?: Prisma.OrganizationBillingScalarWhereWithAggregatesInput | Prisma.OrganizationBillingScalarWhereWithAggregatesInput[];
|
|
177
|
+
OR?: Prisma.OrganizationBillingScalarWhereWithAggregatesInput[];
|
|
178
|
+
NOT?: Prisma.OrganizationBillingScalarWhereWithAggregatesInput | Prisma.OrganizationBillingScalarWhereWithAggregatesInput[];
|
|
179
|
+
id?: Prisma.StringWithAggregatesFilter<"OrganizationBilling"> | string;
|
|
180
|
+
organizationId?: Prisma.StringWithAggregatesFilter<"OrganizationBilling"> | string;
|
|
181
|
+
stripeCustomerId?: Prisma.StringWithAggregatesFilter<"OrganizationBilling"> | string;
|
|
182
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"OrganizationBilling"> | Date | string;
|
|
183
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"OrganizationBilling"> | Date | string;
|
|
184
|
+
};
|
|
185
|
+
export type OrganizationBillingCreateInput = {
|
|
186
|
+
id?: string;
|
|
187
|
+
stripeCustomerId: string;
|
|
188
|
+
createdAt?: Date | string;
|
|
189
|
+
updatedAt?: Date | string;
|
|
190
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutBillingInput;
|
|
191
|
+
pentestSubscription?: Prisma.PentestSubscriptionCreateNestedOneWithoutOrganizationBillingInput;
|
|
192
|
+
};
|
|
193
|
+
export type OrganizationBillingUncheckedCreateInput = {
|
|
194
|
+
id?: string;
|
|
195
|
+
organizationId: string;
|
|
196
|
+
stripeCustomerId: string;
|
|
197
|
+
createdAt?: Date | string;
|
|
198
|
+
updatedAt?: Date | string;
|
|
199
|
+
pentestSubscription?: Prisma.PentestSubscriptionUncheckedCreateNestedOneWithoutOrganizationBillingInput;
|
|
200
|
+
};
|
|
201
|
+
export type OrganizationBillingUpdateInput = {
|
|
202
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
203
|
+
stripeCustomerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
204
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
205
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
206
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutBillingNestedInput;
|
|
207
|
+
pentestSubscription?: Prisma.PentestSubscriptionUpdateOneWithoutOrganizationBillingNestedInput;
|
|
208
|
+
};
|
|
209
|
+
export type OrganizationBillingUncheckedUpdateInput = {
|
|
210
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
211
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
212
|
+
stripeCustomerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
213
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
214
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
215
|
+
pentestSubscription?: Prisma.PentestSubscriptionUncheckedUpdateOneWithoutOrganizationBillingNestedInput;
|
|
216
|
+
};
|
|
217
|
+
export type OrganizationBillingCreateManyInput = {
|
|
218
|
+
id?: string;
|
|
219
|
+
organizationId: string;
|
|
220
|
+
stripeCustomerId: string;
|
|
221
|
+
createdAt?: Date | string;
|
|
222
|
+
updatedAt?: Date | string;
|
|
223
|
+
};
|
|
224
|
+
export type OrganizationBillingUpdateManyMutationInput = {
|
|
225
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
226
|
+
stripeCustomerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
227
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
228
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
229
|
+
};
|
|
230
|
+
export type OrganizationBillingUncheckedUpdateManyInput = {
|
|
231
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
232
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
233
|
+
stripeCustomerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
234
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
235
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
236
|
+
};
|
|
237
|
+
export type OrganizationBillingCountOrderByAggregateInput = {
|
|
238
|
+
id?: Prisma.SortOrder;
|
|
239
|
+
organizationId?: Prisma.SortOrder;
|
|
240
|
+
stripeCustomerId?: Prisma.SortOrder;
|
|
241
|
+
createdAt?: Prisma.SortOrder;
|
|
242
|
+
updatedAt?: Prisma.SortOrder;
|
|
243
|
+
};
|
|
244
|
+
export type OrganizationBillingMaxOrderByAggregateInput = {
|
|
245
|
+
id?: Prisma.SortOrder;
|
|
246
|
+
organizationId?: Prisma.SortOrder;
|
|
247
|
+
stripeCustomerId?: Prisma.SortOrder;
|
|
248
|
+
createdAt?: Prisma.SortOrder;
|
|
249
|
+
updatedAt?: Prisma.SortOrder;
|
|
250
|
+
};
|
|
251
|
+
export type OrganizationBillingMinOrderByAggregateInput = {
|
|
252
|
+
id?: Prisma.SortOrder;
|
|
253
|
+
organizationId?: Prisma.SortOrder;
|
|
254
|
+
stripeCustomerId?: Prisma.SortOrder;
|
|
255
|
+
createdAt?: Prisma.SortOrder;
|
|
256
|
+
updatedAt?: Prisma.SortOrder;
|
|
257
|
+
};
|
|
258
|
+
export type OrganizationBillingNullableScalarRelationFilter = {
|
|
259
|
+
is?: Prisma.OrganizationBillingWhereInput | null;
|
|
260
|
+
isNot?: Prisma.OrganizationBillingWhereInput | null;
|
|
261
|
+
};
|
|
262
|
+
export type OrganizationBillingScalarRelationFilter = {
|
|
263
|
+
is?: Prisma.OrganizationBillingWhereInput;
|
|
264
|
+
isNot?: Prisma.OrganizationBillingWhereInput;
|
|
265
|
+
};
|
|
266
|
+
export type OrganizationBillingCreateNestedOneWithoutOrganizationInput = {
|
|
267
|
+
create?: Prisma.XOR<Prisma.OrganizationBillingCreateWithoutOrganizationInput, Prisma.OrganizationBillingUncheckedCreateWithoutOrganizationInput>;
|
|
268
|
+
connectOrCreate?: Prisma.OrganizationBillingCreateOrConnectWithoutOrganizationInput;
|
|
269
|
+
connect?: Prisma.OrganizationBillingWhereUniqueInput;
|
|
270
|
+
};
|
|
271
|
+
export type OrganizationBillingUncheckedCreateNestedOneWithoutOrganizationInput = {
|
|
272
|
+
create?: Prisma.XOR<Prisma.OrganizationBillingCreateWithoutOrganizationInput, Prisma.OrganizationBillingUncheckedCreateWithoutOrganizationInput>;
|
|
273
|
+
connectOrCreate?: Prisma.OrganizationBillingCreateOrConnectWithoutOrganizationInput;
|
|
274
|
+
connect?: Prisma.OrganizationBillingWhereUniqueInput;
|
|
275
|
+
};
|
|
276
|
+
export type OrganizationBillingUpdateOneWithoutOrganizationNestedInput = {
|
|
277
|
+
create?: Prisma.XOR<Prisma.OrganizationBillingCreateWithoutOrganizationInput, Prisma.OrganizationBillingUncheckedCreateWithoutOrganizationInput>;
|
|
278
|
+
connectOrCreate?: Prisma.OrganizationBillingCreateOrConnectWithoutOrganizationInput;
|
|
279
|
+
upsert?: Prisma.OrganizationBillingUpsertWithoutOrganizationInput;
|
|
280
|
+
disconnect?: Prisma.OrganizationBillingWhereInput | boolean;
|
|
281
|
+
delete?: Prisma.OrganizationBillingWhereInput | boolean;
|
|
282
|
+
connect?: Prisma.OrganizationBillingWhereUniqueInput;
|
|
283
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.OrganizationBillingUpdateToOneWithWhereWithoutOrganizationInput, Prisma.OrganizationBillingUpdateWithoutOrganizationInput>, Prisma.OrganizationBillingUncheckedUpdateWithoutOrganizationInput>;
|
|
284
|
+
};
|
|
285
|
+
export type OrganizationBillingUncheckedUpdateOneWithoutOrganizationNestedInput = {
|
|
286
|
+
create?: Prisma.XOR<Prisma.OrganizationBillingCreateWithoutOrganizationInput, Prisma.OrganizationBillingUncheckedCreateWithoutOrganizationInput>;
|
|
287
|
+
connectOrCreate?: Prisma.OrganizationBillingCreateOrConnectWithoutOrganizationInput;
|
|
288
|
+
upsert?: Prisma.OrganizationBillingUpsertWithoutOrganizationInput;
|
|
289
|
+
disconnect?: Prisma.OrganizationBillingWhereInput | boolean;
|
|
290
|
+
delete?: Prisma.OrganizationBillingWhereInput | boolean;
|
|
291
|
+
connect?: Prisma.OrganizationBillingWhereUniqueInput;
|
|
292
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.OrganizationBillingUpdateToOneWithWhereWithoutOrganizationInput, Prisma.OrganizationBillingUpdateWithoutOrganizationInput>, Prisma.OrganizationBillingUncheckedUpdateWithoutOrganizationInput>;
|
|
293
|
+
};
|
|
294
|
+
export type OrganizationBillingCreateNestedOneWithoutPentestSubscriptionInput = {
|
|
295
|
+
create?: Prisma.XOR<Prisma.OrganizationBillingCreateWithoutPentestSubscriptionInput, Prisma.OrganizationBillingUncheckedCreateWithoutPentestSubscriptionInput>;
|
|
296
|
+
connectOrCreate?: Prisma.OrganizationBillingCreateOrConnectWithoutPentestSubscriptionInput;
|
|
297
|
+
connect?: Prisma.OrganizationBillingWhereUniqueInput;
|
|
298
|
+
};
|
|
299
|
+
export type OrganizationBillingUpdateOneRequiredWithoutPentestSubscriptionNestedInput = {
|
|
300
|
+
create?: Prisma.XOR<Prisma.OrganizationBillingCreateWithoutPentestSubscriptionInput, Prisma.OrganizationBillingUncheckedCreateWithoutPentestSubscriptionInput>;
|
|
301
|
+
connectOrCreate?: Prisma.OrganizationBillingCreateOrConnectWithoutPentestSubscriptionInput;
|
|
302
|
+
upsert?: Prisma.OrganizationBillingUpsertWithoutPentestSubscriptionInput;
|
|
303
|
+
connect?: Prisma.OrganizationBillingWhereUniqueInput;
|
|
304
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.OrganizationBillingUpdateToOneWithWhereWithoutPentestSubscriptionInput, Prisma.OrganizationBillingUpdateWithoutPentestSubscriptionInput>, Prisma.OrganizationBillingUncheckedUpdateWithoutPentestSubscriptionInput>;
|
|
305
|
+
};
|
|
306
|
+
export type OrganizationBillingCreateWithoutOrganizationInput = {
|
|
307
|
+
id?: string;
|
|
308
|
+
stripeCustomerId: string;
|
|
309
|
+
createdAt?: Date | string;
|
|
310
|
+
updatedAt?: Date | string;
|
|
311
|
+
pentestSubscription?: Prisma.PentestSubscriptionCreateNestedOneWithoutOrganizationBillingInput;
|
|
312
|
+
};
|
|
313
|
+
export type OrganizationBillingUncheckedCreateWithoutOrganizationInput = {
|
|
314
|
+
id?: string;
|
|
315
|
+
stripeCustomerId: string;
|
|
316
|
+
createdAt?: Date | string;
|
|
317
|
+
updatedAt?: Date | string;
|
|
318
|
+
pentestSubscription?: Prisma.PentestSubscriptionUncheckedCreateNestedOneWithoutOrganizationBillingInput;
|
|
319
|
+
};
|
|
320
|
+
export type OrganizationBillingCreateOrConnectWithoutOrganizationInput = {
|
|
321
|
+
where: Prisma.OrganizationBillingWhereUniqueInput;
|
|
322
|
+
create: Prisma.XOR<Prisma.OrganizationBillingCreateWithoutOrganizationInput, Prisma.OrganizationBillingUncheckedCreateWithoutOrganizationInput>;
|
|
323
|
+
};
|
|
324
|
+
export type OrganizationBillingUpsertWithoutOrganizationInput = {
|
|
325
|
+
update: Prisma.XOR<Prisma.OrganizationBillingUpdateWithoutOrganizationInput, Prisma.OrganizationBillingUncheckedUpdateWithoutOrganizationInput>;
|
|
326
|
+
create: Prisma.XOR<Prisma.OrganizationBillingCreateWithoutOrganizationInput, Prisma.OrganizationBillingUncheckedCreateWithoutOrganizationInput>;
|
|
327
|
+
where?: Prisma.OrganizationBillingWhereInput;
|
|
328
|
+
};
|
|
329
|
+
export type OrganizationBillingUpdateToOneWithWhereWithoutOrganizationInput = {
|
|
330
|
+
where?: Prisma.OrganizationBillingWhereInput;
|
|
331
|
+
data: Prisma.XOR<Prisma.OrganizationBillingUpdateWithoutOrganizationInput, Prisma.OrganizationBillingUncheckedUpdateWithoutOrganizationInput>;
|
|
332
|
+
};
|
|
333
|
+
export type OrganizationBillingUpdateWithoutOrganizationInput = {
|
|
334
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
335
|
+
stripeCustomerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
336
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
337
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
338
|
+
pentestSubscription?: Prisma.PentestSubscriptionUpdateOneWithoutOrganizationBillingNestedInput;
|
|
339
|
+
};
|
|
340
|
+
export type OrganizationBillingUncheckedUpdateWithoutOrganizationInput = {
|
|
341
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
342
|
+
stripeCustomerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
343
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
344
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
345
|
+
pentestSubscription?: Prisma.PentestSubscriptionUncheckedUpdateOneWithoutOrganizationBillingNestedInput;
|
|
346
|
+
};
|
|
347
|
+
export type OrganizationBillingCreateWithoutPentestSubscriptionInput = {
|
|
348
|
+
id?: string;
|
|
349
|
+
stripeCustomerId: string;
|
|
350
|
+
createdAt?: Date | string;
|
|
351
|
+
updatedAt?: Date | string;
|
|
352
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutBillingInput;
|
|
353
|
+
};
|
|
354
|
+
export type OrganizationBillingUncheckedCreateWithoutPentestSubscriptionInput = {
|
|
355
|
+
id?: string;
|
|
356
|
+
organizationId: string;
|
|
357
|
+
stripeCustomerId: string;
|
|
358
|
+
createdAt?: Date | string;
|
|
359
|
+
updatedAt?: Date | string;
|
|
360
|
+
};
|
|
361
|
+
export type OrganizationBillingCreateOrConnectWithoutPentestSubscriptionInput = {
|
|
362
|
+
where: Prisma.OrganizationBillingWhereUniqueInput;
|
|
363
|
+
create: Prisma.XOR<Prisma.OrganizationBillingCreateWithoutPentestSubscriptionInput, Prisma.OrganizationBillingUncheckedCreateWithoutPentestSubscriptionInput>;
|
|
364
|
+
};
|
|
365
|
+
export type OrganizationBillingUpsertWithoutPentestSubscriptionInput = {
|
|
366
|
+
update: Prisma.XOR<Prisma.OrganizationBillingUpdateWithoutPentestSubscriptionInput, Prisma.OrganizationBillingUncheckedUpdateWithoutPentestSubscriptionInput>;
|
|
367
|
+
create: Prisma.XOR<Prisma.OrganizationBillingCreateWithoutPentestSubscriptionInput, Prisma.OrganizationBillingUncheckedCreateWithoutPentestSubscriptionInput>;
|
|
368
|
+
where?: Prisma.OrganizationBillingWhereInput;
|
|
369
|
+
};
|
|
370
|
+
export type OrganizationBillingUpdateToOneWithWhereWithoutPentestSubscriptionInput = {
|
|
371
|
+
where?: Prisma.OrganizationBillingWhereInput;
|
|
372
|
+
data: Prisma.XOR<Prisma.OrganizationBillingUpdateWithoutPentestSubscriptionInput, Prisma.OrganizationBillingUncheckedUpdateWithoutPentestSubscriptionInput>;
|
|
373
|
+
};
|
|
374
|
+
export type OrganizationBillingUpdateWithoutPentestSubscriptionInput = {
|
|
375
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
376
|
+
stripeCustomerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
377
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
378
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
379
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutBillingNestedInput;
|
|
380
|
+
};
|
|
381
|
+
export type OrganizationBillingUncheckedUpdateWithoutPentestSubscriptionInput = {
|
|
382
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
383
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
384
|
+
stripeCustomerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
385
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
386
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
387
|
+
};
|
|
388
|
+
export type OrganizationBillingSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
389
|
+
id?: boolean;
|
|
390
|
+
organizationId?: boolean;
|
|
391
|
+
stripeCustomerId?: boolean;
|
|
392
|
+
createdAt?: boolean;
|
|
393
|
+
updatedAt?: boolean;
|
|
394
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
395
|
+
pentestSubscription?: boolean | Prisma.OrganizationBilling$pentestSubscriptionArgs<ExtArgs>;
|
|
396
|
+
}, ExtArgs["result"]["organizationBilling"]>;
|
|
397
|
+
export type OrganizationBillingSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
398
|
+
id?: boolean;
|
|
399
|
+
organizationId?: boolean;
|
|
400
|
+
stripeCustomerId?: boolean;
|
|
401
|
+
createdAt?: boolean;
|
|
402
|
+
updatedAt?: boolean;
|
|
403
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
404
|
+
}, ExtArgs["result"]["organizationBilling"]>;
|
|
405
|
+
export type OrganizationBillingSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
406
|
+
id?: boolean;
|
|
407
|
+
organizationId?: boolean;
|
|
408
|
+
stripeCustomerId?: boolean;
|
|
409
|
+
createdAt?: boolean;
|
|
410
|
+
updatedAt?: boolean;
|
|
411
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
412
|
+
}, ExtArgs["result"]["organizationBilling"]>;
|
|
413
|
+
export type OrganizationBillingSelectScalar = {
|
|
414
|
+
id?: boolean;
|
|
415
|
+
organizationId?: boolean;
|
|
416
|
+
stripeCustomerId?: boolean;
|
|
417
|
+
createdAt?: boolean;
|
|
418
|
+
updatedAt?: boolean;
|
|
419
|
+
};
|
|
420
|
+
export type OrganizationBillingOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "organizationId" | "stripeCustomerId" | "createdAt" | "updatedAt", ExtArgs["result"]["organizationBilling"]>;
|
|
421
|
+
export type OrganizationBillingInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
422
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
423
|
+
pentestSubscription?: boolean | Prisma.OrganizationBilling$pentestSubscriptionArgs<ExtArgs>;
|
|
424
|
+
};
|
|
425
|
+
export type OrganizationBillingIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
426
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
427
|
+
};
|
|
428
|
+
export type OrganizationBillingIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
429
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
430
|
+
};
|
|
431
|
+
export type $OrganizationBillingPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
432
|
+
name: "OrganizationBilling";
|
|
433
|
+
objects: {
|
|
434
|
+
organization: Prisma.$OrganizationPayload<ExtArgs>;
|
|
435
|
+
pentestSubscription: Prisma.$PentestSubscriptionPayload<ExtArgs> | null;
|
|
436
|
+
};
|
|
437
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
438
|
+
id: string;
|
|
439
|
+
organizationId: string;
|
|
440
|
+
stripeCustomerId: string;
|
|
441
|
+
createdAt: Date;
|
|
442
|
+
updatedAt: Date;
|
|
443
|
+
}, ExtArgs["result"]["organizationBilling"]>;
|
|
444
|
+
composites: {};
|
|
445
|
+
};
|
|
446
|
+
export type OrganizationBillingGetPayload<S extends boolean | null | undefined | OrganizationBillingDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$OrganizationBillingPayload, S>;
|
|
447
|
+
export type OrganizationBillingCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<OrganizationBillingFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
448
|
+
select?: OrganizationBillingCountAggregateInputType | true;
|
|
449
|
+
};
|
|
450
|
+
export interface OrganizationBillingDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
451
|
+
[K: symbol]: {
|
|
452
|
+
types: Prisma.TypeMap<ExtArgs>['model']['OrganizationBilling'];
|
|
453
|
+
meta: {
|
|
454
|
+
name: 'OrganizationBilling';
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
/**
|
|
458
|
+
* Find zero or one OrganizationBilling that matches the filter.
|
|
459
|
+
* @param {OrganizationBillingFindUniqueArgs} args - Arguments to find a OrganizationBilling
|
|
460
|
+
* @example
|
|
461
|
+
* // Get one OrganizationBilling
|
|
462
|
+
* const organizationBilling = await prisma.organizationBilling.findUnique({
|
|
463
|
+
* where: {
|
|
464
|
+
* // ... provide filter here
|
|
465
|
+
* }
|
|
466
|
+
* })
|
|
467
|
+
*/
|
|
468
|
+
findUnique<T extends OrganizationBillingFindUniqueArgs>(args: Prisma.SelectSubset<T, OrganizationBillingFindUniqueArgs<ExtArgs>>): Prisma.Prisma__OrganizationBillingClient<runtime.Types.Result.GetResult<Prisma.$OrganizationBillingPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
469
|
+
/**
|
|
470
|
+
* Find one OrganizationBilling that matches the filter or throw an error with `error.code='P2025'`
|
|
471
|
+
* if no matches were found.
|
|
472
|
+
* @param {OrganizationBillingFindUniqueOrThrowArgs} args - Arguments to find a OrganizationBilling
|
|
473
|
+
* @example
|
|
474
|
+
* // Get one OrganizationBilling
|
|
475
|
+
* const organizationBilling = await prisma.organizationBilling.findUniqueOrThrow({
|
|
476
|
+
* where: {
|
|
477
|
+
* // ... provide filter here
|
|
478
|
+
* }
|
|
479
|
+
* })
|
|
480
|
+
*/
|
|
481
|
+
findUniqueOrThrow<T extends OrganizationBillingFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, OrganizationBillingFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__OrganizationBillingClient<runtime.Types.Result.GetResult<Prisma.$OrganizationBillingPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
482
|
+
/**
|
|
483
|
+
* Find the first OrganizationBilling that matches the filter.
|
|
484
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
485
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
486
|
+
* @param {OrganizationBillingFindFirstArgs} args - Arguments to find a OrganizationBilling
|
|
487
|
+
* @example
|
|
488
|
+
* // Get one OrganizationBilling
|
|
489
|
+
* const organizationBilling = await prisma.organizationBilling.findFirst({
|
|
490
|
+
* where: {
|
|
491
|
+
* // ... provide filter here
|
|
492
|
+
* }
|
|
493
|
+
* })
|
|
494
|
+
*/
|
|
495
|
+
findFirst<T extends OrganizationBillingFindFirstArgs>(args?: Prisma.SelectSubset<T, OrganizationBillingFindFirstArgs<ExtArgs>>): Prisma.Prisma__OrganizationBillingClient<runtime.Types.Result.GetResult<Prisma.$OrganizationBillingPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
496
|
+
/**
|
|
497
|
+
* Find the first OrganizationBilling that matches the filter or
|
|
498
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
499
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
500
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
501
|
+
* @param {OrganizationBillingFindFirstOrThrowArgs} args - Arguments to find a OrganizationBilling
|
|
502
|
+
* @example
|
|
503
|
+
* // Get one OrganizationBilling
|
|
504
|
+
* const organizationBilling = await prisma.organizationBilling.findFirstOrThrow({
|
|
505
|
+
* where: {
|
|
506
|
+
* // ... provide filter here
|
|
507
|
+
* }
|
|
508
|
+
* })
|
|
509
|
+
*/
|
|
510
|
+
findFirstOrThrow<T extends OrganizationBillingFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, OrganizationBillingFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__OrganizationBillingClient<runtime.Types.Result.GetResult<Prisma.$OrganizationBillingPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
511
|
+
/**
|
|
512
|
+
* Find zero or more OrganizationBillings that matches the filter.
|
|
513
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
514
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
515
|
+
* @param {OrganizationBillingFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
516
|
+
* @example
|
|
517
|
+
* // Get all OrganizationBillings
|
|
518
|
+
* const organizationBillings = await prisma.organizationBilling.findMany()
|
|
519
|
+
*
|
|
520
|
+
* // Get first 10 OrganizationBillings
|
|
521
|
+
* const organizationBillings = await prisma.organizationBilling.findMany({ take: 10 })
|
|
522
|
+
*
|
|
523
|
+
* // Only select the `id`
|
|
524
|
+
* const organizationBillingWithIdOnly = await prisma.organizationBilling.findMany({ select: { id: true } })
|
|
525
|
+
*
|
|
526
|
+
*/
|
|
527
|
+
findMany<T extends OrganizationBillingFindManyArgs>(args?: Prisma.SelectSubset<T, OrganizationBillingFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrganizationBillingPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
528
|
+
/**
|
|
529
|
+
* Create a OrganizationBilling.
|
|
530
|
+
* @param {OrganizationBillingCreateArgs} args - Arguments to create a OrganizationBilling.
|
|
531
|
+
* @example
|
|
532
|
+
* // Create one OrganizationBilling
|
|
533
|
+
* const OrganizationBilling = await prisma.organizationBilling.create({
|
|
534
|
+
* data: {
|
|
535
|
+
* // ... data to create a OrganizationBilling
|
|
536
|
+
* }
|
|
537
|
+
* })
|
|
538
|
+
*
|
|
539
|
+
*/
|
|
540
|
+
create<T extends OrganizationBillingCreateArgs>(args: Prisma.SelectSubset<T, OrganizationBillingCreateArgs<ExtArgs>>): Prisma.Prisma__OrganizationBillingClient<runtime.Types.Result.GetResult<Prisma.$OrganizationBillingPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
541
|
+
/**
|
|
542
|
+
* Create many OrganizationBillings.
|
|
543
|
+
* @param {OrganizationBillingCreateManyArgs} args - Arguments to create many OrganizationBillings.
|
|
544
|
+
* @example
|
|
545
|
+
* // Create many OrganizationBillings
|
|
546
|
+
* const organizationBilling = await prisma.organizationBilling.createMany({
|
|
547
|
+
* data: [
|
|
548
|
+
* // ... provide data here
|
|
549
|
+
* ]
|
|
550
|
+
* })
|
|
551
|
+
*
|
|
552
|
+
*/
|
|
553
|
+
createMany<T extends OrganizationBillingCreateManyArgs>(args?: Prisma.SelectSubset<T, OrganizationBillingCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
554
|
+
/**
|
|
555
|
+
* Create many OrganizationBillings and returns the data saved in the database.
|
|
556
|
+
* @param {OrganizationBillingCreateManyAndReturnArgs} args - Arguments to create many OrganizationBillings.
|
|
557
|
+
* @example
|
|
558
|
+
* // Create many OrganizationBillings
|
|
559
|
+
* const organizationBilling = await prisma.organizationBilling.createManyAndReturn({
|
|
560
|
+
* data: [
|
|
561
|
+
* // ... provide data here
|
|
562
|
+
* ]
|
|
563
|
+
* })
|
|
564
|
+
*
|
|
565
|
+
* // Create many OrganizationBillings and only return the `id`
|
|
566
|
+
* const organizationBillingWithIdOnly = await prisma.organizationBilling.createManyAndReturn({
|
|
567
|
+
* select: { id: true },
|
|
568
|
+
* data: [
|
|
569
|
+
* // ... provide data here
|
|
570
|
+
* ]
|
|
571
|
+
* })
|
|
572
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
573
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
574
|
+
*
|
|
575
|
+
*/
|
|
576
|
+
createManyAndReturn<T extends OrganizationBillingCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, OrganizationBillingCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrganizationBillingPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
577
|
+
/**
|
|
578
|
+
* Delete a OrganizationBilling.
|
|
579
|
+
* @param {OrganizationBillingDeleteArgs} args - Arguments to delete one OrganizationBilling.
|
|
580
|
+
* @example
|
|
581
|
+
* // Delete one OrganizationBilling
|
|
582
|
+
* const OrganizationBilling = await prisma.organizationBilling.delete({
|
|
583
|
+
* where: {
|
|
584
|
+
* // ... filter to delete one OrganizationBilling
|
|
585
|
+
* }
|
|
586
|
+
* })
|
|
587
|
+
*
|
|
588
|
+
*/
|
|
589
|
+
delete<T extends OrganizationBillingDeleteArgs>(args: Prisma.SelectSubset<T, OrganizationBillingDeleteArgs<ExtArgs>>): Prisma.Prisma__OrganizationBillingClient<runtime.Types.Result.GetResult<Prisma.$OrganizationBillingPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
590
|
+
/**
|
|
591
|
+
* Update one OrganizationBilling.
|
|
592
|
+
* @param {OrganizationBillingUpdateArgs} args - Arguments to update one OrganizationBilling.
|
|
593
|
+
* @example
|
|
594
|
+
* // Update one OrganizationBilling
|
|
595
|
+
* const organizationBilling = await prisma.organizationBilling.update({
|
|
596
|
+
* where: {
|
|
597
|
+
* // ... provide filter here
|
|
598
|
+
* },
|
|
599
|
+
* data: {
|
|
600
|
+
* // ... provide data here
|
|
601
|
+
* }
|
|
602
|
+
* })
|
|
603
|
+
*
|
|
604
|
+
*/
|
|
605
|
+
update<T extends OrganizationBillingUpdateArgs>(args: Prisma.SelectSubset<T, OrganizationBillingUpdateArgs<ExtArgs>>): Prisma.Prisma__OrganizationBillingClient<runtime.Types.Result.GetResult<Prisma.$OrganizationBillingPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
606
|
+
/**
|
|
607
|
+
* Delete zero or more OrganizationBillings.
|
|
608
|
+
* @param {OrganizationBillingDeleteManyArgs} args - Arguments to filter OrganizationBillings to delete.
|
|
609
|
+
* @example
|
|
610
|
+
* // Delete a few OrganizationBillings
|
|
611
|
+
* const { count } = await prisma.organizationBilling.deleteMany({
|
|
612
|
+
* where: {
|
|
613
|
+
* // ... provide filter here
|
|
614
|
+
* }
|
|
615
|
+
* })
|
|
616
|
+
*
|
|
617
|
+
*/
|
|
618
|
+
deleteMany<T extends OrganizationBillingDeleteManyArgs>(args?: Prisma.SelectSubset<T, OrganizationBillingDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
619
|
+
/**
|
|
620
|
+
* Update zero or more OrganizationBillings.
|
|
621
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
622
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
623
|
+
* @param {OrganizationBillingUpdateManyArgs} args - Arguments to update one or more rows.
|
|
624
|
+
* @example
|
|
625
|
+
* // Update many OrganizationBillings
|
|
626
|
+
* const organizationBilling = await prisma.organizationBilling.updateMany({
|
|
627
|
+
* where: {
|
|
628
|
+
* // ... provide filter here
|
|
629
|
+
* },
|
|
630
|
+
* data: {
|
|
631
|
+
* // ... provide data here
|
|
632
|
+
* }
|
|
633
|
+
* })
|
|
634
|
+
*
|
|
635
|
+
*/
|
|
636
|
+
updateMany<T extends OrganizationBillingUpdateManyArgs>(args: Prisma.SelectSubset<T, OrganizationBillingUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
637
|
+
/**
|
|
638
|
+
* Update zero or more OrganizationBillings and returns the data updated in the database.
|
|
639
|
+
* @param {OrganizationBillingUpdateManyAndReturnArgs} args - Arguments to update many OrganizationBillings.
|
|
640
|
+
* @example
|
|
641
|
+
* // Update many OrganizationBillings
|
|
642
|
+
* const organizationBilling = await prisma.organizationBilling.updateManyAndReturn({
|
|
643
|
+
* where: {
|
|
644
|
+
* // ... provide filter here
|
|
645
|
+
* },
|
|
646
|
+
* data: [
|
|
647
|
+
* // ... provide data here
|
|
648
|
+
* ]
|
|
649
|
+
* })
|
|
650
|
+
*
|
|
651
|
+
* // Update zero or more OrganizationBillings and only return the `id`
|
|
652
|
+
* const organizationBillingWithIdOnly = await prisma.organizationBilling.updateManyAndReturn({
|
|
653
|
+
* select: { id: true },
|
|
654
|
+
* where: {
|
|
655
|
+
* // ... provide filter here
|
|
656
|
+
* },
|
|
657
|
+
* data: [
|
|
658
|
+
* // ... provide data here
|
|
659
|
+
* ]
|
|
660
|
+
* })
|
|
661
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
662
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
663
|
+
*
|
|
664
|
+
*/
|
|
665
|
+
updateManyAndReturn<T extends OrganizationBillingUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, OrganizationBillingUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrganizationBillingPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
666
|
+
/**
|
|
667
|
+
* Create or update one OrganizationBilling.
|
|
668
|
+
* @param {OrganizationBillingUpsertArgs} args - Arguments to update or create a OrganizationBilling.
|
|
669
|
+
* @example
|
|
670
|
+
* // Update or create a OrganizationBilling
|
|
671
|
+
* const organizationBilling = await prisma.organizationBilling.upsert({
|
|
672
|
+
* create: {
|
|
673
|
+
* // ... data to create a OrganizationBilling
|
|
674
|
+
* },
|
|
675
|
+
* update: {
|
|
676
|
+
* // ... in case it already exists, update
|
|
677
|
+
* },
|
|
678
|
+
* where: {
|
|
679
|
+
* // ... the filter for the OrganizationBilling we want to update
|
|
680
|
+
* }
|
|
681
|
+
* })
|
|
682
|
+
*/
|
|
683
|
+
upsert<T extends OrganizationBillingUpsertArgs>(args: Prisma.SelectSubset<T, OrganizationBillingUpsertArgs<ExtArgs>>): Prisma.Prisma__OrganizationBillingClient<runtime.Types.Result.GetResult<Prisma.$OrganizationBillingPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
684
|
+
/**
|
|
685
|
+
* Count the number of OrganizationBillings.
|
|
686
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
687
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
688
|
+
* @param {OrganizationBillingCountArgs} args - Arguments to filter OrganizationBillings to count.
|
|
689
|
+
* @example
|
|
690
|
+
* // Count the number of OrganizationBillings
|
|
691
|
+
* const count = await prisma.organizationBilling.count({
|
|
692
|
+
* where: {
|
|
693
|
+
* // ... the filter for the OrganizationBillings we want to count
|
|
694
|
+
* }
|
|
695
|
+
* })
|
|
696
|
+
**/
|
|
697
|
+
count<T extends OrganizationBillingCountArgs>(args?: Prisma.Subset<T, OrganizationBillingCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], OrganizationBillingCountAggregateOutputType> : number>;
|
|
698
|
+
/**
|
|
699
|
+
* Allows you to perform aggregations operations on a OrganizationBilling.
|
|
700
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
701
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
702
|
+
* @param {OrganizationBillingAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
703
|
+
* @example
|
|
704
|
+
* // Ordered by age ascending
|
|
705
|
+
* // Where email contains prisma.io
|
|
706
|
+
* // Limited to the 10 users
|
|
707
|
+
* const aggregations = await prisma.user.aggregate({
|
|
708
|
+
* _avg: {
|
|
709
|
+
* age: true,
|
|
710
|
+
* },
|
|
711
|
+
* where: {
|
|
712
|
+
* email: {
|
|
713
|
+
* contains: "prisma.io",
|
|
714
|
+
* },
|
|
715
|
+
* },
|
|
716
|
+
* orderBy: {
|
|
717
|
+
* age: "asc",
|
|
718
|
+
* },
|
|
719
|
+
* take: 10,
|
|
720
|
+
* })
|
|
721
|
+
**/
|
|
722
|
+
aggregate<T extends OrganizationBillingAggregateArgs>(args: Prisma.Subset<T, OrganizationBillingAggregateArgs>): Prisma.PrismaPromise<GetOrganizationBillingAggregateType<T>>;
|
|
723
|
+
/**
|
|
724
|
+
* Group by OrganizationBilling.
|
|
725
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
726
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
727
|
+
* @param {OrganizationBillingGroupByArgs} args - Group by arguments.
|
|
728
|
+
* @example
|
|
729
|
+
* // Group by city, order by createdAt, get count
|
|
730
|
+
* const result = await prisma.user.groupBy({
|
|
731
|
+
* by: ['city', 'createdAt'],
|
|
732
|
+
* orderBy: {
|
|
733
|
+
* createdAt: true
|
|
734
|
+
* },
|
|
735
|
+
* _count: {
|
|
736
|
+
* _all: true
|
|
737
|
+
* },
|
|
738
|
+
* })
|
|
739
|
+
*
|
|
740
|
+
**/
|
|
741
|
+
groupBy<T extends OrganizationBillingGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
742
|
+
orderBy: OrganizationBillingGroupByArgs['orderBy'];
|
|
743
|
+
} : {
|
|
744
|
+
orderBy?: OrganizationBillingGroupByArgs['orderBy'];
|
|
745
|
+
}, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
|
|
746
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
747
|
+
Error,
|
|
748
|
+
'Field ',
|
|
749
|
+
P,
|
|
750
|
+
` in "having" needs to be provided in "by"`
|
|
751
|
+
];
|
|
752
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
753
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
754
|
+
}[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
755
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
756
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
757
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
758
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, OrganizationBillingGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetOrganizationBillingGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
759
|
+
/**
|
|
760
|
+
* Fields of the OrganizationBilling model
|
|
761
|
+
*/
|
|
762
|
+
readonly fields: OrganizationBillingFieldRefs;
|
|
763
|
+
}
|
|
764
|
+
/**
|
|
765
|
+
* The delegate class that acts as a "Promise-like" for OrganizationBilling.
|
|
766
|
+
* Why is this prefixed with `Prisma__`?
|
|
767
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
768
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
769
|
+
*/
|
|
770
|
+
export interface Prisma__OrganizationBillingClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
771
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
772
|
+
organization<T extends Prisma.OrganizationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationDefaultArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
773
|
+
pentestSubscription<T extends Prisma.OrganizationBilling$pentestSubscriptionArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationBilling$pentestSubscriptionArgs<ExtArgs>>): Prisma.Prisma__PentestSubscriptionClient<runtime.Types.Result.GetResult<Prisma.$PentestSubscriptionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
774
|
+
/**
|
|
775
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
776
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
777
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
778
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
779
|
+
*/
|
|
780
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
|
|
781
|
+
/**
|
|
782
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
783
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
784
|
+
* @returns A Promise for the completion of the callback.
|
|
785
|
+
*/
|
|
786
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
787
|
+
/**
|
|
788
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
789
|
+
* resolved value cannot be modified from the callback.
|
|
790
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
791
|
+
* @returns A Promise for the completion of the callback.
|
|
792
|
+
*/
|
|
793
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
794
|
+
}
|
|
795
|
+
/**
|
|
796
|
+
* Fields of the OrganizationBilling model
|
|
797
|
+
*/
|
|
798
|
+
export interface OrganizationBillingFieldRefs {
|
|
799
|
+
readonly id: Prisma.FieldRef<"OrganizationBilling", 'String'>;
|
|
800
|
+
readonly organizationId: Prisma.FieldRef<"OrganizationBilling", 'String'>;
|
|
801
|
+
readonly stripeCustomerId: Prisma.FieldRef<"OrganizationBilling", 'String'>;
|
|
802
|
+
readonly createdAt: Prisma.FieldRef<"OrganizationBilling", 'DateTime'>;
|
|
803
|
+
readonly updatedAt: Prisma.FieldRef<"OrganizationBilling", 'DateTime'>;
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
* OrganizationBilling findUnique
|
|
807
|
+
*/
|
|
808
|
+
export type OrganizationBillingFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
809
|
+
/**
|
|
810
|
+
* Select specific fields to fetch from the OrganizationBilling
|
|
811
|
+
*/
|
|
812
|
+
select?: Prisma.OrganizationBillingSelect<ExtArgs> | null;
|
|
813
|
+
/**
|
|
814
|
+
* Omit specific fields from the OrganizationBilling
|
|
815
|
+
*/
|
|
816
|
+
omit?: Prisma.OrganizationBillingOmit<ExtArgs> | null;
|
|
817
|
+
/**
|
|
818
|
+
* Choose, which related nodes to fetch as well
|
|
819
|
+
*/
|
|
820
|
+
include?: Prisma.OrganizationBillingInclude<ExtArgs> | null;
|
|
821
|
+
/**
|
|
822
|
+
* Filter, which OrganizationBilling to fetch.
|
|
823
|
+
*/
|
|
824
|
+
where: Prisma.OrganizationBillingWhereUniqueInput;
|
|
825
|
+
};
|
|
826
|
+
/**
|
|
827
|
+
* OrganizationBilling findUniqueOrThrow
|
|
828
|
+
*/
|
|
829
|
+
export type OrganizationBillingFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
830
|
+
/**
|
|
831
|
+
* Select specific fields to fetch from the OrganizationBilling
|
|
832
|
+
*/
|
|
833
|
+
select?: Prisma.OrganizationBillingSelect<ExtArgs> | null;
|
|
834
|
+
/**
|
|
835
|
+
* Omit specific fields from the OrganizationBilling
|
|
836
|
+
*/
|
|
837
|
+
omit?: Prisma.OrganizationBillingOmit<ExtArgs> | null;
|
|
838
|
+
/**
|
|
839
|
+
* Choose, which related nodes to fetch as well
|
|
840
|
+
*/
|
|
841
|
+
include?: Prisma.OrganizationBillingInclude<ExtArgs> | null;
|
|
842
|
+
/**
|
|
843
|
+
* Filter, which OrganizationBilling to fetch.
|
|
844
|
+
*/
|
|
845
|
+
where: Prisma.OrganizationBillingWhereUniqueInput;
|
|
846
|
+
};
|
|
847
|
+
/**
|
|
848
|
+
* OrganizationBilling findFirst
|
|
849
|
+
*/
|
|
850
|
+
export type OrganizationBillingFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
851
|
+
/**
|
|
852
|
+
* Select specific fields to fetch from the OrganizationBilling
|
|
853
|
+
*/
|
|
854
|
+
select?: Prisma.OrganizationBillingSelect<ExtArgs> | null;
|
|
855
|
+
/**
|
|
856
|
+
* Omit specific fields from the OrganizationBilling
|
|
857
|
+
*/
|
|
858
|
+
omit?: Prisma.OrganizationBillingOmit<ExtArgs> | null;
|
|
859
|
+
/**
|
|
860
|
+
* Choose, which related nodes to fetch as well
|
|
861
|
+
*/
|
|
862
|
+
include?: Prisma.OrganizationBillingInclude<ExtArgs> | null;
|
|
863
|
+
/**
|
|
864
|
+
* Filter, which OrganizationBilling to fetch.
|
|
865
|
+
*/
|
|
866
|
+
where?: Prisma.OrganizationBillingWhereInput;
|
|
867
|
+
/**
|
|
868
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
869
|
+
*
|
|
870
|
+
* Determine the order of OrganizationBillings to fetch.
|
|
871
|
+
*/
|
|
872
|
+
orderBy?: Prisma.OrganizationBillingOrderByWithRelationInput | Prisma.OrganizationBillingOrderByWithRelationInput[];
|
|
873
|
+
/**
|
|
874
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
875
|
+
*
|
|
876
|
+
* Sets the position for searching for OrganizationBillings.
|
|
877
|
+
*/
|
|
878
|
+
cursor?: Prisma.OrganizationBillingWhereUniqueInput;
|
|
879
|
+
/**
|
|
880
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
881
|
+
*
|
|
882
|
+
* Take `±n` OrganizationBillings from the position of the cursor.
|
|
883
|
+
*/
|
|
884
|
+
take?: number;
|
|
885
|
+
/**
|
|
886
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
887
|
+
*
|
|
888
|
+
* Skip the first `n` OrganizationBillings.
|
|
889
|
+
*/
|
|
890
|
+
skip?: number;
|
|
891
|
+
/**
|
|
892
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
893
|
+
*
|
|
894
|
+
* Filter by unique combinations of OrganizationBillings.
|
|
895
|
+
*/
|
|
896
|
+
distinct?: Prisma.OrganizationBillingScalarFieldEnum | Prisma.OrganizationBillingScalarFieldEnum[];
|
|
897
|
+
};
|
|
898
|
+
/**
|
|
899
|
+
* OrganizationBilling findFirstOrThrow
|
|
900
|
+
*/
|
|
901
|
+
export type OrganizationBillingFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
902
|
+
/**
|
|
903
|
+
* Select specific fields to fetch from the OrganizationBilling
|
|
904
|
+
*/
|
|
905
|
+
select?: Prisma.OrganizationBillingSelect<ExtArgs> | null;
|
|
906
|
+
/**
|
|
907
|
+
* Omit specific fields from the OrganizationBilling
|
|
908
|
+
*/
|
|
909
|
+
omit?: Prisma.OrganizationBillingOmit<ExtArgs> | null;
|
|
910
|
+
/**
|
|
911
|
+
* Choose, which related nodes to fetch as well
|
|
912
|
+
*/
|
|
913
|
+
include?: Prisma.OrganizationBillingInclude<ExtArgs> | null;
|
|
914
|
+
/**
|
|
915
|
+
* Filter, which OrganizationBilling to fetch.
|
|
916
|
+
*/
|
|
917
|
+
where?: Prisma.OrganizationBillingWhereInput;
|
|
918
|
+
/**
|
|
919
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
920
|
+
*
|
|
921
|
+
* Determine the order of OrganizationBillings to fetch.
|
|
922
|
+
*/
|
|
923
|
+
orderBy?: Prisma.OrganizationBillingOrderByWithRelationInput | Prisma.OrganizationBillingOrderByWithRelationInput[];
|
|
924
|
+
/**
|
|
925
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
926
|
+
*
|
|
927
|
+
* Sets the position for searching for OrganizationBillings.
|
|
928
|
+
*/
|
|
929
|
+
cursor?: Prisma.OrganizationBillingWhereUniqueInput;
|
|
930
|
+
/**
|
|
931
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
932
|
+
*
|
|
933
|
+
* Take `±n` OrganizationBillings from the position of the cursor.
|
|
934
|
+
*/
|
|
935
|
+
take?: number;
|
|
936
|
+
/**
|
|
937
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
938
|
+
*
|
|
939
|
+
* Skip the first `n` OrganizationBillings.
|
|
940
|
+
*/
|
|
941
|
+
skip?: number;
|
|
942
|
+
/**
|
|
943
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
944
|
+
*
|
|
945
|
+
* Filter by unique combinations of OrganizationBillings.
|
|
946
|
+
*/
|
|
947
|
+
distinct?: Prisma.OrganizationBillingScalarFieldEnum | Prisma.OrganizationBillingScalarFieldEnum[];
|
|
948
|
+
};
|
|
949
|
+
/**
|
|
950
|
+
* OrganizationBilling findMany
|
|
951
|
+
*/
|
|
952
|
+
export type OrganizationBillingFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
953
|
+
/**
|
|
954
|
+
* Select specific fields to fetch from the OrganizationBilling
|
|
955
|
+
*/
|
|
956
|
+
select?: Prisma.OrganizationBillingSelect<ExtArgs> | null;
|
|
957
|
+
/**
|
|
958
|
+
* Omit specific fields from the OrganizationBilling
|
|
959
|
+
*/
|
|
960
|
+
omit?: Prisma.OrganizationBillingOmit<ExtArgs> | null;
|
|
961
|
+
/**
|
|
962
|
+
* Choose, which related nodes to fetch as well
|
|
963
|
+
*/
|
|
964
|
+
include?: Prisma.OrganizationBillingInclude<ExtArgs> | null;
|
|
965
|
+
/**
|
|
966
|
+
* Filter, which OrganizationBillings to fetch.
|
|
967
|
+
*/
|
|
968
|
+
where?: Prisma.OrganizationBillingWhereInput;
|
|
969
|
+
/**
|
|
970
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
971
|
+
*
|
|
972
|
+
* Determine the order of OrganizationBillings to fetch.
|
|
973
|
+
*/
|
|
974
|
+
orderBy?: Prisma.OrganizationBillingOrderByWithRelationInput | Prisma.OrganizationBillingOrderByWithRelationInput[];
|
|
975
|
+
/**
|
|
976
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
977
|
+
*
|
|
978
|
+
* Sets the position for listing OrganizationBillings.
|
|
979
|
+
*/
|
|
980
|
+
cursor?: Prisma.OrganizationBillingWhereUniqueInput;
|
|
981
|
+
/**
|
|
982
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
983
|
+
*
|
|
984
|
+
* Take `±n` OrganizationBillings from the position of the cursor.
|
|
985
|
+
*/
|
|
986
|
+
take?: number;
|
|
987
|
+
/**
|
|
988
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
989
|
+
*
|
|
990
|
+
* Skip the first `n` OrganizationBillings.
|
|
991
|
+
*/
|
|
992
|
+
skip?: number;
|
|
993
|
+
/**
|
|
994
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
995
|
+
*
|
|
996
|
+
* Filter by unique combinations of OrganizationBillings.
|
|
997
|
+
*/
|
|
998
|
+
distinct?: Prisma.OrganizationBillingScalarFieldEnum | Prisma.OrganizationBillingScalarFieldEnum[];
|
|
999
|
+
};
|
|
1000
|
+
/**
|
|
1001
|
+
* OrganizationBilling create
|
|
1002
|
+
*/
|
|
1003
|
+
export type OrganizationBillingCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1004
|
+
/**
|
|
1005
|
+
* Select specific fields to fetch from the OrganizationBilling
|
|
1006
|
+
*/
|
|
1007
|
+
select?: Prisma.OrganizationBillingSelect<ExtArgs> | null;
|
|
1008
|
+
/**
|
|
1009
|
+
* Omit specific fields from the OrganizationBilling
|
|
1010
|
+
*/
|
|
1011
|
+
omit?: Prisma.OrganizationBillingOmit<ExtArgs> | null;
|
|
1012
|
+
/**
|
|
1013
|
+
* Choose, which related nodes to fetch as well
|
|
1014
|
+
*/
|
|
1015
|
+
include?: Prisma.OrganizationBillingInclude<ExtArgs> | null;
|
|
1016
|
+
/**
|
|
1017
|
+
* The data needed to create a OrganizationBilling.
|
|
1018
|
+
*/
|
|
1019
|
+
data: Prisma.XOR<Prisma.OrganizationBillingCreateInput, Prisma.OrganizationBillingUncheckedCreateInput>;
|
|
1020
|
+
};
|
|
1021
|
+
/**
|
|
1022
|
+
* OrganizationBilling createMany
|
|
1023
|
+
*/
|
|
1024
|
+
export type OrganizationBillingCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1025
|
+
/**
|
|
1026
|
+
* The data used to create many OrganizationBillings.
|
|
1027
|
+
*/
|
|
1028
|
+
data: Prisma.OrganizationBillingCreateManyInput | Prisma.OrganizationBillingCreateManyInput[];
|
|
1029
|
+
skipDuplicates?: boolean;
|
|
1030
|
+
};
|
|
1031
|
+
/**
|
|
1032
|
+
* OrganizationBilling createManyAndReturn
|
|
1033
|
+
*/
|
|
1034
|
+
export type OrganizationBillingCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1035
|
+
/**
|
|
1036
|
+
* Select specific fields to fetch from the OrganizationBilling
|
|
1037
|
+
*/
|
|
1038
|
+
select?: Prisma.OrganizationBillingSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1039
|
+
/**
|
|
1040
|
+
* Omit specific fields from the OrganizationBilling
|
|
1041
|
+
*/
|
|
1042
|
+
omit?: Prisma.OrganizationBillingOmit<ExtArgs> | null;
|
|
1043
|
+
/**
|
|
1044
|
+
* The data used to create many OrganizationBillings.
|
|
1045
|
+
*/
|
|
1046
|
+
data: Prisma.OrganizationBillingCreateManyInput | Prisma.OrganizationBillingCreateManyInput[];
|
|
1047
|
+
skipDuplicates?: boolean;
|
|
1048
|
+
/**
|
|
1049
|
+
* Choose, which related nodes to fetch as well
|
|
1050
|
+
*/
|
|
1051
|
+
include?: Prisma.OrganizationBillingIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1052
|
+
};
|
|
1053
|
+
/**
|
|
1054
|
+
* OrganizationBilling update
|
|
1055
|
+
*/
|
|
1056
|
+
export type OrganizationBillingUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1057
|
+
/**
|
|
1058
|
+
* Select specific fields to fetch from the OrganizationBilling
|
|
1059
|
+
*/
|
|
1060
|
+
select?: Prisma.OrganizationBillingSelect<ExtArgs> | null;
|
|
1061
|
+
/**
|
|
1062
|
+
* Omit specific fields from the OrganizationBilling
|
|
1063
|
+
*/
|
|
1064
|
+
omit?: Prisma.OrganizationBillingOmit<ExtArgs> | null;
|
|
1065
|
+
/**
|
|
1066
|
+
* Choose, which related nodes to fetch as well
|
|
1067
|
+
*/
|
|
1068
|
+
include?: Prisma.OrganizationBillingInclude<ExtArgs> | null;
|
|
1069
|
+
/**
|
|
1070
|
+
* The data needed to update a OrganizationBilling.
|
|
1071
|
+
*/
|
|
1072
|
+
data: Prisma.XOR<Prisma.OrganizationBillingUpdateInput, Prisma.OrganizationBillingUncheckedUpdateInput>;
|
|
1073
|
+
/**
|
|
1074
|
+
* Choose, which OrganizationBilling to update.
|
|
1075
|
+
*/
|
|
1076
|
+
where: Prisma.OrganizationBillingWhereUniqueInput;
|
|
1077
|
+
};
|
|
1078
|
+
/**
|
|
1079
|
+
* OrganizationBilling updateMany
|
|
1080
|
+
*/
|
|
1081
|
+
export type OrganizationBillingUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1082
|
+
/**
|
|
1083
|
+
* The data used to update OrganizationBillings.
|
|
1084
|
+
*/
|
|
1085
|
+
data: Prisma.XOR<Prisma.OrganizationBillingUpdateManyMutationInput, Prisma.OrganizationBillingUncheckedUpdateManyInput>;
|
|
1086
|
+
/**
|
|
1087
|
+
* Filter which OrganizationBillings to update
|
|
1088
|
+
*/
|
|
1089
|
+
where?: Prisma.OrganizationBillingWhereInput;
|
|
1090
|
+
/**
|
|
1091
|
+
* Limit how many OrganizationBillings to update.
|
|
1092
|
+
*/
|
|
1093
|
+
limit?: number;
|
|
1094
|
+
};
|
|
1095
|
+
/**
|
|
1096
|
+
* OrganizationBilling updateManyAndReturn
|
|
1097
|
+
*/
|
|
1098
|
+
export type OrganizationBillingUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1099
|
+
/**
|
|
1100
|
+
* Select specific fields to fetch from the OrganizationBilling
|
|
1101
|
+
*/
|
|
1102
|
+
select?: Prisma.OrganizationBillingSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1103
|
+
/**
|
|
1104
|
+
* Omit specific fields from the OrganizationBilling
|
|
1105
|
+
*/
|
|
1106
|
+
omit?: Prisma.OrganizationBillingOmit<ExtArgs> | null;
|
|
1107
|
+
/**
|
|
1108
|
+
* The data used to update OrganizationBillings.
|
|
1109
|
+
*/
|
|
1110
|
+
data: Prisma.XOR<Prisma.OrganizationBillingUpdateManyMutationInput, Prisma.OrganizationBillingUncheckedUpdateManyInput>;
|
|
1111
|
+
/**
|
|
1112
|
+
* Filter which OrganizationBillings to update
|
|
1113
|
+
*/
|
|
1114
|
+
where?: Prisma.OrganizationBillingWhereInput;
|
|
1115
|
+
/**
|
|
1116
|
+
* Limit how many OrganizationBillings to update.
|
|
1117
|
+
*/
|
|
1118
|
+
limit?: number;
|
|
1119
|
+
/**
|
|
1120
|
+
* Choose, which related nodes to fetch as well
|
|
1121
|
+
*/
|
|
1122
|
+
include?: Prisma.OrganizationBillingIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1123
|
+
};
|
|
1124
|
+
/**
|
|
1125
|
+
* OrganizationBilling upsert
|
|
1126
|
+
*/
|
|
1127
|
+
export type OrganizationBillingUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1128
|
+
/**
|
|
1129
|
+
* Select specific fields to fetch from the OrganizationBilling
|
|
1130
|
+
*/
|
|
1131
|
+
select?: Prisma.OrganizationBillingSelect<ExtArgs> | null;
|
|
1132
|
+
/**
|
|
1133
|
+
* Omit specific fields from the OrganizationBilling
|
|
1134
|
+
*/
|
|
1135
|
+
omit?: Prisma.OrganizationBillingOmit<ExtArgs> | null;
|
|
1136
|
+
/**
|
|
1137
|
+
* Choose, which related nodes to fetch as well
|
|
1138
|
+
*/
|
|
1139
|
+
include?: Prisma.OrganizationBillingInclude<ExtArgs> | null;
|
|
1140
|
+
/**
|
|
1141
|
+
* The filter to search for the OrganizationBilling to update in case it exists.
|
|
1142
|
+
*/
|
|
1143
|
+
where: Prisma.OrganizationBillingWhereUniqueInput;
|
|
1144
|
+
/**
|
|
1145
|
+
* In case the OrganizationBilling found by the `where` argument doesn't exist, create a new OrganizationBilling with this data.
|
|
1146
|
+
*/
|
|
1147
|
+
create: Prisma.XOR<Prisma.OrganizationBillingCreateInput, Prisma.OrganizationBillingUncheckedCreateInput>;
|
|
1148
|
+
/**
|
|
1149
|
+
* In case the OrganizationBilling was found with the provided `where` argument, update it with this data.
|
|
1150
|
+
*/
|
|
1151
|
+
update: Prisma.XOR<Prisma.OrganizationBillingUpdateInput, Prisma.OrganizationBillingUncheckedUpdateInput>;
|
|
1152
|
+
};
|
|
1153
|
+
/**
|
|
1154
|
+
* OrganizationBilling delete
|
|
1155
|
+
*/
|
|
1156
|
+
export type OrganizationBillingDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1157
|
+
/**
|
|
1158
|
+
* Select specific fields to fetch from the OrganizationBilling
|
|
1159
|
+
*/
|
|
1160
|
+
select?: Prisma.OrganizationBillingSelect<ExtArgs> | null;
|
|
1161
|
+
/**
|
|
1162
|
+
* Omit specific fields from the OrganizationBilling
|
|
1163
|
+
*/
|
|
1164
|
+
omit?: Prisma.OrganizationBillingOmit<ExtArgs> | null;
|
|
1165
|
+
/**
|
|
1166
|
+
* Choose, which related nodes to fetch as well
|
|
1167
|
+
*/
|
|
1168
|
+
include?: Prisma.OrganizationBillingInclude<ExtArgs> | null;
|
|
1169
|
+
/**
|
|
1170
|
+
* Filter which OrganizationBilling to delete.
|
|
1171
|
+
*/
|
|
1172
|
+
where: Prisma.OrganizationBillingWhereUniqueInput;
|
|
1173
|
+
};
|
|
1174
|
+
/**
|
|
1175
|
+
* OrganizationBilling deleteMany
|
|
1176
|
+
*/
|
|
1177
|
+
export type OrganizationBillingDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1178
|
+
/**
|
|
1179
|
+
* Filter which OrganizationBillings to delete
|
|
1180
|
+
*/
|
|
1181
|
+
where?: Prisma.OrganizationBillingWhereInput;
|
|
1182
|
+
/**
|
|
1183
|
+
* Limit how many OrganizationBillings to delete.
|
|
1184
|
+
*/
|
|
1185
|
+
limit?: number;
|
|
1186
|
+
};
|
|
1187
|
+
/**
|
|
1188
|
+
* OrganizationBilling.pentestSubscription
|
|
1189
|
+
*/
|
|
1190
|
+
export type OrganizationBilling$pentestSubscriptionArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1191
|
+
/**
|
|
1192
|
+
* Select specific fields to fetch from the PentestSubscription
|
|
1193
|
+
*/
|
|
1194
|
+
select?: Prisma.PentestSubscriptionSelect<ExtArgs> | null;
|
|
1195
|
+
/**
|
|
1196
|
+
* Omit specific fields from the PentestSubscription
|
|
1197
|
+
*/
|
|
1198
|
+
omit?: Prisma.PentestSubscriptionOmit<ExtArgs> | null;
|
|
1199
|
+
/**
|
|
1200
|
+
* Choose, which related nodes to fetch as well
|
|
1201
|
+
*/
|
|
1202
|
+
include?: Prisma.PentestSubscriptionInclude<ExtArgs> | null;
|
|
1203
|
+
where?: Prisma.PentestSubscriptionWhereInput;
|
|
1204
|
+
};
|
|
1205
|
+
/**
|
|
1206
|
+
* OrganizationBilling without action
|
|
1207
|
+
*/
|
|
1208
|
+
export type OrganizationBillingDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1209
|
+
/**
|
|
1210
|
+
* Select specific fields to fetch from the OrganizationBilling
|
|
1211
|
+
*/
|
|
1212
|
+
select?: Prisma.OrganizationBillingSelect<ExtArgs> | null;
|
|
1213
|
+
/**
|
|
1214
|
+
* Omit specific fields from the OrganizationBilling
|
|
1215
|
+
*/
|
|
1216
|
+
omit?: Prisma.OrganizationBillingOmit<ExtArgs> | null;
|
|
1217
|
+
/**
|
|
1218
|
+
* Choose, which related nodes to fetch as well
|
|
1219
|
+
*/
|
|
1220
|
+
include?: Prisma.OrganizationBillingInclude<ExtArgs> | null;
|
|
1221
|
+
};
|
|
1222
|
+
//# sourceMappingURL=OrganizationBilling.d.ts.map
|