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