@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,1497 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
3
|
+
/**
|
|
4
|
+
* Model PentestSubscription
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export type PentestSubscriptionModel = runtime.Types.Result.DefaultSelection<Prisma.$PentestSubscriptionPayload>;
|
|
8
|
+
export type AggregatePentestSubscription = {
|
|
9
|
+
_count: PentestSubscriptionCountAggregateOutputType | null;
|
|
10
|
+
_avg: PentestSubscriptionAvgAggregateOutputType | null;
|
|
11
|
+
_sum: PentestSubscriptionSumAggregateOutputType | null;
|
|
12
|
+
_min: PentestSubscriptionMinAggregateOutputType | null;
|
|
13
|
+
_max: PentestSubscriptionMaxAggregateOutputType | null;
|
|
14
|
+
};
|
|
15
|
+
export type PentestSubscriptionAvgAggregateOutputType = {
|
|
16
|
+
includedRunsPerPeriod: number | null;
|
|
17
|
+
};
|
|
18
|
+
export type PentestSubscriptionSumAggregateOutputType = {
|
|
19
|
+
includedRunsPerPeriod: number | null;
|
|
20
|
+
};
|
|
21
|
+
export type PentestSubscriptionMinAggregateOutputType = {
|
|
22
|
+
id: string | null;
|
|
23
|
+
organizationId: string | null;
|
|
24
|
+
organizationBillingId: string | null;
|
|
25
|
+
stripeSubscriptionId: string | null;
|
|
26
|
+
stripePriceId: string | null;
|
|
27
|
+
stripeOveragePriceId: string | null;
|
|
28
|
+
status: string | null;
|
|
29
|
+
includedRunsPerPeriod: number | null;
|
|
30
|
+
currentPeriodStart: Date | null;
|
|
31
|
+
currentPeriodEnd: Date | null;
|
|
32
|
+
createdAt: Date | null;
|
|
33
|
+
updatedAt: Date | null;
|
|
34
|
+
};
|
|
35
|
+
export type PentestSubscriptionMaxAggregateOutputType = {
|
|
36
|
+
id: string | null;
|
|
37
|
+
organizationId: string | null;
|
|
38
|
+
organizationBillingId: string | null;
|
|
39
|
+
stripeSubscriptionId: string | null;
|
|
40
|
+
stripePriceId: string | null;
|
|
41
|
+
stripeOveragePriceId: string | null;
|
|
42
|
+
status: string | null;
|
|
43
|
+
includedRunsPerPeriod: number | null;
|
|
44
|
+
currentPeriodStart: Date | null;
|
|
45
|
+
currentPeriodEnd: Date | null;
|
|
46
|
+
createdAt: Date | null;
|
|
47
|
+
updatedAt: Date | null;
|
|
48
|
+
};
|
|
49
|
+
export type PentestSubscriptionCountAggregateOutputType = {
|
|
50
|
+
id: number;
|
|
51
|
+
organizationId: number;
|
|
52
|
+
organizationBillingId: number;
|
|
53
|
+
stripeSubscriptionId: number;
|
|
54
|
+
stripePriceId: number;
|
|
55
|
+
stripeOveragePriceId: number;
|
|
56
|
+
status: number;
|
|
57
|
+
includedRunsPerPeriod: number;
|
|
58
|
+
currentPeriodStart: number;
|
|
59
|
+
currentPeriodEnd: number;
|
|
60
|
+
createdAt: number;
|
|
61
|
+
updatedAt: number;
|
|
62
|
+
_all: number;
|
|
63
|
+
};
|
|
64
|
+
export type PentestSubscriptionAvgAggregateInputType = {
|
|
65
|
+
includedRunsPerPeriod?: true;
|
|
66
|
+
};
|
|
67
|
+
export type PentestSubscriptionSumAggregateInputType = {
|
|
68
|
+
includedRunsPerPeriod?: true;
|
|
69
|
+
};
|
|
70
|
+
export type PentestSubscriptionMinAggregateInputType = {
|
|
71
|
+
id?: true;
|
|
72
|
+
organizationId?: true;
|
|
73
|
+
organizationBillingId?: true;
|
|
74
|
+
stripeSubscriptionId?: true;
|
|
75
|
+
stripePriceId?: true;
|
|
76
|
+
stripeOveragePriceId?: true;
|
|
77
|
+
status?: true;
|
|
78
|
+
includedRunsPerPeriod?: true;
|
|
79
|
+
currentPeriodStart?: true;
|
|
80
|
+
currentPeriodEnd?: true;
|
|
81
|
+
createdAt?: true;
|
|
82
|
+
updatedAt?: true;
|
|
83
|
+
};
|
|
84
|
+
export type PentestSubscriptionMaxAggregateInputType = {
|
|
85
|
+
id?: true;
|
|
86
|
+
organizationId?: true;
|
|
87
|
+
organizationBillingId?: true;
|
|
88
|
+
stripeSubscriptionId?: true;
|
|
89
|
+
stripePriceId?: true;
|
|
90
|
+
stripeOveragePriceId?: true;
|
|
91
|
+
status?: true;
|
|
92
|
+
includedRunsPerPeriod?: true;
|
|
93
|
+
currentPeriodStart?: true;
|
|
94
|
+
currentPeriodEnd?: true;
|
|
95
|
+
createdAt?: true;
|
|
96
|
+
updatedAt?: true;
|
|
97
|
+
};
|
|
98
|
+
export type PentestSubscriptionCountAggregateInputType = {
|
|
99
|
+
id?: true;
|
|
100
|
+
organizationId?: true;
|
|
101
|
+
organizationBillingId?: true;
|
|
102
|
+
stripeSubscriptionId?: true;
|
|
103
|
+
stripePriceId?: true;
|
|
104
|
+
stripeOveragePriceId?: true;
|
|
105
|
+
status?: true;
|
|
106
|
+
includedRunsPerPeriod?: true;
|
|
107
|
+
currentPeriodStart?: true;
|
|
108
|
+
currentPeriodEnd?: true;
|
|
109
|
+
createdAt?: true;
|
|
110
|
+
updatedAt?: true;
|
|
111
|
+
_all?: true;
|
|
112
|
+
};
|
|
113
|
+
export type PentestSubscriptionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
114
|
+
/**
|
|
115
|
+
* Filter which PentestSubscription to aggregate.
|
|
116
|
+
*/
|
|
117
|
+
where?: Prisma.PentestSubscriptionWhereInput;
|
|
118
|
+
/**
|
|
119
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
120
|
+
*
|
|
121
|
+
* Determine the order of PentestSubscriptions to fetch.
|
|
122
|
+
*/
|
|
123
|
+
orderBy?: Prisma.PentestSubscriptionOrderByWithRelationInput | Prisma.PentestSubscriptionOrderByWithRelationInput[];
|
|
124
|
+
/**
|
|
125
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
126
|
+
*
|
|
127
|
+
* Sets the start position
|
|
128
|
+
*/
|
|
129
|
+
cursor?: Prisma.PentestSubscriptionWhereUniqueInput;
|
|
130
|
+
/**
|
|
131
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
132
|
+
*
|
|
133
|
+
* Take `±n` PentestSubscriptions from the position of the cursor.
|
|
134
|
+
*/
|
|
135
|
+
take?: number;
|
|
136
|
+
/**
|
|
137
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
138
|
+
*
|
|
139
|
+
* Skip the first `n` PentestSubscriptions.
|
|
140
|
+
*/
|
|
141
|
+
skip?: number;
|
|
142
|
+
/**
|
|
143
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
144
|
+
*
|
|
145
|
+
* Count returned PentestSubscriptions
|
|
146
|
+
**/
|
|
147
|
+
_count?: true | PentestSubscriptionCountAggregateInputType;
|
|
148
|
+
/**
|
|
149
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
150
|
+
*
|
|
151
|
+
* Select which fields to average
|
|
152
|
+
**/
|
|
153
|
+
_avg?: PentestSubscriptionAvgAggregateInputType;
|
|
154
|
+
/**
|
|
155
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
156
|
+
*
|
|
157
|
+
* Select which fields to sum
|
|
158
|
+
**/
|
|
159
|
+
_sum?: PentestSubscriptionSumAggregateInputType;
|
|
160
|
+
/**
|
|
161
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
162
|
+
*
|
|
163
|
+
* Select which fields to find the minimum value
|
|
164
|
+
**/
|
|
165
|
+
_min?: PentestSubscriptionMinAggregateInputType;
|
|
166
|
+
/**
|
|
167
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
168
|
+
*
|
|
169
|
+
* Select which fields to find the maximum value
|
|
170
|
+
**/
|
|
171
|
+
_max?: PentestSubscriptionMaxAggregateInputType;
|
|
172
|
+
};
|
|
173
|
+
export type GetPentestSubscriptionAggregateType<T extends PentestSubscriptionAggregateArgs> = {
|
|
174
|
+
[P in keyof T & keyof AggregatePentestSubscription]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregatePentestSubscription[P]> : Prisma.GetScalarType<T[P], AggregatePentestSubscription[P]>;
|
|
175
|
+
};
|
|
176
|
+
export type PentestSubscriptionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
177
|
+
where?: Prisma.PentestSubscriptionWhereInput;
|
|
178
|
+
orderBy?: Prisma.PentestSubscriptionOrderByWithAggregationInput | Prisma.PentestSubscriptionOrderByWithAggregationInput[];
|
|
179
|
+
by: Prisma.PentestSubscriptionScalarFieldEnum[] | Prisma.PentestSubscriptionScalarFieldEnum;
|
|
180
|
+
having?: Prisma.PentestSubscriptionScalarWhereWithAggregatesInput;
|
|
181
|
+
take?: number;
|
|
182
|
+
skip?: number;
|
|
183
|
+
_count?: PentestSubscriptionCountAggregateInputType | true;
|
|
184
|
+
_avg?: PentestSubscriptionAvgAggregateInputType;
|
|
185
|
+
_sum?: PentestSubscriptionSumAggregateInputType;
|
|
186
|
+
_min?: PentestSubscriptionMinAggregateInputType;
|
|
187
|
+
_max?: PentestSubscriptionMaxAggregateInputType;
|
|
188
|
+
};
|
|
189
|
+
export type PentestSubscriptionGroupByOutputType = {
|
|
190
|
+
id: string;
|
|
191
|
+
organizationId: string;
|
|
192
|
+
organizationBillingId: string;
|
|
193
|
+
stripeSubscriptionId: string;
|
|
194
|
+
stripePriceId: string;
|
|
195
|
+
stripeOveragePriceId: string | null;
|
|
196
|
+
status: string;
|
|
197
|
+
includedRunsPerPeriod: number;
|
|
198
|
+
currentPeriodStart: Date;
|
|
199
|
+
currentPeriodEnd: Date;
|
|
200
|
+
createdAt: Date;
|
|
201
|
+
updatedAt: Date;
|
|
202
|
+
_count: PentestSubscriptionCountAggregateOutputType | null;
|
|
203
|
+
_avg: PentestSubscriptionAvgAggregateOutputType | null;
|
|
204
|
+
_sum: PentestSubscriptionSumAggregateOutputType | null;
|
|
205
|
+
_min: PentestSubscriptionMinAggregateOutputType | null;
|
|
206
|
+
_max: PentestSubscriptionMaxAggregateOutputType | null;
|
|
207
|
+
};
|
|
208
|
+
export type GetPentestSubscriptionGroupByPayload<T extends PentestSubscriptionGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<PentestSubscriptionGroupByOutputType, T['by']> & {
|
|
209
|
+
[P in ((keyof T) & (keyof PentestSubscriptionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], PentestSubscriptionGroupByOutputType[P]> : Prisma.GetScalarType<T[P], PentestSubscriptionGroupByOutputType[P]>;
|
|
210
|
+
}>>;
|
|
211
|
+
export type PentestSubscriptionWhereInput = {
|
|
212
|
+
AND?: Prisma.PentestSubscriptionWhereInput | Prisma.PentestSubscriptionWhereInput[];
|
|
213
|
+
OR?: Prisma.PentestSubscriptionWhereInput[];
|
|
214
|
+
NOT?: Prisma.PentestSubscriptionWhereInput | Prisma.PentestSubscriptionWhereInput[];
|
|
215
|
+
id?: Prisma.StringFilter<"PentestSubscription"> | string;
|
|
216
|
+
organizationId?: Prisma.StringFilter<"PentestSubscription"> | string;
|
|
217
|
+
organizationBillingId?: Prisma.StringFilter<"PentestSubscription"> | string;
|
|
218
|
+
stripeSubscriptionId?: Prisma.StringFilter<"PentestSubscription"> | string;
|
|
219
|
+
stripePriceId?: Prisma.StringFilter<"PentestSubscription"> | string;
|
|
220
|
+
stripeOveragePriceId?: Prisma.StringNullableFilter<"PentestSubscription"> | string | null;
|
|
221
|
+
status?: Prisma.StringFilter<"PentestSubscription"> | string;
|
|
222
|
+
includedRunsPerPeriod?: Prisma.IntFilter<"PentestSubscription"> | number;
|
|
223
|
+
currentPeriodStart?: Prisma.DateTimeFilter<"PentestSubscription"> | Date | string;
|
|
224
|
+
currentPeriodEnd?: Prisma.DateTimeFilter<"PentestSubscription"> | Date | string;
|
|
225
|
+
createdAt?: Prisma.DateTimeFilter<"PentestSubscription"> | Date | string;
|
|
226
|
+
updatedAt?: Prisma.DateTimeFilter<"PentestSubscription"> | Date | string;
|
|
227
|
+
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
228
|
+
organizationBilling?: Prisma.XOR<Prisma.OrganizationBillingScalarRelationFilter, Prisma.OrganizationBillingWhereInput>;
|
|
229
|
+
};
|
|
230
|
+
export type PentestSubscriptionOrderByWithRelationInput = {
|
|
231
|
+
id?: Prisma.SortOrder;
|
|
232
|
+
organizationId?: Prisma.SortOrder;
|
|
233
|
+
organizationBillingId?: Prisma.SortOrder;
|
|
234
|
+
stripeSubscriptionId?: Prisma.SortOrder;
|
|
235
|
+
stripePriceId?: Prisma.SortOrder;
|
|
236
|
+
stripeOveragePriceId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
237
|
+
status?: Prisma.SortOrder;
|
|
238
|
+
includedRunsPerPeriod?: Prisma.SortOrder;
|
|
239
|
+
currentPeriodStart?: Prisma.SortOrder;
|
|
240
|
+
currentPeriodEnd?: Prisma.SortOrder;
|
|
241
|
+
createdAt?: Prisma.SortOrder;
|
|
242
|
+
updatedAt?: Prisma.SortOrder;
|
|
243
|
+
organization?: Prisma.OrganizationOrderByWithRelationInput;
|
|
244
|
+
organizationBilling?: Prisma.OrganizationBillingOrderByWithRelationInput;
|
|
245
|
+
};
|
|
246
|
+
export type PentestSubscriptionWhereUniqueInput = Prisma.AtLeast<{
|
|
247
|
+
id?: string;
|
|
248
|
+
organizationId?: string;
|
|
249
|
+
organizationBillingId?: string;
|
|
250
|
+
AND?: Prisma.PentestSubscriptionWhereInput | Prisma.PentestSubscriptionWhereInput[];
|
|
251
|
+
OR?: Prisma.PentestSubscriptionWhereInput[];
|
|
252
|
+
NOT?: Prisma.PentestSubscriptionWhereInput | Prisma.PentestSubscriptionWhereInput[];
|
|
253
|
+
stripeSubscriptionId?: Prisma.StringFilter<"PentestSubscription"> | string;
|
|
254
|
+
stripePriceId?: Prisma.StringFilter<"PentestSubscription"> | string;
|
|
255
|
+
stripeOveragePriceId?: Prisma.StringNullableFilter<"PentestSubscription"> | string | null;
|
|
256
|
+
status?: Prisma.StringFilter<"PentestSubscription"> | string;
|
|
257
|
+
includedRunsPerPeriod?: Prisma.IntFilter<"PentestSubscription"> | number;
|
|
258
|
+
currentPeriodStart?: Prisma.DateTimeFilter<"PentestSubscription"> | Date | string;
|
|
259
|
+
currentPeriodEnd?: Prisma.DateTimeFilter<"PentestSubscription"> | Date | string;
|
|
260
|
+
createdAt?: Prisma.DateTimeFilter<"PentestSubscription"> | Date | string;
|
|
261
|
+
updatedAt?: Prisma.DateTimeFilter<"PentestSubscription"> | Date | string;
|
|
262
|
+
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
263
|
+
organizationBilling?: Prisma.XOR<Prisma.OrganizationBillingScalarRelationFilter, Prisma.OrganizationBillingWhereInput>;
|
|
264
|
+
}, "id" | "organizationId" | "organizationBillingId">;
|
|
265
|
+
export type PentestSubscriptionOrderByWithAggregationInput = {
|
|
266
|
+
id?: Prisma.SortOrder;
|
|
267
|
+
organizationId?: Prisma.SortOrder;
|
|
268
|
+
organizationBillingId?: Prisma.SortOrder;
|
|
269
|
+
stripeSubscriptionId?: Prisma.SortOrder;
|
|
270
|
+
stripePriceId?: Prisma.SortOrder;
|
|
271
|
+
stripeOveragePriceId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
272
|
+
status?: Prisma.SortOrder;
|
|
273
|
+
includedRunsPerPeriod?: Prisma.SortOrder;
|
|
274
|
+
currentPeriodStart?: Prisma.SortOrder;
|
|
275
|
+
currentPeriodEnd?: Prisma.SortOrder;
|
|
276
|
+
createdAt?: Prisma.SortOrder;
|
|
277
|
+
updatedAt?: Prisma.SortOrder;
|
|
278
|
+
_count?: Prisma.PentestSubscriptionCountOrderByAggregateInput;
|
|
279
|
+
_avg?: Prisma.PentestSubscriptionAvgOrderByAggregateInput;
|
|
280
|
+
_max?: Prisma.PentestSubscriptionMaxOrderByAggregateInput;
|
|
281
|
+
_min?: Prisma.PentestSubscriptionMinOrderByAggregateInput;
|
|
282
|
+
_sum?: Prisma.PentestSubscriptionSumOrderByAggregateInput;
|
|
283
|
+
};
|
|
284
|
+
export type PentestSubscriptionScalarWhereWithAggregatesInput = {
|
|
285
|
+
AND?: Prisma.PentestSubscriptionScalarWhereWithAggregatesInput | Prisma.PentestSubscriptionScalarWhereWithAggregatesInput[];
|
|
286
|
+
OR?: Prisma.PentestSubscriptionScalarWhereWithAggregatesInput[];
|
|
287
|
+
NOT?: Prisma.PentestSubscriptionScalarWhereWithAggregatesInput | Prisma.PentestSubscriptionScalarWhereWithAggregatesInput[];
|
|
288
|
+
id?: Prisma.StringWithAggregatesFilter<"PentestSubscription"> | string;
|
|
289
|
+
organizationId?: Prisma.StringWithAggregatesFilter<"PentestSubscription"> | string;
|
|
290
|
+
organizationBillingId?: Prisma.StringWithAggregatesFilter<"PentestSubscription"> | string;
|
|
291
|
+
stripeSubscriptionId?: Prisma.StringWithAggregatesFilter<"PentestSubscription"> | string;
|
|
292
|
+
stripePriceId?: Prisma.StringWithAggregatesFilter<"PentestSubscription"> | string;
|
|
293
|
+
stripeOveragePriceId?: Prisma.StringNullableWithAggregatesFilter<"PentestSubscription"> | string | null;
|
|
294
|
+
status?: Prisma.StringWithAggregatesFilter<"PentestSubscription"> | string;
|
|
295
|
+
includedRunsPerPeriod?: Prisma.IntWithAggregatesFilter<"PentestSubscription"> | number;
|
|
296
|
+
currentPeriodStart?: Prisma.DateTimeWithAggregatesFilter<"PentestSubscription"> | Date | string;
|
|
297
|
+
currentPeriodEnd?: Prisma.DateTimeWithAggregatesFilter<"PentestSubscription"> | Date | string;
|
|
298
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"PentestSubscription"> | Date | string;
|
|
299
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"PentestSubscription"> | Date | string;
|
|
300
|
+
};
|
|
301
|
+
export type PentestSubscriptionCreateInput = {
|
|
302
|
+
id?: string;
|
|
303
|
+
stripeSubscriptionId: string;
|
|
304
|
+
stripePriceId: string;
|
|
305
|
+
stripeOveragePriceId?: string | null;
|
|
306
|
+
status?: string;
|
|
307
|
+
includedRunsPerPeriod?: number;
|
|
308
|
+
currentPeriodStart: Date | string;
|
|
309
|
+
currentPeriodEnd: Date | string;
|
|
310
|
+
createdAt?: Date | string;
|
|
311
|
+
updatedAt?: Date | string;
|
|
312
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutPentestSubscriptionInput;
|
|
313
|
+
organizationBilling: Prisma.OrganizationBillingCreateNestedOneWithoutPentestSubscriptionInput;
|
|
314
|
+
};
|
|
315
|
+
export type PentestSubscriptionUncheckedCreateInput = {
|
|
316
|
+
id?: string;
|
|
317
|
+
organizationId: string;
|
|
318
|
+
organizationBillingId: string;
|
|
319
|
+
stripeSubscriptionId: string;
|
|
320
|
+
stripePriceId: string;
|
|
321
|
+
stripeOveragePriceId?: string | null;
|
|
322
|
+
status?: string;
|
|
323
|
+
includedRunsPerPeriod?: number;
|
|
324
|
+
currentPeriodStart: Date | string;
|
|
325
|
+
currentPeriodEnd: Date | string;
|
|
326
|
+
createdAt?: Date | string;
|
|
327
|
+
updatedAt?: Date | string;
|
|
328
|
+
};
|
|
329
|
+
export type PentestSubscriptionUpdateInput = {
|
|
330
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
331
|
+
stripeSubscriptionId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
332
|
+
stripePriceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
333
|
+
stripeOveragePriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
334
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
335
|
+
includedRunsPerPeriod?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
336
|
+
currentPeriodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
337
|
+
currentPeriodEnd?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
338
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
339
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
340
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutPentestSubscriptionNestedInput;
|
|
341
|
+
organizationBilling?: Prisma.OrganizationBillingUpdateOneRequiredWithoutPentestSubscriptionNestedInput;
|
|
342
|
+
};
|
|
343
|
+
export type PentestSubscriptionUncheckedUpdateInput = {
|
|
344
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
345
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
346
|
+
organizationBillingId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
347
|
+
stripeSubscriptionId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
348
|
+
stripePriceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
349
|
+
stripeOveragePriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
350
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
351
|
+
includedRunsPerPeriod?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
352
|
+
currentPeriodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
353
|
+
currentPeriodEnd?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
354
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
355
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
356
|
+
};
|
|
357
|
+
export type PentestSubscriptionCreateManyInput = {
|
|
358
|
+
id?: string;
|
|
359
|
+
organizationId: string;
|
|
360
|
+
organizationBillingId: string;
|
|
361
|
+
stripeSubscriptionId: string;
|
|
362
|
+
stripePriceId: string;
|
|
363
|
+
stripeOveragePriceId?: string | null;
|
|
364
|
+
status?: string;
|
|
365
|
+
includedRunsPerPeriod?: number;
|
|
366
|
+
currentPeriodStart: Date | string;
|
|
367
|
+
currentPeriodEnd: Date | string;
|
|
368
|
+
createdAt?: Date | string;
|
|
369
|
+
updatedAt?: Date | string;
|
|
370
|
+
};
|
|
371
|
+
export type PentestSubscriptionUpdateManyMutationInput = {
|
|
372
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
373
|
+
stripeSubscriptionId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
374
|
+
stripePriceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
375
|
+
stripeOveragePriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
376
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
377
|
+
includedRunsPerPeriod?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
378
|
+
currentPeriodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
379
|
+
currentPeriodEnd?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
380
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
381
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
382
|
+
};
|
|
383
|
+
export type PentestSubscriptionUncheckedUpdateManyInput = {
|
|
384
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
385
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
386
|
+
organizationBillingId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
387
|
+
stripeSubscriptionId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
388
|
+
stripePriceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
389
|
+
stripeOveragePriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
390
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
391
|
+
includedRunsPerPeriod?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
392
|
+
currentPeriodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
393
|
+
currentPeriodEnd?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
394
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
395
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
396
|
+
};
|
|
397
|
+
export type PentestSubscriptionNullableScalarRelationFilter = {
|
|
398
|
+
is?: Prisma.PentestSubscriptionWhereInput | null;
|
|
399
|
+
isNot?: Prisma.PentestSubscriptionWhereInput | null;
|
|
400
|
+
};
|
|
401
|
+
export type PentestSubscriptionCountOrderByAggregateInput = {
|
|
402
|
+
id?: Prisma.SortOrder;
|
|
403
|
+
organizationId?: Prisma.SortOrder;
|
|
404
|
+
organizationBillingId?: Prisma.SortOrder;
|
|
405
|
+
stripeSubscriptionId?: Prisma.SortOrder;
|
|
406
|
+
stripePriceId?: Prisma.SortOrder;
|
|
407
|
+
stripeOveragePriceId?: Prisma.SortOrder;
|
|
408
|
+
status?: Prisma.SortOrder;
|
|
409
|
+
includedRunsPerPeriod?: Prisma.SortOrder;
|
|
410
|
+
currentPeriodStart?: Prisma.SortOrder;
|
|
411
|
+
currentPeriodEnd?: Prisma.SortOrder;
|
|
412
|
+
createdAt?: Prisma.SortOrder;
|
|
413
|
+
updatedAt?: Prisma.SortOrder;
|
|
414
|
+
};
|
|
415
|
+
export type PentestSubscriptionAvgOrderByAggregateInput = {
|
|
416
|
+
includedRunsPerPeriod?: Prisma.SortOrder;
|
|
417
|
+
};
|
|
418
|
+
export type PentestSubscriptionMaxOrderByAggregateInput = {
|
|
419
|
+
id?: Prisma.SortOrder;
|
|
420
|
+
organizationId?: Prisma.SortOrder;
|
|
421
|
+
organizationBillingId?: Prisma.SortOrder;
|
|
422
|
+
stripeSubscriptionId?: Prisma.SortOrder;
|
|
423
|
+
stripePriceId?: Prisma.SortOrder;
|
|
424
|
+
stripeOveragePriceId?: Prisma.SortOrder;
|
|
425
|
+
status?: Prisma.SortOrder;
|
|
426
|
+
includedRunsPerPeriod?: Prisma.SortOrder;
|
|
427
|
+
currentPeriodStart?: Prisma.SortOrder;
|
|
428
|
+
currentPeriodEnd?: Prisma.SortOrder;
|
|
429
|
+
createdAt?: Prisma.SortOrder;
|
|
430
|
+
updatedAt?: Prisma.SortOrder;
|
|
431
|
+
};
|
|
432
|
+
export type PentestSubscriptionMinOrderByAggregateInput = {
|
|
433
|
+
id?: Prisma.SortOrder;
|
|
434
|
+
organizationId?: Prisma.SortOrder;
|
|
435
|
+
organizationBillingId?: Prisma.SortOrder;
|
|
436
|
+
stripeSubscriptionId?: Prisma.SortOrder;
|
|
437
|
+
stripePriceId?: Prisma.SortOrder;
|
|
438
|
+
stripeOveragePriceId?: Prisma.SortOrder;
|
|
439
|
+
status?: Prisma.SortOrder;
|
|
440
|
+
includedRunsPerPeriod?: Prisma.SortOrder;
|
|
441
|
+
currentPeriodStart?: Prisma.SortOrder;
|
|
442
|
+
currentPeriodEnd?: Prisma.SortOrder;
|
|
443
|
+
createdAt?: Prisma.SortOrder;
|
|
444
|
+
updatedAt?: Prisma.SortOrder;
|
|
445
|
+
};
|
|
446
|
+
export type PentestSubscriptionSumOrderByAggregateInput = {
|
|
447
|
+
includedRunsPerPeriod?: Prisma.SortOrder;
|
|
448
|
+
};
|
|
449
|
+
export type PentestSubscriptionCreateNestedOneWithoutOrganizationBillingInput = {
|
|
450
|
+
create?: Prisma.XOR<Prisma.PentestSubscriptionCreateWithoutOrganizationBillingInput, Prisma.PentestSubscriptionUncheckedCreateWithoutOrganizationBillingInput>;
|
|
451
|
+
connectOrCreate?: Prisma.PentestSubscriptionCreateOrConnectWithoutOrganizationBillingInput;
|
|
452
|
+
connect?: Prisma.PentestSubscriptionWhereUniqueInput;
|
|
453
|
+
};
|
|
454
|
+
export type PentestSubscriptionUncheckedCreateNestedOneWithoutOrganizationBillingInput = {
|
|
455
|
+
create?: Prisma.XOR<Prisma.PentestSubscriptionCreateWithoutOrganizationBillingInput, Prisma.PentestSubscriptionUncheckedCreateWithoutOrganizationBillingInput>;
|
|
456
|
+
connectOrCreate?: Prisma.PentestSubscriptionCreateOrConnectWithoutOrganizationBillingInput;
|
|
457
|
+
connect?: Prisma.PentestSubscriptionWhereUniqueInput;
|
|
458
|
+
};
|
|
459
|
+
export type PentestSubscriptionUpdateOneWithoutOrganizationBillingNestedInput = {
|
|
460
|
+
create?: Prisma.XOR<Prisma.PentestSubscriptionCreateWithoutOrganizationBillingInput, Prisma.PentestSubscriptionUncheckedCreateWithoutOrganizationBillingInput>;
|
|
461
|
+
connectOrCreate?: Prisma.PentestSubscriptionCreateOrConnectWithoutOrganizationBillingInput;
|
|
462
|
+
upsert?: Prisma.PentestSubscriptionUpsertWithoutOrganizationBillingInput;
|
|
463
|
+
disconnect?: Prisma.PentestSubscriptionWhereInput | boolean;
|
|
464
|
+
delete?: Prisma.PentestSubscriptionWhereInput | boolean;
|
|
465
|
+
connect?: Prisma.PentestSubscriptionWhereUniqueInput;
|
|
466
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.PentestSubscriptionUpdateToOneWithWhereWithoutOrganizationBillingInput, Prisma.PentestSubscriptionUpdateWithoutOrganizationBillingInput>, Prisma.PentestSubscriptionUncheckedUpdateWithoutOrganizationBillingInput>;
|
|
467
|
+
};
|
|
468
|
+
export type PentestSubscriptionUncheckedUpdateOneWithoutOrganizationBillingNestedInput = {
|
|
469
|
+
create?: Prisma.XOR<Prisma.PentestSubscriptionCreateWithoutOrganizationBillingInput, Prisma.PentestSubscriptionUncheckedCreateWithoutOrganizationBillingInput>;
|
|
470
|
+
connectOrCreate?: Prisma.PentestSubscriptionCreateOrConnectWithoutOrganizationBillingInput;
|
|
471
|
+
upsert?: Prisma.PentestSubscriptionUpsertWithoutOrganizationBillingInput;
|
|
472
|
+
disconnect?: Prisma.PentestSubscriptionWhereInput | boolean;
|
|
473
|
+
delete?: Prisma.PentestSubscriptionWhereInput | boolean;
|
|
474
|
+
connect?: Prisma.PentestSubscriptionWhereUniqueInput;
|
|
475
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.PentestSubscriptionUpdateToOneWithWhereWithoutOrganizationBillingInput, Prisma.PentestSubscriptionUpdateWithoutOrganizationBillingInput>, Prisma.PentestSubscriptionUncheckedUpdateWithoutOrganizationBillingInput>;
|
|
476
|
+
};
|
|
477
|
+
export type PentestSubscriptionCreateNestedOneWithoutOrganizationInput = {
|
|
478
|
+
create?: Prisma.XOR<Prisma.PentestSubscriptionCreateWithoutOrganizationInput, Prisma.PentestSubscriptionUncheckedCreateWithoutOrganizationInput>;
|
|
479
|
+
connectOrCreate?: Prisma.PentestSubscriptionCreateOrConnectWithoutOrganizationInput;
|
|
480
|
+
connect?: Prisma.PentestSubscriptionWhereUniqueInput;
|
|
481
|
+
};
|
|
482
|
+
export type PentestSubscriptionUncheckedCreateNestedOneWithoutOrganizationInput = {
|
|
483
|
+
create?: Prisma.XOR<Prisma.PentestSubscriptionCreateWithoutOrganizationInput, Prisma.PentestSubscriptionUncheckedCreateWithoutOrganizationInput>;
|
|
484
|
+
connectOrCreate?: Prisma.PentestSubscriptionCreateOrConnectWithoutOrganizationInput;
|
|
485
|
+
connect?: Prisma.PentestSubscriptionWhereUniqueInput;
|
|
486
|
+
};
|
|
487
|
+
export type PentestSubscriptionUpdateOneWithoutOrganizationNestedInput = {
|
|
488
|
+
create?: Prisma.XOR<Prisma.PentestSubscriptionCreateWithoutOrganizationInput, Prisma.PentestSubscriptionUncheckedCreateWithoutOrganizationInput>;
|
|
489
|
+
connectOrCreate?: Prisma.PentestSubscriptionCreateOrConnectWithoutOrganizationInput;
|
|
490
|
+
upsert?: Prisma.PentestSubscriptionUpsertWithoutOrganizationInput;
|
|
491
|
+
disconnect?: Prisma.PentestSubscriptionWhereInput | boolean;
|
|
492
|
+
delete?: Prisma.PentestSubscriptionWhereInput | boolean;
|
|
493
|
+
connect?: Prisma.PentestSubscriptionWhereUniqueInput;
|
|
494
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.PentestSubscriptionUpdateToOneWithWhereWithoutOrganizationInput, Prisma.PentestSubscriptionUpdateWithoutOrganizationInput>, Prisma.PentestSubscriptionUncheckedUpdateWithoutOrganizationInput>;
|
|
495
|
+
};
|
|
496
|
+
export type PentestSubscriptionUncheckedUpdateOneWithoutOrganizationNestedInput = {
|
|
497
|
+
create?: Prisma.XOR<Prisma.PentestSubscriptionCreateWithoutOrganizationInput, Prisma.PentestSubscriptionUncheckedCreateWithoutOrganizationInput>;
|
|
498
|
+
connectOrCreate?: Prisma.PentestSubscriptionCreateOrConnectWithoutOrganizationInput;
|
|
499
|
+
upsert?: Prisma.PentestSubscriptionUpsertWithoutOrganizationInput;
|
|
500
|
+
disconnect?: Prisma.PentestSubscriptionWhereInput | boolean;
|
|
501
|
+
delete?: Prisma.PentestSubscriptionWhereInput | boolean;
|
|
502
|
+
connect?: Prisma.PentestSubscriptionWhereUniqueInput;
|
|
503
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.PentestSubscriptionUpdateToOneWithWhereWithoutOrganizationInput, Prisma.PentestSubscriptionUpdateWithoutOrganizationInput>, Prisma.PentestSubscriptionUncheckedUpdateWithoutOrganizationInput>;
|
|
504
|
+
};
|
|
505
|
+
export type PentestSubscriptionCreateWithoutOrganizationBillingInput = {
|
|
506
|
+
id?: string;
|
|
507
|
+
stripeSubscriptionId: string;
|
|
508
|
+
stripePriceId: string;
|
|
509
|
+
stripeOveragePriceId?: string | null;
|
|
510
|
+
status?: string;
|
|
511
|
+
includedRunsPerPeriod?: number;
|
|
512
|
+
currentPeriodStart: Date | string;
|
|
513
|
+
currentPeriodEnd: Date | string;
|
|
514
|
+
createdAt?: Date | string;
|
|
515
|
+
updatedAt?: Date | string;
|
|
516
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutPentestSubscriptionInput;
|
|
517
|
+
};
|
|
518
|
+
export type PentestSubscriptionUncheckedCreateWithoutOrganizationBillingInput = {
|
|
519
|
+
id?: string;
|
|
520
|
+
organizationId: string;
|
|
521
|
+
stripeSubscriptionId: string;
|
|
522
|
+
stripePriceId: string;
|
|
523
|
+
stripeOveragePriceId?: string | null;
|
|
524
|
+
status?: string;
|
|
525
|
+
includedRunsPerPeriod?: number;
|
|
526
|
+
currentPeriodStart: Date | string;
|
|
527
|
+
currentPeriodEnd: Date | string;
|
|
528
|
+
createdAt?: Date | string;
|
|
529
|
+
updatedAt?: Date | string;
|
|
530
|
+
};
|
|
531
|
+
export type PentestSubscriptionCreateOrConnectWithoutOrganizationBillingInput = {
|
|
532
|
+
where: Prisma.PentestSubscriptionWhereUniqueInput;
|
|
533
|
+
create: Prisma.XOR<Prisma.PentestSubscriptionCreateWithoutOrganizationBillingInput, Prisma.PentestSubscriptionUncheckedCreateWithoutOrganizationBillingInput>;
|
|
534
|
+
};
|
|
535
|
+
export type PentestSubscriptionUpsertWithoutOrganizationBillingInput = {
|
|
536
|
+
update: Prisma.XOR<Prisma.PentestSubscriptionUpdateWithoutOrganizationBillingInput, Prisma.PentestSubscriptionUncheckedUpdateWithoutOrganizationBillingInput>;
|
|
537
|
+
create: Prisma.XOR<Prisma.PentestSubscriptionCreateWithoutOrganizationBillingInput, Prisma.PentestSubscriptionUncheckedCreateWithoutOrganizationBillingInput>;
|
|
538
|
+
where?: Prisma.PentestSubscriptionWhereInput;
|
|
539
|
+
};
|
|
540
|
+
export type PentestSubscriptionUpdateToOneWithWhereWithoutOrganizationBillingInput = {
|
|
541
|
+
where?: Prisma.PentestSubscriptionWhereInput;
|
|
542
|
+
data: Prisma.XOR<Prisma.PentestSubscriptionUpdateWithoutOrganizationBillingInput, Prisma.PentestSubscriptionUncheckedUpdateWithoutOrganizationBillingInput>;
|
|
543
|
+
};
|
|
544
|
+
export type PentestSubscriptionUpdateWithoutOrganizationBillingInput = {
|
|
545
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
546
|
+
stripeSubscriptionId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
547
|
+
stripePriceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
548
|
+
stripeOveragePriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
549
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
550
|
+
includedRunsPerPeriod?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
551
|
+
currentPeriodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
552
|
+
currentPeriodEnd?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
553
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
554
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
555
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutPentestSubscriptionNestedInput;
|
|
556
|
+
};
|
|
557
|
+
export type PentestSubscriptionUncheckedUpdateWithoutOrganizationBillingInput = {
|
|
558
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
559
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
560
|
+
stripeSubscriptionId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
561
|
+
stripePriceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
562
|
+
stripeOveragePriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
563
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
564
|
+
includedRunsPerPeriod?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
565
|
+
currentPeriodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
566
|
+
currentPeriodEnd?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
567
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
568
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
569
|
+
};
|
|
570
|
+
export type PentestSubscriptionCreateWithoutOrganizationInput = {
|
|
571
|
+
id?: string;
|
|
572
|
+
stripeSubscriptionId: string;
|
|
573
|
+
stripePriceId: string;
|
|
574
|
+
stripeOveragePriceId?: string | null;
|
|
575
|
+
status?: string;
|
|
576
|
+
includedRunsPerPeriod?: number;
|
|
577
|
+
currentPeriodStart: Date | string;
|
|
578
|
+
currentPeriodEnd: Date | string;
|
|
579
|
+
createdAt?: Date | string;
|
|
580
|
+
updatedAt?: Date | string;
|
|
581
|
+
organizationBilling: Prisma.OrganizationBillingCreateNestedOneWithoutPentestSubscriptionInput;
|
|
582
|
+
};
|
|
583
|
+
export type PentestSubscriptionUncheckedCreateWithoutOrganizationInput = {
|
|
584
|
+
id?: string;
|
|
585
|
+
organizationBillingId: string;
|
|
586
|
+
stripeSubscriptionId: string;
|
|
587
|
+
stripePriceId: string;
|
|
588
|
+
stripeOveragePriceId?: string | null;
|
|
589
|
+
status?: string;
|
|
590
|
+
includedRunsPerPeriod?: number;
|
|
591
|
+
currentPeriodStart: Date | string;
|
|
592
|
+
currentPeriodEnd: Date | string;
|
|
593
|
+
createdAt?: Date | string;
|
|
594
|
+
updatedAt?: Date | string;
|
|
595
|
+
};
|
|
596
|
+
export type PentestSubscriptionCreateOrConnectWithoutOrganizationInput = {
|
|
597
|
+
where: Prisma.PentestSubscriptionWhereUniqueInput;
|
|
598
|
+
create: Prisma.XOR<Prisma.PentestSubscriptionCreateWithoutOrganizationInput, Prisma.PentestSubscriptionUncheckedCreateWithoutOrganizationInput>;
|
|
599
|
+
};
|
|
600
|
+
export type PentestSubscriptionUpsertWithoutOrganizationInput = {
|
|
601
|
+
update: Prisma.XOR<Prisma.PentestSubscriptionUpdateWithoutOrganizationInput, Prisma.PentestSubscriptionUncheckedUpdateWithoutOrganizationInput>;
|
|
602
|
+
create: Prisma.XOR<Prisma.PentestSubscriptionCreateWithoutOrganizationInput, Prisma.PentestSubscriptionUncheckedCreateWithoutOrganizationInput>;
|
|
603
|
+
where?: Prisma.PentestSubscriptionWhereInput;
|
|
604
|
+
};
|
|
605
|
+
export type PentestSubscriptionUpdateToOneWithWhereWithoutOrganizationInput = {
|
|
606
|
+
where?: Prisma.PentestSubscriptionWhereInput;
|
|
607
|
+
data: Prisma.XOR<Prisma.PentestSubscriptionUpdateWithoutOrganizationInput, Prisma.PentestSubscriptionUncheckedUpdateWithoutOrganizationInput>;
|
|
608
|
+
};
|
|
609
|
+
export type PentestSubscriptionUpdateWithoutOrganizationInput = {
|
|
610
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
611
|
+
stripeSubscriptionId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
612
|
+
stripePriceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
613
|
+
stripeOveragePriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
614
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
615
|
+
includedRunsPerPeriod?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
616
|
+
currentPeriodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
617
|
+
currentPeriodEnd?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
618
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
619
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
620
|
+
organizationBilling?: Prisma.OrganizationBillingUpdateOneRequiredWithoutPentestSubscriptionNestedInput;
|
|
621
|
+
};
|
|
622
|
+
export type PentestSubscriptionUncheckedUpdateWithoutOrganizationInput = {
|
|
623
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
624
|
+
organizationBillingId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
625
|
+
stripeSubscriptionId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
626
|
+
stripePriceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
627
|
+
stripeOveragePriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
628
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
629
|
+
includedRunsPerPeriod?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
630
|
+
currentPeriodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
631
|
+
currentPeriodEnd?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
632
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
633
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
634
|
+
};
|
|
635
|
+
export type PentestSubscriptionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
636
|
+
id?: boolean;
|
|
637
|
+
organizationId?: boolean;
|
|
638
|
+
organizationBillingId?: boolean;
|
|
639
|
+
stripeSubscriptionId?: boolean;
|
|
640
|
+
stripePriceId?: boolean;
|
|
641
|
+
stripeOveragePriceId?: boolean;
|
|
642
|
+
status?: boolean;
|
|
643
|
+
includedRunsPerPeriod?: boolean;
|
|
644
|
+
currentPeriodStart?: boolean;
|
|
645
|
+
currentPeriodEnd?: boolean;
|
|
646
|
+
createdAt?: boolean;
|
|
647
|
+
updatedAt?: boolean;
|
|
648
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
649
|
+
organizationBilling?: boolean | Prisma.OrganizationBillingDefaultArgs<ExtArgs>;
|
|
650
|
+
}, ExtArgs["result"]["pentestSubscription"]>;
|
|
651
|
+
export type PentestSubscriptionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
652
|
+
id?: boolean;
|
|
653
|
+
organizationId?: boolean;
|
|
654
|
+
organizationBillingId?: boolean;
|
|
655
|
+
stripeSubscriptionId?: boolean;
|
|
656
|
+
stripePriceId?: boolean;
|
|
657
|
+
stripeOveragePriceId?: boolean;
|
|
658
|
+
status?: boolean;
|
|
659
|
+
includedRunsPerPeriod?: boolean;
|
|
660
|
+
currentPeriodStart?: boolean;
|
|
661
|
+
currentPeriodEnd?: boolean;
|
|
662
|
+
createdAt?: boolean;
|
|
663
|
+
updatedAt?: boolean;
|
|
664
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
665
|
+
organizationBilling?: boolean | Prisma.OrganizationBillingDefaultArgs<ExtArgs>;
|
|
666
|
+
}, ExtArgs["result"]["pentestSubscription"]>;
|
|
667
|
+
export type PentestSubscriptionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
668
|
+
id?: boolean;
|
|
669
|
+
organizationId?: boolean;
|
|
670
|
+
organizationBillingId?: boolean;
|
|
671
|
+
stripeSubscriptionId?: boolean;
|
|
672
|
+
stripePriceId?: boolean;
|
|
673
|
+
stripeOveragePriceId?: boolean;
|
|
674
|
+
status?: boolean;
|
|
675
|
+
includedRunsPerPeriod?: boolean;
|
|
676
|
+
currentPeriodStart?: boolean;
|
|
677
|
+
currentPeriodEnd?: boolean;
|
|
678
|
+
createdAt?: boolean;
|
|
679
|
+
updatedAt?: boolean;
|
|
680
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
681
|
+
organizationBilling?: boolean | Prisma.OrganizationBillingDefaultArgs<ExtArgs>;
|
|
682
|
+
}, ExtArgs["result"]["pentestSubscription"]>;
|
|
683
|
+
export type PentestSubscriptionSelectScalar = {
|
|
684
|
+
id?: boolean;
|
|
685
|
+
organizationId?: boolean;
|
|
686
|
+
organizationBillingId?: boolean;
|
|
687
|
+
stripeSubscriptionId?: boolean;
|
|
688
|
+
stripePriceId?: boolean;
|
|
689
|
+
stripeOveragePriceId?: boolean;
|
|
690
|
+
status?: boolean;
|
|
691
|
+
includedRunsPerPeriod?: boolean;
|
|
692
|
+
currentPeriodStart?: boolean;
|
|
693
|
+
currentPeriodEnd?: boolean;
|
|
694
|
+
createdAt?: boolean;
|
|
695
|
+
updatedAt?: boolean;
|
|
696
|
+
};
|
|
697
|
+
export type PentestSubscriptionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "organizationId" | "organizationBillingId" | "stripeSubscriptionId" | "stripePriceId" | "stripeOveragePriceId" | "status" | "includedRunsPerPeriod" | "currentPeriodStart" | "currentPeriodEnd" | "createdAt" | "updatedAt", ExtArgs["result"]["pentestSubscription"]>;
|
|
698
|
+
export type PentestSubscriptionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
699
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
700
|
+
organizationBilling?: boolean | Prisma.OrganizationBillingDefaultArgs<ExtArgs>;
|
|
701
|
+
};
|
|
702
|
+
export type PentestSubscriptionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
703
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
704
|
+
organizationBilling?: boolean | Prisma.OrganizationBillingDefaultArgs<ExtArgs>;
|
|
705
|
+
};
|
|
706
|
+
export type PentestSubscriptionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
707
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
708
|
+
organizationBilling?: boolean | Prisma.OrganizationBillingDefaultArgs<ExtArgs>;
|
|
709
|
+
};
|
|
710
|
+
export type $PentestSubscriptionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
711
|
+
name: "PentestSubscription";
|
|
712
|
+
objects: {
|
|
713
|
+
organization: Prisma.$OrganizationPayload<ExtArgs>;
|
|
714
|
+
organizationBilling: Prisma.$OrganizationBillingPayload<ExtArgs>;
|
|
715
|
+
};
|
|
716
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
717
|
+
id: string;
|
|
718
|
+
organizationId: string;
|
|
719
|
+
organizationBillingId: string;
|
|
720
|
+
stripeSubscriptionId: string;
|
|
721
|
+
stripePriceId: string;
|
|
722
|
+
stripeOveragePriceId: string | null;
|
|
723
|
+
status: string;
|
|
724
|
+
includedRunsPerPeriod: number;
|
|
725
|
+
currentPeriodStart: Date;
|
|
726
|
+
currentPeriodEnd: Date;
|
|
727
|
+
createdAt: Date;
|
|
728
|
+
updatedAt: Date;
|
|
729
|
+
}, ExtArgs["result"]["pentestSubscription"]>;
|
|
730
|
+
composites: {};
|
|
731
|
+
};
|
|
732
|
+
export type PentestSubscriptionGetPayload<S extends boolean | null | undefined | PentestSubscriptionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PentestSubscriptionPayload, S>;
|
|
733
|
+
export type PentestSubscriptionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<PentestSubscriptionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
734
|
+
select?: PentestSubscriptionCountAggregateInputType | true;
|
|
735
|
+
};
|
|
736
|
+
export interface PentestSubscriptionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
737
|
+
[K: symbol]: {
|
|
738
|
+
types: Prisma.TypeMap<ExtArgs>['model']['PentestSubscription'];
|
|
739
|
+
meta: {
|
|
740
|
+
name: 'PentestSubscription';
|
|
741
|
+
};
|
|
742
|
+
};
|
|
743
|
+
/**
|
|
744
|
+
* Find zero or one PentestSubscription that matches the filter.
|
|
745
|
+
* @param {PentestSubscriptionFindUniqueArgs} args - Arguments to find a PentestSubscription
|
|
746
|
+
* @example
|
|
747
|
+
* // Get one PentestSubscription
|
|
748
|
+
* const pentestSubscription = await prisma.pentestSubscription.findUnique({
|
|
749
|
+
* where: {
|
|
750
|
+
* // ... provide filter here
|
|
751
|
+
* }
|
|
752
|
+
* })
|
|
753
|
+
*/
|
|
754
|
+
findUnique<T extends PentestSubscriptionFindUniqueArgs>(args: Prisma.SelectSubset<T, PentestSubscriptionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PentestSubscriptionClient<runtime.Types.Result.GetResult<Prisma.$PentestSubscriptionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
755
|
+
/**
|
|
756
|
+
* Find one PentestSubscription that matches the filter or throw an error with `error.code='P2025'`
|
|
757
|
+
* if no matches were found.
|
|
758
|
+
* @param {PentestSubscriptionFindUniqueOrThrowArgs} args - Arguments to find a PentestSubscription
|
|
759
|
+
* @example
|
|
760
|
+
* // Get one PentestSubscription
|
|
761
|
+
* const pentestSubscription = await prisma.pentestSubscription.findUniqueOrThrow({
|
|
762
|
+
* where: {
|
|
763
|
+
* // ... provide filter here
|
|
764
|
+
* }
|
|
765
|
+
* })
|
|
766
|
+
*/
|
|
767
|
+
findUniqueOrThrow<T extends PentestSubscriptionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PentestSubscriptionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PentestSubscriptionClient<runtime.Types.Result.GetResult<Prisma.$PentestSubscriptionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
768
|
+
/**
|
|
769
|
+
* Find the first PentestSubscription that matches the filter.
|
|
770
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
771
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
772
|
+
* @param {PentestSubscriptionFindFirstArgs} args - Arguments to find a PentestSubscription
|
|
773
|
+
* @example
|
|
774
|
+
* // Get one PentestSubscription
|
|
775
|
+
* const pentestSubscription = await prisma.pentestSubscription.findFirst({
|
|
776
|
+
* where: {
|
|
777
|
+
* // ... provide filter here
|
|
778
|
+
* }
|
|
779
|
+
* })
|
|
780
|
+
*/
|
|
781
|
+
findFirst<T extends PentestSubscriptionFindFirstArgs>(args?: Prisma.SelectSubset<T, PentestSubscriptionFindFirstArgs<ExtArgs>>): Prisma.Prisma__PentestSubscriptionClient<runtime.Types.Result.GetResult<Prisma.$PentestSubscriptionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
782
|
+
/**
|
|
783
|
+
* Find the first PentestSubscription that matches the filter or
|
|
784
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
785
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
786
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
787
|
+
* @param {PentestSubscriptionFindFirstOrThrowArgs} args - Arguments to find a PentestSubscription
|
|
788
|
+
* @example
|
|
789
|
+
* // Get one PentestSubscription
|
|
790
|
+
* const pentestSubscription = await prisma.pentestSubscription.findFirstOrThrow({
|
|
791
|
+
* where: {
|
|
792
|
+
* // ... provide filter here
|
|
793
|
+
* }
|
|
794
|
+
* })
|
|
795
|
+
*/
|
|
796
|
+
findFirstOrThrow<T extends PentestSubscriptionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PentestSubscriptionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PentestSubscriptionClient<runtime.Types.Result.GetResult<Prisma.$PentestSubscriptionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
797
|
+
/**
|
|
798
|
+
* Find zero or more PentestSubscriptions that matches the filter.
|
|
799
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
800
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
801
|
+
* @param {PentestSubscriptionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
802
|
+
* @example
|
|
803
|
+
* // Get all PentestSubscriptions
|
|
804
|
+
* const pentestSubscriptions = await prisma.pentestSubscription.findMany()
|
|
805
|
+
*
|
|
806
|
+
* // Get first 10 PentestSubscriptions
|
|
807
|
+
* const pentestSubscriptions = await prisma.pentestSubscription.findMany({ take: 10 })
|
|
808
|
+
*
|
|
809
|
+
* // Only select the `id`
|
|
810
|
+
* const pentestSubscriptionWithIdOnly = await prisma.pentestSubscription.findMany({ select: { id: true } })
|
|
811
|
+
*
|
|
812
|
+
*/
|
|
813
|
+
findMany<T extends PentestSubscriptionFindManyArgs>(args?: Prisma.SelectSubset<T, PentestSubscriptionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PentestSubscriptionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
814
|
+
/**
|
|
815
|
+
* Create a PentestSubscription.
|
|
816
|
+
* @param {PentestSubscriptionCreateArgs} args - Arguments to create a PentestSubscription.
|
|
817
|
+
* @example
|
|
818
|
+
* // Create one PentestSubscription
|
|
819
|
+
* const PentestSubscription = await prisma.pentestSubscription.create({
|
|
820
|
+
* data: {
|
|
821
|
+
* // ... data to create a PentestSubscription
|
|
822
|
+
* }
|
|
823
|
+
* })
|
|
824
|
+
*
|
|
825
|
+
*/
|
|
826
|
+
create<T extends PentestSubscriptionCreateArgs>(args: Prisma.SelectSubset<T, PentestSubscriptionCreateArgs<ExtArgs>>): Prisma.Prisma__PentestSubscriptionClient<runtime.Types.Result.GetResult<Prisma.$PentestSubscriptionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
827
|
+
/**
|
|
828
|
+
* Create many PentestSubscriptions.
|
|
829
|
+
* @param {PentestSubscriptionCreateManyArgs} args - Arguments to create many PentestSubscriptions.
|
|
830
|
+
* @example
|
|
831
|
+
* // Create many PentestSubscriptions
|
|
832
|
+
* const pentestSubscription = await prisma.pentestSubscription.createMany({
|
|
833
|
+
* data: [
|
|
834
|
+
* // ... provide data here
|
|
835
|
+
* ]
|
|
836
|
+
* })
|
|
837
|
+
*
|
|
838
|
+
*/
|
|
839
|
+
createMany<T extends PentestSubscriptionCreateManyArgs>(args?: Prisma.SelectSubset<T, PentestSubscriptionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
840
|
+
/**
|
|
841
|
+
* Create many PentestSubscriptions and returns the data saved in the database.
|
|
842
|
+
* @param {PentestSubscriptionCreateManyAndReturnArgs} args - Arguments to create many PentestSubscriptions.
|
|
843
|
+
* @example
|
|
844
|
+
* // Create many PentestSubscriptions
|
|
845
|
+
* const pentestSubscription = await prisma.pentestSubscription.createManyAndReturn({
|
|
846
|
+
* data: [
|
|
847
|
+
* // ... provide data here
|
|
848
|
+
* ]
|
|
849
|
+
* })
|
|
850
|
+
*
|
|
851
|
+
* // Create many PentestSubscriptions and only return the `id`
|
|
852
|
+
* const pentestSubscriptionWithIdOnly = await prisma.pentestSubscription.createManyAndReturn({
|
|
853
|
+
* select: { id: true },
|
|
854
|
+
* data: [
|
|
855
|
+
* // ... provide data here
|
|
856
|
+
* ]
|
|
857
|
+
* })
|
|
858
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
859
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
860
|
+
*
|
|
861
|
+
*/
|
|
862
|
+
createManyAndReturn<T extends PentestSubscriptionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PentestSubscriptionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PentestSubscriptionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
863
|
+
/**
|
|
864
|
+
* Delete a PentestSubscription.
|
|
865
|
+
* @param {PentestSubscriptionDeleteArgs} args - Arguments to delete one PentestSubscription.
|
|
866
|
+
* @example
|
|
867
|
+
* // Delete one PentestSubscription
|
|
868
|
+
* const PentestSubscription = await prisma.pentestSubscription.delete({
|
|
869
|
+
* where: {
|
|
870
|
+
* // ... filter to delete one PentestSubscription
|
|
871
|
+
* }
|
|
872
|
+
* })
|
|
873
|
+
*
|
|
874
|
+
*/
|
|
875
|
+
delete<T extends PentestSubscriptionDeleteArgs>(args: Prisma.SelectSubset<T, PentestSubscriptionDeleteArgs<ExtArgs>>): Prisma.Prisma__PentestSubscriptionClient<runtime.Types.Result.GetResult<Prisma.$PentestSubscriptionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
876
|
+
/**
|
|
877
|
+
* Update one PentestSubscription.
|
|
878
|
+
* @param {PentestSubscriptionUpdateArgs} args - Arguments to update one PentestSubscription.
|
|
879
|
+
* @example
|
|
880
|
+
* // Update one PentestSubscription
|
|
881
|
+
* const pentestSubscription = await prisma.pentestSubscription.update({
|
|
882
|
+
* where: {
|
|
883
|
+
* // ... provide filter here
|
|
884
|
+
* },
|
|
885
|
+
* data: {
|
|
886
|
+
* // ... provide data here
|
|
887
|
+
* }
|
|
888
|
+
* })
|
|
889
|
+
*
|
|
890
|
+
*/
|
|
891
|
+
update<T extends PentestSubscriptionUpdateArgs>(args: Prisma.SelectSubset<T, PentestSubscriptionUpdateArgs<ExtArgs>>): Prisma.Prisma__PentestSubscriptionClient<runtime.Types.Result.GetResult<Prisma.$PentestSubscriptionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
892
|
+
/**
|
|
893
|
+
* Delete zero or more PentestSubscriptions.
|
|
894
|
+
* @param {PentestSubscriptionDeleteManyArgs} args - Arguments to filter PentestSubscriptions to delete.
|
|
895
|
+
* @example
|
|
896
|
+
* // Delete a few PentestSubscriptions
|
|
897
|
+
* const { count } = await prisma.pentestSubscription.deleteMany({
|
|
898
|
+
* where: {
|
|
899
|
+
* // ... provide filter here
|
|
900
|
+
* }
|
|
901
|
+
* })
|
|
902
|
+
*
|
|
903
|
+
*/
|
|
904
|
+
deleteMany<T extends PentestSubscriptionDeleteManyArgs>(args?: Prisma.SelectSubset<T, PentestSubscriptionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
905
|
+
/**
|
|
906
|
+
* Update zero or more PentestSubscriptions.
|
|
907
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
908
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
909
|
+
* @param {PentestSubscriptionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
910
|
+
* @example
|
|
911
|
+
* // Update many PentestSubscriptions
|
|
912
|
+
* const pentestSubscription = await prisma.pentestSubscription.updateMany({
|
|
913
|
+
* where: {
|
|
914
|
+
* // ... provide filter here
|
|
915
|
+
* },
|
|
916
|
+
* data: {
|
|
917
|
+
* // ... provide data here
|
|
918
|
+
* }
|
|
919
|
+
* })
|
|
920
|
+
*
|
|
921
|
+
*/
|
|
922
|
+
updateMany<T extends PentestSubscriptionUpdateManyArgs>(args: Prisma.SelectSubset<T, PentestSubscriptionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
923
|
+
/**
|
|
924
|
+
* Update zero or more PentestSubscriptions and returns the data updated in the database.
|
|
925
|
+
* @param {PentestSubscriptionUpdateManyAndReturnArgs} args - Arguments to update many PentestSubscriptions.
|
|
926
|
+
* @example
|
|
927
|
+
* // Update many PentestSubscriptions
|
|
928
|
+
* const pentestSubscription = await prisma.pentestSubscription.updateManyAndReturn({
|
|
929
|
+
* where: {
|
|
930
|
+
* // ... provide filter here
|
|
931
|
+
* },
|
|
932
|
+
* data: [
|
|
933
|
+
* // ... provide data here
|
|
934
|
+
* ]
|
|
935
|
+
* })
|
|
936
|
+
*
|
|
937
|
+
* // Update zero or more PentestSubscriptions and only return the `id`
|
|
938
|
+
* const pentestSubscriptionWithIdOnly = await prisma.pentestSubscription.updateManyAndReturn({
|
|
939
|
+
* select: { id: true },
|
|
940
|
+
* where: {
|
|
941
|
+
* // ... provide filter here
|
|
942
|
+
* },
|
|
943
|
+
* data: [
|
|
944
|
+
* // ... provide data here
|
|
945
|
+
* ]
|
|
946
|
+
* })
|
|
947
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
948
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
949
|
+
*
|
|
950
|
+
*/
|
|
951
|
+
updateManyAndReturn<T extends PentestSubscriptionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PentestSubscriptionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PentestSubscriptionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
952
|
+
/**
|
|
953
|
+
* Create or update one PentestSubscription.
|
|
954
|
+
* @param {PentestSubscriptionUpsertArgs} args - Arguments to update or create a PentestSubscription.
|
|
955
|
+
* @example
|
|
956
|
+
* // Update or create a PentestSubscription
|
|
957
|
+
* const pentestSubscription = await prisma.pentestSubscription.upsert({
|
|
958
|
+
* create: {
|
|
959
|
+
* // ... data to create a PentestSubscription
|
|
960
|
+
* },
|
|
961
|
+
* update: {
|
|
962
|
+
* // ... in case it already exists, update
|
|
963
|
+
* },
|
|
964
|
+
* where: {
|
|
965
|
+
* // ... the filter for the PentestSubscription we want to update
|
|
966
|
+
* }
|
|
967
|
+
* })
|
|
968
|
+
*/
|
|
969
|
+
upsert<T extends PentestSubscriptionUpsertArgs>(args: Prisma.SelectSubset<T, PentestSubscriptionUpsertArgs<ExtArgs>>): Prisma.Prisma__PentestSubscriptionClient<runtime.Types.Result.GetResult<Prisma.$PentestSubscriptionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
970
|
+
/**
|
|
971
|
+
* Count the number of PentestSubscriptions.
|
|
972
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
973
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
974
|
+
* @param {PentestSubscriptionCountArgs} args - Arguments to filter PentestSubscriptions to count.
|
|
975
|
+
* @example
|
|
976
|
+
* // Count the number of PentestSubscriptions
|
|
977
|
+
* const count = await prisma.pentestSubscription.count({
|
|
978
|
+
* where: {
|
|
979
|
+
* // ... the filter for the PentestSubscriptions we want to count
|
|
980
|
+
* }
|
|
981
|
+
* })
|
|
982
|
+
**/
|
|
983
|
+
count<T extends PentestSubscriptionCountArgs>(args?: Prisma.Subset<T, PentestSubscriptionCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], PentestSubscriptionCountAggregateOutputType> : number>;
|
|
984
|
+
/**
|
|
985
|
+
* Allows you to perform aggregations operations on a PentestSubscription.
|
|
986
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
987
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
988
|
+
* @param {PentestSubscriptionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
989
|
+
* @example
|
|
990
|
+
* // Ordered by age ascending
|
|
991
|
+
* // Where email contains prisma.io
|
|
992
|
+
* // Limited to the 10 users
|
|
993
|
+
* const aggregations = await prisma.user.aggregate({
|
|
994
|
+
* _avg: {
|
|
995
|
+
* age: true,
|
|
996
|
+
* },
|
|
997
|
+
* where: {
|
|
998
|
+
* email: {
|
|
999
|
+
* contains: "prisma.io",
|
|
1000
|
+
* },
|
|
1001
|
+
* },
|
|
1002
|
+
* orderBy: {
|
|
1003
|
+
* age: "asc",
|
|
1004
|
+
* },
|
|
1005
|
+
* take: 10,
|
|
1006
|
+
* })
|
|
1007
|
+
**/
|
|
1008
|
+
aggregate<T extends PentestSubscriptionAggregateArgs>(args: Prisma.Subset<T, PentestSubscriptionAggregateArgs>): Prisma.PrismaPromise<GetPentestSubscriptionAggregateType<T>>;
|
|
1009
|
+
/**
|
|
1010
|
+
* Group by PentestSubscription.
|
|
1011
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1012
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1013
|
+
* @param {PentestSubscriptionGroupByArgs} args - Group by arguments.
|
|
1014
|
+
* @example
|
|
1015
|
+
* // Group by city, order by createdAt, get count
|
|
1016
|
+
* const result = await prisma.user.groupBy({
|
|
1017
|
+
* by: ['city', 'createdAt'],
|
|
1018
|
+
* orderBy: {
|
|
1019
|
+
* createdAt: true
|
|
1020
|
+
* },
|
|
1021
|
+
* _count: {
|
|
1022
|
+
* _all: true
|
|
1023
|
+
* },
|
|
1024
|
+
* })
|
|
1025
|
+
*
|
|
1026
|
+
**/
|
|
1027
|
+
groupBy<T extends PentestSubscriptionGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
1028
|
+
orderBy: PentestSubscriptionGroupByArgs['orderBy'];
|
|
1029
|
+
} : {
|
|
1030
|
+
orderBy?: PentestSubscriptionGroupByArgs['orderBy'];
|
|
1031
|
+
}, 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 ? {
|
|
1032
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
1033
|
+
Error,
|
|
1034
|
+
'Field ',
|
|
1035
|
+
P,
|
|
1036
|
+
` in "having" needs to be provided in "by"`
|
|
1037
|
+
];
|
|
1038
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
1039
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1040
|
+
}[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 ? {} : {
|
|
1041
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1042
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
1043
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1044
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, PentestSubscriptionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPentestSubscriptionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
1045
|
+
/**
|
|
1046
|
+
* Fields of the PentestSubscription model
|
|
1047
|
+
*/
|
|
1048
|
+
readonly fields: PentestSubscriptionFieldRefs;
|
|
1049
|
+
}
|
|
1050
|
+
/**
|
|
1051
|
+
* The delegate class that acts as a "Promise-like" for PentestSubscription.
|
|
1052
|
+
* Why is this prefixed with `Prisma__`?
|
|
1053
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1054
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1055
|
+
*/
|
|
1056
|
+
export interface Prisma__PentestSubscriptionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1057
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
1058
|
+
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>;
|
|
1059
|
+
organizationBilling<T extends Prisma.OrganizationBillingDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationBillingDefaultArgs<ExtArgs>>): Prisma.Prisma__OrganizationBillingClient<runtime.Types.Result.GetResult<Prisma.$OrganizationBillingPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
1060
|
+
/**
|
|
1061
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1062
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1063
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1064
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1065
|
+
*/
|
|
1066
|
+
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>;
|
|
1067
|
+
/**
|
|
1068
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1069
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1070
|
+
* @returns A Promise for the completion of the callback.
|
|
1071
|
+
*/
|
|
1072
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
1073
|
+
/**
|
|
1074
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1075
|
+
* resolved value cannot be modified from the callback.
|
|
1076
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1077
|
+
* @returns A Promise for the completion of the callback.
|
|
1078
|
+
*/
|
|
1079
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
1080
|
+
}
|
|
1081
|
+
/**
|
|
1082
|
+
* Fields of the PentestSubscription model
|
|
1083
|
+
*/
|
|
1084
|
+
export interface PentestSubscriptionFieldRefs {
|
|
1085
|
+
readonly id: Prisma.FieldRef<"PentestSubscription", 'String'>;
|
|
1086
|
+
readonly organizationId: Prisma.FieldRef<"PentestSubscription", 'String'>;
|
|
1087
|
+
readonly organizationBillingId: Prisma.FieldRef<"PentestSubscription", 'String'>;
|
|
1088
|
+
readonly stripeSubscriptionId: Prisma.FieldRef<"PentestSubscription", 'String'>;
|
|
1089
|
+
readonly stripePriceId: Prisma.FieldRef<"PentestSubscription", 'String'>;
|
|
1090
|
+
readonly stripeOveragePriceId: Prisma.FieldRef<"PentestSubscription", 'String'>;
|
|
1091
|
+
readonly status: Prisma.FieldRef<"PentestSubscription", 'String'>;
|
|
1092
|
+
readonly includedRunsPerPeriod: Prisma.FieldRef<"PentestSubscription", 'Int'>;
|
|
1093
|
+
readonly currentPeriodStart: Prisma.FieldRef<"PentestSubscription", 'DateTime'>;
|
|
1094
|
+
readonly currentPeriodEnd: Prisma.FieldRef<"PentestSubscription", 'DateTime'>;
|
|
1095
|
+
readonly createdAt: Prisma.FieldRef<"PentestSubscription", 'DateTime'>;
|
|
1096
|
+
readonly updatedAt: Prisma.FieldRef<"PentestSubscription", 'DateTime'>;
|
|
1097
|
+
}
|
|
1098
|
+
/**
|
|
1099
|
+
* PentestSubscription findUnique
|
|
1100
|
+
*/
|
|
1101
|
+
export type PentestSubscriptionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1102
|
+
/**
|
|
1103
|
+
* Select specific fields to fetch from the PentestSubscription
|
|
1104
|
+
*/
|
|
1105
|
+
select?: Prisma.PentestSubscriptionSelect<ExtArgs> | null;
|
|
1106
|
+
/**
|
|
1107
|
+
* Omit specific fields from the PentestSubscription
|
|
1108
|
+
*/
|
|
1109
|
+
omit?: Prisma.PentestSubscriptionOmit<ExtArgs> | null;
|
|
1110
|
+
/**
|
|
1111
|
+
* Choose, which related nodes to fetch as well
|
|
1112
|
+
*/
|
|
1113
|
+
include?: Prisma.PentestSubscriptionInclude<ExtArgs> | null;
|
|
1114
|
+
/**
|
|
1115
|
+
* Filter, which PentestSubscription to fetch.
|
|
1116
|
+
*/
|
|
1117
|
+
where: Prisma.PentestSubscriptionWhereUniqueInput;
|
|
1118
|
+
};
|
|
1119
|
+
/**
|
|
1120
|
+
* PentestSubscription findUniqueOrThrow
|
|
1121
|
+
*/
|
|
1122
|
+
export type PentestSubscriptionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1123
|
+
/**
|
|
1124
|
+
* Select specific fields to fetch from the PentestSubscription
|
|
1125
|
+
*/
|
|
1126
|
+
select?: Prisma.PentestSubscriptionSelect<ExtArgs> | null;
|
|
1127
|
+
/**
|
|
1128
|
+
* Omit specific fields from the PentestSubscription
|
|
1129
|
+
*/
|
|
1130
|
+
omit?: Prisma.PentestSubscriptionOmit<ExtArgs> | null;
|
|
1131
|
+
/**
|
|
1132
|
+
* Choose, which related nodes to fetch as well
|
|
1133
|
+
*/
|
|
1134
|
+
include?: Prisma.PentestSubscriptionInclude<ExtArgs> | null;
|
|
1135
|
+
/**
|
|
1136
|
+
* Filter, which PentestSubscription to fetch.
|
|
1137
|
+
*/
|
|
1138
|
+
where: Prisma.PentestSubscriptionWhereUniqueInput;
|
|
1139
|
+
};
|
|
1140
|
+
/**
|
|
1141
|
+
* PentestSubscription findFirst
|
|
1142
|
+
*/
|
|
1143
|
+
export type PentestSubscriptionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1144
|
+
/**
|
|
1145
|
+
* Select specific fields to fetch from the PentestSubscription
|
|
1146
|
+
*/
|
|
1147
|
+
select?: Prisma.PentestSubscriptionSelect<ExtArgs> | null;
|
|
1148
|
+
/**
|
|
1149
|
+
* Omit specific fields from the PentestSubscription
|
|
1150
|
+
*/
|
|
1151
|
+
omit?: Prisma.PentestSubscriptionOmit<ExtArgs> | null;
|
|
1152
|
+
/**
|
|
1153
|
+
* Choose, which related nodes to fetch as well
|
|
1154
|
+
*/
|
|
1155
|
+
include?: Prisma.PentestSubscriptionInclude<ExtArgs> | null;
|
|
1156
|
+
/**
|
|
1157
|
+
* Filter, which PentestSubscription to fetch.
|
|
1158
|
+
*/
|
|
1159
|
+
where?: Prisma.PentestSubscriptionWhereInput;
|
|
1160
|
+
/**
|
|
1161
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1162
|
+
*
|
|
1163
|
+
* Determine the order of PentestSubscriptions to fetch.
|
|
1164
|
+
*/
|
|
1165
|
+
orderBy?: Prisma.PentestSubscriptionOrderByWithRelationInput | Prisma.PentestSubscriptionOrderByWithRelationInput[];
|
|
1166
|
+
/**
|
|
1167
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1168
|
+
*
|
|
1169
|
+
* Sets the position for searching for PentestSubscriptions.
|
|
1170
|
+
*/
|
|
1171
|
+
cursor?: Prisma.PentestSubscriptionWhereUniqueInput;
|
|
1172
|
+
/**
|
|
1173
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1174
|
+
*
|
|
1175
|
+
* Take `±n` PentestSubscriptions from the position of the cursor.
|
|
1176
|
+
*/
|
|
1177
|
+
take?: number;
|
|
1178
|
+
/**
|
|
1179
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1180
|
+
*
|
|
1181
|
+
* Skip the first `n` PentestSubscriptions.
|
|
1182
|
+
*/
|
|
1183
|
+
skip?: number;
|
|
1184
|
+
/**
|
|
1185
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1186
|
+
*
|
|
1187
|
+
* Filter by unique combinations of PentestSubscriptions.
|
|
1188
|
+
*/
|
|
1189
|
+
distinct?: Prisma.PentestSubscriptionScalarFieldEnum | Prisma.PentestSubscriptionScalarFieldEnum[];
|
|
1190
|
+
};
|
|
1191
|
+
/**
|
|
1192
|
+
* PentestSubscription findFirstOrThrow
|
|
1193
|
+
*/
|
|
1194
|
+
export type PentestSubscriptionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1195
|
+
/**
|
|
1196
|
+
* Select specific fields to fetch from the PentestSubscription
|
|
1197
|
+
*/
|
|
1198
|
+
select?: Prisma.PentestSubscriptionSelect<ExtArgs> | null;
|
|
1199
|
+
/**
|
|
1200
|
+
* Omit specific fields from the PentestSubscription
|
|
1201
|
+
*/
|
|
1202
|
+
omit?: Prisma.PentestSubscriptionOmit<ExtArgs> | null;
|
|
1203
|
+
/**
|
|
1204
|
+
* Choose, which related nodes to fetch as well
|
|
1205
|
+
*/
|
|
1206
|
+
include?: Prisma.PentestSubscriptionInclude<ExtArgs> | null;
|
|
1207
|
+
/**
|
|
1208
|
+
* Filter, which PentestSubscription to fetch.
|
|
1209
|
+
*/
|
|
1210
|
+
where?: Prisma.PentestSubscriptionWhereInput;
|
|
1211
|
+
/**
|
|
1212
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1213
|
+
*
|
|
1214
|
+
* Determine the order of PentestSubscriptions to fetch.
|
|
1215
|
+
*/
|
|
1216
|
+
orderBy?: Prisma.PentestSubscriptionOrderByWithRelationInput | Prisma.PentestSubscriptionOrderByWithRelationInput[];
|
|
1217
|
+
/**
|
|
1218
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1219
|
+
*
|
|
1220
|
+
* Sets the position for searching for PentestSubscriptions.
|
|
1221
|
+
*/
|
|
1222
|
+
cursor?: Prisma.PentestSubscriptionWhereUniqueInput;
|
|
1223
|
+
/**
|
|
1224
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1225
|
+
*
|
|
1226
|
+
* Take `±n` PentestSubscriptions from the position of the cursor.
|
|
1227
|
+
*/
|
|
1228
|
+
take?: number;
|
|
1229
|
+
/**
|
|
1230
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1231
|
+
*
|
|
1232
|
+
* Skip the first `n` PentestSubscriptions.
|
|
1233
|
+
*/
|
|
1234
|
+
skip?: number;
|
|
1235
|
+
/**
|
|
1236
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1237
|
+
*
|
|
1238
|
+
* Filter by unique combinations of PentestSubscriptions.
|
|
1239
|
+
*/
|
|
1240
|
+
distinct?: Prisma.PentestSubscriptionScalarFieldEnum | Prisma.PentestSubscriptionScalarFieldEnum[];
|
|
1241
|
+
};
|
|
1242
|
+
/**
|
|
1243
|
+
* PentestSubscription findMany
|
|
1244
|
+
*/
|
|
1245
|
+
export type PentestSubscriptionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1246
|
+
/**
|
|
1247
|
+
* Select specific fields to fetch from the PentestSubscription
|
|
1248
|
+
*/
|
|
1249
|
+
select?: Prisma.PentestSubscriptionSelect<ExtArgs> | null;
|
|
1250
|
+
/**
|
|
1251
|
+
* Omit specific fields from the PentestSubscription
|
|
1252
|
+
*/
|
|
1253
|
+
omit?: Prisma.PentestSubscriptionOmit<ExtArgs> | null;
|
|
1254
|
+
/**
|
|
1255
|
+
* Choose, which related nodes to fetch as well
|
|
1256
|
+
*/
|
|
1257
|
+
include?: Prisma.PentestSubscriptionInclude<ExtArgs> | null;
|
|
1258
|
+
/**
|
|
1259
|
+
* Filter, which PentestSubscriptions to fetch.
|
|
1260
|
+
*/
|
|
1261
|
+
where?: Prisma.PentestSubscriptionWhereInput;
|
|
1262
|
+
/**
|
|
1263
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1264
|
+
*
|
|
1265
|
+
* Determine the order of PentestSubscriptions to fetch.
|
|
1266
|
+
*/
|
|
1267
|
+
orderBy?: Prisma.PentestSubscriptionOrderByWithRelationInput | Prisma.PentestSubscriptionOrderByWithRelationInput[];
|
|
1268
|
+
/**
|
|
1269
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1270
|
+
*
|
|
1271
|
+
* Sets the position for listing PentestSubscriptions.
|
|
1272
|
+
*/
|
|
1273
|
+
cursor?: Prisma.PentestSubscriptionWhereUniqueInput;
|
|
1274
|
+
/**
|
|
1275
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1276
|
+
*
|
|
1277
|
+
* Take `±n` PentestSubscriptions from the position of the cursor.
|
|
1278
|
+
*/
|
|
1279
|
+
take?: number;
|
|
1280
|
+
/**
|
|
1281
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1282
|
+
*
|
|
1283
|
+
* Skip the first `n` PentestSubscriptions.
|
|
1284
|
+
*/
|
|
1285
|
+
skip?: number;
|
|
1286
|
+
/**
|
|
1287
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1288
|
+
*
|
|
1289
|
+
* Filter by unique combinations of PentestSubscriptions.
|
|
1290
|
+
*/
|
|
1291
|
+
distinct?: Prisma.PentestSubscriptionScalarFieldEnum | Prisma.PentestSubscriptionScalarFieldEnum[];
|
|
1292
|
+
};
|
|
1293
|
+
/**
|
|
1294
|
+
* PentestSubscription create
|
|
1295
|
+
*/
|
|
1296
|
+
export type PentestSubscriptionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1297
|
+
/**
|
|
1298
|
+
* Select specific fields to fetch from the PentestSubscription
|
|
1299
|
+
*/
|
|
1300
|
+
select?: Prisma.PentestSubscriptionSelect<ExtArgs> | null;
|
|
1301
|
+
/**
|
|
1302
|
+
* Omit specific fields from the PentestSubscription
|
|
1303
|
+
*/
|
|
1304
|
+
omit?: Prisma.PentestSubscriptionOmit<ExtArgs> | null;
|
|
1305
|
+
/**
|
|
1306
|
+
* Choose, which related nodes to fetch as well
|
|
1307
|
+
*/
|
|
1308
|
+
include?: Prisma.PentestSubscriptionInclude<ExtArgs> | null;
|
|
1309
|
+
/**
|
|
1310
|
+
* The data needed to create a PentestSubscription.
|
|
1311
|
+
*/
|
|
1312
|
+
data: Prisma.XOR<Prisma.PentestSubscriptionCreateInput, Prisma.PentestSubscriptionUncheckedCreateInput>;
|
|
1313
|
+
};
|
|
1314
|
+
/**
|
|
1315
|
+
* PentestSubscription createMany
|
|
1316
|
+
*/
|
|
1317
|
+
export type PentestSubscriptionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1318
|
+
/**
|
|
1319
|
+
* The data used to create many PentestSubscriptions.
|
|
1320
|
+
*/
|
|
1321
|
+
data: Prisma.PentestSubscriptionCreateManyInput | Prisma.PentestSubscriptionCreateManyInput[];
|
|
1322
|
+
skipDuplicates?: boolean;
|
|
1323
|
+
};
|
|
1324
|
+
/**
|
|
1325
|
+
* PentestSubscription createManyAndReturn
|
|
1326
|
+
*/
|
|
1327
|
+
export type PentestSubscriptionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1328
|
+
/**
|
|
1329
|
+
* Select specific fields to fetch from the PentestSubscription
|
|
1330
|
+
*/
|
|
1331
|
+
select?: Prisma.PentestSubscriptionSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1332
|
+
/**
|
|
1333
|
+
* Omit specific fields from the PentestSubscription
|
|
1334
|
+
*/
|
|
1335
|
+
omit?: Prisma.PentestSubscriptionOmit<ExtArgs> | null;
|
|
1336
|
+
/**
|
|
1337
|
+
* The data used to create many PentestSubscriptions.
|
|
1338
|
+
*/
|
|
1339
|
+
data: Prisma.PentestSubscriptionCreateManyInput | Prisma.PentestSubscriptionCreateManyInput[];
|
|
1340
|
+
skipDuplicates?: boolean;
|
|
1341
|
+
/**
|
|
1342
|
+
* Choose, which related nodes to fetch as well
|
|
1343
|
+
*/
|
|
1344
|
+
include?: Prisma.PentestSubscriptionIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1345
|
+
};
|
|
1346
|
+
/**
|
|
1347
|
+
* PentestSubscription update
|
|
1348
|
+
*/
|
|
1349
|
+
export type PentestSubscriptionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1350
|
+
/**
|
|
1351
|
+
* Select specific fields to fetch from the PentestSubscription
|
|
1352
|
+
*/
|
|
1353
|
+
select?: Prisma.PentestSubscriptionSelect<ExtArgs> | null;
|
|
1354
|
+
/**
|
|
1355
|
+
* Omit specific fields from the PentestSubscription
|
|
1356
|
+
*/
|
|
1357
|
+
omit?: Prisma.PentestSubscriptionOmit<ExtArgs> | null;
|
|
1358
|
+
/**
|
|
1359
|
+
* Choose, which related nodes to fetch as well
|
|
1360
|
+
*/
|
|
1361
|
+
include?: Prisma.PentestSubscriptionInclude<ExtArgs> | null;
|
|
1362
|
+
/**
|
|
1363
|
+
* The data needed to update a PentestSubscription.
|
|
1364
|
+
*/
|
|
1365
|
+
data: Prisma.XOR<Prisma.PentestSubscriptionUpdateInput, Prisma.PentestSubscriptionUncheckedUpdateInput>;
|
|
1366
|
+
/**
|
|
1367
|
+
* Choose, which PentestSubscription to update.
|
|
1368
|
+
*/
|
|
1369
|
+
where: Prisma.PentestSubscriptionWhereUniqueInput;
|
|
1370
|
+
};
|
|
1371
|
+
/**
|
|
1372
|
+
* PentestSubscription updateMany
|
|
1373
|
+
*/
|
|
1374
|
+
export type PentestSubscriptionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1375
|
+
/**
|
|
1376
|
+
* The data used to update PentestSubscriptions.
|
|
1377
|
+
*/
|
|
1378
|
+
data: Prisma.XOR<Prisma.PentestSubscriptionUpdateManyMutationInput, Prisma.PentestSubscriptionUncheckedUpdateManyInput>;
|
|
1379
|
+
/**
|
|
1380
|
+
* Filter which PentestSubscriptions to update
|
|
1381
|
+
*/
|
|
1382
|
+
where?: Prisma.PentestSubscriptionWhereInput;
|
|
1383
|
+
/**
|
|
1384
|
+
* Limit how many PentestSubscriptions to update.
|
|
1385
|
+
*/
|
|
1386
|
+
limit?: number;
|
|
1387
|
+
};
|
|
1388
|
+
/**
|
|
1389
|
+
* PentestSubscription updateManyAndReturn
|
|
1390
|
+
*/
|
|
1391
|
+
export type PentestSubscriptionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1392
|
+
/**
|
|
1393
|
+
* Select specific fields to fetch from the PentestSubscription
|
|
1394
|
+
*/
|
|
1395
|
+
select?: Prisma.PentestSubscriptionSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1396
|
+
/**
|
|
1397
|
+
* Omit specific fields from the PentestSubscription
|
|
1398
|
+
*/
|
|
1399
|
+
omit?: Prisma.PentestSubscriptionOmit<ExtArgs> | null;
|
|
1400
|
+
/**
|
|
1401
|
+
* The data used to update PentestSubscriptions.
|
|
1402
|
+
*/
|
|
1403
|
+
data: Prisma.XOR<Prisma.PentestSubscriptionUpdateManyMutationInput, Prisma.PentestSubscriptionUncheckedUpdateManyInput>;
|
|
1404
|
+
/**
|
|
1405
|
+
* Filter which PentestSubscriptions to update
|
|
1406
|
+
*/
|
|
1407
|
+
where?: Prisma.PentestSubscriptionWhereInput;
|
|
1408
|
+
/**
|
|
1409
|
+
* Limit how many PentestSubscriptions to update.
|
|
1410
|
+
*/
|
|
1411
|
+
limit?: number;
|
|
1412
|
+
/**
|
|
1413
|
+
* Choose, which related nodes to fetch as well
|
|
1414
|
+
*/
|
|
1415
|
+
include?: Prisma.PentestSubscriptionIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1416
|
+
};
|
|
1417
|
+
/**
|
|
1418
|
+
* PentestSubscription upsert
|
|
1419
|
+
*/
|
|
1420
|
+
export type PentestSubscriptionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1421
|
+
/**
|
|
1422
|
+
* Select specific fields to fetch from the PentestSubscription
|
|
1423
|
+
*/
|
|
1424
|
+
select?: Prisma.PentestSubscriptionSelect<ExtArgs> | null;
|
|
1425
|
+
/**
|
|
1426
|
+
* Omit specific fields from the PentestSubscription
|
|
1427
|
+
*/
|
|
1428
|
+
omit?: Prisma.PentestSubscriptionOmit<ExtArgs> | null;
|
|
1429
|
+
/**
|
|
1430
|
+
* Choose, which related nodes to fetch as well
|
|
1431
|
+
*/
|
|
1432
|
+
include?: Prisma.PentestSubscriptionInclude<ExtArgs> | null;
|
|
1433
|
+
/**
|
|
1434
|
+
* The filter to search for the PentestSubscription to update in case it exists.
|
|
1435
|
+
*/
|
|
1436
|
+
where: Prisma.PentestSubscriptionWhereUniqueInput;
|
|
1437
|
+
/**
|
|
1438
|
+
* In case the PentestSubscription found by the `where` argument doesn't exist, create a new PentestSubscription with this data.
|
|
1439
|
+
*/
|
|
1440
|
+
create: Prisma.XOR<Prisma.PentestSubscriptionCreateInput, Prisma.PentestSubscriptionUncheckedCreateInput>;
|
|
1441
|
+
/**
|
|
1442
|
+
* In case the PentestSubscription was found with the provided `where` argument, update it with this data.
|
|
1443
|
+
*/
|
|
1444
|
+
update: Prisma.XOR<Prisma.PentestSubscriptionUpdateInput, Prisma.PentestSubscriptionUncheckedUpdateInput>;
|
|
1445
|
+
};
|
|
1446
|
+
/**
|
|
1447
|
+
* PentestSubscription delete
|
|
1448
|
+
*/
|
|
1449
|
+
export type PentestSubscriptionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1450
|
+
/**
|
|
1451
|
+
* Select specific fields to fetch from the PentestSubscription
|
|
1452
|
+
*/
|
|
1453
|
+
select?: Prisma.PentestSubscriptionSelect<ExtArgs> | null;
|
|
1454
|
+
/**
|
|
1455
|
+
* Omit specific fields from the PentestSubscription
|
|
1456
|
+
*/
|
|
1457
|
+
omit?: Prisma.PentestSubscriptionOmit<ExtArgs> | null;
|
|
1458
|
+
/**
|
|
1459
|
+
* Choose, which related nodes to fetch as well
|
|
1460
|
+
*/
|
|
1461
|
+
include?: Prisma.PentestSubscriptionInclude<ExtArgs> | null;
|
|
1462
|
+
/**
|
|
1463
|
+
* Filter which PentestSubscription to delete.
|
|
1464
|
+
*/
|
|
1465
|
+
where: Prisma.PentestSubscriptionWhereUniqueInput;
|
|
1466
|
+
};
|
|
1467
|
+
/**
|
|
1468
|
+
* PentestSubscription deleteMany
|
|
1469
|
+
*/
|
|
1470
|
+
export type PentestSubscriptionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1471
|
+
/**
|
|
1472
|
+
* Filter which PentestSubscriptions to delete
|
|
1473
|
+
*/
|
|
1474
|
+
where?: Prisma.PentestSubscriptionWhereInput;
|
|
1475
|
+
/**
|
|
1476
|
+
* Limit how many PentestSubscriptions to delete.
|
|
1477
|
+
*/
|
|
1478
|
+
limit?: number;
|
|
1479
|
+
};
|
|
1480
|
+
/**
|
|
1481
|
+
* PentestSubscription without action
|
|
1482
|
+
*/
|
|
1483
|
+
export type PentestSubscriptionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1484
|
+
/**
|
|
1485
|
+
* Select specific fields to fetch from the PentestSubscription
|
|
1486
|
+
*/
|
|
1487
|
+
select?: Prisma.PentestSubscriptionSelect<ExtArgs> | null;
|
|
1488
|
+
/**
|
|
1489
|
+
* Omit specific fields from the PentestSubscription
|
|
1490
|
+
*/
|
|
1491
|
+
omit?: Prisma.PentestSubscriptionOmit<ExtArgs> | null;
|
|
1492
|
+
/**
|
|
1493
|
+
* Choose, which related nodes to fetch as well
|
|
1494
|
+
*/
|
|
1495
|
+
include?: Prisma.PentestSubscriptionInclude<ExtArgs> | null;
|
|
1496
|
+
};
|
|
1497
|
+
//# sourceMappingURL=PentestSubscription.d.ts.map
|