@allbluecn/database 0.3.14 → 0.4.1

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 (190) hide show
  1. package/desktop-init.ts +128 -0
  2. package/generated/browser.ts +494 -0
  3. package/generated/client.ts +518 -0
  4. package/generated/commonInputTypes.ts +1056 -0
  5. package/generated/enums.ts +93 -0
  6. package/generated/internal/class.ts +1144 -0
  7. package/generated/internal/prismaNamespace.ts +9603 -0
  8. package/generated/internal/prismaNamespaceBrowser.ts +1695 -0
  9. package/generated/models/Account.ts +1648 -0
  10. package/generated/models/AgentConversation.ts +1651 -0
  11. package/generated/models/AgentMessage.ts +1409 -0
  12. package/generated/models/AiProvider.ts +1607 -0
  13. package/generated/models/AiProviderConfig.ts +1514 -0
  14. package/generated/models/AiUsageLog.ts +1863 -0
  15. package/generated/models/AnyHubApp.ts +1911 -0
  16. package/generated/models/AnyHubMarketApp.ts +2008 -0
  17. package/generated/models/AnyHubPermission.ts +1422 -0
  18. package/generated/models/AnyHubRecommendation.ts +1870 -0
  19. package/generated/models/AnyHubRecommender.ts +1471 -0
  20. package/generated/models/Artboard.ts +1811 -0
  21. package/generated/models/ArtboardExport.ts +1548 -0
  22. package/generated/models/ArticleFavorite.ts +1352 -0
  23. package/generated/models/AuditLog.ts +1533 -0
  24. package/generated/models/Block.ts +1650 -0
  25. package/generated/models/BlockComponent.ts +1734 -0
  26. package/generated/models/BlockInstance.ts +2043 -0
  27. package/generated/models/BookmarkCategory.ts +1670 -0
  28. package/generated/models/ChatInterrupt.ts +1699 -0
  29. package/generated/models/ChatMessage.ts +1438 -0
  30. package/generated/models/ChatRun.ts +1632 -0
  31. package/generated/models/ChatThread.ts +2133 -0
  32. package/generated/models/Comment.ts +2206 -0
  33. package/generated/models/CommentIgnore.ts +1430 -0
  34. package/generated/models/CommentReaction.ts +1472 -0
  35. package/generated/models/ComplianceExport.ts +1345 -0
  36. package/generated/models/Component.ts +2345 -0
  37. package/generated/models/ComponentInstance.ts +2102 -0
  38. package/generated/models/ComponentTag.ts +1281 -0
  39. package/generated/models/CustomRole.ts +1560 -0
  40. package/generated/models/DesignProject.ts +1643 -0
  41. package/generated/models/DictionaryTerm.ts +1642 -0
  42. package/generated/models/GenerationRun.ts +1543 -0
  43. package/generated/models/IndustryCompliance.ts +1797 -0
  44. package/generated/models/InvitationCode.ts +1417 -0
  45. package/generated/models/InvitationUse.ts +1424 -0
  46. package/generated/models/Invoice.ts +1710 -0
  47. package/generated/models/KnowledgeBase.ts +1671 -0
  48. package/generated/models/KnowledgeDocument.ts +2458 -0
  49. package/generated/models/KnowledgeShareRecord.ts +1352 -0
  50. package/generated/models/Label.ts +1482 -0
  51. package/generated/models/LegalRegulation.ts +1873 -0
  52. package/generated/models/LicenseActivation.ts +1415 -0
  53. package/generated/models/LicenseKey.ts +1884 -0
  54. package/generated/models/LoginLog.ts +1450 -0
  55. package/generated/models/MonitoringErrorReport.ts +1299 -0
  56. package/generated/models/MonitoringHealthSnapshot.ts +1249 -0
  57. package/generated/models/MonitoringMetricsSnapshot.ts +1369 -0
  58. package/generated/models/MonitoringRequestLog.ts +1283 -0
  59. package/generated/models/PRD.ts +2805 -0
  60. package/generated/models/PRDPage.ts +2402 -0
  61. package/generated/models/PRDTag.ts +1430 -0
  62. package/generated/models/PRDVersion.ts +2121 -0
  63. package/generated/models/PageVersion.ts +1523 -0
  64. package/generated/models/PasswordResetToken.ts +1380 -0
  65. package/generated/models/Plan.ts +2069 -0
  66. package/generated/models/Project.ts +2148 -0
  67. package/generated/models/ProjectActivity.ts +1582 -0
  68. package/generated/models/ProjectMember.ts +1512 -0
  69. package/generated/models/ProviderEvent.ts +1227 -0
  70. package/generated/models/Reference.ts +1177 -0
  71. package/generated/models/Review.ts +1912 -0
  72. package/generated/models/ReviewComment.ts +1904 -0
  73. package/generated/models/RoleAssignment.ts +1430 -0
  74. package/generated/models/SequenceCounter.ts +1137 -0
  75. package/generated/models/Share.ts +1681 -0
  76. package/generated/models/ShareVersion.ts +1389 -0
  77. package/generated/models/SsoMapping.ts +1512 -0
  78. package/generated/models/SsoProvider.ts +1639 -0
  79. package/generated/models/Story.ts +5234 -0
  80. package/generated/models/StoryActivity.ts +1664 -0
  81. package/generated/models/StoryAttachment.ts +1467 -0
  82. package/generated/models/StoryComment.ts +1992 -0
  83. package/generated/models/StoryDependency.ts +1517 -0
  84. package/generated/models/StoryDocLink.ts +1430 -0
  85. package/generated/models/StoryFilterView.ts +1587 -0
  86. package/generated/models/StoryLabel.ts +1349 -0
  87. package/generated/models/StoryLink.ts +1415 -0
  88. package/generated/models/StoryPrdLink.ts +1430 -0
  89. package/generated/models/StoryReaction.ts +1472 -0
  90. package/generated/models/Subscription.ts +2147 -0
  91. package/generated/models/SystemSetting.ts +1217 -0
  92. package/generated/models/Tag.ts +1655 -0
  93. package/generated/models/TeamInvitation.ts +1526 -0
  94. package/generated/models/TeamMembership.ts +1436 -0
  95. package/generated/models/Template.ts +1391 -0
  96. package/generated/models/TemplateBlock.ts +1664 -0
  97. package/generated/models/ThirdPartyDependency.ts +1473 -0
  98. package/generated/models/UsageRecord.ts +1505 -0
  99. package/generated/models/User.ts +20998 -0
  100. package/generated/models/UserAgent.ts +1900 -0
  101. package/generated/models/UserSkill.ts +1456 -0
  102. package/generated/models/WebsiteBookmark.ts +2219 -0
  103. package/generated/models/Workspace.ts +2279 -0
  104. package/generated/models.ts +106 -0
  105. package/generated-sqlite/browser.ts +399 -0
  106. package/generated-sqlite/client.ts +423 -0
  107. package/generated-sqlite/commonInputTypes.ts +608 -0
  108. package/generated-sqlite/enums.ts +15 -0
  109. package/generated-sqlite/internal/class.ts +954 -0
  110. package/generated-sqlite/internal/prismaNamespace.ts +7716 -0
  111. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +1415 -0
  112. package/generated-sqlite/models/AgentConversation.ts +1647 -0
  113. package/generated-sqlite/models/AgentMessage.ts +1406 -0
  114. package/generated-sqlite/models/AiProvider.ts +1605 -0
  115. package/generated-sqlite/models/AiProviderConfig.ts +1511 -0
  116. package/generated-sqlite/models/AiUsageLog.ts +1845 -0
  117. package/generated-sqlite/models/AnyHubApp.ts +1908 -0
  118. package/generated-sqlite/models/AnyHubMarketApp.ts +1997 -0
  119. package/generated-sqlite/models/AnyHubPermission.ts +1419 -0
  120. package/generated-sqlite/models/AnyHubRecommendation.ts +1867 -0
  121. package/generated-sqlite/models/AnyHubRecommender.ts +1467 -0
  122. package/generated-sqlite/models/Artboard.ts +1808 -0
  123. package/generated-sqlite/models/ArtboardExport.ts +1545 -0
  124. package/generated-sqlite/models/ArticleFavorite.ts +1349 -0
  125. package/generated-sqlite/models/AuditLog.ts +1287 -0
  126. package/generated-sqlite/models/Block.ts +1648 -0
  127. package/generated-sqlite/models/BlockComponent.ts +1730 -0
  128. package/generated-sqlite/models/BlockInstance.ts +2039 -0
  129. package/generated-sqlite/models/BookmarkCategory.ts +1667 -0
  130. package/generated-sqlite/models/ChatInterrupt.ts +1695 -0
  131. package/generated-sqlite/models/ChatMessage.ts +1435 -0
  132. package/generated-sqlite/models/ChatRun.ts +1629 -0
  133. package/generated-sqlite/models/ChatThread.ts +2129 -0
  134. package/generated-sqlite/models/Comment.ts +2201 -0
  135. package/generated-sqlite/models/CommentIgnore.ts +1426 -0
  136. package/generated-sqlite/models/ComplianceExport.ts +1343 -0
  137. package/generated-sqlite/models/Component.ts +2326 -0
  138. package/generated-sqlite/models/ComponentInstance.ts +2097 -0
  139. package/generated-sqlite/models/ComponentTag.ts +1278 -0
  140. package/generated-sqlite/models/CustomRole.ts +1209 -0
  141. package/generated-sqlite/models/DesignProject.ts +1640 -0
  142. package/generated-sqlite/models/DictionaryTerm.ts +1639 -0
  143. package/generated-sqlite/models/GenerationRun.ts +1540 -0
  144. package/generated-sqlite/models/IndustryCompliance.ts +1794 -0
  145. package/generated-sqlite/models/InvitationCode.ts +1415 -0
  146. package/generated-sqlite/models/InvitationUse.ts +1420 -0
  147. package/generated-sqlite/models/Invoice.ts +1707 -0
  148. package/generated-sqlite/models/KnowledgeBase.ts +1668 -0
  149. package/generated-sqlite/models/KnowledgeDocument.ts +2282 -0
  150. package/generated-sqlite/models/KnowledgeShareRecord.ts +1349 -0
  151. package/generated-sqlite/models/LegalRegulation.ts +1870 -0
  152. package/generated-sqlite/models/LicenseActivation.ts +1203 -0
  153. package/generated-sqlite/models/LicenseKey.ts +1443 -0
  154. package/generated-sqlite/models/LoginLog.ts +1447 -0
  155. package/generated-sqlite/models/PRD.ts +2616 -0
  156. package/generated-sqlite/models/PRDPage.ts +2398 -0
  157. package/generated-sqlite/models/PRDTag.ts +1426 -0
  158. package/generated-sqlite/models/PRDVersion.ts +2117 -0
  159. package/generated-sqlite/models/PageVersion.ts +1528 -0
  160. package/generated-sqlite/models/PasswordResetToken.ts +1377 -0
  161. package/generated-sqlite/models/Plan.ts +2060 -0
  162. package/generated-sqlite/models/Project.ts +1994 -0
  163. package/generated-sqlite/models/ProjectActivity.ts +1578 -0
  164. package/generated-sqlite/models/ProjectMember.ts +1508 -0
  165. package/generated-sqlite/models/ProviderEvent.ts +1225 -0
  166. package/generated-sqlite/models/Reference.ts +1175 -0
  167. package/generated-sqlite/models/Review.ts +1903 -0
  168. package/generated-sqlite/models/ReviewComment.ts +1899 -0
  169. package/generated-sqlite/models/RoleAssignment.ts +1125 -0
  170. package/generated-sqlite/models/Share.ts +1674 -0
  171. package/generated-sqlite/models/ShareVersion.ts +1385 -0
  172. package/generated-sqlite/models/SsoMapping.ts +1181 -0
  173. package/generated-sqlite/models/SsoProvider.ts +1266 -0
  174. package/generated-sqlite/models/Subscription.ts +2137 -0
  175. package/generated-sqlite/models/SystemSetting.ts +1215 -0
  176. package/generated-sqlite/models/Tag.ts +1652 -0
  177. package/generated-sqlite/models/TeamInvitation.ts +1523 -0
  178. package/generated-sqlite/models/TeamMembership.ts +1433 -0
  179. package/generated-sqlite/models/Template.ts +1389 -0
  180. package/generated-sqlite/models/TemplateBlock.ts +1660 -0
  181. package/generated-sqlite/models/ThirdPartyDependency.ts +1471 -0
  182. package/generated-sqlite/models/UsageRecord.ts +1498 -0
  183. package/generated-sqlite/models/User.ts +13558 -0
  184. package/generated-sqlite/models/UserAgent.ts +1897 -0
  185. package/generated-sqlite/models/UserSkill.ts +1453 -0
  186. package/generated-sqlite/models/WebsiteBookmark.ts +2215 -0
  187. package/generated-sqlite/models/Workspace.ts +1824 -0
  188. package/generated-sqlite/models.ts +87 -0
  189. package/package.json +7 -3
  190. package/LICENSE +0 -661
@@ -0,0 +1,1523 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports the `TeamInvitation` model and its related types.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+ import type * as runtime from "@prisma/client/runtime/client"
12
+ import type * as $Enums from "../enums"
13
+ import type * as Prisma from "../internal/prismaNamespace"
14
+
15
+ /**
16
+ * Model TeamInvitation
17
+ *
18
+ */
19
+ export type TeamInvitationModel = runtime.Types.Result.DefaultSelection<Prisma.$TeamInvitationPayload>
20
+
21
+ export type AggregateTeamInvitation = {
22
+ _count: TeamInvitationCountAggregateOutputType | null
23
+ _min: TeamInvitationMinAggregateOutputType | null
24
+ _max: TeamInvitationMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type TeamInvitationMinAggregateOutputType = {
28
+ id: string | null
29
+ ownerId: string | null
30
+ email: string | null
31
+ seatType: string | null
32
+ token: string | null
33
+ channel: string | null
34
+ status: string | null
35
+ expiresAt: Date | null
36
+ createdAt: Date | null
37
+ acceptedBy: string | null
38
+ }
39
+
40
+ export type TeamInvitationMaxAggregateOutputType = {
41
+ id: string | null
42
+ ownerId: string | null
43
+ email: string | null
44
+ seatType: string | null
45
+ token: string | null
46
+ channel: string | null
47
+ status: string | null
48
+ expiresAt: Date | null
49
+ createdAt: Date | null
50
+ acceptedBy: string | null
51
+ }
52
+
53
+ export type TeamInvitationCountAggregateOutputType = {
54
+ id: number
55
+ ownerId: number
56
+ email: number
57
+ seatType: number
58
+ token: number
59
+ channel: number
60
+ status: number
61
+ expiresAt: number
62
+ createdAt: number
63
+ acceptedBy: number
64
+ _all: number
65
+ }
66
+
67
+
68
+ export type TeamInvitationMinAggregateInputType = {
69
+ id?: true
70
+ ownerId?: true
71
+ email?: true
72
+ seatType?: true
73
+ token?: true
74
+ channel?: true
75
+ status?: true
76
+ expiresAt?: true
77
+ createdAt?: true
78
+ acceptedBy?: true
79
+ }
80
+
81
+ export type TeamInvitationMaxAggregateInputType = {
82
+ id?: true
83
+ ownerId?: true
84
+ email?: true
85
+ seatType?: true
86
+ token?: true
87
+ channel?: true
88
+ status?: true
89
+ expiresAt?: true
90
+ createdAt?: true
91
+ acceptedBy?: true
92
+ }
93
+
94
+ export type TeamInvitationCountAggregateInputType = {
95
+ id?: true
96
+ ownerId?: true
97
+ email?: true
98
+ seatType?: true
99
+ token?: true
100
+ channel?: true
101
+ status?: true
102
+ expiresAt?: true
103
+ createdAt?: true
104
+ acceptedBy?: true
105
+ _all?: true
106
+ }
107
+
108
+ export type TeamInvitationAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
109
+ /**
110
+ * Filter which TeamInvitation to aggregate.
111
+ */
112
+ where?: Prisma.TeamInvitationWhereInput
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
115
+ *
116
+ * Determine the order of TeamInvitations to fetch.
117
+ */
118
+ orderBy?: Prisma.TeamInvitationOrderByWithRelationInput | Prisma.TeamInvitationOrderByWithRelationInput[]
119
+ /**
120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
121
+ *
122
+ * Sets the start position
123
+ */
124
+ cursor?: Prisma.TeamInvitationWhereUniqueInput
125
+ /**
126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
127
+ *
128
+ * Take `±n` TeamInvitations from the position of the cursor.
129
+ */
130
+ take?: number
131
+ /**
132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
133
+ *
134
+ * Skip the first `n` TeamInvitations.
135
+ */
136
+ skip?: number
137
+ /**
138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
139
+ *
140
+ * Count returned TeamInvitations
141
+ **/
142
+ _count?: true | TeamInvitationCountAggregateInputType
143
+ /**
144
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
145
+ *
146
+ * Select which fields to find the minimum value
147
+ **/
148
+ _min?: TeamInvitationMinAggregateInputType
149
+ /**
150
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
151
+ *
152
+ * Select which fields to find the maximum value
153
+ **/
154
+ _max?: TeamInvitationMaxAggregateInputType
155
+ }
156
+
157
+ export type GetTeamInvitationAggregateType<T extends TeamInvitationAggregateArgs> = {
158
+ [P in keyof T & keyof AggregateTeamInvitation]: P extends '_count' | 'count'
159
+ ? T[P] extends true
160
+ ? number
161
+ : Prisma.GetScalarType<T[P], AggregateTeamInvitation[P]>
162
+ : Prisma.GetScalarType<T[P], AggregateTeamInvitation[P]>
163
+ }
164
+
165
+
166
+
167
+
168
+ export type TeamInvitationGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
169
+ where?: Prisma.TeamInvitationWhereInput
170
+ orderBy?: Prisma.TeamInvitationOrderByWithAggregationInput | Prisma.TeamInvitationOrderByWithAggregationInput[]
171
+ by: Prisma.TeamInvitationScalarFieldEnum[] | Prisma.TeamInvitationScalarFieldEnum
172
+ having?: Prisma.TeamInvitationScalarWhereWithAggregatesInput
173
+ take?: number
174
+ skip?: number
175
+ _count?: TeamInvitationCountAggregateInputType | true
176
+ _min?: TeamInvitationMinAggregateInputType
177
+ _max?: TeamInvitationMaxAggregateInputType
178
+ }
179
+
180
+ export type TeamInvitationGroupByOutputType = {
181
+ id: string
182
+ ownerId: string
183
+ email: string
184
+ seatType: string
185
+ token: string
186
+ channel: string
187
+ status: string
188
+ expiresAt: Date
189
+ createdAt: Date
190
+ acceptedBy: string | null
191
+ _count: TeamInvitationCountAggregateOutputType | null
192
+ _min: TeamInvitationMinAggregateOutputType | null
193
+ _max: TeamInvitationMaxAggregateOutputType | null
194
+ }
195
+
196
+ export type GetTeamInvitationGroupByPayload<T extends TeamInvitationGroupByArgs> = Prisma.PrismaPromise<
197
+ Array<
198
+ Prisma.PickEnumerable<TeamInvitationGroupByOutputType, T['by']> &
199
+ {
200
+ [P in ((keyof T) & (keyof TeamInvitationGroupByOutputType))]: P extends '_count'
201
+ ? T[P] extends boolean
202
+ ? number
203
+ : Prisma.GetScalarType<T[P], TeamInvitationGroupByOutputType[P]>
204
+ : Prisma.GetScalarType<T[P], TeamInvitationGroupByOutputType[P]>
205
+ }
206
+ >
207
+ >
208
+
209
+
210
+
211
+ export type TeamInvitationWhereInput = {
212
+ AND?: Prisma.TeamInvitationWhereInput | Prisma.TeamInvitationWhereInput[]
213
+ OR?: Prisma.TeamInvitationWhereInput[]
214
+ NOT?: Prisma.TeamInvitationWhereInput | Prisma.TeamInvitationWhereInput[]
215
+ id?: Prisma.StringFilter<"TeamInvitation"> | string
216
+ ownerId?: Prisma.StringFilter<"TeamInvitation"> | string
217
+ email?: Prisma.StringFilter<"TeamInvitation"> | string
218
+ seatType?: Prisma.StringFilter<"TeamInvitation"> | string
219
+ token?: Prisma.StringFilter<"TeamInvitation"> | string
220
+ channel?: Prisma.StringFilter<"TeamInvitation"> | string
221
+ status?: Prisma.StringFilter<"TeamInvitation"> | string
222
+ expiresAt?: Prisma.DateTimeFilter<"TeamInvitation"> | Date | string
223
+ createdAt?: Prisma.DateTimeFilter<"TeamInvitation"> | Date | string
224
+ acceptedBy?: Prisma.StringNullableFilter<"TeamInvitation"> | string | null
225
+ owner?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
226
+ }
227
+
228
+ export type TeamInvitationOrderByWithRelationInput = {
229
+ id?: Prisma.SortOrder
230
+ ownerId?: Prisma.SortOrder
231
+ email?: Prisma.SortOrder
232
+ seatType?: Prisma.SortOrder
233
+ token?: Prisma.SortOrder
234
+ channel?: Prisma.SortOrder
235
+ status?: Prisma.SortOrder
236
+ expiresAt?: Prisma.SortOrder
237
+ createdAt?: Prisma.SortOrder
238
+ acceptedBy?: Prisma.SortOrderInput | Prisma.SortOrder
239
+ owner?: Prisma.UserOrderByWithRelationInput
240
+ }
241
+
242
+ export type TeamInvitationWhereUniqueInput = Prisma.AtLeast<{
243
+ id?: string
244
+ token?: string
245
+ ownerId_email?: Prisma.TeamInvitationOwnerIdEmailCompoundUniqueInput
246
+ AND?: Prisma.TeamInvitationWhereInput | Prisma.TeamInvitationWhereInput[]
247
+ OR?: Prisma.TeamInvitationWhereInput[]
248
+ NOT?: Prisma.TeamInvitationWhereInput | Prisma.TeamInvitationWhereInput[]
249
+ ownerId?: Prisma.StringFilter<"TeamInvitation"> | string
250
+ email?: Prisma.StringFilter<"TeamInvitation"> | string
251
+ seatType?: Prisma.StringFilter<"TeamInvitation"> | string
252
+ channel?: Prisma.StringFilter<"TeamInvitation"> | string
253
+ status?: Prisma.StringFilter<"TeamInvitation"> | string
254
+ expiresAt?: Prisma.DateTimeFilter<"TeamInvitation"> | Date | string
255
+ createdAt?: Prisma.DateTimeFilter<"TeamInvitation"> | Date | string
256
+ acceptedBy?: Prisma.StringNullableFilter<"TeamInvitation"> | string | null
257
+ owner?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
258
+ }, "id" | "token" | "ownerId_email">
259
+
260
+ export type TeamInvitationOrderByWithAggregationInput = {
261
+ id?: Prisma.SortOrder
262
+ ownerId?: Prisma.SortOrder
263
+ email?: Prisma.SortOrder
264
+ seatType?: Prisma.SortOrder
265
+ token?: Prisma.SortOrder
266
+ channel?: Prisma.SortOrder
267
+ status?: Prisma.SortOrder
268
+ expiresAt?: Prisma.SortOrder
269
+ createdAt?: Prisma.SortOrder
270
+ acceptedBy?: Prisma.SortOrderInput | Prisma.SortOrder
271
+ _count?: Prisma.TeamInvitationCountOrderByAggregateInput
272
+ _max?: Prisma.TeamInvitationMaxOrderByAggregateInput
273
+ _min?: Prisma.TeamInvitationMinOrderByAggregateInput
274
+ }
275
+
276
+ export type TeamInvitationScalarWhereWithAggregatesInput = {
277
+ AND?: Prisma.TeamInvitationScalarWhereWithAggregatesInput | Prisma.TeamInvitationScalarWhereWithAggregatesInput[]
278
+ OR?: Prisma.TeamInvitationScalarWhereWithAggregatesInput[]
279
+ NOT?: Prisma.TeamInvitationScalarWhereWithAggregatesInput | Prisma.TeamInvitationScalarWhereWithAggregatesInput[]
280
+ id?: Prisma.StringWithAggregatesFilter<"TeamInvitation"> | string
281
+ ownerId?: Prisma.StringWithAggregatesFilter<"TeamInvitation"> | string
282
+ email?: Prisma.StringWithAggregatesFilter<"TeamInvitation"> | string
283
+ seatType?: Prisma.StringWithAggregatesFilter<"TeamInvitation"> | string
284
+ token?: Prisma.StringWithAggregatesFilter<"TeamInvitation"> | string
285
+ channel?: Prisma.StringWithAggregatesFilter<"TeamInvitation"> | string
286
+ status?: Prisma.StringWithAggregatesFilter<"TeamInvitation"> | string
287
+ expiresAt?: Prisma.DateTimeWithAggregatesFilter<"TeamInvitation"> | Date | string
288
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"TeamInvitation"> | Date | string
289
+ acceptedBy?: Prisma.StringNullableWithAggregatesFilter<"TeamInvitation"> | string | null
290
+ }
291
+
292
+ export type TeamInvitationCreateInput = {
293
+ id?: string
294
+ email: string
295
+ seatType?: string
296
+ token: string
297
+ channel?: string
298
+ status?: string
299
+ expiresAt: Date | string
300
+ createdAt?: Date | string
301
+ acceptedBy?: string | null
302
+ owner: Prisma.UserCreateNestedOneWithoutSentInvitationsInput
303
+ }
304
+
305
+ export type TeamInvitationUncheckedCreateInput = {
306
+ id?: string
307
+ ownerId: string
308
+ email: string
309
+ seatType?: string
310
+ token: string
311
+ channel?: string
312
+ status?: string
313
+ expiresAt: Date | string
314
+ createdAt?: Date | string
315
+ acceptedBy?: string | null
316
+ }
317
+
318
+ export type TeamInvitationUpdateInput = {
319
+ id?: Prisma.StringFieldUpdateOperationsInput | string
320
+ email?: Prisma.StringFieldUpdateOperationsInput | string
321
+ seatType?: Prisma.StringFieldUpdateOperationsInput | string
322
+ token?: Prisma.StringFieldUpdateOperationsInput | string
323
+ channel?: Prisma.StringFieldUpdateOperationsInput | string
324
+ status?: Prisma.StringFieldUpdateOperationsInput | string
325
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
326
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
327
+ acceptedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
328
+ owner?: Prisma.UserUpdateOneRequiredWithoutSentInvitationsNestedInput
329
+ }
330
+
331
+ export type TeamInvitationUncheckedUpdateInput = {
332
+ id?: Prisma.StringFieldUpdateOperationsInput | string
333
+ ownerId?: Prisma.StringFieldUpdateOperationsInput | string
334
+ email?: Prisma.StringFieldUpdateOperationsInput | string
335
+ seatType?: Prisma.StringFieldUpdateOperationsInput | string
336
+ token?: Prisma.StringFieldUpdateOperationsInput | string
337
+ channel?: Prisma.StringFieldUpdateOperationsInput | string
338
+ status?: Prisma.StringFieldUpdateOperationsInput | string
339
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
340
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
341
+ acceptedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
342
+ }
343
+
344
+ export type TeamInvitationCreateManyInput = {
345
+ id?: string
346
+ ownerId: string
347
+ email: string
348
+ seatType?: string
349
+ token: string
350
+ channel?: string
351
+ status?: string
352
+ expiresAt: Date | string
353
+ createdAt?: Date | string
354
+ acceptedBy?: string | null
355
+ }
356
+
357
+ export type TeamInvitationUpdateManyMutationInput = {
358
+ id?: Prisma.StringFieldUpdateOperationsInput | string
359
+ email?: Prisma.StringFieldUpdateOperationsInput | string
360
+ seatType?: Prisma.StringFieldUpdateOperationsInput | string
361
+ token?: Prisma.StringFieldUpdateOperationsInput | string
362
+ channel?: Prisma.StringFieldUpdateOperationsInput | string
363
+ status?: Prisma.StringFieldUpdateOperationsInput | string
364
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
365
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
366
+ acceptedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
367
+ }
368
+
369
+ export type TeamInvitationUncheckedUpdateManyInput = {
370
+ id?: Prisma.StringFieldUpdateOperationsInput | string
371
+ ownerId?: Prisma.StringFieldUpdateOperationsInput | string
372
+ email?: Prisma.StringFieldUpdateOperationsInput | string
373
+ seatType?: Prisma.StringFieldUpdateOperationsInput | string
374
+ token?: Prisma.StringFieldUpdateOperationsInput | string
375
+ channel?: Prisma.StringFieldUpdateOperationsInput | string
376
+ status?: Prisma.StringFieldUpdateOperationsInput | string
377
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
378
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
379
+ acceptedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
380
+ }
381
+
382
+ export type TeamInvitationListRelationFilter = {
383
+ every?: Prisma.TeamInvitationWhereInput
384
+ some?: Prisma.TeamInvitationWhereInput
385
+ none?: Prisma.TeamInvitationWhereInput
386
+ }
387
+
388
+ export type TeamInvitationOrderByRelationAggregateInput = {
389
+ _count?: Prisma.SortOrder
390
+ }
391
+
392
+ export type TeamInvitationOwnerIdEmailCompoundUniqueInput = {
393
+ ownerId: string
394
+ email: string
395
+ }
396
+
397
+ export type TeamInvitationCountOrderByAggregateInput = {
398
+ id?: Prisma.SortOrder
399
+ ownerId?: Prisma.SortOrder
400
+ email?: Prisma.SortOrder
401
+ seatType?: Prisma.SortOrder
402
+ token?: Prisma.SortOrder
403
+ channel?: Prisma.SortOrder
404
+ status?: Prisma.SortOrder
405
+ expiresAt?: Prisma.SortOrder
406
+ createdAt?: Prisma.SortOrder
407
+ acceptedBy?: Prisma.SortOrder
408
+ }
409
+
410
+ export type TeamInvitationMaxOrderByAggregateInput = {
411
+ id?: Prisma.SortOrder
412
+ ownerId?: Prisma.SortOrder
413
+ email?: Prisma.SortOrder
414
+ seatType?: Prisma.SortOrder
415
+ token?: Prisma.SortOrder
416
+ channel?: Prisma.SortOrder
417
+ status?: Prisma.SortOrder
418
+ expiresAt?: Prisma.SortOrder
419
+ createdAt?: Prisma.SortOrder
420
+ acceptedBy?: Prisma.SortOrder
421
+ }
422
+
423
+ export type TeamInvitationMinOrderByAggregateInput = {
424
+ id?: Prisma.SortOrder
425
+ ownerId?: Prisma.SortOrder
426
+ email?: Prisma.SortOrder
427
+ seatType?: Prisma.SortOrder
428
+ token?: Prisma.SortOrder
429
+ channel?: Prisma.SortOrder
430
+ status?: Prisma.SortOrder
431
+ expiresAt?: Prisma.SortOrder
432
+ createdAt?: Prisma.SortOrder
433
+ acceptedBy?: Prisma.SortOrder
434
+ }
435
+
436
+ export type TeamInvitationCreateNestedManyWithoutOwnerInput = {
437
+ create?: Prisma.XOR<Prisma.TeamInvitationCreateWithoutOwnerInput, Prisma.TeamInvitationUncheckedCreateWithoutOwnerInput> | Prisma.TeamInvitationCreateWithoutOwnerInput[] | Prisma.TeamInvitationUncheckedCreateWithoutOwnerInput[]
438
+ connectOrCreate?: Prisma.TeamInvitationCreateOrConnectWithoutOwnerInput | Prisma.TeamInvitationCreateOrConnectWithoutOwnerInput[]
439
+ createMany?: Prisma.TeamInvitationCreateManyOwnerInputEnvelope
440
+ connect?: Prisma.TeamInvitationWhereUniqueInput | Prisma.TeamInvitationWhereUniqueInput[]
441
+ }
442
+
443
+ export type TeamInvitationUncheckedCreateNestedManyWithoutOwnerInput = {
444
+ create?: Prisma.XOR<Prisma.TeamInvitationCreateWithoutOwnerInput, Prisma.TeamInvitationUncheckedCreateWithoutOwnerInput> | Prisma.TeamInvitationCreateWithoutOwnerInput[] | Prisma.TeamInvitationUncheckedCreateWithoutOwnerInput[]
445
+ connectOrCreate?: Prisma.TeamInvitationCreateOrConnectWithoutOwnerInput | Prisma.TeamInvitationCreateOrConnectWithoutOwnerInput[]
446
+ createMany?: Prisma.TeamInvitationCreateManyOwnerInputEnvelope
447
+ connect?: Prisma.TeamInvitationWhereUniqueInput | Prisma.TeamInvitationWhereUniqueInput[]
448
+ }
449
+
450
+ export type TeamInvitationUpdateManyWithoutOwnerNestedInput = {
451
+ create?: Prisma.XOR<Prisma.TeamInvitationCreateWithoutOwnerInput, Prisma.TeamInvitationUncheckedCreateWithoutOwnerInput> | Prisma.TeamInvitationCreateWithoutOwnerInput[] | Prisma.TeamInvitationUncheckedCreateWithoutOwnerInput[]
452
+ connectOrCreate?: Prisma.TeamInvitationCreateOrConnectWithoutOwnerInput | Prisma.TeamInvitationCreateOrConnectWithoutOwnerInput[]
453
+ upsert?: Prisma.TeamInvitationUpsertWithWhereUniqueWithoutOwnerInput | Prisma.TeamInvitationUpsertWithWhereUniqueWithoutOwnerInput[]
454
+ createMany?: Prisma.TeamInvitationCreateManyOwnerInputEnvelope
455
+ set?: Prisma.TeamInvitationWhereUniqueInput | Prisma.TeamInvitationWhereUniqueInput[]
456
+ disconnect?: Prisma.TeamInvitationWhereUniqueInput | Prisma.TeamInvitationWhereUniqueInput[]
457
+ delete?: Prisma.TeamInvitationWhereUniqueInput | Prisma.TeamInvitationWhereUniqueInput[]
458
+ connect?: Prisma.TeamInvitationWhereUniqueInput | Prisma.TeamInvitationWhereUniqueInput[]
459
+ update?: Prisma.TeamInvitationUpdateWithWhereUniqueWithoutOwnerInput | Prisma.TeamInvitationUpdateWithWhereUniqueWithoutOwnerInput[]
460
+ updateMany?: Prisma.TeamInvitationUpdateManyWithWhereWithoutOwnerInput | Prisma.TeamInvitationUpdateManyWithWhereWithoutOwnerInput[]
461
+ deleteMany?: Prisma.TeamInvitationScalarWhereInput | Prisma.TeamInvitationScalarWhereInput[]
462
+ }
463
+
464
+ export type TeamInvitationUncheckedUpdateManyWithoutOwnerNestedInput = {
465
+ create?: Prisma.XOR<Prisma.TeamInvitationCreateWithoutOwnerInput, Prisma.TeamInvitationUncheckedCreateWithoutOwnerInput> | Prisma.TeamInvitationCreateWithoutOwnerInput[] | Prisma.TeamInvitationUncheckedCreateWithoutOwnerInput[]
466
+ connectOrCreate?: Prisma.TeamInvitationCreateOrConnectWithoutOwnerInput | Prisma.TeamInvitationCreateOrConnectWithoutOwnerInput[]
467
+ upsert?: Prisma.TeamInvitationUpsertWithWhereUniqueWithoutOwnerInput | Prisma.TeamInvitationUpsertWithWhereUniqueWithoutOwnerInput[]
468
+ createMany?: Prisma.TeamInvitationCreateManyOwnerInputEnvelope
469
+ set?: Prisma.TeamInvitationWhereUniqueInput | Prisma.TeamInvitationWhereUniqueInput[]
470
+ disconnect?: Prisma.TeamInvitationWhereUniqueInput | Prisma.TeamInvitationWhereUniqueInput[]
471
+ delete?: Prisma.TeamInvitationWhereUniqueInput | Prisma.TeamInvitationWhereUniqueInput[]
472
+ connect?: Prisma.TeamInvitationWhereUniqueInput | Prisma.TeamInvitationWhereUniqueInput[]
473
+ update?: Prisma.TeamInvitationUpdateWithWhereUniqueWithoutOwnerInput | Prisma.TeamInvitationUpdateWithWhereUniqueWithoutOwnerInput[]
474
+ updateMany?: Prisma.TeamInvitationUpdateManyWithWhereWithoutOwnerInput | Prisma.TeamInvitationUpdateManyWithWhereWithoutOwnerInput[]
475
+ deleteMany?: Prisma.TeamInvitationScalarWhereInput | Prisma.TeamInvitationScalarWhereInput[]
476
+ }
477
+
478
+ export type TeamInvitationCreateWithoutOwnerInput = {
479
+ id?: string
480
+ email: string
481
+ seatType?: string
482
+ token: string
483
+ channel?: string
484
+ status?: string
485
+ expiresAt: Date | string
486
+ createdAt?: Date | string
487
+ acceptedBy?: string | null
488
+ }
489
+
490
+ export type TeamInvitationUncheckedCreateWithoutOwnerInput = {
491
+ id?: string
492
+ email: string
493
+ seatType?: string
494
+ token: string
495
+ channel?: string
496
+ status?: string
497
+ expiresAt: Date | string
498
+ createdAt?: Date | string
499
+ acceptedBy?: string | null
500
+ }
501
+
502
+ export type TeamInvitationCreateOrConnectWithoutOwnerInput = {
503
+ where: Prisma.TeamInvitationWhereUniqueInput
504
+ create: Prisma.XOR<Prisma.TeamInvitationCreateWithoutOwnerInput, Prisma.TeamInvitationUncheckedCreateWithoutOwnerInput>
505
+ }
506
+
507
+ export type TeamInvitationCreateManyOwnerInputEnvelope = {
508
+ data: Prisma.TeamInvitationCreateManyOwnerInput | Prisma.TeamInvitationCreateManyOwnerInput[]
509
+ }
510
+
511
+ export type TeamInvitationUpsertWithWhereUniqueWithoutOwnerInput = {
512
+ where: Prisma.TeamInvitationWhereUniqueInput
513
+ update: Prisma.XOR<Prisma.TeamInvitationUpdateWithoutOwnerInput, Prisma.TeamInvitationUncheckedUpdateWithoutOwnerInput>
514
+ create: Prisma.XOR<Prisma.TeamInvitationCreateWithoutOwnerInput, Prisma.TeamInvitationUncheckedCreateWithoutOwnerInput>
515
+ }
516
+
517
+ export type TeamInvitationUpdateWithWhereUniqueWithoutOwnerInput = {
518
+ where: Prisma.TeamInvitationWhereUniqueInput
519
+ data: Prisma.XOR<Prisma.TeamInvitationUpdateWithoutOwnerInput, Prisma.TeamInvitationUncheckedUpdateWithoutOwnerInput>
520
+ }
521
+
522
+ export type TeamInvitationUpdateManyWithWhereWithoutOwnerInput = {
523
+ where: Prisma.TeamInvitationScalarWhereInput
524
+ data: Prisma.XOR<Prisma.TeamInvitationUpdateManyMutationInput, Prisma.TeamInvitationUncheckedUpdateManyWithoutOwnerInput>
525
+ }
526
+
527
+ export type TeamInvitationScalarWhereInput = {
528
+ AND?: Prisma.TeamInvitationScalarWhereInput | Prisma.TeamInvitationScalarWhereInput[]
529
+ OR?: Prisma.TeamInvitationScalarWhereInput[]
530
+ NOT?: Prisma.TeamInvitationScalarWhereInput | Prisma.TeamInvitationScalarWhereInput[]
531
+ id?: Prisma.StringFilter<"TeamInvitation"> | string
532
+ ownerId?: Prisma.StringFilter<"TeamInvitation"> | string
533
+ email?: Prisma.StringFilter<"TeamInvitation"> | string
534
+ seatType?: Prisma.StringFilter<"TeamInvitation"> | string
535
+ token?: Prisma.StringFilter<"TeamInvitation"> | string
536
+ channel?: Prisma.StringFilter<"TeamInvitation"> | string
537
+ status?: Prisma.StringFilter<"TeamInvitation"> | string
538
+ expiresAt?: Prisma.DateTimeFilter<"TeamInvitation"> | Date | string
539
+ createdAt?: Prisma.DateTimeFilter<"TeamInvitation"> | Date | string
540
+ acceptedBy?: Prisma.StringNullableFilter<"TeamInvitation"> | string | null
541
+ }
542
+
543
+ export type TeamInvitationCreateManyOwnerInput = {
544
+ id?: string
545
+ email: string
546
+ seatType?: string
547
+ token: string
548
+ channel?: string
549
+ status?: string
550
+ expiresAt: Date | string
551
+ createdAt?: Date | string
552
+ acceptedBy?: string | null
553
+ }
554
+
555
+ export type TeamInvitationUpdateWithoutOwnerInput = {
556
+ id?: Prisma.StringFieldUpdateOperationsInput | string
557
+ email?: Prisma.StringFieldUpdateOperationsInput | string
558
+ seatType?: Prisma.StringFieldUpdateOperationsInput | string
559
+ token?: Prisma.StringFieldUpdateOperationsInput | string
560
+ channel?: Prisma.StringFieldUpdateOperationsInput | string
561
+ status?: Prisma.StringFieldUpdateOperationsInput | string
562
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
563
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
564
+ acceptedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
565
+ }
566
+
567
+ export type TeamInvitationUncheckedUpdateWithoutOwnerInput = {
568
+ id?: Prisma.StringFieldUpdateOperationsInput | string
569
+ email?: Prisma.StringFieldUpdateOperationsInput | string
570
+ seatType?: Prisma.StringFieldUpdateOperationsInput | string
571
+ token?: Prisma.StringFieldUpdateOperationsInput | string
572
+ channel?: Prisma.StringFieldUpdateOperationsInput | string
573
+ status?: Prisma.StringFieldUpdateOperationsInput | string
574
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
575
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
576
+ acceptedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
577
+ }
578
+
579
+ export type TeamInvitationUncheckedUpdateManyWithoutOwnerInput = {
580
+ id?: Prisma.StringFieldUpdateOperationsInput | string
581
+ email?: Prisma.StringFieldUpdateOperationsInput | string
582
+ seatType?: Prisma.StringFieldUpdateOperationsInput | string
583
+ token?: Prisma.StringFieldUpdateOperationsInput | string
584
+ channel?: Prisma.StringFieldUpdateOperationsInput | string
585
+ status?: Prisma.StringFieldUpdateOperationsInput | string
586
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
587
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
588
+ acceptedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
589
+ }
590
+
591
+
592
+
593
+ export type TeamInvitationSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
594
+ id?: boolean
595
+ ownerId?: boolean
596
+ email?: boolean
597
+ seatType?: boolean
598
+ token?: boolean
599
+ channel?: boolean
600
+ status?: boolean
601
+ expiresAt?: boolean
602
+ createdAt?: boolean
603
+ acceptedBy?: boolean
604
+ owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>
605
+ }, ExtArgs["result"]["teamInvitation"]>
606
+
607
+ export type TeamInvitationSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
608
+ id?: boolean
609
+ ownerId?: boolean
610
+ email?: boolean
611
+ seatType?: boolean
612
+ token?: boolean
613
+ channel?: boolean
614
+ status?: boolean
615
+ expiresAt?: boolean
616
+ createdAt?: boolean
617
+ acceptedBy?: boolean
618
+ owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>
619
+ }, ExtArgs["result"]["teamInvitation"]>
620
+
621
+ export type TeamInvitationSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
622
+ id?: boolean
623
+ ownerId?: boolean
624
+ email?: boolean
625
+ seatType?: boolean
626
+ token?: boolean
627
+ channel?: boolean
628
+ status?: boolean
629
+ expiresAt?: boolean
630
+ createdAt?: boolean
631
+ acceptedBy?: boolean
632
+ owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>
633
+ }, ExtArgs["result"]["teamInvitation"]>
634
+
635
+ export type TeamInvitationSelectScalar = {
636
+ id?: boolean
637
+ ownerId?: boolean
638
+ email?: boolean
639
+ seatType?: boolean
640
+ token?: boolean
641
+ channel?: boolean
642
+ status?: boolean
643
+ expiresAt?: boolean
644
+ createdAt?: boolean
645
+ acceptedBy?: boolean
646
+ }
647
+
648
+ export type TeamInvitationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "ownerId" | "email" | "seatType" | "token" | "channel" | "status" | "expiresAt" | "createdAt" | "acceptedBy", ExtArgs["result"]["teamInvitation"]>
649
+ export type TeamInvitationInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
650
+ owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>
651
+ }
652
+ export type TeamInvitationIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
653
+ owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>
654
+ }
655
+ export type TeamInvitationIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
656
+ owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>
657
+ }
658
+
659
+ export type $TeamInvitationPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
660
+ name: "TeamInvitation"
661
+ objects: {
662
+ owner: Prisma.$UserPayload<ExtArgs>
663
+ }
664
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
665
+ id: string
666
+ ownerId: string
667
+ email: string
668
+ seatType: string
669
+ token: string
670
+ channel: string
671
+ status: string
672
+ expiresAt: Date
673
+ createdAt: Date
674
+ acceptedBy: string | null
675
+ }, ExtArgs["result"]["teamInvitation"]>
676
+ composites: {}
677
+ }
678
+
679
+ export type TeamInvitationGetPayload<S extends boolean | null | undefined | TeamInvitationDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TeamInvitationPayload, S>
680
+
681
+ export type TeamInvitationCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
682
+ Omit<TeamInvitationFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
683
+ select?: TeamInvitationCountAggregateInputType | true
684
+ }
685
+
686
+ export interface TeamInvitationDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
687
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['TeamInvitation'], meta: { name: 'TeamInvitation' } }
688
+ /**
689
+ * Find zero or one TeamInvitation that matches the filter.
690
+ * @param {TeamInvitationFindUniqueArgs} args - Arguments to find a TeamInvitation
691
+ * @example
692
+ * // Get one TeamInvitation
693
+ * const teamInvitation = await prisma.teamInvitation.findUnique({
694
+ * where: {
695
+ * // ... provide filter here
696
+ * }
697
+ * })
698
+ */
699
+ findUnique<T extends TeamInvitationFindUniqueArgs>(args: Prisma.SelectSubset<T, TeamInvitationFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TeamInvitationClient<runtime.Types.Result.GetResult<Prisma.$TeamInvitationPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
700
+
701
+ /**
702
+ * Find one TeamInvitation that matches the filter or throw an error with `error.code='P2025'`
703
+ * if no matches were found.
704
+ * @param {TeamInvitationFindUniqueOrThrowArgs} args - Arguments to find a TeamInvitation
705
+ * @example
706
+ * // Get one TeamInvitation
707
+ * const teamInvitation = await prisma.teamInvitation.findUniqueOrThrow({
708
+ * where: {
709
+ * // ... provide filter here
710
+ * }
711
+ * })
712
+ */
713
+ findUniqueOrThrow<T extends TeamInvitationFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TeamInvitationFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TeamInvitationClient<runtime.Types.Result.GetResult<Prisma.$TeamInvitationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
714
+
715
+ /**
716
+ * Find the first TeamInvitation that matches the filter.
717
+ * Note, that providing `undefined` is treated as the value not being there.
718
+ * Read more here: https://pris.ly/d/null-undefined
719
+ * @param {TeamInvitationFindFirstArgs} args - Arguments to find a TeamInvitation
720
+ * @example
721
+ * // Get one TeamInvitation
722
+ * const teamInvitation = await prisma.teamInvitation.findFirst({
723
+ * where: {
724
+ * // ... provide filter here
725
+ * }
726
+ * })
727
+ */
728
+ findFirst<T extends TeamInvitationFindFirstArgs>(args?: Prisma.SelectSubset<T, TeamInvitationFindFirstArgs<ExtArgs>>): Prisma.Prisma__TeamInvitationClient<runtime.Types.Result.GetResult<Prisma.$TeamInvitationPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
729
+
730
+ /**
731
+ * Find the first TeamInvitation that matches the filter or
732
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
733
+ * Note, that providing `undefined` is treated as the value not being there.
734
+ * Read more here: https://pris.ly/d/null-undefined
735
+ * @param {TeamInvitationFindFirstOrThrowArgs} args - Arguments to find a TeamInvitation
736
+ * @example
737
+ * // Get one TeamInvitation
738
+ * const teamInvitation = await prisma.teamInvitation.findFirstOrThrow({
739
+ * where: {
740
+ * // ... provide filter here
741
+ * }
742
+ * })
743
+ */
744
+ findFirstOrThrow<T extends TeamInvitationFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TeamInvitationFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TeamInvitationClient<runtime.Types.Result.GetResult<Prisma.$TeamInvitationPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
745
+
746
+ /**
747
+ * Find zero or more TeamInvitations that matches the filter.
748
+ * Note, that providing `undefined` is treated as the value not being there.
749
+ * Read more here: https://pris.ly/d/null-undefined
750
+ * @param {TeamInvitationFindManyArgs} args - Arguments to filter and select certain fields only.
751
+ * @example
752
+ * // Get all TeamInvitations
753
+ * const teamInvitations = await prisma.teamInvitation.findMany()
754
+ *
755
+ * // Get first 10 TeamInvitations
756
+ * const teamInvitations = await prisma.teamInvitation.findMany({ take: 10 })
757
+ *
758
+ * // Only select the `id`
759
+ * const teamInvitationWithIdOnly = await prisma.teamInvitation.findMany({ select: { id: true } })
760
+ *
761
+ */
762
+ findMany<T extends TeamInvitationFindManyArgs>(args?: Prisma.SelectSubset<T, TeamInvitationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamInvitationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
763
+
764
+ /**
765
+ * Create a TeamInvitation.
766
+ * @param {TeamInvitationCreateArgs} args - Arguments to create a TeamInvitation.
767
+ * @example
768
+ * // Create one TeamInvitation
769
+ * const TeamInvitation = await prisma.teamInvitation.create({
770
+ * data: {
771
+ * // ... data to create a TeamInvitation
772
+ * }
773
+ * })
774
+ *
775
+ */
776
+ create<T extends TeamInvitationCreateArgs>(args: Prisma.SelectSubset<T, TeamInvitationCreateArgs<ExtArgs>>): Prisma.Prisma__TeamInvitationClient<runtime.Types.Result.GetResult<Prisma.$TeamInvitationPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
777
+
778
+ /**
779
+ * Create many TeamInvitations.
780
+ * @param {TeamInvitationCreateManyArgs} args - Arguments to create many TeamInvitations.
781
+ * @example
782
+ * // Create many TeamInvitations
783
+ * const teamInvitation = await prisma.teamInvitation.createMany({
784
+ * data: [
785
+ * // ... provide data here
786
+ * ]
787
+ * })
788
+ *
789
+ */
790
+ createMany<T extends TeamInvitationCreateManyArgs>(args?: Prisma.SelectSubset<T, TeamInvitationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
791
+
792
+ /**
793
+ * Create many TeamInvitations and returns the data saved in the database.
794
+ * @param {TeamInvitationCreateManyAndReturnArgs} args - Arguments to create many TeamInvitations.
795
+ * @example
796
+ * // Create many TeamInvitations
797
+ * const teamInvitation = await prisma.teamInvitation.createManyAndReturn({
798
+ * data: [
799
+ * // ... provide data here
800
+ * ]
801
+ * })
802
+ *
803
+ * // Create many TeamInvitations and only return the `id`
804
+ * const teamInvitationWithIdOnly = await prisma.teamInvitation.createManyAndReturn({
805
+ * select: { id: true },
806
+ * data: [
807
+ * // ... provide data here
808
+ * ]
809
+ * })
810
+ * Note, that providing `undefined` is treated as the value not being there.
811
+ * Read more here: https://pris.ly/d/null-undefined
812
+ *
813
+ */
814
+ createManyAndReturn<T extends TeamInvitationCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TeamInvitationCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamInvitationPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
815
+
816
+ /**
817
+ * Delete a TeamInvitation.
818
+ * @param {TeamInvitationDeleteArgs} args - Arguments to delete one TeamInvitation.
819
+ * @example
820
+ * // Delete one TeamInvitation
821
+ * const TeamInvitation = await prisma.teamInvitation.delete({
822
+ * where: {
823
+ * // ... filter to delete one TeamInvitation
824
+ * }
825
+ * })
826
+ *
827
+ */
828
+ delete<T extends TeamInvitationDeleteArgs>(args: Prisma.SelectSubset<T, TeamInvitationDeleteArgs<ExtArgs>>): Prisma.Prisma__TeamInvitationClient<runtime.Types.Result.GetResult<Prisma.$TeamInvitationPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
829
+
830
+ /**
831
+ * Update one TeamInvitation.
832
+ * @param {TeamInvitationUpdateArgs} args - Arguments to update one TeamInvitation.
833
+ * @example
834
+ * // Update one TeamInvitation
835
+ * const teamInvitation = await prisma.teamInvitation.update({
836
+ * where: {
837
+ * // ... provide filter here
838
+ * },
839
+ * data: {
840
+ * // ... provide data here
841
+ * }
842
+ * })
843
+ *
844
+ */
845
+ update<T extends TeamInvitationUpdateArgs>(args: Prisma.SelectSubset<T, TeamInvitationUpdateArgs<ExtArgs>>): Prisma.Prisma__TeamInvitationClient<runtime.Types.Result.GetResult<Prisma.$TeamInvitationPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
846
+
847
+ /**
848
+ * Delete zero or more TeamInvitations.
849
+ * @param {TeamInvitationDeleteManyArgs} args - Arguments to filter TeamInvitations to delete.
850
+ * @example
851
+ * // Delete a few TeamInvitations
852
+ * const { count } = await prisma.teamInvitation.deleteMany({
853
+ * where: {
854
+ * // ... provide filter here
855
+ * }
856
+ * })
857
+ *
858
+ */
859
+ deleteMany<T extends TeamInvitationDeleteManyArgs>(args?: Prisma.SelectSubset<T, TeamInvitationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
860
+
861
+ /**
862
+ * Update zero or more TeamInvitations.
863
+ * Note, that providing `undefined` is treated as the value not being there.
864
+ * Read more here: https://pris.ly/d/null-undefined
865
+ * @param {TeamInvitationUpdateManyArgs} args - Arguments to update one or more rows.
866
+ * @example
867
+ * // Update many TeamInvitations
868
+ * const teamInvitation = await prisma.teamInvitation.updateMany({
869
+ * where: {
870
+ * // ... provide filter here
871
+ * },
872
+ * data: {
873
+ * // ... provide data here
874
+ * }
875
+ * })
876
+ *
877
+ */
878
+ updateMany<T extends TeamInvitationUpdateManyArgs>(args: Prisma.SelectSubset<T, TeamInvitationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
879
+
880
+ /**
881
+ * Update zero or more TeamInvitations and returns the data updated in the database.
882
+ * @param {TeamInvitationUpdateManyAndReturnArgs} args - Arguments to update many TeamInvitations.
883
+ * @example
884
+ * // Update many TeamInvitations
885
+ * const teamInvitation = await prisma.teamInvitation.updateManyAndReturn({
886
+ * where: {
887
+ * // ... provide filter here
888
+ * },
889
+ * data: [
890
+ * // ... provide data here
891
+ * ]
892
+ * })
893
+ *
894
+ * // Update zero or more TeamInvitations and only return the `id`
895
+ * const teamInvitationWithIdOnly = await prisma.teamInvitation.updateManyAndReturn({
896
+ * select: { id: true },
897
+ * where: {
898
+ * // ... provide filter here
899
+ * },
900
+ * data: [
901
+ * // ... provide data here
902
+ * ]
903
+ * })
904
+ * Note, that providing `undefined` is treated as the value not being there.
905
+ * Read more here: https://pris.ly/d/null-undefined
906
+ *
907
+ */
908
+ updateManyAndReturn<T extends TeamInvitationUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TeamInvitationUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamInvitationPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
909
+
910
+ /**
911
+ * Create or update one TeamInvitation.
912
+ * @param {TeamInvitationUpsertArgs} args - Arguments to update or create a TeamInvitation.
913
+ * @example
914
+ * // Update or create a TeamInvitation
915
+ * const teamInvitation = await prisma.teamInvitation.upsert({
916
+ * create: {
917
+ * // ... data to create a TeamInvitation
918
+ * },
919
+ * update: {
920
+ * // ... in case it already exists, update
921
+ * },
922
+ * where: {
923
+ * // ... the filter for the TeamInvitation we want to update
924
+ * }
925
+ * })
926
+ */
927
+ upsert<T extends TeamInvitationUpsertArgs>(args: Prisma.SelectSubset<T, TeamInvitationUpsertArgs<ExtArgs>>): Prisma.Prisma__TeamInvitationClient<runtime.Types.Result.GetResult<Prisma.$TeamInvitationPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
928
+
929
+
930
+ /**
931
+ * Count the number of TeamInvitations.
932
+ * Note, that providing `undefined` is treated as the value not being there.
933
+ * Read more here: https://pris.ly/d/null-undefined
934
+ * @param {TeamInvitationCountArgs} args - Arguments to filter TeamInvitations to count.
935
+ * @example
936
+ * // Count the number of TeamInvitations
937
+ * const count = await prisma.teamInvitation.count({
938
+ * where: {
939
+ * // ... the filter for the TeamInvitations we want to count
940
+ * }
941
+ * })
942
+ **/
943
+ count<T extends TeamInvitationCountArgs>(
944
+ args?: Prisma.Subset<T, TeamInvitationCountArgs>,
945
+ ): Prisma.PrismaPromise<
946
+ T extends runtime.Types.Utils.Record<'select', any>
947
+ ? T['select'] extends true
948
+ ? number
949
+ : Prisma.GetScalarType<T['select'], TeamInvitationCountAggregateOutputType>
950
+ : number
951
+ >
952
+
953
+ /**
954
+ * Allows you to perform aggregations operations on a TeamInvitation.
955
+ * Note, that providing `undefined` is treated as the value not being there.
956
+ * Read more here: https://pris.ly/d/null-undefined
957
+ * @param {TeamInvitationAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
958
+ * @example
959
+ * // Ordered by age ascending
960
+ * // Where email contains prisma.io
961
+ * // Limited to the 10 users
962
+ * const aggregations = await prisma.user.aggregate({
963
+ * _avg: {
964
+ * age: true,
965
+ * },
966
+ * where: {
967
+ * email: {
968
+ * contains: "prisma.io",
969
+ * },
970
+ * },
971
+ * orderBy: {
972
+ * age: "asc",
973
+ * },
974
+ * take: 10,
975
+ * })
976
+ **/
977
+ aggregate<T extends TeamInvitationAggregateArgs>(args: Prisma.Subset<T, TeamInvitationAggregateArgs>): Prisma.PrismaPromise<GetTeamInvitationAggregateType<T>>
978
+
979
+ /**
980
+ * Group by TeamInvitation.
981
+ * Note, that providing `undefined` is treated as the value not being there.
982
+ * Read more here: https://pris.ly/d/null-undefined
983
+ * @param {TeamInvitationGroupByArgs} args - Group by arguments.
984
+ * @example
985
+ * // Group by city, order by createdAt, get count
986
+ * const result = await prisma.user.groupBy({
987
+ * by: ['city', 'createdAt'],
988
+ * orderBy: {
989
+ * createdAt: true
990
+ * },
991
+ * _count: {
992
+ * _all: true
993
+ * },
994
+ * })
995
+ *
996
+ **/
997
+ groupBy<
998
+ T extends TeamInvitationGroupByArgs,
999
+ HasSelectOrTake extends Prisma.Or<
1000
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1001
+ Prisma.Extends<'take', Prisma.Keys<T>>
1002
+ >,
1003
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1004
+ ? { orderBy: TeamInvitationGroupByArgs['orderBy'] }
1005
+ : { orderBy?: TeamInvitationGroupByArgs['orderBy'] },
1006
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1007
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1008
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1009
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1010
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1011
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1012
+ InputErrors extends ByEmpty extends Prisma.True
1013
+ ? `Error: "by" must not be empty.`
1014
+ : HavingValid extends Prisma.False
1015
+ ? {
1016
+ [P in HavingFields]: P extends ByFields
1017
+ ? never
1018
+ : P extends string
1019
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1020
+ : [
1021
+ Error,
1022
+ 'Field ',
1023
+ P,
1024
+ ` in "having" needs to be provided in "by"`,
1025
+ ]
1026
+ }[HavingFields]
1027
+ : 'take' extends Prisma.Keys<T>
1028
+ ? 'orderBy' extends Prisma.Keys<T>
1029
+ ? ByValid extends Prisma.True
1030
+ ? {}
1031
+ : {
1032
+ [P in OrderFields]: P extends ByFields
1033
+ ? never
1034
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1035
+ }[OrderFields]
1036
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1037
+ : 'skip' extends Prisma.Keys<T>
1038
+ ? 'orderBy' extends Prisma.Keys<T>
1039
+ ? ByValid extends Prisma.True
1040
+ ? {}
1041
+ : {
1042
+ [P in OrderFields]: P extends ByFields
1043
+ ? never
1044
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1045
+ }[OrderFields]
1046
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1047
+ : ByValid extends Prisma.True
1048
+ ? {}
1049
+ : {
1050
+ [P in OrderFields]: P extends ByFields
1051
+ ? never
1052
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1053
+ }[OrderFields]
1054
+ >(args: Prisma.SubsetIntersection<T, TeamInvitationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTeamInvitationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1055
+ /**
1056
+ * Fields of the TeamInvitation model
1057
+ */
1058
+ readonly fields: TeamInvitationFieldRefs;
1059
+ }
1060
+
1061
+ /**
1062
+ * The delegate class that acts as a "Promise-like" for TeamInvitation.
1063
+ * Why is this prefixed with `Prisma__`?
1064
+ * Because we want to prevent naming conflicts as mentioned in
1065
+ * https://github.com/prisma/prisma-client-js/issues/707
1066
+ */
1067
+ export interface Prisma__TeamInvitationClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1068
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1069
+ owner<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1070
+ /**
1071
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1072
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1073
+ * @param onrejected The callback to execute when the Promise is rejected.
1074
+ * @returns A Promise for the completion of which ever callback is executed.
1075
+ */
1076
+ 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>
1077
+ /**
1078
+ * Attaches a callback for only the rejection of the Promise.
1079
+ * @param onrejected The callback to execute when the Promise is rejected.
1080
+ * @returns A Promise for the completion of the callback.
1081
+ */
1082
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1083
+ /**
1084
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1085
+ * resolved value cannot be modified from the callback.
1086
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1087
+ * @returns A Promise for the completion of the callback.
1088
+ */
1089
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1090
+ }
1091
+
1092
+
1093
+
1094
+
1095
+ /**
1096
+ * Fields of the TeamInvitation model
1097
+ */
1098
+ export interface TeamInvitationFieldRefs {
1099
+ readonly id: Prisma.FieldRef<"TeamInvitation", 'String'>
1100
+ readonly ownerId: Prisma.FieldRef<"TeamInvitation", 'String'>
1101
+ readonly email: Prisma.FieldRef<"TeamInvitation", 'String'>
1102
+ readonly seatType: Prisma.FieldRef<"TeamInvitation", 'String'>
1103
+ readonly token: Prisma.FieldRef<"TeamInvitation", 'String'>
1104
+ readonly channel: Prisma.FieldRef<"TeamInvitation", 'String'>
1105
+ readonly status: Prisma.FieldRef<"TeamInvitation", 'String'>
1106
+ readonly expiresAt: Prisma.FieldRef<"TeamInvitation", 'DateTime'>
1107
+ readonly createdAt: Prisma.FieldRef<"TeamInvitation", 'DateTime'>
1108
+ readonly acceptedBy: Prisma.FieldRef<"TeamInvitation", 'String'>
1109
+ }
1110
+
1111
+
1112
+ // Custom InputTypes
1113
+ /**
1114
+ * TeamInvitation findUnique
1115
+ */
1116
+ export type TeamInvitationFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1117
+ /**
1118
+ * Select specific fields to fetch from the TeamInvitation
1119
+ */
1120
+ select?: Prisma.TeamInvitationSelect<ExtArgs> | null
1121
+ /**
1122
+ * Omit specific fields from the TeamInvitation
1123
+ */
1124
+ omit?: Prisma.TeamInvitationOmit<ExtArgs> | null
1125
+ /**
1126
+ * Choose, which related nodes to fetch as well
1127
+ */
1128
+ include?: Prisma.TeamInvitationInclude<ExtArgs> | null
1129
+ /**
1130
+ * Filter, which TeamInvitation to fetch.
1131
+ */
1132
+ where: Prisma.TeamInvitationWhereUniqueInput
1133
+ }
1134
+
1135
+ /**
1136
+ * TeamInvitation findUniqueOrThrow
1137
+ */
1138
+ export type TeamInvitationFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1139
+ /**
1140
+ * Select specific fields to fetch from the TeamInvitation
1141
+ */
1142
+ select?: Prisma.TeamInvitationSelect<ExtArgs> | null
1143
+ /**
1144
+ * Omit specific fields from the TeamInvitation
1145
+ */
1146
+ omit?: Prisma.TeamInvitationOmit<ExtArgs> | null
1147
+ /**
1148
+ * Choose, which related nodes to fetch as well
1149
+ */
1150
+ include?: Prisma.TeamInvitationInclude<ExtArgs> | null
1151
+ /**
1152
+ * Filter, which TeamInvitation to fetch.
1153
+ */
1154
+ where: Prisma.TeamInvitationWhereUniqueInput
1155
+ }
1156
+
1157
+ /**
1158
+ * TeamInvitation findFirst
1159
+ */
1160
+ export type TeamInvitationFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1161
+ /**
1162
+ * Select specific fields to fetch from the TeamInvitation
1163
+ */
1164
+ select?: Prisma.TeamInvitationSelect<ExtArgs> | null
1165
+ /**
1166
+ * Omit specific fields from the TeamInvitation
1167
+ */
1168
+ omit?: Prisma.TeamInvitationOmit<ExtArgs> | null
1169
+ /**
1170
+ * Choose, which related nodes to fetch as well
1171
+ */
1172
+ include?: Prisma.TeamInvitationInclude<ExtArgs> | null
1173
+ /**
1174
+ * Filter, which TeamInvitation to fetch.
1175
+ */
1176
+ where?: Prisma.TeamInvitationWhereInput
1177
+ /**
1178
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1179
+ *
1180
+ * Determine the order of TeamInvitations to fetch.
1181
+ */
1182
+ orderBy?: Prisma.TeamInvitationOrderByWithRelationInput | Prisma.TeamInvitationOrderByWithRelationInput[]
1183
+ /**
1184
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1185
+ *
1186
+ * Sets the position for searching for TeamInvitations.
1187
+ */
1188
+ cursor?: Prisma.TeamInvitationWhereUniqueInput
1189
+ /**
1190
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1191
+ *
1192
+ * Take `±n` TeamInvitations from the position of the cursor.
1193
+ */
1194
+ take?: number
1195
+ /**
1196
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1197
+ *
1198
+ * Skip the first `n` TeamInvitations.
1199
+ */
1200
+ skip?: number
1201
+ /**
1202
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1203
+ *
1204
+ * Filter by unique combinations of TeamInvitations.
1205
+ */
1206
+ distinct?: Prisma.TeamInvitationScalarFieldEnum | Prisma.TeamInvitationScalarFieldEnum[]
1207
+ }
1208
+
1209
+ /**
1210
+ * TeamInvitation findFirstOrThrow
1211
+ */
1212
+ export type TeamInvitationFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1213
+ /**
1214
+ * Select specific fields to fetch from the TeamInvitation
1215
+ */
1216
+ select?: Prisma.TeamInvitationSelect<ExtArgs> | null
1217
+ /**
1218
+ * Omit specific fields from the TeamInvitation
1219
+ */
1220
+ omit?: Prisma.TeamInvitationOmit<ExtArgs> | null
1221
+ /**
1222
+ * Choose, which related nodes to fetch as well
1223
+ */
1224
+ include?: Prisma.TeamInvitationInclude<ExtArgs> | null
1225
+ /**
1226
+ * Filter, which TeamInvitation to fetch.
1227
+ */
1228
+ where?: Prisma.TeamInvitationWhereInput
1229
+ /**
1230
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1231
+ *
1232
+ * Determine the order of TeamInvitations to fetch.
1233
+ */
1234
+ orderBy?: Prisma.TeamInvitationOrderByWithRelationInput | Prisma.TeamInvitationOrderByWithRelationInput[]
1235
+ /**
1236
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1237
+ *
1238
+ * Sets the position for searching for TeamInvitations.
1239
+ */
1240
+ cursor?: Prisma.TeamInvitationWhereUniqueInput
1241
+ /**
1242
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1243
+ *
1244
+ * Take `±n` TeamInvitations from the position of the cursor.
1245
+ */
1246
+ take?: number
1247
+ /**
1248
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1249
+ *
1250
+ * Skip the first `n` TeamInvitations.
1251
+ */
1252
+ skip?: number
1253
+ /**
1254
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1255
+ *
1256
+ * Filter by unique combinations of TeamInvitations.
1257
+ */
1258
+ distinct?: Prisma.TeamInvitationScalarFieldEnum | Prisma.TeamInvitationScalarFieldEnum[]
1259
+ }
1260
+
1261
+ /**
1262
+ * TeamInvitation findMany
1263
+ */
1264
+ export type TeamInvitationFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1265
+ /**
1266
+ * Select specific fields to fetch from the TeamInvitation
1267
+ */
1268
+ select?: Prisma.TeamInvitationSelect<ExtArgs> | null
1269
+ /**
1270
+ * Omit specific fields from the TeamInvitation
1271
+ */
1272
+ omit?: Prisma.TeamInvitationOmit<ExtArgs> | null
1273
+ /**
1274
+ * Choose, which related nodes to fetch as well
1275
+ */
1276
+ include?: Prisma.TeamInvitationInclude<ExtArgs> | null
1277
+ /**
1278
+ * Filter, which TeamInvitations to fetch.
1279
+ */
1280
+ where?: Prisma.TeamInvitationWhereInput
1281
+ /**
1282
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1283
+ *
1284
+ * Determine the order of TeamInvitations to fetch.
1285
+ */
1286
+ orderBy?: Prisma.TeamInvitationOrderByWithRelationInput | Prisma.TeamInvitationOrderByWithRelationInput[]
1287
+ /**
1288
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1289
+ *
1290
+ * Sets the position for listing TeamInvitations.
1291
+ */
1292
+ cursor?: Prisma.TeamInvitationWhereUniqueInput
1293
+ /**
1294
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1295
+ *
1296
+ * Take `±n` TeamInvitations from the position of the cursor.
1297
+ */
1298
+ take?: number
1299
+ /**
1300
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1301
+ *
1302
+ * Skip the first `n` TeamInvitations.
1303
+ */
1304
+ skip?: number
1305
+ /**
1306
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1307
+ *
1308
+ * Filter by unique combinations of TeamInvitations.
1309
+ */
1310
+ distinct?: Prisma.TeamInvitationScalarFieldEnum | Prisma.TeamInvitationScalarFieldEnum[]
1311
+ }
1312
+
1313
+ /**
1314
+ * TeamInvitation create
1315
+ */
1316
+ export type TeamInvitationCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1317
+ /**
1318
+ * Select specific fields to fetch from the TeamInvitation
1319
+ */
1320
+ select?: Prisma.TeamInvitationSelect<ExtArgs> | null
1321
+ /**
1322
+ * Omit specific fields from the TeamInvitation
1323
+ */
1324
+ omit?: Prisma.TeamInvitationOmit<ExtArgs> | null
1325
+ /**
1326
+ * Choose, which related nodes to fetch as well
1327
+ */
1328
+ include?: Prisma.TeamInvitationInclude<ExtArgs> | null
1329
+ /**
1330
+ * The data needed to create a TeamInvitation.
1331
+ */
1332
+ data: Prisma.XOR<Prisma.TeamInvitationCreateInput, Prisma.TeamInvitationUncheckedCreateInput>
1333
+ }
1334
+
1335
+ /**
1336
+ * TeamInvitation createMany
1337
+ */
1338
+ export type TeamInvitationCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1339
+ /**
1340
+ * The data used to create many TeamInvitations.
1341
+ */
1342
+ data: Prisma.TeamInvitationCreateManyInput | Prisma.TeamInvitationCreateManyInput[]
1343
+ }
1344
+
1345
+ /**
1346
+ * TeamInvitation createManyAndReturn
1347
+ */
1348
+ export type TeamInvitationCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1349
+ /**
1350
+ * Select specific fields to fetch from the TeamInvitation
1351
+ */
1352
+ select?: Prisma.TeamInvitationSelectCreateManyAndReturn<ExtArgs> | null
1353
+ /**
1354
+ * Omit specific fields from the TeamInvitation
1355
+ */
1356
+ omit?: Prisma.TeamInvitationOmit<ExtArgs> | null
1357
+ /**
1358
+ * The data used to create many TeamInvitations.
1359
+ */
1360
+ data: Prisma.TeamInvitationCreateManyInput | Prisma.TeamInvitationCreateManyInput[]
1361
+ /**
1362
+ * Choose, which related nodes to fetch as well
1363
+ */
1364
+ include?: Prisma.TeamInvitationIncludeCreateManyAndReturn<ExtArgs> | null
1365
+ }
1366
+
1367
+ /**
1368
+ * TeamInvitation update
1369
+ */
1370
+ export type TeamInvitationUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1371
+ /**
1372
+ * Select specific fields to fetch from the TeamInvitation
1373
+ */
1374
+ select?: Prisma.TeamInvitationSelect<ExtArgs> | null
1375
+ /**
1376
+ * Omit specific fields from the TeamInvitation
1377
+ */
1378
+ omit?: Prisma.TeamInvitationOmit<ExtArgs> | null
1379
+ /**
1380
+ * Choose, which related nodes to fetch as well
1381
+ */
1382
+ include?: Prisma.TeamInvitationInclude<ExtArgs> | null
1383
+ /**
1384
+ * The data needed to update a TeamInvitation.
1385
+ */
1386
+ data: Prisma.XOR<Prisma.TeamInvitationUpdateInput, Prisma.TeamInvitationUncheckedUpdateInput>
1387
+ /**
1388
+ * Choose, which TeamInvitation to update.
1389
+ */
1390
+ where: Prisma.TeamInvitationWhereUniqueInput
1391
+ }
1392
+
1393
+ /**
1394
+ * TeamInvitation updateMany
1395
+ */
1396
+ export type TeamInvitationUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1397
+ /**
1398
+ * The data used to update TeamInvitations.
1399
+ */
1400
+ data: Prisma.XOR<Prisma.TeamInvitationUpdateManyMutationInput, Prisma.TeamInvitationUncheckedUpdateManyInput>
1401
+ /**
1402
+ * Filter which TeamInvitations to update
1403
+ */
1404
+ where?: Prisma.TeamInvitationWhereInput
1405
+ /**
1406
+ * Limit how many TeamInvitations to update.
1407
+ */
1408
+ limit?: number
1409
+ }
1410
+
1411
+ /**
1412
+ * TeamInvitation updateManyAndReturn
1413
+ */
1414
+ export type TeamInvitationUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1415
+ /**
1416
+ * Select specific fields to fetch from the TeamInvitation
1417
+ */
1418
+ select?: Prisma.TeamInvitationSelectUpdateManyAndReturn<ExtArgs> | null
1419
+ /**
1420
+ * Omit specific fields from the TeamInvitation
1421
+ */
1422
+ omit?: Prisma.TeamInvitationOmit<ExtArgs> | null
1423
+ /**
1424
+ * The data used to update TeamInvitations.
1425
+ */
1426
+ data: Prisma.XOR<Prisma.TeamInvitationUpdateManyMutationInput, Prisma.TeamInvitationUncheckedUpdateManyInput>
1427
+ /**
1428
+ * Filter which TeamInvitations to update
1429
+ */
1430
+ where?: Prisma.TeamInvitationWhereInput
1431
+ /**
1432
+ * Limit how many TeamInvitations to update.
1433
+ */
1434
+ limit?: number
1435
+ /**
1436
+ * Choose, which related nodes to fetch as well
1437
+ */
1438
+ include?: Prisma.TeamInvitationIncludeUpdateManyAndReturn<ExtArgs> | null
1439
+ }
1440
+
1441
+ /**
1442
+ * TeamInvitation upsert
1443
+ */
1444
+ export type TeamInvitationUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1445
+ /**
1446
+ * Select specific fields to fetch from the TeamInvitation
1447
+ */
1448
+ select?: Prisma.TeamInvitationSelect<ExtArgs> | null
1449
+ /**
1450
+ * Omit specific fields from the TeamInvitation
1451
+ */
1452
+ omit?: Prisma.TeamInvitationOmit<ExtArgs> | null
1453
+ /**
1454
+ * Choose, which related nodes to fetch as well
1455
+ */
1456
+ include?: Prisma.TeamInvitationInclude<ExtArgs> | null
1457
+ /**
1458
+ * The filter to search for the TeamInvitation to update in case it exists.
1459
+ */
1460
+ where: Prisma.TeamInvitationWhereUniqueInput
1461
+ /**
1462
+ * In case the TeamInvitation found by the `where` argument doesn't exist, create a new TeamInvitation with this data.
1463
+ */
1464
+ create: Prisma.XOR<Prisma.TeamInvitationCreateInput, Prisma.TeamInvitationUncheckedCreateInput>
1465
+ /**
1466
+ * In case the TeamInvitation was found with the provided `where` argument, update it with this data.
1467
+ */
1468
+ update: Prisma.XOR<Prisma.TeamInvitationUpdateInput, Prisma.TeamInvitationUncheckedUpdateInput>
1469
+ }
1470
+
1471
+ /**
1472
+ * TeamInvitation delete
1473
+ */
1474
+ export type TeamInvitationDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1475
+ /**
1476
+ * Select specific fields to fetch from the TeamInvitation
1477
+ */
1478
+ select?: Prisma.TeamInvitationSelect<ExtArgs> | null
1479
+ /**
1480
+ * Omit specific fields from the TeamInvitation
1481
+ */
1482
+ omit?: Prisma.TeamInvitationOmit<ExtArgs> | null
1483
+ /**
1484
+ * Choose, which related nodes to fetch as well
1485
+ */
1486
+ include?: Prisma.TeamInvitationInclude<ExtArgs> | null
1487
+ /**
1488
+ * Filter which TeamInvitation to delete.
1489
+ */
1490
+ where: Prisma.TeamInvitationWhereUniqueInput
1491
+ }
1492
+
1493
+ /**
1494
+ * TeamInvitation deleteMany
1495
+ */
1496
+ export type TeamInvitationDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1497
+ /**
1498
+ * Filter which TeamInvitations to delete
1499
+ */
1500
+ where?: Prisma.TeamInvitationWhereInput
1501
+ /**
1502
+ * Limit how many TeamInvitations to delete.
1503
+ */
1504
+ limit?: number
1505
+ }
1506
+
1507
+ /**
1508
+ * TeamInvitation without action
1509
+ */
1510
+ export type TeamInvitationDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1511
+ /**
1512
+ * Select specific fields to fetch from the TeamInvitation
1513
+ */
1514
+ select?: Prisma.TeamInvitationSelect<ExtArgs> | null
1515
+ /**
1516
+ * Omit specific fields from the TeamInvitation
1517
+ */
1518
+ omit?: Prisma.TeamInvitationOmit<ExtArgs> | null
1519
+ /**
1520
+ * Choose, which related nodes to fetch as well
1521
+ */
1522
+ include?: Prisma.TeamInvitationInclude<ExtArgs> | null
1523
+ }