@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,1681 @@
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 `Share` 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 Share
17
+ *
18
+ */
19
+ export type ShareModel = runtime.Types.Result.DefaultSelection<Prisma.$SharePayload>
20
+
21
+ export type AggregateShare = {
22
+ _count: ShareCountAggregateOutputType | null
23
+ _min: ShareMinAggregateOutputType | null
24
+ _max: ShareMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type ShareMinAggregateOutputType = {
28
+ id: string | null
29
+ prdId: string | null
30
+ token: string | null
31
+ type: string | null
32
+ status: $Enums.ShareStatus | null
33
+ password: string | null
34
+ hasPassword: boolean | null
35
+ expiresAt: Date | null
36
+ createdAt: Date | null
37
+ updatedAt: Date | null
38
+ }
39
+
40
+ export type ShareMaxAggregateOutputType = {
41
+ id: string | null
42
+ prdId: string | null
43
+ token: string | null
44
+ type: string | null
45
+ status: $Enums.ShareStatus | null
46
+ password: string | null
47
+ hasPassword: boolean | null
48
+ expiresAt: Date | null
49
+ createdAt: Date | null
50
+ updatedAt: Date | null
51
+ }
52
+
53
+ export type ShareCountAggregateOutputType = {
54
+ id: number
55
+ prdId: number
56
+ token: number
57
+ type: number
58
+ status: number
59
+ password: number
60
+ hasPassword: number
61
+ expiresAt: number
62
+ createdAt: number
63
+ updatedAt: number
64
+ _all: number
65
+ }
66
+
67
+
68
+ export type ShareMinAggregateInputType = {
69
+ id?: true
70
+ prdId?: true
71
+ token?: true
72
+ type?: true
73
+ status?: true
74
+ password?: true
75
+ hasPassword?: true
76
+ expiresAt?: true
77
+ createdAt?: true
78
+ updatedAt?: true
79
+ }
80
+
81
+ export type ShareMaxAggregateInputType = {
82
+ id?: true
83
+ prdId?: true
84
+ token?: true
85
+ type?: true
86
+ status?: true
87
+ password?: true
88
+ hasPassword?: true
89
+ expiresAt?: true
90
+ createdAt?: true
91
+ updatedAt?: true
92
+ }
93
+
94
+ export type ShareCountAggregateInputType = {
95
+ id?: true
96
+ prdId?: true
97
+ token?: true
98
+ type?: true
99
+ status?: true
100
+ password?: true
101
+ hasPassword?: true
102
+ expiresAt?: true
103
+ createdAt?: true
104
+ updatedAt?: true
105
+ _all?: true
106
+ }
107
+
108
+ export type ShareAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
109
+ /**
110
+ * Filter which Share to aggregate.
111
+ */
112
+ where?: Prisma.ShareWhereInput
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
115
+ *
116
+ * Determine the order of Shares to fetch.
117
+ */
118
+ orderBy?: Prisma.ShareOrderByWithRelationInput | Prisma.ShareOrderByWithRelationInput[]
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.ShareWhereUniqueInput
125
+ /**
126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
127
+ *
128
+ * Take `±n` Shares 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` Shares.
135
+ */
136
+ skip?: number
137
+ /**
138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
139
+ *
140
+ * Count returned Shares
141
+ **/
142
+ _count?: true | ShareCountAggregateInputType
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?: ShareMinAggregateInputType
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?: ShareMaxAggregateInputType
155
+ }
156
+
157
+ export type GetShareAggregateType<T extends ShareAggregateArgs> = {
158
+ [P in keyof T & keyof AggregateShare]: P extends '_count' | 'count'
159
+ ? T[P] extends true
160
+ ? number
161
+ : Prisma.GetScalarType<T[P], AggregateShare[P]>
162
+ : Prisma.GetScalarType<T[P], AggregateShare[P]>
163
+ }
164
+
165
+
166
+
167
+
168
+ export type ShareGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
169
+ where?: Prisma.ShareWhereInput
170
+ orderBy?: Prisma.ShareOrderByWithAggregationInput | Prisma.ShareOrderByWithAggregationInput[]
171
+ by: Prisma.ShareScalarFieldEnum[] | Prisma.ShareScalarFieldEnum
172
+ having?: Prisma.ShareScalarWhereWithAggregatesInput
173
+ take?: number
174
+ skip?: number
175
+ _count?: ShareCountAggregateInputType | true
176
+ _min?: ShareMinAggregateInputType
177
+ _max?: ShareMaxAggregateInputType
178
+ }
179
+
180
+ export type ShareGroupByOutputType = {
181
+ id: string
182
+ prdId: string
183
+ token: string
184
+ type: string
185
+ status: $Enums.ShareStatus
186
+ password: string | null
187
+ hasPassword: boolean
188
+ expiresAt: Date | null
189
+ createdAt: Date
190
+ updatedAt: Date
191
+ _count: ShareCountAggregateOutputType | null
192
+ _min: ShareMinAggregateOutputType | null
193
+ _max: ShareMaxAggregateOutputType | null
194
+ }
195
+
196
+ export type GetShareGroupByPayload<T extends ShareGroupByArgs> = Prisma.PrismaPromise<
197
+ Array<
198
+ Prisma.PickEnumerable<ShareGroupByOutputType, T['by']> &
199
+ {
200
+ [P in ((keyof T) & (keyof ShareGroupByOutputType))]: P extends '_count'
201
+ ? T[P] extends boolean
202
+ ? number
203
+ : Prisma.GetScalarType<T[P], ShareGroupByOutputType[P]>
204
+ : Prisma.GetScalarType<T[P], ShareGroupByOutputType[P]>
205
+ }
206
+ >
207
+ >
208
+
209
+
210
+
211
+ export type ShareWhereInput = {
212
+ AND?: Prisma.ShareWhereInput | Prisma.ShareWhereInput[]
213
+ OR?: Prisma.ShareWhereInput[]
214
+ NOT?: Prisma.ShareWhereInput | Prisma.ShareWhereInput[]
215
+ id?: Prisma.StringFilter<"Share"> | string
216
+ prdId?: Prisma.StringFilter<"Share"> | string
217
+ token?: Prisma.StringFilter<"Share"> | string
218
+ type?: Prisma.StringFilter<"Share"> | string
219
+ status?: Prisma.EnumShareStatusFilter<"Share"> | $Enums.ShareStatus
220
+ password?: Prisma.StringNullableFilter<"Share"> | string | null
221
+ hasPassword?: Prisma.BoolFilter<"Share"> | boolean
222
+ expiresAt?: Prisma.DateTimeNullableFilter<"Share"> | Date | string | null
223
+ createdAt?: Prisma.DateTimeFilter<"Share"> | Date | string
224
+ updatedAt?: Prisma.DateTimeFilter<"Share"> | Date | string
225
+ prd?: Prisma.XOR<Prisma.PRDScalarRelationFilter, Prisma.PRDWhereInput>
226
+ shareVersions?: Prisma.ShareVersionListRelationFilter
227
+ }
228
+
229
+ export type ShareOrderByWithRelationInput = {
230
+ id?: Prisma.SortOrder
231
+ prdId?: Prisma.SortOrder
232
+ token?: Prisma.SortOrder
233
+ type?: Prisma.SortOrder
234
+ status?: Prisma.SortOrder
235
+ password?: Prisma.SortOrderInput | Prisma.SortOrder
236
+ hasPassword?: Prisma.SortOrder
237
+ expiresAt?: Prisma.SortOrderInput | Prisma.SortOrder
238
+ createdAt?: Prisma.SortOrder
239
+ updatedAt?: Prisma.SortOrder
240
+ prd?: Prisma.PRDOrderByWithRelationInput
241
+ shareVersions?: Prisma.ShareVersionOrderByRelationAggregateInput
242
+ }
243
+
244
+ export type ShareWhereUniqueInput = Prisma.AtLeast<{
245
+ id?: string
246
+ token?: string
247
+ AND?: Prisma.ShareWhereInput | Prisma.ShareWhereInput[]
248
+ OR?: Prisma.ShareWhereInput[]
249
+ NOT?: Prisma.ShareWhereInput | Prisma.ShareWhereInput[]
250
+ prdId?: Prisma.StringFilter<"Share"> | string
251
+ type?: Prisma.StringFilter<"Share"> | string
252
+ status?: Prisma.EnumShareStatusFilter<"Share"> | $Enums.ShareStatus
253
+ password?: Prisma.StringNullableFilter<"Share"> | string | null
254
+ hasPassword?: Prisma.BoolFilter<"Share"> | boolean
255
+ expiresAt?: Prisma.DateTimeNullableFilter<"Share"> | Date | string | null
256
+ createdAt?: Prisma.DateTimeFilter<"Share"> | Date | string
257
+ updatedAt?: Prisma.DateTimeFilter<"Share"> | Date | string
258
+ prd?: Prisma.XOR<Prisma.PRDScalarRelationFilter, Prisma.PRDWhereInput>
259
+ shareVersions?: Prisma.ShareVersionListRelationFilter
260
+ }, "id" | "token">
261
+
262
+ export type ShareOrderByWithAggregationInput = {
263
+ id?: Prisma.SortOrder
264
+ prdId?: Prisma.SortOrder
265
+ token?: Prisma.SortOrder
266
+ type?: Prisma.SortOrder
267
+ status?: Prisma.SortOrder
268
+ password?: Prisma.SortOrderInput | Prisma.SortOrder
269
+ hasPassword?: Prisma.SortOrder
270
+ expiresAt?: Prisma.SortOrderInput | Prisma.SortOrder
271
+ createdAt?: Prisma.SortOrder
272
+ updatedAt?: Prisma.SortOrder
273
+ _count?: Prisma.ShareCountOrderByAggregateInput
274
+ _max?: Prisma.ShareMaxOrderByAggregateInput
275
+ _min?: Prisma.ShareMinOrderByAggregateInput
276
+ }
277
+
278
+ export type ShareScalarWhereWithAggregatesInput = {
279
+ AND?: Prisma.ShareScalarWhereWithAggregatesInput | Prisma.ShareScalarWhereWithAggregatesInput[]
280
+ OR?: Prisma.ShareScalarWhereWithAggregatesInput[]
281
+ NOT?: Prisma.ShareScalarWhereWithAggregatesInput | Prisma.ShareScalarWhereWithAggregatesInput[]
282
+ id?: Prisma.StringWithAggregatesFilter<"Share"> | string
283
+ prdId?: Prisma.StringWithAggregatesFilter<"Share"> | string
284
+ token?: Prisma.StringWithAggregatesFilter<"Share"> | string
285
+ type?: Prisma.StringWithAggregatesFilter<"Share"> | string
286
+ status?: Prisma.EnumShareStatusWithAggregatesFilter<"Share"> | $Enums.ShareStatus
287
+ password?: Prisma.StringNullableWithAggregatesFilter<"Share"> | string | null
288
+ hasPassword?: Prisma.BoolWithAggregatesFilter<"Share"> | boolean
289
+ expiresAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Share"> | Date | string | null
290
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Share"> | Date | string
291
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Share"> | Date | string
292
+ }
293
+
294
+ export type ShareCreateInput = {
295
+ id?: string
296
+ token: string
297
+ type?: string
298
+ status?: $Enums.ShareStatus
299
+ password?: string | null
300
+ hasPassword?: boolean
301
+ expiresAt?: Date | string | null
302
+ createdAt?: Date | string
303
+ updatedAt?: Date | string
304
+ prd: Prisma.PRDCreateNestedOneWithoutSharesInput
305
+ shareVersions?: Prisma.ShareVersionCreateNestedManyWithoutShareInput
306
+ }
307
+
308
+ export type ShareUncheckedCreateInput = {
309
+ id?: string
310
+ prdId: string
311
+ token: string
312
+ type?: string
313
+ status?: $Enums.ShareStatus
314
+ password?: string | null
315
+ hasPassword?: boolean
316
+ expiresAt?: Date | string | null
317
+ createdAt?: Date | string
318
+ updatedAt?: Date | string
319
+ shareVersions?: Prisma.ShareVersionUncheckedCreateNestedManyWithoutShareInput
320
+ }
321
+
322
+ export type ShareUpdateInput = {
323
+ id?: Prisma.StringFieldUpdateOperationsInput | string
324
+ token?: Prisma.StringFieldUpdateOperationsInput | string
325
+ type?: Prisma.StringFieldUpdateOperationsInput | string
326
+ status?: Prisma.EnumShareStatusFieldUpdateOperationsInput | $Enums.ShareStatus
327
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
328
+ hasPassword?: Prisma.BoolFieldUpdateOperationsInput | boolean
329
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
330
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
331
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
332
+ prd?: Prisma.PRDUpdateOneRequiredWithoutSharesNestedInput
333
+ shareVersions?: Prisma.ShareVersionUpdateManyWithoutShareNestedInput
334
+ }
335
+
336
+ export type ShareUncheckedUpdateInput = {
337
+ id?: Prisma.StringFieldUpdateOperationsInput | string
338
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
339
+ token?: Prisma.StringFieldUpdateOperationsInput | string
340
+ type?: Prisma.StringFieldUpdateOperationsInput | string
341
+ status?: Prisma.EnumShareStatusFieldUpdateOperationsInput | $Enums.ShareStatus
342
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
343
+ hasPassword?: Prisma.BoolFieldUpdateOperationsInput | boolean
344
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
345
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
346
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
347
+ shareVersions?: Prisma.ShareVersionUncheckedUpdateManyWithoutShareNestedInput
348
+ }
349
+
350
+ export type ShareCreateManyInput = {
351
+ id?: string
352
+ prdId: string
353
+ token: string
354
+ type?: string
355
+ status?: $Enums.ShareStatus
356
+ password?: string | null
357
+ hasPassword?: boolean
358
+ expiresAt?: Date | string | null
359
+ createdAt?: Date | string
360
+ updatedAt?: Date | string
361
+ }
362
+
363
+ export type ShareUpdateManyMutationInput = {
364
+ id?: Prisma.StringFieldUpdateOperationsInput | string
365
+ token?: Prisma.StringFieldUpdateOperationsInput | string
366
+ type?: Prisma.StringFieldUpdateOperationsInput | string
367
+ status?: Prisma.EnumShareStatusFieldUpdateOperationsInput | $Enums.ShareStatus
368
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
369
+ hasPassword?: Prisma.BoolFieldUpdateOperationsInput | boolean
370
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
371
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
372
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
373
+ }
374
+
375
+ export type ShareUncheckedUpdateManyInput = {
376
+ id?: Prisma.StringFieldUpdateOperationsInput | string
377
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
378
+ token?: Prisma.StringFieldUpdateOperationsInput | string
379
+ type?: Prisma.StringFieldUpdateOperationsInput | string
380
+ status?: Prisma.EnumShareStatusFieldUpdateOperationsInput | $Enums.ShareStatus
381
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
382
+ hasPassword?: Prisma.BoolFieldUpdateOperationsInput | boolean
383
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
384
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
385
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
386
+ }
387
+
388
+ export type ShareListRelationFilter = {
389
+ every?: Prisma.ShareWhereInput
390
+ some?: Prisma.ShareWhereInput
391
+ none?: Prisma.ShareWhereInput
392
+ }
393
+
394
+ export type ShareOrderByRelationAggregateInput = {
395
+ _count?: Prisma.SortOrder
396
+ }
397
+
398
+ export type ShareCountOrderByAggregateInput = {
399
+ id?: Prisma.SortOrder
400
+ prdId?: Prisma.SortOrder
401
+ token?: Prisma.SortOrder
402
+ type?: Prisma.SortOrder
403
+ status?: Prisma.SortOrder
404
+ password?: Prisma.SortOrder
405
+ hasPassword?: Prisma.SortOrder
406
+ expiresAt?: Prisma.SortOrder
407
+ createdAt?: Prisma.SortOrder
408
+ updatedAt?: Prisma.SortOrder
409
+ }
410
+
411
+ export type ShareMaxOrderByAggregateInput = {
412
+ id?: Prisma.SortOrder
413
+ prdId?: Prisma.SortOrder
414
+ token?: Prisma.SortOrder
415
+ type?: Prisma.SortOrder
416
+ status?: Prisma.SortOrder
417
+ password?: Prisma.SortOrder
418
+ hasPassword?: Prisma.SortOrder
419
+ expiresAt?: Prisma.SortOrder
420
+ createdAt?: Prisma.SortOrder
421
+ updatedAt?: Prisma.SortOrder
422
+ }
423
+
424
+ export type ShareMinOrderByAggregateInput = {
425
+ id?: Prisma.SortOrder
426
+ prdId?: Prisma.SortOrder
427
+ token?: Prisma.SortOrder
428
+ type?: Prisma.SortOrder
429
+ status?: Prisma.SortOrder
430
+ password?: Prisma.SortOrder
431
+ hasPassword?: Prisma.SortOrder
432
+ expiresAt?: Prisma.SortOrder
433
+ createdAt?: Prisma.SortOrder
434
+ updatedAt?: Prisma.SortOrder
435
+ }
436
+
437
+ export type ShareScalarRelationFilter = {
438
+ is?: Prisma.ShareWhereInput
439
+ isNot?: Prisma.ShareWhereInput
440
+ }
441
+
442
+ export type ShareCreateNestedManyWithoutPrdInput = {
443
+ create?: Prisma.XOR<Prisma.ShareCreateWithoutPrdInput, Prisma.ShareUncheckedCreateWithoutPrdInput> | Prisma.ShareCreateWithoutPrdInput[] | Prisma.ShareUncheckedCreateWithoutPrdInput[]
444
+ connectOrCreate?: Prisma.ShareCreateOrConnectWithoutPrdInput | Prisma.ShareCreateOrConnectWithoutPrdInput[]
445
+ createMany?: Prisma.ShareCreateManyPrdInputEnvelope
446
+ connect?: Prisma.ShareWhereUniqueInput | Prisma.ShareWhereUniqueInput[]
447
+ }
448
+
449
+ export type ShareUncheckedCreateNestedManyWithoutPrdInput = {
450
+ create?: Prisma.XOR<Prisma.ShareCreateWithoutPrdInput, Prisma.ShareUncheckedCreateWithoutPrdInput> | Prisma.ShareCreateWithoutPrdInput[] | Prisma.ShareUncheckedCreateWithoutPrdInput[]
451
+ connectOrCreate?: Prisma.ShareCreateOrConnectWithoutPrdInput | Prisma.ShareCreateOrConnectWithoutPrdInput[]
452
+ createMany?: Prisma.ShareCreateManyPrdInputEnvelope
453
+ connect?: Prisma.ShareWhereUniqueInput | Prisma.ShareWhereUniqueInput[]
454
+ }
455
+
456
+ export type ShareUpdateManyWithoutPrdNestedInput = {
457
+ create?: Prisma.XOR<Prisma.ShareCreateWithoutPrdInput, Prisma.ShareUncheckedCreateWithoutPrdInput> | Prisma.ShareCreateWithoutPrdInput[] | Prisma.ShareUncheckedCreateWithoutPrdInput[]
458
+ connectOrCreate?: Prisma.ShareCreateOrConnectWithoutPrdInput | Prisma.ShareCreateOrConnectWithoutPrdInput[]
459
+ upsert?: Prisma.ShareUpsertWithWhereUniqueWithoutPrdInput | Prisma.ShareUpsertWithWhereUniqueWithoutPrdInput[]
460
+ createMany?: Prisma.ShareCreateManyPrdInputEnvelope
461
+ set?: Prisma.ShareWhereUniqueInput | Prisma.ShareWhereUniqueInput[]
462
+ disconnect?: Prisma.ShareWhereUniqueInput | Prisma.ShareWhereUniqueInput[]
463
+ delete?: Prisma.ShareWhereUniqueInput | Prisma.ShareWhereUniqueInput[]
464
+ connect?: Prisma.ShareWhereUniqueInput | Prisma.ShareWhereUniqueInput[]
465
+ update?: Prisma.ShareUpdateWithWhereUniqueWithoutPrdInput | Prisma.ShareUpdateWithWhereUniqueWithoutPrdInput[]
466
+ updateMany?: Prisma.ShareUpdateManyWithWhereWithoutPrdInput | Prisma.ShareUpdateManyWithWhereWithoutPrdInput[]
467
+ deleteMany?: Prisma.ShareScalarWhereInput | Prisma.ShareScalarWhereInput[]
468
+ }
469
+
470
+ export type ShareUncheckedUpdateManyWithoutPrdNestedInput = {
471
+ create?: Prisma.XOR<Prisma.ShareCreateWithoutPrdInput, Prisma.ShareUncheckedCreateWithoutPrdInput> | Prisma.ShareCreateWithoutPrdInput[] | Prisma.ShareUncheckedCreateWithoutPrdInput[]
472
+ connectOrCreate?: Prisma.ShareCreateOrConnectWithoutPrdInput | Prisma.ShareCreateOrConnectWithoutPrdInput[]
473
+ upsert?: Prisma.ShareUpsertWithWhereUniqueWithoutPrdInput | Prisma.ShareUpsertWithWhereUniqueWithoutPrdInput[]
474
+ createMany?: Prisma.ShareCreateManyPrdInputEnvelope
475
+ set?: Prisma.ShareWhereUniqueInput | Prisma.ShareWhereUniqueInput[]
476
+ disconnect?: Prisma.ShareWhereUniqueInput | Prisma.ShareWhereUniqueInput[]
477
+ delete?: Prisma.ShareWhereUniqueInput | Prisma.ShareWhereUniqueInput[]
478
+ connect?: Prisma.ShareWhereUniqueInput | Prisma.ShareWhereUniqueInput[]
479
+ update?: Prisma.ShareUpdateWithWhereUniqueWithoutPrdInput | Prisma.ShareUpdateWithWhereUniqueWithoutPrdInput[]
480
+ updateMany?: Prisma.ShareUpdateManyWithWhereWithoutPrdInput | Prisma.ShareUpdateManyWithWhereWithoutPrdInput[]
481
+ deleteMany?: Prisma.ShareScalarWhereInput | Prisma.ShareScalarWhereInput[]
482
+ }
483
+
484
+ export type EnumShareStatusFieldUpdateOperationsInput = {
485
+ set?: $Enums.ShareStatus
486
+ }
487
+
488
+ export type ShareCreateNestedOneWithoutShareVersionsInput = {
489
+ create?: Prisma.XOR<Prisma.ShareCreateWithoutShareVersionsInput, Prisma.ShareUncheckedCreateWithoutShareVersionsInput>
490
+ connectOrCreate?: Prisma.ShareCreateOrConnectWithoutShareVersionsInput
491
+ connect?: Prisma.ShareWhereUniqueInput
492
+ }
493
+
494
+ export type ShareUpdateOneRequiredWithoutShareVersionsNestedInput = {
495
+ create?: Prisma.XOR<Prisma.ShareCreateWithoutShareVersionsInput, Prisma.ShareUncheckedCreateWithoutShareVersionsInput>
496
+ connectOrCreate?: Prisma.ShareCreateOrConnectWithoutShareVersionsInput
497
+ upsert?: Prisma.ShareUpsertWithoutShareVersionsInput
498
+ connect?: Prisma.ShareWhereUniqueInput
499
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ShareUpdateToOneWithWhereWithoutShareVersionsInput, Prisma.ShareUpdateWithoutShareVersionsInput>, Prisma.ShareUncheckedUpdateWithoutShareVersionsInput>
500
+ }
501
+
502
+ export type ShareCreateWithoutPrdInput = {
503
+ id?: string
504
+ token: string
505
+ type?: string
506
+ status?: $Enums.ShareStatus
507
+ password?: string | null
508
+ hasPassword?: boolean
509
+ expiresAt?: Date | string | null
510
+ createdAt?: Date | string
511
+ updatedAt?: Date | string
512
+ shareVersions?: Prisma.ShareVersionCreateNestedManyWithoutShareInput
513
+ }
514
+
515
+ export type ShareUncheckedCreateWithoutPrdInput = {
516
+ id?: string
517
+ token: string
518
+ type?: string
519
+ status?: $Enums.ShareStatus
520
+ password?: string | null
521
+ hasPassword?: boolean
522
+ expiresAt?: Date | string | null
523
+ createdAt?: Date | string
524
+ updatedAt?: Date | string
525
+ shareVersions?: Prisma.ShareVersionUncheckedCreateNestedManyWithoutShareInput
526
+ }
527
+
528
+ export type ShareCreateOrConnectWithoutPrdInput = {
529
+ where: Prisma.ShareWhereUniqueInput
530
+ create: Prisma.XOR<Prisma.ShareCreateWithoutPrdInput, Prisma.ShareUncheckedCreateWithoutPrdInput>
531
+ }
532
+
533
+ export type ShareCreateManyPrdInputEnvelope = {
534
+ data: Prisma.ShareCreateManyPrdInput | Prisma.ShareCreateManyPrdInput[]
535
+ skipDuplicates?: boolean
536
+ }
537
+
538
+ export type ShareUpsertWithWhereUniqueWithoutPrdInput = {
539
+ where: Prisma.ShareWhereUniqueInput
540
+ update: Prisma.XOR<Prisma.ShareUpdateWithoutPrdInput, Prisma.ShareUncheckedUpdateWithoutPrdInput>
541
+ create: Prisma.XOR<Prisma.ShareCreateWithoutPrdInput, Prisma.ShareUncheckedCreateWithoutPrdInput>
542
+ }
543
+
544
+ export type ShareUpdateWithWhereUniqueWithoutPrdInput = {
545
+ where: Prisma.ShareWhereUniqueInput
546
+ data: Prisma.XOR<Prisma.ShareUpdateWithoutPrdInput, Prisma.ShareUncheckedUpdateWithoutPrdInput>
547
+ }
548
+
549
+ export type ShareUpdateManyWithWhereWithoutPrdInput = {
550
+ where: Prisma.ShareScalarWhereInput
551
+ data: Prisma.XOR<Prisma.ShareUpdateManyMutationInput, Prisma.ShareUncheckedUpdateManyWithoutPrdInput>
552
+ }
553
+
554
+ export type ShareScalarWhereInput = {
555
+ AND?: Prisma.ShareScalarWhereInput | Prisma.ShareScalarWhereInput[]
556
+ OR?: Prisma.ShareScalarWhereInput[]
557
+ NOT?: Prisma.ShareScalarWhereInput | Prisma.ShareScalarWhereInput[]
558
+ id?: Prisma.StringFilter<"Share"> | string
559
+ prdId?: Prisma.StringFilter<"Share"> | string
560
+ token?: Prisma.StringFilter<"Share"> | string
561
+ type?: Prisma.StringFilter<"Share"> | string
562
+ status?: Prisma.EnumShareStatusFilter<"Share"> | $Enums.ShareStatus
563
+ password?: Prisma.StringNullableFilter<"Share"> | string | null
564
+ hasPassword?: Prisma.BoolFilter<"Share"> | boolean
565
+ expiresAt?: Prisma.DateTimeNullableFilter<"Share"> | Date | string | null
566
+ createdAt?: Prisma.DateTimeFilter<"Share"> | Date | string
567
+ updatedAt?: Prisma.DateTimeFilter<"Share"> | Date | string
568
+ }
569
+
570
+ export type ShareCreateWithoutShareVersionsInput = {
571
+ id?: string
572
+ token: string
573
+ type?: string
574
+ status?: $Enums.ShareStatus
575
+ password?: string | null
576
+ hasPassword?: boolean
577
+ expiresAt?: Date | string | null
578
+ createdAt?: Date | string
579
+ updatedAt?: Date | string
580
+ prd: Prisma.PRDCreateNestedOneWithoutSharesInput
581
+ }
582
+
583
+ export type ShareUncheckedCreateWithoutShareVersionsInput = {
584
+ id?: string
585
+ prdId: string
586
+ token: string
587
+ type?: string
588
+ status?: $Enums.ShareStatus
589
+ password?: string | null
590
+ hasPassword?: boolean
591
+ expiresAt?: Date | string | null
592
+ createdAt?: Date | string
593
+ updatedAt?: Date | string
594
+ }
595
+
596
+ export type ShareCreateOrConnectWithoutShareVersionsInput = {
597
+ where: Prisma.ShareWhereUniqueInput
598
+ create: Prisma.XOR<Prisma.ShareCreateWithoutShareVersionsInput, Prisma.ShareUncheckedCreateWithoutShareVersionsInput>
599
+ }
600
+
601
+ export type ShareUpsertWithoutShareVersionsInput = {
602
+ update: Prisma.XOR<Prisma.ShareUpdateWithoutShareVersionsInput, Prisma.ShareUncheckedUpdateWithoutShareVersionsInput>
603
+ create: Prisma.XOR<Prisma.ShareCreateWithoutShareVersionsInput, Prisma.ShareUncheckedCreateWithoutShareVersionsInput>
604
+ where?: Prisma.ShareWhereInput
605
+ }
606
+
607
+ export type ShareUpdateToOneWithWhereWithoutShareVersionsInput = {
608
+ where?: Prisma.ShareWhereInput
609
+ data: Prisma.XOR<Prisma.ShareUpdateWithoutShareVersionsInput, Prisma.ShareUncheckedUpdateWithoutShareVersionsInput>
610
+ }
611
+
612
+ export type ShareUpdateWithoutShareVersionsInput = {
613
+ id?: Prisma.StringFieldUpdateOperationsInput | string
614
+ token?: Prisma.StringFieldUpdateOperationsInput | string
615
+ type?: Prisma.StringFieldUpdateOperationsInput | string
616
+ status?: Prisma.EnumShareStatusFieldUpdateOperationsInput | $Enums.ShareStatus
617
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
618
+ hasPassword?: Prisma.BoolFieldUpdateOperationsInput | boolean
619
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
620
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
621
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
622
+ prd?: Prisma.PRDUpdateOneRequiredWithoutSharesNestedInput
623
+ }
624
+
625
+ export type ShareUncheckedUpdateWithoutShareVersionsInput = {
626
+ id?: Prisma.StringFieldUpdateOperationsInput | string
627
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
628
+ token?: Prisma.StringFieldUpdateOperationsInput | string
629
+ type?: Prisma.StringFieldUpdateOperationsInput | string
630
+ status?: Prisma.EnumShareStatusFieldUpdateOperationsInput | $Enums.ShareStatus
631
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
632
+ hasPassword?: Prisma.BoolFieldUpdateOperationsInput | boolean
633
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
634
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
635
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
636
+ }
637
+
638
+ export type ShareCreateManyPrdInput = {
639
+ id?: string
640
+ token: string
641
+ type?: string
642
+ status?: $Enums.ShareStatus
643
+ password?: string | null
644
+ hasPassword?: boolean
645
+ expiresAt?: Date | string | null
646
+ createdAt?: Date | string
647
+ updatedAt?: Date | string
648
+ }
649
+
650
+ export type ShareUpdateWithoutPrdInput = {
651
+ id?: Prisma.StringFieldUpdateOperationsInput | string
652
+ token?: Prisma.StringFieldUpdateOperationsInput | string
653
+ type?: Prisma.StringFieldUpdateOperationsInput | string
654
+ status?: Prisma.EnumShareStatusFieldUpdateOperationsInput | $Enums.ShareStatus
655
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
656
+ hasPassword?: Prisma.BoolFieldUpdateOperationsInput | boolean
657
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
658
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
659
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
660
+ shareVersions?: Prisma.ShareVersionUpdateManyWithoutShareNestedInput
661
+ }
662
+
663
+ export type ShareUncheckedUpdateWithoutPrdInput = {
664
+ id?: Prisma.StringFieldUpdateOperationsInput | string
665
+ token?: Prisma.StringFieldUpdateOperationsInput | string
666
+ type?: Prisma.StringFieldUpdateOperationsInput | string
667
+ status?: Prisma.EnumShareStatusFieldUpdateOperationsInput | $Enums.ShareStatus
668
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
669
+ hasPassword?: Prisma.BoolFieldUpdateOperationsInput | boolean
670
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
671
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
672
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
673
+ shareVersions?: Prisma.ShareVersionUncheckedUpdateManyWithoutShareNestedInput
674
+ }
675
+
676
+ export type ShareUncheckedUpdateManyWithoutPrdInput = {
677
+ id?: Prisma.StringFieldUpdateOperationsInput | string
678
+ token?: Prisma.StringFieldUpdateOperationsInput | string
679
+ type?: Prisma.StringFieldUpdateOperationsInput | string
680
+ status?: Prisma.EnumShareStatusFieldUpdateOperationsInput | $Enums.ShareStatus
681
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
682
+ hasPassword?: Prisma.BoolFieldUpdateOperationsInput | boolean
683
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
684
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
685
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
686
+ }
687
+
688
+
689
+ /**
690
+ * Count Type ShareCountOutputType
691
+ */
692
+
693
+ export type ShareCountOutputType = {
694
+ shareVersions: number
695
+ }
696
+
697
+ export type ShareCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
698
+ shareVersions?: boolean | ShareCountOutputTypeCountShareVersionsArgs
699
+ }
700
+
701
+ /**
702
+ * ShareCountOutputType without action
703
+ */
704
+ export type ShareCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
705
+ /**
706
+ * Select specific fields to fetch from the ShareCountOutputType
707
+ */
708
+ select?: Prisma.ShareCountOutputTypeSelect<ExtArgs> | null
709
+ }
710
+
711
+ /**
712
+ * ShareCountOutputType without action
713
+ */
714
+ export type ShareCountOutputTypeCountShareVersionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
715
+ where?: Prisma.ShareVersionWhereInput
716
+ }
717
+
718
+
719
+ export type ShareSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
720
+ id?: boolean
721
+ prdId?: boolean
722
+ token?: boolean
723
+ type?: boolean
724
+ status?: boolean
725
+ password?: boolean
726
+ hasPassword?: boolean
727
+ expiresAt?: boolean
728
+ createdAt?: boolean
729
+ updatedAt?: boolean
730
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
731
+ shareVersions?: boolean | Prisma.Share$shareVersionsArgs<ExtArgs>
732
+ _count?: boolean | Prisma.ShareCountOutputTypeDefaultArgs<ExtArgs>
733
+ }, ExtArgs["result"]["share"]>
734
+
735
+ export type ShareSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
736
+ id?: boolean
737
+ prdId?: boolean
738
+ token?: boolean
739
+ type?: boolean
740
+ status?: boolean
741
+ password?: boolean
742
+ hasPassword?: boolean
743
+ expiresAt?: boolean
744
+ createdAt?: boolean
745
+ updatedAt?: boolean
746
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
747
+ }, ExtArgs["result"]["share"]>
748
+
749
+ export type ShareSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
750
+ id?: boolean
751
+ prdId?: boolean
752
+ token?: boolean
753
+ type?: boolean
754
+ status?: boolean
755
+ password?: boolean
756
+ hasPassword?: boolean
757
+ expiresAt?: boolean
758
+ createdAt?: boolean
759
+ updatedAt?: boolean
760
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
761
+ }, ExtArgs["result"]["share"]>
762
+
763
+ export type ShareSelectScalar = {
764
+ id?: boolean
765
+ prdId?: boolean
766
+ token?: boolean
767
+ type?: boolean
768
+ status?: boolean
769
+ password?: boolean
770
+ hasPassword?: boolean
771
+ expiresAt?: boolean
772
+ createdAt?: boolean
773
+ updatedAt?: boolean
774
+ }
775
+
776
+ export type ShareOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "prdId" | "token" | "type" | "status" | "password" | "hasPassword" | "expiresAt" | "createdAt" | "updatedAt", ExtArgs["result"]["share"]>
777
+ export type ShareInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
778
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
779
+ shareVersions?: boolean | Prisma.Share$shareVersionsArgs<ExtArgs>
780
+ _count?: boolean | Prisma.ShareCountOutputTypeDefaultArgs<ExtArgs>
781
+ }
782
+ export type ShareIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
783
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
784
+ }
785
+ export type ShareIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
786
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
787
+ }
788
+
789
+ export type $SharePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
790
+ name: "Share"
791
+ objects: {
792
+ prd: Prisma.$PRDPayload<ExtArgs>
793
+ shareVersions: Prisma.$ShareVersionPayload<ExtArgs>[]
794
+ }
795
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
796
+ id: string
797
+ prdId: string
798
+ token: string
799
+ type: string
800
+ status: $Enums.ShareStatus
801
+ password: string | null
802
+ hasPassword: boolean
803
+ expiresAt: Date | null
804
+ createdAt: Date
805
+ updatedAt: Date
806
+ }, ExtArgs["result"]["share"]>
807
+ composites: {}
808
+ }
809
+
810
+ export type ShareGetPayload<S extends boolean | null | undefined | ShareDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SharePayload, S>
811
+
812
+ export type ShareCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
813
+ Omit<ShareFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
814
+ select?: ShareCountAggregateInputType | true
815
+ }
816
+
817
+ export interface ShareDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
818
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Share'], meta: { name: 'Share' } }
819
+ /**
820
+ * Find zero or one Share that matches the filter.
821
+ * @param {ShareFindUniqueArgs} args - Arguments to find a Share
822
+ * @example
823
+ * // Get one Share
824
+ * const share = await prisma.share.findUnique({
825
+ * where: {
826
+ * // ... provide filter here
827
+ * }
828
+ * })
829
+ */
830
+ findUnique<T extends ShareFindUniqueArgs>(args: Prisma.SelectSubset<T, ShareFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ShareClient<runtime.Types.Result.GetResult<Prisma.$SharePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
831
+
832
+ /**
833
+ * Find one Share that matches the filter or throw an error with `error.code='P2025'`
834
+ * if no matches were found.
835
+ * @param {ShareFindUniqueOrThrowArgs} args - Arguments to find a Share
836
+ * @example
837
+ * // Get one Share
838
+ * const share = await prisma.share.findUniqueOrThrow({
839
+ * where: {
840
+ * // ... provide filter here
841
+ * }
842
+ * })
843
+ */
844
+ findUniqueOrThrow<T extends ShareFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ShareFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ShareClient<runtime.Types.Result.GetResult<Prisma.$SharePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
845
+
846
+ /**
847
+ * Find the first Share that matches the filter.
848
+ * Note, that providing `undefined` is treated as the value not being there.
849
+ * Read more here: https://pris.ly/d/null-undefined
850
+ * @param {ShareFindFirstArgs} args - Arguments to find a Share
851
+ * @example
852
+ * // Get one Share
853
+ * const share = await prisma.share.findFirst({
854
+ * where: {
855
+ * // ... provide filter here
856
+ * }
857
+ * })
858
+ */
859
+ findFirst<T extends ShareFindFirstArgs>(args?: Prisma.SelectSubset<T, ShareFindFirstArgs<ExtArgs>>): Prisma.Prisma__ShareClient<runtime.Types.Result.GetResult<Prisma.$SharePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
860
+
861
+ /**
862
+ * Find the first Share that matches the filter or
863
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
864
+ * Note, that providing `undefined` is treated as the value not being there.
865
+ * Read more here: https://pris.ly/d/null-undefined
866
+ * @param {ShareFindFirstOrThrowArgs} args - Arguments to find a Share
867
+ * @example
868
+ * // Get one Share
869
+ * const share = await prisma.share.findFirstOrThrow({
870
+ * where: {
871
+ * // ... provide filter here
872
+ * }
873
+ * })
874
+ */
875
+ findFirstOrThrow<T extends ShareFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ShareFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ShareClient<runtime.Types.Result.GetResult<Prisma.$SharePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
876
+
877
+ /**
878
+ * Find zero or more Shares that matches the filter.
879
+ * Note, that providing `undefined` is treated as the value not being there.
880
+ * Read more here: https://pris.ly/d/null-undefined
881
+ * @param {ShareFindManyArgs} args - Arguments to filter and select certain fields only.
882
+ * @example
883
+ * // Get all Shares
884
+ * const shares = await prisma.share.findMany()
885
+ *
886
+ * // Get first 10 Shares
887
+ * const shares = await prisma.share.findMany({ take: 10 })
888
+ *
889
+ * // Only select the `id`
890
+ * const shareWithIdOnly = await prisma.share.findMany({ select: { id: true } })
891
+ *
892
+ */
893
+ findMany<T extends ShareFindManyArgs>(args?: Prisma.SelectSubset<T, ShareFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SharePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
894
+
895
+ /**
896
+ * Create a Share.
897
+ * @param {ShareCreateArgs} args - Arguments to create a Share.
898
+ * @example
899
+ * // Create one Share
900
+ * const Share = await prisma.share.create({
901
+ * data: {
902
+ * // ... data to create a Share
903
+ * }
904
+ * })
905
+ *
906
+ */
907
+ create<T extends ShareCreateArgs>(args: Prisma.SelectSubset<T, ShareCreateArgs<ExtArgs>>): Prisma.Prisma__ShareClient<runtime.Types.Result.GetResult<Prisma.$SharePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
908
+
909
+ /**
910
+ * Create many Shares.
911
+ * @param {ShareCreateManyArgs} args - Arguments to create many Shares.
912
+ * @example
913
+ * // Create many Shares
914
+ * const share = await prisma.share.createMany({
915
+ * data: [
916
+ * // ... provide data here
917
+ * ]
918
+ * })
919
+ *
920
+ */
921
+ createMany<T extends ShareCreateManyArgs>(args?: Prisma.SelectSubset<T, ShareCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
922
+
923
+ /**
924
+ * Create many Shares and returns the data saved in the database.
925
+ * @param {ShareCreateManyAndReturnArgs} args - Arguments to create many Shares.
926
+ * @example
927
+ * // Create many Shares
928
+ * const share = await prisma.share.createManyAndReturn({
929
+ * data: [
930
+ * // ... provide data here
931
+ * ]
932
+ * })
933
+ *
934
+ * // Create many Shares and only return the `id`
935
+ * const shareWithIdOnly = await prisma.share.createManyAndReturn({
936
+ * select: { id: true },
937
+ * data: [
938
+ * // ... provide data here
939
+ * ]
940
+ * })
941
+ * Note, that providing `undefined` is treated as the value not being there.
942
+ * Read more here: https://pris.ly/d/null-undefined
943
+ *
944
+ */
945
+ createManyAndReturn<T extends ShareCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ShareCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SharePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
946
+
947
+ /**
948
+ * Delete a Share.
949
+ * @param {ShareDeleteArgs} args - Arguments to delete one Share.
950
+ * @example
951
+ * // Delete one Share
952
+ * const Share = await prisma.share.delete({
953
+ * where: {
954
+ * // ... filter to delete one Share
955
+ * }
956
+ * })
957
+ *
958
+ */
959
+ delete<T extends ShareDeleteArgs>(args: Prisma.SelectSubset<T, ShareDeleteArgs<ExtArgs>>): Prisma.Prisma__ShareClient<runtime.Types.Result.GetResult<Prisma.$SharePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
960
+
961
+ /**
962
+ * Update one Share.
963
+ * @param {ShareUpdateArgs} args - Arguments to update one Share.
964
+ * @example
965
+ * // Update one Share
966
+ * const share = await prisma.share.update({
967
+ * where: {
968
+ * // ... provide filter here
969
+ * },
970
+ * data: {
971
+ * // ... provide data here
972
+ * }
973
+ * })
974
+ *
975
+ */
976
+ update<T extends ShareUpdateArgs>(args: Prisma.SelectSubset<T, ShareUpdateArgs<ExtArgs>>): Prisma.Prisma__ShareClient<runtime.Types.Result.GetResult<Prisma.$SharePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
977
+
978
+ /**
979
+ * Delete zero or more Shares.
980
+ * @param {ShareDeleteManyArgs} args - Arguments to filter Shares to delete.
981
+ * @example
982
+ * // Delete a few Shares
983
+ * const { count } = await prisma.share.deleteMany({
984
+ * where: {
985
+ * // ... provide filter here
986
+ * }
987
+ * })
988
+ *
989
+ */
990
+ deleteMany<T extends ShareDeleteManyArgs>(args?: Prisma.SelectSubset<T, ShareDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
991
+
992
+ /**
993
+ * Update zero or more Shares.
994
+ * Note, that providing `undefined` is treated as the value not being there.
995
+ * Read more here: https://pris.ly/d/null-undefined
996
+ * @param {ShareUpdateManyArgs} args - Arguments to update one or more rows.
997
+ * @example
998
+ * // Update many Shares
999
+ * const share = await prisma.share.updateMany({
1000
+ * where: {
1001
+ * // ... provide filter here
1002
+ * },
1003
+ * data: {
1004
+ * // ... provide data here
1005
+ * }
1006
+ * })
1007
+ *
1008
+ */
1009
+ updateMany<T extends ShareUpdateManyArgs>(args: Prisma.SelectSubset<T, ShareUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1010
+
1011
+ /**
1012
+ * Update zero or more Shares and returns the data updated in the database.
1013
+ * @param {ShareUpdateManyAndReturnArgs} args - Arguments to update many Shares.
1014
+ * @example
1015
+ * // Update many Shares
1016
+ * const share = await prisma.share.updateManyAndReturn({
1017
+ * where: {
1018
+ * // ... provide filter here
1019
+ * },
1020
+ * data: [
1021
+ * // ... provide data here
1022
+ * ]
1023
+ * })
1024
+ *
1025
+ * // Update zero or more Shares and only return the `id`
1026
+ * const shareWithIdOnly = await prisma.share.updateManyAndReturn({
1027
+ * select: { id: true },
1028
+ * where: {
1029
+ * // ... provide filter here
1030
+ * },
1031
+ * data: [
1032
+ * // ... provide data here
1033
+ * ]
1034
+ * })
1035
+ * Note, that providing `undefined` is treated as the value not being there.
1036
+ * Read more here: https://pris.ly/d/null-undefined
1037
+ *
1038
+ */
1039
+ updateManyAndReturn<T extends ShareUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ShareUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SharePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1040
+
1041
+ /**
1042
+ * Create or update one Share.
1043
+ * @param {ShareUpsertArgs} args - Arguments to update or create a Share.
1044
+ * @example
1045
+ * // Update or create a Share
1046
+ * const share = await prisma.share.upsert({
1047
+ * create: {
1048
+ * // ... data to create a Share
1049
+ * },
1050
+ * update: {
1051
+ * // ... in case it already exists, update
1052
+ * },
1053
+ * where: {
1054
+ * // ... the filter for the Share we want to update
1055
+ * }
1056
+ * })
1057
+ */
1058
+ upsert<T extends ShareUpsertArgs>(args: Prisma.SelectSubset<T, ShareUpsertArgs<ExtArgs>>): Prisma.Prisma__ShareClient<runtime.Types.Result.GetResult<Prisma.$SharePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1059
+
1060
+
1061
+ /**
1062
+ * Count the number of Shares.
1063
+ * Note, that providing `undefined` is treated as the value not being there.
1064
+ * Read more here: https://pris.ly/d/null-undefined
1065
+ * @param {ShareCountArgs} args - Arguments to filter Shares to count.
1066
+ * @example
1067
+ * // Count the number of Shares
1068
+ * const count = await prisma.share.count({
1069
+ * where: {
1070
+ * // ... the filter for the Shares we want to count
1071
+ * }
1072
+ * })
1073
+ **/
1074
+ count<T extends ShareCountArgs>(
1075
+ args?: Prisma.Subset<T, ShareCountArgs>,
1076
+ ): Prisma.PrismaPromise<
1077
+ T extends runtime.Types.Utils.Record<'select', any>
1078
+ ? T['select'] extends true
1079
+ ? number
1080
+ : Prisma.GetScalarType<T['select'], ShareCountAggregateOutputType>
1081
+ : number
1082
+ >
1083
+
1084
+ /**
1085
+ * Allows you to perform aggregations operations on a Share.
1086
+ * Note, that providing `undefined` is treated as the value not being there.
1087
+ * Read more here: https://pris.ly/d/null-undefined
1088
+ * @param {ShareAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1089
+ * @example
1090
+ * // Ordered by age ascending
1091
+ * // Where email contains prisma.io
1092
+ * // Limited to the 10 users
1093
+ * const aggregations = await prisma.user.aggregate({
1094
+ * _avg: {
1095
+ * age: true,
1096
+ * },
1097
+ * where: {
1098
+ * email: {
1099
+ * contains: "prisma.io",
1100
+ * },
1101
+ * },
1102
+ * orderBy: {
1103
+ * age: "asc",
1104
+ * },
1105
+ * take: 10,
1106
+ * })
1107
+ **/
1108
+ aggregate<T extends ShareAggregateArgs>(args: Prisma.Subset<T, ShareAggregateArgs>): Prisma.PrismaPromise<GetShareAggregateType<T>>
1109
+
1110
+ /**
1111
+ * Group by Share.
1112
+ * Note, that providing `undefined` is treated as the value not being there.
1113
+ * Read more here: https://pris.ly/d/null-undefined
1114
+ * @param {ShareGroupByArgs} args - Group by arguments.
1115
+ * @example
1116
+ * // Group by city, order by createdAt, get count
1117
+ * const result = await prisma.user.groupBy({
1118
+ * by: ['city', 'createdAt'],
1119
+ * orderBy: {
1120
+ * createdAt: true
1121
+ * },
1122
+ * _count: {
1123
+ * _all: true
1124
+ * },
1125
+ * })
1126
+ *
1127
+ **/
1128
+ groupBy<
1129
+ T extends ShareGroupByArgs,
1130
+ HasSelectOrTake extends Prisma.Or<
1131
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1132
+ Prisma.Extends<'take', Prisma.Keys<T>>
1133
+ >,
1134
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1135
+ ? { orderBy: ShareGroupByArgs['orderBy'] }
1136
+ : { orderBy?: ShareGroupByArgs['orderBy'] },
1137
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1138
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1139
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1140
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1141
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1142
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1143
+ InputErrors extends ByEmpty extends Prisma.True
1144
+ ? `Error: "by" must not be empty.`
1145
+ : HavingValid extends Prisma.False
1146
+ ? {
1147
+ [P in HavingFields]: P extends ByFields
1148
+ ? never
1149
+ : P extends string
1150
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1151
+ : [
1152
+ Error,
1153
+ 'Field ',
1154
+ P,
1155
+ ` in "having" needs to be provided in "by"`,
1156
+ ]
1157
+ }[HavingFields]
1158
+ : 'take' extends Prisma.Keys<T>
1159
+ ? 'orderBy' extends Prisma.Keys<T>
1160
+ ? ByValid extends Prisma.True
1161
+ ? {}
1162
+ : {
1163
+ [P in OrderFields]: P extends ByFields
1164
+ ? never
1165
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1166
+ }[OrderFields]
1167
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1168
+ : 'skip' extends Prisma.Keys<T>
1169
+ ? 'orderBy' extends Prisma.Keys<T>
1170
+ ? ByValid extends Prisma.True
1171
+ ? {}
1172
+ : {
1173
+ [P in OrderFields]: P extends ByFields
1174
+ ? never
1175
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1176
+ }[OrderFields]
1177
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1178
+ : ByValid extends Prisma.True
1179
+ ? {}
1180
+ : {
1181
+ [P in OrderFields]: P extends ByFields
1182
+ ? never
1183
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1184
+ }[OrderFields]
1185
+ >(args: Prisma.SubsetIntersection<T, ShareGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetShareGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1186
+ /**
1187
+ * Fields of the Share model
1188
+ */
1189
+ readonly fields: ShareFieldRefs;
1190
+ }
1191
+
1192
+ /**
1193
+ * The delegate class that acts as a "Promise-like" for Share.
1194
+ * Why is this prefixed with `Prisma__`?
1195
+ * Because we want to prevent naming conflicts as mentioned in
1196
+ * https://github.com/prisma/prisma-client-js/issues/707
1197
+ */
1198
+ export interface Prisma__ShareClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1199
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1200
+ prd<T extends Prisma.PRDDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PRDDefaultArgs<ExtArgs>>): Prisma.Prisma__PRDClient<runtime.Types.Result.GetResult<Prisma.$PRDPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1201
+ shareVersions<T extends Prisma.Share$shareVersionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Share$shareVersionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShareVersionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1202
+ /**
1203
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1204
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1205
+ * @param onrejected The callback to execute when the Promise is rejected.
1206
+ * @returns A Promise for the completion of which ever callback is executed.
1207
+ */
1208
+ 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>
1209
+ /**
1210
+ * Attaches a callback for only the rejection of the Promise.
1211
+ * @param onrejected The callback to execute when the Promise is rejected.
1212
+ * @returns A Promise for the completion of the callback.
1213
+ */
1214
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1215
+ /**
1216
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1217
+ * resolved value cannot be modified from the callback.
1218
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1219
+ * @returns A Promise for the completion of the callback.
1220
+ */
1221
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1222
+ }
1223
+
1224
+
1225
+
1226
+
1227
+ /**
1228
+ * Fields of the Share model
1229
+ */
1230
+ export interface ShareFieldRefs {
1231
+ readonly id: Prisma.FieldRef<"Share", 'String'>
1232
+ readonly prdId: Prisma.FieldRef<"Share", 'String'>
1233
+ readonly token: Prisma.FieldRef<"Share", 'String'>
1234
+ readonly type: Prisma.FieldRef<"Share", 'String'>
1235
+ readonly status: Prisma.FieldRef<"Share", 'ShareStatus'>
1236
+ readonly password: Prisma.FieldRef<"Share", 'String'>
1237
+ readonly hasPassword: Prisma.FieldRef<"Share", 'Boolean'>
1238
+ readonly expiresAt: Prisma.FieldRef<"Share", 'DateTime'>
1239
+ readonly createdAt: Prisma.FieldRef<"Share", 'DateTime'>
1240
+ readonly updatedAt: Prisma.FieldRef<"Share", 'DateTime'>
1241
+ }
1242
+
1243
+
1244
+ // Custom InputTypes
1245
+ /**
1246
+ * Share findUnique
1247
+ */
1248
+ export type ShareFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1249
+ /**
1250
+ * Select specific fields to fetch from the Share
1251
+ */
1252
+ select?: Prisma.ShareSelect<ExtArgs> | null
1253
+ /**
1254
+ * Omit specific fields from the Share
1255
+ */
1256
+ omit?: Prisma.ShareOmit<ExtArgs> | null
1257
+ /**
1258
+ * Choose, which related nodes to fetch as well
1259
+ */
1260
+ include?: Prisma.ShareInclude<ExtArgs> | null
1261
+ /**
1262
+ * Filter, which Share to fetch.
1263
+ */
1264
+ where: Prisma.ShareWhereUniqueInput
1265
+ }
1266
+
1267
+ /**
1268
+ * Share findUniqueOrThrow
1269
+ */
1270
+ export type ShareFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1271
+ /**
1272
+ * Select specific fields to fetch from the Share
1273
+ */
1274
+ select?: Prisma.ShareSelect<ExtArgs> | null
1275
+ /**
1276
+ * Omit specific fields from the Share
1277
+ */
1278
+ omit?: Prisma.ShareOmit<ExtArgs> | null
1279
+ /**
1280
+ * Choose, which related nodes to fetch as well
1281
+ */
1282
+ include?: Prisma.ShareInclude<ExtArgs> | null
1283
+ /**
1284
+ * Filter, which Share to fetch.
1285
+ */
1286
+ where: Prisma.ShareWhereUniqueInput
1287
+ }
1288
+
1289
+ /**
1290
+ * Share findFirst
1291
+ */
1292
+ export type ShareFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1293
+ /**
1294
+ * Select specific fields to fetch from the Share
1295
+ */
1296
+ select?: Prisma.ShareSelect<ExtArgs> | null
1297
+ /**
1298
+ * Omit specific fields from the Share
1299
+ */
1300
+ omit?: Prisma.ShareOmit<ExtArgs> | null
1301
+ /**
1302
+ * Choose, which related nodes to fetch as well
1303
+ */
1304
+ include?: Prisma.ShareInclude<ExtArgs> | null
1305
+ /**
1306
+ * Filter, which Share to fetch.
1307
+ */
1308
+ where?: Prisma.ShareWhereInput
1309
+ /**
1310
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1311
+ *
1312
+ * Determine the order of Shares to fetch.
1313
+ */
1314
+ orderBy?: Prisma.ShareOrderByWithRelationInput | Prisma.ShareOrderByWithRelationInput[]
1315
+ /**
1316
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1317
+ *
1318
+ * Sets the position for searching for Shares.
1319
+ */
1320
+ cursor?: Prisma.ShareWhereUniqueInput
1321
+ /**
1322
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1323
+ *
1324
+ * Take `±n` Shares from the position of the cursor.
1325
+ */
1326
+ take?: number
1327
+ /**
1328
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1329
+ *
1330
+ * Skip the first `n` Shares.
1331
+ */
1332
+ skip?: number
1333
+ /**
1334
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1335
+ *
1336
+ * Filter by unique combinations of Shares.
1337
+ */
1338
+ distinct?: Prisma.ShareScalarFieldEnum | Prisma.ShareScalarFieldEnum[]
1339
+ }
1340
+
1341
+ /**
1342
+ * Share findFirstOrThrow
1343
+ */
1344
+ export type ShareFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1345
+ /**
1346
+ * Select specific fields to fetch from the Share
1347
+ */
1348
+ select?: Prisma.ShareSelect<ExtArgs> | null
1349
+ /**
1350
+ * Omit specific fields from the Share
1351
+ */
1352
+ omit?: Prisma.ShareOmit<ExtArgs> | null
1353
+ /**
1354
+ * Choose, which related nodes to fetch as well
1355
+ */
1356
+ include?: Prisma.ShareInclude<ExtArgs> | null
1357
+ /**
1358
+ * Filter, which Share to fetch.
1359
+ */
1360
+ where?: Prisma.ShareWhereInput
1361
+ /**
1362
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1363
+ *
1364
+ * Determine the order of Shares to fetch.
1365
+ */
1366
+ orderBy?: Prisma.ShareOrderByWithRelationInput | Prisma.ShareOrderByWithRelationInput[]
1367
+ /**
1368
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1369
+ *
1370
+ * Sets the position for searching for Shares.
1371
+ */
1372
+ cursor?: Prisma.ShareWhereUniqueInput
1373
+ /**
1374
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1375
+ *
1376
+ * Take `±n` Shares from the position of the cursor.
1377
+ */
1378
+ take?: number
1379
+ /**
1380
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1381
+ *
1382
+ * Skip the first `n` Shares.
1383
+ */
1384
+ skip?: number
1385
+ /**
1386
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1387
+ *
1388
+ * Filter by unique combinations of Shares.
1389
+ */
1390
+ distinct?: Prisma.ShareScalarFieldEnum | Prisma.ShareScalarFieldEnum[]
1391
+ }
1392
+
1393
+ /**
1394
+ * Share findMany
1395
+ */
1396
+ export type ShareFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1397
+ /**
1398
+ * Select specific fields to fetch from the Share
1399
+ */
1400
+ select?: Prisma.ShareSelect<ExtArgs> | null
1401
+ /**
1402
+ * Omit specific fields from the Share
1403
+ */
1404
+ omit?: Prisma.ShareOmit<ExtArgs> | null
1405
+ /**
1406
+ * Choose, which related nodes to fetch as well
1407
+ */
1408
+ include?: Prisma.ShareInclude<ExtArgs> | null
1409
+ /**
1410
+ * Filter, which Shares to fetch.
1411
+ */
1412
+ where?: Prisma.ShareWhereInput
1413
+ /**
1414
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1415
+ *
1416
+ * Determine the order of Shares to fetch.
1417
+ */
1418
+ orderBy?: Prisma.ShareOrderByWithRelationInput | Prisma.ShareOrderByWithRelationInput[]
1419
+ /**
1420
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1421
+ *
1422
+ * Sets the position for listing Shares.
1423
+ */
1424
+ cursor?: Prisma.ShareWhereUniqueInput
1425
+ /**
1426
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1427
+ *
1428
+ * Take `±n` Shares from the position of the cursor.
1429
+ */
1430
+ take?: number
1431
+ /**
1432
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1433
+ *
1434
+ * Skip the first `n` Shares.
1435
+ */
1436
+ skip?: number
1437
+ /**
1438
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1439
+ *
1440
+ * Filter by unique combinations of Shares.
1441
+ */
1442
+ distinct?: Prisma.ShareScalarFieldEnum | Prisma.ShareScalarFieldEnum[]
1443
+ }
1444
+
1445
+ /**
1446
+ * Share create
1447
+ */
1448
+ export type ShareCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1449
+ /**
1450
+ * Select specific fields to fetch from the Share
1451
+ */
1452
+ select?: Prisma.ShareSelect<ExtArgs> | null
1453
+ /**
1454
+ * Omit specific fields from the Share
1455
+ */
1456
+ omit?: Prisma.ShareOmit<ExtArgs> | null
1457
+ /**
1458
+ * Choose, which related nodes to fetch as well
1459
+ */
1460
+ include?: Prisma.ShareInclude<ExtArgs> | null
1461
+ /**
1462
+ * The data needed to create a Share.
1463
+ */
1464
+ data: Prisma.XOR<Prisma.ShareCreateInput, Prisma.ShareUncheckedCreateInput>
1465
+ }
1466
+
1467
+ /**
1468
+ * Share createMany
1469
+ */
1470
+ export type ShareCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1471
+ /**
1472
+ * The data used to create many Shares.
1473
+ */
1474
+ data: Prisma.ShareCreateManyInput | Prisma.ShareCreateManyInput[]
1475
+ skipDuplicates?: boolean
1476
+ }
1477
+
1478
+ /**
1479
+ * Share createManyAndReturn
1480
+ */
1481
+ export type ShareCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1482
+ /**
1483
+ * Select specific fields to fetch from the Share
1484
+ */
1485
+ select?: Prisma.ShareSelectCreateManyAndReturn<ExtArgs> | null
1486
+ /**
1487
+ * Omit specific fields from the Share
1488
+ */
1489
+ omit?: Prisma.ShareOmit<ExtArgs> | null
1490
+ /**
1491
+ * The data used to create many Shares.
1492
+ */
1493
+ data: Prisma.ShareCreateManyInput | Prisma.ShareCreateManyInput[]
1494
+ skipDuplicates?: boolean
1495
+ /**
1496
+ * Choose, which related nodes to fetch as well
1497
+ */
1498
+ include?: Prisma.ShareIncludeCreateManyAndReturn<ExtArgs> | null
1499
+ }
1500
+
1501
+ /**
1502
+ * Share update
1503
+ */
1504
+ export type ShareUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1505
+ /**
1506
+ * Select specific fields to fetch from the Share
1507
+ */
1508
+ select?: Prisma.ShareSelect<ExtArgs> | null
1509
+ /**
1510
+ * Omit specific fields from the Share
1511
+ */
1512
+ omit?: Prisma.ShareOmit<ExtArgs> | null
1513
+ /**
1514
+ * Choose, which related nodes to fetch as well
1515
+ */
1516
+ include?: Prisma.ShareInclude<ExtArgs> | null
1517
+ /**
1518
+ * The data needed to update a Share.
1519
+ */
1520
+ data: Prisma.XOR<Prisma.ShareUpdateInput, Prisma.ShareUncheckedUpdateInput>
1521
+ /**
1522
+ * Choose, which Share to update.
1523
+ */
1524
+ where: Prisma.ShareWhereUniqueInput
1525
+ }
1526
+
1527
+ /**
1528
+ * Share updateMany
1529
+ */
1530
+ export type ShareUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1531
+ /**
1532
+ * The data used to update Shares.
1533
+ */
1534
+ data: Prisma.XOR<Prisma.ShareUpdateManyMutationInput, Prisma.ShareUncheckedUpdateManyInput>
1535
+ /**
1536
+ * Filter which Shares to update
1537
+ */
1538
+ where?: Prisma.ShareWhereInput
1539
+ /**
1540
+ * Limit how many Shares to update.
1541
+ */
1542
+ limit?: number
1543
+ }
1544
+
1545
+ /**
1546
+ * Share updateManyAndReturn
1547
+ */
1548
+ export type ShareUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1549
+ /**
1550
+ * Select specific fields to fetch from the Share
1551
+ */
1552
+ select?: Prisma.ShareSelectUpdateManyAndReturn<ExtArgs> | null
1553
+ /**
1554
+ * Omit specific fields from the Share
1555
+ */
1556
+ omit?: Prisma.ShareOmit<ExtArgs> | null
1557
+ /**
1558
+ * The data used to update Shares.
1559
+ */
1560
+ data: Prisma.XOR<Prisma.ShareUpdateManyMutationInput, Prisma.ShareUncheckedUpdateManyInput>
1561
+ /**
1562
+ * Filter which Shares to update
1563
+ */
1564
+ where?: Prisma.ShareWhereInput
1565
+ /**
1566
+ * Limit how many Shares to update.
1567
+ */
1568
+ limit?: number
1569
+ /**
1570
+ * Choose, which related nodes to fetch as well
1571
+ */
1572
+ include?: Prisma.ShareIncludeUpdateManyAndReturn<ExtArgs> | null
1573
+ }
1574
+
1575
+ /**
1576
+ * Share upsert
1577
+ */
1578
+ export type ShareUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1579
+ /**
1580
+ * Select specific fields to fetch from the Share
1581
+ */
1582
+ select?: Prisma.ShareSelect<ExtArgs> | null
1583
+ /**
1584
+ * Omit specific fields from the Share
1585
+ */
1586
+ omit?: Prisma.ShareOmit<ExtArgs> | null
1587
+ /**
1588
+ * Choose, which related nodes to fetch as well
1589
+ */
1590
+ include?: Prisma.ShareInclude<ExtArgs> | null
1591
+ /**
1592
+ * The filter to search for the Share to update in case it exists.
1593
+ */
1594
+ where: Prisma.ShareWhereUniqueInput
1595
+ /**
1596
+ * In case the Share found by the `where` argument doesn't exist, create a new Share with this data.
1597
+ */
1598
+ create: Prisma.XOR<Prisma.ShareCreateInput, Prisma.ShareUncheckedCreateInput>
1599
+ /**
1600
+ * In case the Share was found with the provided `where` argument, update it with this data.
1601
+ */
1602
+ update: Prisma.XOR<Prisma.ShareUpdateInput, Prisma.ShareUncheckedUpdateInput>
1603
+ }
1604
+
1605
+ /**
1606
+ * Share delete
1607
+ */
1608
+ export type ShareDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1609
+ /**
1610
+ * Select specific fields to fetch from the Share
1611
+ */
1612
+ select?: Prisma.ShareSelect<ExtArgs> | null
1613
+ /**
1614
+ * Omit specific fields from the Share
1615
+ */
1616
+ omit?: Prisma.ShareOmit<ExtArgs> | null
1617
+ /**
1618
+ * Choose, which related nodes to fetch as well
1619
+ */
1620
+ include?: Prisma.ShareInclude<ExtArgs> | null
1621
+ /**
1622
+ * Filter which Share to delete.
1623
+ */
1624
+ where: Prisma.ShareWhereUniqueInput
1625
+ }
1626
+
1627
+ /**
1628
+ * Share deleteMany
1629
+ */
1630
+ export type ShareDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1631
+ /**
1632
+ * Filter which Shares to delete
1633
+ */
1634
+ where?: Prisma.ShareWhereInput
1635
+ /**
1636
+ * Limit how many Shares to delete.
1637
+ */
1638
+ limit?: number
1639
+ }
1640
+
1641
+ /**
1642
+ * Share.shareVersions
1643
+ */
1644
+ export type Share$shareVersionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1645
+ /**
1646
+ * Select specific fields to fetch from the ShareVersion
1647
+ */
1648
+ select?: Prisma.ShareVersionSelect<ExtArgs> | null
1649
+ /**
1650
+ * Omit specific fields from the ShareVersion
1651
+ */
1652
+ omit?: Prisma.ShareVersionOmit<ExtArgs> | null
1653
+ /**
1654
+ * Choose, which related nodes to fetch as well
1655
+ */
1656
+ include?: Prisma.ShareVersionInclude<ExtArgs> | null
1657
+ where?: Prisma.ShareVersionWhereInput
1658
+ orderBy?: Prisma.ShareVersionOrderByWithRelationInput | Prisma.ShareVersionOrderByWithRelationInput[]
1659
+ cursor?: Prisma.ShareVersionWhereUniqueInput
1660
+ take?: number
1661
+ skip?: number
1662
+ distinct?: Prisma.ShareVersionScalarFieldEnum | Prisma.ShareVersionScalarFieldEnum[]
1663
+ }
1664
+
1665
+ /**
1666
+ * Share without action
1667
+ */
1668
+ export type ShareDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1669
+ /**
1670
+ * Select specific fields to fetch from the Share
1671
+ */
1672
+ select?: Prisma.ShareSelect<ExtArgs> | null
1673
+ /**
1674
+ * Omit specific fields from the Share
1675
+ */
1676
+ omit?: Prisma.ShareOmit<ExtArgs> | null
1677
+ /**
1678
+ * Choose, which related nodes to fetch as well
1679
+ */
1680
+ include?: Prisma.ShareInclude<ExtArgs> | null
1681
+ }