@allbluecn/database 0.4.0 → 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,1674 @@
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: string | 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: string | 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: string
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.StringFilter<"Share"> | string
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.StringFilter<"Share"> | string
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.StringWithAggregatesFilter<"Share"> | string
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?: string
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?: string
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.StringFieldUpdateOperationsInput | string
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.StringFieldUpdateOperationsInput | string
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?: string
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.StringFieldUpdateOperationsInput | string
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.StringFieldUpdateOperationsInput | string
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 ShareCreateNestedOneWithoutShareVersionsInput = {
485
+ create?: Prisma.XOR<Prisma.ShareCreateWithoutShareVersionsInput, Prisma.ShareUncheckedCreateWithoutShareVersionsInput>
486
+ connectOrCreate?: Prisma.ShareCreateOrConnectWithoutShareVersionsInput
487
+ connect?: Prisma.ShareWhereUniqueInput
488
+ }
489
+
490
+ export type ShareUpdateOneRequiredWithoutShareVersionsNestedInput = {
491
+ create?: Prisma.XOR<Prisma.ShareCreateWithoutShareVersionsInput, Prisma.ShareUncheckedCreateWithoutShareVersionsInput>
492
+ connectOrCreate?: Prisma.ShareCreateOrConnectWithoutShareVersionsInput
493
+ upsert?: Prisma.ShareUpsertWithoutShareVersionsInput
494
+ connect?: Prisma.ShareWhereUniqueInput
495
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ShareUpdateToOneWithWhereWithoutShareVersionsInput, Prisma.ShareUpdateWithoutShareVersionsInput>, Prisma.ShareUncheckedUpdateWithoutShareVersionsInput>
496
+ }
497
+
498
+ export type ShareCreateWithoutPrdInput = {
499
+ id?: string
500
+ token: string
501
+ type?: string
502
+ status?: string
503
+ password?: string | null
504
+ hasPassword?: boolean
505
+ expiresAt?: Date | string | null
506
+ createdAt?: Date | string
507
+ updatedAt?: Date | string
508
+ shareVersions?: Prisma.ShareVersionCreateNestedManyWithoutShareInput
509
+ }
510
+
511
+ export type ShareUncheckedCreateWithoutPrdInput = {
512
+ id?: string
513
+ token: string
514
+ type?: string
515
+ status?: string
516
+ password?: string | null
517
+ hasPassword?: boolean
518
+ expiresAt?: Date | string | null
519
+ createdAt?: Date | string
520
+ updatedAt?: Date | string
521
+ shareVersions?: Prisma.ShareVersionUncheckedCreateNestedManyWithoutShareInput
522
+ }
523
+
524
+ export type ShareCreateOrConnectWithoutPrdInput = {
525
+ where: Prisma.ShareWhereUniqueInput
526
+ create: Prisma.XOR<Prisma.ShareCreateWithoutPrdInput, Prisma.ShareUncheckedCreateWithoutPrdInput>
527
+ }
528
+
529
+ export type ShareCreateManyPrdInputEnvelope = {
530
+ data: Prisma.ShareCreateManyPrdInput | Prisma.ShareCreateManyPrdInput[]
531
+ }
532
+
533
+ export type ShareUpsertWithWhereUniqueWithoutPrdInput = {
534
+ where: Prisma.ShareWhereUniqueInput
535
+ update: Prisma.XOR<Prisma.ShareUpdateWithoutPrdInput, Prisma.ShareUncheckedUpdateWithoutPrdInput>
536
+ create: Prisma.XOR<Prisma.ShareCreateWithoutPrdInput, Prisma.ShareUncheckedCreateWithoutPrdInput>
537
+ }
538
+
539
+ export type ShareUpdateWithWhereUniqueWithoutPrdInput = {
540
+ where: Prisma.ShareWhereUniqueInput
541
+ data: Prisma.XOR<Prisma.ShareUpdateWithoutPrdInput, Prisma.ShareUncheckedUpdateWithoutPrdInput>
542
+ }
543
+
544
+ export type ShareUpdateManyWithWhereWithoutPrdInput = {
545
+ where: Prisma.ShareScalarWhereInput
546
+ data: Prisma.XOR<Prisma.ShareUpdateManyMutationInput, Prisma.ShareUncheckedUpdateManyWithoutPrdInput>
547
+ }
548
+
549
+ export type ShareScalarWhereInput = {
550
+ AND?: Prisma.ShareScalarWhereInput | Prisma.ShareScalarWhereInput[]
551
+ OR?: Prisma.ShareScalarWhereInput[]
552
+ NOT?: Prisma.ShareScalarWhereInput | Prisma.ShareScalarWhereInput[]
553
+ id?: Prisma.StringFilter<"Share"> | string
554
+ prdId?: Prisma.StringFilter<"Share"> | string
555
+ token?: Prisma.StringFilter<"Share"> | string
556
+ type?: Prisma.StringFilter<"Share"> | string
557
+ status?: Prisma.StringFilter<"Share"> | string
558
+ password?: Prisma.StringNullableFilter<"Share"> | string | null
559
+ hasPassword?: Prisma.BoolFilter<"Share"> | boolean
560
+ expiresAt?: Prisma.DateTimeNullableFilter<"Share"> | Date | string | null
561
+ createdAt?: Prisma.DateTimeFilter<"Share"> | Date | string
562
+ updatedAt?: Prisma.DateTimeFilter<"Share"> | Date | string
563
+ }
564
+
565
+ export type ShareCreateWithoutShareVersionsInput = {
566
+ id?: string
567
+ token: string
568
+ type?: string
569
+ status?: string
570
+ password?: string | null
571
+ hasPassword?: boolean
572
+ expiresAt?: Date | string | null
573
+ createdAt?: Date | string
574
+ updatedAt?: Date | string
575
+ prd: Prisma.PRDCreateNestedOneWithoutSharesInput
576
+ }
577
+
578
+ export type ShareUncheckedCreateWithoutShareVersionsInput = {
579
+ id?: string
580
+ prdId: string
581
+ token: string
582
+ type?: string
583
+ status?: string
584
+ password?: string | null
585
+ hasPassword?: boolean
586
+ expiresAt?: Date | string | null
587
+ createdAt?: Date | string
588
+ updatedAt?: Date | string
589
+ }
590
+
591
+ export type ShareCreateOrConnectWithoutShareVersionsInput = {
592
+ where: Prisma.ShareWhereUniqueInput
593
+ create: Prisma.XOR<Prisma.ShareCreateWithoutShareVersionsInput, Prisma.ShareUncheckedCreateWithoutShareVersionsInput>
594
+ }
595
+
596
+ export type ShareUpsertWithoutShareVersionsInput = {
597
+ update: Prisma.XOR<Prisma.ShareUpdateWithoutShareVersionsInput, Prisma.ShareUncheckedUpdateWithoutShareVersionsInput>
598
+ create: Prisma.XOR<Prisma.ShareCreateWithoutShareVersionsInput, Prisma.ShareUncheckedCreateWithoutShareVersionsInput>
599
+ where?: Prisma.ShareWhereInput
600
+ }
601
+
602
+ export type ShareUpdateToOneWithWhereWithoutShareVersionsInput = {
603
+ where?: Prisma.ShareWhereInput
604
+ data: Prisma.XOR<Prisma.ShareUpdateWithoutShareVersionsInput, Prisma.ShareUncheckedUpdateWithoutShareVersionsInput>
605
+ }
606
+
607
+ export type ShareUpdateWithoutShareVersionsInput = {
608
+ id?: Prisma.StringFieldUpdateOperationsInput | string
609
+ token?: Prisma.StringFieldUpdateOperationsInput | string
610
+ type?: Prisma.StringFieldUpdateOperationsInput | string
611
+ status?: Prisma.StringFieldUpdateOperationsInput | string
612
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
613
+ hasPassword?: Prisma.BoolFieldUpdateOperationsInput | boolean
614
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
615
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
616
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
617
+ prd?: Prisma.PRDUpdateOneRequiredWithoutSharesNestedInput
618
+ }
619
+
620
+ export type ShareUncheckedUpdateWithoutShareVersionsInput = {
621
+ id?: Prisma.StringFieldUpdateOperationsInput | string
622
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
623
+ token?: Prisma.StringFieldUpdateOperationsInput | string
624
+ type?: Prisma.StringFieldUpdateOperationsInput | string
625
+ status?: Prisma.StringFieldUpdateOperationsInput | string
626
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
627
+ hasPassword?: Prisma.BoolFieldUpdateOperationsInput | boolean
628
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
629
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
630
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
631
+ }
632
+
633
+ export type ShareCreateManyPrdInput = {
634
+ id?: string
635
+ token: string
636
+ type?: string
637
+ status?: string
638
+ password?: string | null
639
+ hasPassword?: boolean
640
+ expiresAt?: Date | string | null
641
+ createdAt?: Date | string
642
+ updatedAt?: Date | string
643
+ }
644
+
645
+ export type ShareUpdateWithoutPrdInput = {
646
+ id?: Prisma.StringFieldUpdateOperationsInput | string
647
+ token?: Prisma.StringFieldUpdateOperationsInput | string
648
+ type?: Prisma.StringFieldUpdateOperationsInput | string
649
+ status?: Prisma.StringFieldUpdateOperationsInput | string
650
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
651
+ hasPassword?: Prisma.BoolFieldUpdateOperationsInput | boolean
652
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
653
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
654
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
655
+ shareVersions?: Prisma.ShareVersionUpdateManyWithoutShareNestedInput
656
+ }
657
+
658
+ export type ShareUncheckedUpdateWithoutPrdInput = {
659
+ id?: Prisma.StringFieldUpdateOperationsInput | string
660
+ token?: Prisma.StringFieldUpdateOperationsInput | string
661
+ type?: Prisma.StringFieldUpdateOperationsInput | string
662
+ status?: Prisma.StringFieldUpdateOperationsInput | string
663
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
664
+ hasPassword?: Prisma.BoolFieldUpdateOperationsInput | boolean
665
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
666
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
667
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
668
+ shareVersions?: Prisma.ShareVersionUncheckedUpdateManyWithoutShareNestedInput
669
+ }
670
+
671
+ export type ShareUncheckedUpdateManyWithoutPrdInput = {
672
+ id?: Prisma.StringFieldUpdateOperationsInput | string
673
+ token?: Prisma.StringFieldUpdateOperationsInput | string
674
+ type?: Prisma.StringFieldUpdateOperationsInput | string
675
+ status?: Prisma.StringFieldUpdateOperationsInput | string
676
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
677
+ hasPassword?: Prisma.BoolFieldUpdateOperationsInput | boolean
678
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
679
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
680
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
681
+ }
682
+
683
+
684
+ /**
685
+ * Count Type ShareCountOutputType
686
+ */
687
+
688
+ export type ShareCountOutputType = {
689
+ shareVersions: number
690
+ }
691
+
692
+ export type ShareCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
693
+ shareVersions?: boolean | ShareCountOutputTypeCountShareVersionsArgs
694
+ }
695
+
696
+ /**
697
+ * ShareCountOutputType without action
698
+ */
699
+ export type ShareCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
700
+ /**
701
+ * Select specific fields to fetch from the ShareCountOutputType
702
+ */
703
+ select?: Prisma.ShareCountOutputTypeSelect<ExtArgs> | null
704
+ }
705
+
706
+ /**
707
+ * ShareCountOutputType without action
708
+ */
709
+ export type ShareCountOutputTypeCountShareVersionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
710
+ where?: Prisma.ShareVersionWhereInput
711
+ }
712
+
713
+
714
+ export type ShareSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
715
+ id?: boolean
716
+ prdId?: boolean
717
+ token?: boolean
718
+ type?: boolean
719
+ status?: boolean
720
+ password?: boolean
721
+ hasPassword?: boolean
722
+ expiresAt?: boolean
723
+ createdAt?: boolean
724
+ updatedAt?: boolean
725
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
726
+ shareVersions?: boolean | Prisma.Share$shareVersionsArgs<ExtArgs>
727
+ _count?: boolean | Prisma.ShareCountOutputTypeDefaultArgs<ExtArgs>
728
+ }, ExtArgs["result"]["share"]>
729
+
730
+ export type ShareSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
731
+ id?: boolean
732
+ prdId?: boolean
733
+ token?: boolean
734
+ type?: boolean
735
+ status?: boolean
736
+ password?: boolean
737
+ hasPassword?: boolean
738
+ expiresAt?: boolean
739
+ createdAt?: boolean
740
+ updatedAt?: boolean
741
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
742
+ }, ExtArgs["result"]["share"]>
743
+
744
+ export type ShareSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
745
+ id?: boolean
746
+ prdId?: boolean
747
+ token?: boolean
748
+ type?: boolean
749
+ status?: boolean
750
+ password?: boolean
751
+ hasPassword?: boolean
752
+ expiresAt?: boolean
753
+ createdAt?: boolean
754
+ updatedAt?: boolean
755
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
756
+ }, ExtArgs["result"]["share"]>
757
+
758
+ export type ShareSelectScalar = {
759
+ id?: boolean
760
+ prdId?: boolean
761
+ token?: boolean
762
+ type?: boolean
763
+ status?: boolean
764
+ password?: boolean
765
+ hasPassword?: boolean
766
+ expiresAt?: boolean
767
+ createdAt?: boolean
768
+ updatedAt?: boolean
769
+ }
770
+
771
+ 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"]>
772
+ export type ShareInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
773
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
774
+ shareVersions?: boolean | Prisma.Share$shareVersionsArgs<ExtArgs>
775
+ _count?: boolean | Prisma.ShareCountOutputTypeDefaultArgs<ExtArgs>
776
+ }
777
+ export type ShareIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
778
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
779
+ }
780
+ export type ShareIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
781
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
782
+ }
783
+
784
+ export type $SharePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
785
+ name: "Share"
786
+ objects: {
787
+ prd: Prisma.$PRDPayload<ExtArgs>
788
+ shareVersions: Prisma.$ShareVersionPayload<ExtArgs>[]
789
+ }
790
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
791
+ id: string
792
+ prdId: string
793
+ token: string
794
+ type: string
795
+ status: string
796
+ password: string | null
797
+ hasPassword: boolean
798
+ expiresAt: Date | null
799
+ createdAt: Date
800
+ updatedAt: Date
801
+ }, ExtArgs["result"]["share"]>
802
+ composites: {}
803
+ }
804
+
805
+ export type ShareGetPayload<S extends boolean | null | undefined | ShareDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SharePayload, S>
806
+
807
+ export type ShareCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
808
+ Omit<ShareFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
809
+ select?: ShareCountAggregateInputType | true
810
+ }
811
+
812
+ export interface ShareDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
813
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Share'], meta: { name: 'Share' } }
814
+ /**
815
+ * Find zero or one Share that matches the filter.
816
+ * @param {ShareFindUniqueArgs} args - Arguments to find a Share
817
+ * @example
818
+ * // Get one Share
819
+ * const share = await prisma.share.findUnique({
820
+ * where: {
821
+ * // ... provide filter here
822
+ * }
823
+ * })
824
+ */
825
+ 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>
826
+
827
+ /**
828
+ * Find one Share that matches the filter or throw an error with `error.code='P2025'`
829
+ * if no matches were found.
830
+ * @param {ShareFindUniqueOrThrowArgs} args - Arguments to find a Share
831
+ * @example
832
+ * // Get one Share
833
+ * const share = await prisma.share.findUniqueOrThrow({
834
+ * where: {
835
+ * // ... provide filter here
836
+ * }
837
+ * })
838
+ */
839
+ 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>
840
+
841
+ /**
842
+ * Find the first Share that matches the filter.
843
+ * Note, that providing `undefined` is treated as the value not being there.
844
+ * Read more here: https://pris.ly/d/null-undefined
845
+ * @param {ShareFindFirstArgs} args - Arguments to find a Share
846
+ * @example
847
+ * // Get one Share
848
+ * const share = await prisma.share.findFirst({
849
+ * where: {
850
+ * // ... provide filter here
851
+ * }
852
+ * })
853
+ */
854
+ 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>
855
+
856
+ /**
857
+ * Find the first Share that matches the filter or
858
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
859
+ * Note, that providing `undefined` is treated as the value not being there.
860
+ * Read more here: https://pris.ly/d/null-undefined
861
+ * @param {ShareFindFirstOrThrowArgs} args - Arguments to find a Share
862
+ * @example
863
+ * // Get one Share
864
+ * const share = await prisma.share.findFirstOrThrow({
865
+ * where: {
866
+ * // ... provide filter here
867
+ * }
868
+ * })
869
+ */
870
+ 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>
871
+
872
+ /**
873
+ * Find zero or more Shares that matches the filter.
874
+ * Note, that providing `undefined` is treated as the value not being there.
875
+ * Read more here: https://pris.ly/d/null-undefined
876
+ * @param {ShareFindManyArgs} args - Arguments to filter and select certain fields only.
877
+ * @example
878
+ * // Get all Shares
879
+ * const shares = await prisma.share.findMany()
880
+ *
881
+ * // Get first 10 Shares
882
+ * const shares = await prisma.share.findMany({ take: 10 })
883
+ *
884
+ * // Only select the `id`
885
+ * const shareWithIdOnly = await prisma.share.findMany({ select: { id: true } })
886
+ *
887
+ */
888
+ findMany<T extends ShareFindManyArgs>(args?: Prisma.SelectSubset<T, ShareFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SharePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
889
+
890
+ /**
891
+ * Create a Share.
892
+ * @param {ShareCreateArgs} args - Arguments to create a Share.
893
+ * @example
894
+ * // Create one Share
895
+ * const Share = await prisma.share.create({
896
+ * data: {
897
+ * // ... data to create a Share
898
+ * }
899
+ * })
900
+ *
901
+ */
902
+ 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>
903
+
904
+ /**
905
+ * Create many Shares.
906
+ * @param {ShareCreateManyArgs} args - Arguments to create many Shares.
907
+ * @example
908
+ * // Create many Shares
909
+ * const share = await prisma.share.createMany({
910
+ * data: [
911
+ * // ... provide data here
912
+ * ]
913
+ * })
914
+ *
915
+ */
916
+ createMany<T extends ShareCreateManyArgs>(args?: Prisma.SelectSubset<T, ShareCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
917
+
918
+ /**
919
+ * Create many Shares and returns the data saved in the database.
920
+ * @param {ShareCreateManyAndReturnArgs} args - Arguments to create many Shares.
921
+ * @example
922
+ * // Create many Shares
923
+ * const share = await prisma.share.createManyAndReturn({
924
+ * data: [
925
+ * // ... provide data here
926
+ * ]
927
+ * })
928
+ *
929
+ * // Create many Shares and only return the `id`
930
+ * const shareWithIdOnly = await prisma.share.createManyAndReturn({
931
+ * select: { id: true },
932
+ * data: [
933
+ * // ... provide data here
934
+ * ]
935
+ * })
936
+ * Note, that providing `undefined` is treated as the value not being there.
937
+ * Read more here: https://pris.ly/d/null-undefined
938
+ *
939
+ */
940
+ createManyAndReturn<T extends ShareCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ShareCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SharePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
941
+
942
+ /**
943
+ * Delete a Share.
944
+ * @param {ShareDeleteArgs} args - Arguments to delete one Share.
945
+ * @example
946
+ * // Delete one Share
947
+ * const Share = await prisma.share.delete({
948
+ * where: {
949
+ * // ... filter to delete one Share
950
+ * }
951
+ * })
952
+ *
953
+ */
954
+ 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>
955
+
956
+ /**
957
+ * Update one Share.
958
+ * @param {ShareUpdateArgs} args - Arguments to update one Share.
959
+ * @example
960
+ * // Update one Share
961
+ * const share = await prisma.share.update({
962
+ * where: {
963
+ * // ... provide filter here
964
+ * },
965
+ * data: {
966
+ * // ... provide data here
967
+ * }
968
+ * })
969
+ *
970
+ */
971
+ 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>
972
+
973
+ /**
974
+ * Delete zero or more Shares.
975
+ * @param {ShareDeleteManyArgs} args - Arguments to filter Shares to delete.
976
+ * @example
977
+ * // Delete a few Shares
978
+ * const { count } = await prisma.share.deleteMany({
979
+ * where: {
980
+ * // ... provide filter here
981
+ * }
982
+ * })
983
+ *
984
+ */
985
+ deleteMany<T extends ShareDeleteManyArgs>(args?: Prisma.SelectSubset<T, ShareDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
986
+
987
+ /**
988
+ * Update zero or more Shares.
989
+ * Note, that providing `undefined` is treated as the value not being there.
990
+ * Read more here: https://pris.ly/d/null-undefined
991
+ * @param {ShareUpdateManyArgs} args - Arguments to update one or more rows.
992
+ * @example
993
+ * // Update many Shares
994
+ * const share = await prisma.share.updateMany({
995
+ * where: {
996
+ * // ... provide filter here
997
+ * },
998
+ * data: {
999
+ * // ... provide data here
1000
+ * }
1001
+ * })
1002
+ *
1003
+ */
1004
+ updateMany<T extends ShareUpdateManyArgs>(args: Prisma.SelectSubset<T, ShareUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1005
+
1006
+ /**
1007
+ * Update zero or more Shares and returns the data updated in the database.
1008
+ * @param {ShareUpdateManyAndReturnArgs} args - Arguments to update many Shares.
1009
+ * @example
1010
+ * // Update many Shares
1011
+ * const share = await prisma.share.updateManyAndReturn({
1012
+ * where: {
1013
+ * // ... provide filter here
1014
+ * },
1015
+ * data: [
1016
+ * // ... provide data here
1017
+ * ]
1018
+ * })
1019
+ *
1020
+ * // Update zero or more Shares and only return the `id`
1021
+ * const shareWithIdOnly = await prisma.share.updateManyAndReturn({
1022
+ * select: { id: true },
1023
+ * where: {
1024
+ * // ... provide filter here
1025
+ * },
1026
+ * data: [
1027
+ * // ... provide data here
1028
+ * ]
1029
+ * })
1030
+ * Note, that providing `undefined` is treated as the value not being there.
1031
+ * Read more here: https://pris.ly/d/null-undefined
1032
+ *
1033
+ */
1034
+ updateManyAndReturn<T extends ShareUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ShareUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SharePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1035
+
1036
+ /**
1037
+ * Create or update one Share.
1038
+ * @param {ShareUpsertArgs} args - Arguments to update or create a Share.
1039
+ * @example
1040
+ * // Update or create a Share
1041
+ * const share = await prisma.share.upsert({
1042
+ * create: {
1043
+ * // ... data to create a Share
1044
+ * },
1045
+ * update: {
1046
+ * // ... in case it already exists, update
1047
+ * },
1048
+ * where: {
1049
+ * // ... the filter for the Share we want to update
1050
+ * }
1051
+ * })
1052
+ */
1053
+ 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>
1054
+
1055
+
1056
+ /**
1057
+ * Count the number of Shares.
1058
+ * Note, that providing `undefined` is treated as the value not being there.
1059
+ * Read more here: https://pris.ly/d/null-undefined
1060
+ * @param {ShareCountArgs} args - Arguments to filter Shares to count.
1061
+ * @example
1062
+ * // Count the number of Shares
1063
+ * const count = await prisma.share.count({
1064
+ * where: {
1065
+ * // ... the filter for the Shares we want to count
1066
+ * }
1067
+ * })
1068
+ **/
1069
+ count<T extends ShareCountArgs>(
1070
+ args?: Prisma.Subset<T, ShareCountArgs>,
1071
+ ): Prisma.PrismaPromise<
1072
+ T extends runtime.Types.Utils.Record<'select', any>
1073
+ ? T['select'] extends true
1074
+ ? number
1075
+ : Prisma.GetScalarType<T['select'], ShareCountAggregateOutputType>
1076
+ : number
1077
+ >
1078
+
1079
+ /**
1080
+ * Allows you to perform aggregations operations on a Share.
1081
+ * Note, that providing `undefined` is treated as the value not being there.
1082
+ * Read more here: https://pris.ly/d/null-undefined
1083
+ * @param {ShareAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1084
+ * @example
1085
+ * // Ordered by age ascending
1086
+ * // Where email contains prisma.io
1087
+ * // Limited to the 10 users
1088
+ * const aggregations = await prisma.user.aggregate({
1089
+ * _avg: {
1090
+ * age: true,
1091
+ * },
1092
+ * where: {
1093
+ * email: {
1094
+ * contains: "prisma.io",
1095
+ * },
1096
+ * },
1097
+ * orderBy: {
1098
+ * age: "asc",
1099
+ * },
1100
+ * take: 10,
1101
+ * })
1102
+ **/
1103
+ aggregate<T extends ShareAggregateArgs>(args: Prisma.Subset<T, ShareAggregateArgs>): Prisma.PrismaPromise<GetShareAggregateType<T>>
1104
+
1105
+ /**
1106
+ * Group by Share.
1107
+ * Note, that providing `undefined` is treated as the value not being there.
1108
+ * Read more here: https://pris.ly/d/null-undefined
1109
+ * @param {ShareGroupByArgs} args - Group by arguments.
1110
+ * @example
1111
+ * // Group by city, order by createdAt, get count
1112
+ * const result = await prisma.user.groupBy({
1113
+ * by: ['city', 'createdAt'],
1114
+ * orderBy: {
1115
+ * createdAt: true
1116
+ * },
1117
+ * _count: {
1118
+ * _all: true
1119
+ * },
1120
+ * })
1121
+ *
1122
+ **/
1123
+ groupBy<
1124
+ T extends ShareGroupByArgs,
1125
+ HasSelectOrTake extends Prisma.Or<
1126
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1127
+ Prisma.Extends<'take', Prisma.Keys<T>>
1128
+ >,
1129
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1130
+ ? { orderBy: ShareGroupByArgs['orderBy'] }
1131
+ : { orderBy?: ShareGroupByArgs['orderBy'] },
1132
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1133
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1134
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1135
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1136
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1137
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1138
+ InputErrors extends ByEmpty extends Prisma.True
1139
+ ? `Error: "by" must not be empty.`
1140
+ : HavingValid extends Prisma.False
1141
+ ? {
1142
+ [P in HavingFields]: P extends ByFields
1143
+ ? never
1144
+ : P extends string
1145
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1146
+ : [
1147
+ Error,
1148
+ 'Field ',
1149
+ P,
1150
+ ` in "having" needs to be provided in "by"`,
1151
+ ]
1152
+ }[HavingFields]
1153
+ : 'take' extends Prisma.Keys<T>
1154
+ ? 'orderBy' extends Prisma.Keys<T>
1155
+ ? ByValid extends Prisma.True
1156
+ ? {}
1157
+ : {
1158
+ [P in OrderFields]: P extends ByFields
1159
+ ? never
1160
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1161
+ }[OrderFields]
1162
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1163
+ : 'skip' extends Prisma.Keys<T>
1164
+ ? 'orderBy' extends Prisma.Keys<T>
1165
+ ? ByValid extends Prisma.True
1166
+ ? {}
1167
+ : {
1168
+ [P in OrderFields]: P extends ByFields
1169
+ ? never
1170
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1171
+ }[OrderFields]
1172
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1173
+ : ByValid extends Prisma.True
1174
+ ? {}
1175
+ : {
1176
+ [P in OrderFields]: P extends ByFields
1177
+ ? never
1178
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1179
+ }[OrderFields]
1180
+ >(args: Prisma.SubsetIntersection<T, ShareGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetShareGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1181
+ /**
1182
+ * Fields of the Share model
1183
+ */
1184
+ readonly fields: ShareFieldRefs;
1185
+ }
1186
+
1187
+ /**
1188
+ * The delegate class that acts as a "Promise-like" for Share.
1189
+ * Why is this prefixed with `Prisma__`?
1190
+ * Because we want to prevent naming conflicts as mentioned in
1191
+ * https://github.com/prisma/prisma-client-js/issues/707
1192
+ */
1193
+ export interface Prisma__ShareClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1194
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1195
+ 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>
1196
+ 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>
1197
+ /**
1198
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1199
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1200
+ * @param onrejected The callback to execute when the Promise is rejected.
1201
+ * @returns A Promise for the completion of which ever callback is executed.
1202
+ */
1203
+ 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>
1204
+ /**
1205
+ * Attaches a callback for only the rejection of the Promise.
1206
+ * @param onrejected The callback to execute when the Promise is rejected.
1207
+ * @returns A Promise for the completion of the callback.
1208
+ */
1209
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1210
+ /**
1211
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1212
+ * resolved value cannot be modified from the callback.
1213
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1214
+ * @returns A Promise for the completion of the callback.
1215
+ */
1216
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1217
+ }
1218
+
1219
+
1220
+
1221
+
1222
+ /**
1223
+ * Fields of the Share model
1224
+ */
1225
+ export interface ShareFieldRefs {
1226
+ readonly id: Prisma.FieldRef<"Share", 'String'>
1227
+ readonly prdId: Prisma.FieldRef<"Share", 'String'>
1228
+ readonly token: Prisma.FieldRef<"Share", 'String'>
1229
+ readonly type: Prisma.FieldRef<"Share", 'String'>
1230
+ readonly status: Prisma.FieldRef<"Share", 'String'>
1231
+ readonly password: Prisma.FieldRef<"Share", 'String'>
1232
+ readonly hasPassword: Prisma.FieldRef<"Share", 'Boolean'>
1233
+ readonly expiresAt: Prisma.FieldRef<"Share", 'DateTime'>
1234
+ readonly createdAt: Prisma.FieldRef<"Share", 'DateTime'>
1235
+ readonly updatedAt: Prisma.FieldRef<"Share", 'DateTime'>
1236
+ }
1237
+
1238
+
1239
+ // Custom InputTypes
1240
+ /**
1241
+ * Share findUnique
1242
+ */
1243
+ export type ShareFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1244
+ /**
1245
+ * Select specific fields to fetch from the Share
1246
+ */
1247
+ select?: Prisma.ShareSelect<ExtArgs> | null
1248
+ /**
1249
+ * Omit specific fields from the Share
1250
+ */
1251
+ omit?: Prisma.ShareOmit<ExtArgs> | null
1252
+ /**
1253
+ * Choose, which related nodes to fetch as well
1254
+ */
1255
+ include?: Prisma.ShareInclude<ExtArgs> | null
1256
+ /**
1257
+ * Filter, which Share to fetch.
1258
+ */
1259
+ where: Prisma.ShareWhereUniqueInput
1260
+ }
1261
+
1262
+ /**
1263
+ * Share findUniqueOrThrow
1264
+ */
1265
+ export type ShareFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1266
+ /**
1267
+ * Select specific fields to fetch from the Share
1268
+ */
1269
+ select?: Prisma.ShareSelect<ExtArgs> | null
1270
+ /**
1271
+ * Omit specific fields from the Share
1272
+ */
1273
+ omit?: Prisma.ShareOmit<ExtArgs> | null
1274
+ /**
1275
+ * Choose, which related nodes to fetch as well
1276
+ */
1277
+ include?: Prisma.ShareInclude<ExtArgs> | null
1278
+ /**
1279
+ * Filter, which Share to fetch.
1280
+ */
1281
+ where: Prisma.ShareWhereUniqueInput
1282
+ }
1283
+
1284
+ /**
1285
+ * Share findFirst
1286
+ */
1287
+ export type ShareFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1288
+ /**
1289
+ * Select specific fields to fetch from the Share
1290
+ */
1291
+ select?: Prisma.ShareSelect<ExtArgs> | null
1292
+ /**
1293
+ * Omit specific fields from the Share
1294
+ */
1295
+ omit?: Prisma.ShareOmit<ExtArgs> | null
1296
+ /**
1297
+ * Choose, which related nodes to fetch as well
1298
+ */
1299
+ include?: Prisma.ShareInclude<ExtArgs> | null
1300
+ /**
1301
+ * Filter, which Share to fetch.
1302
+ */
1303
+ where?: Prisma.ShareWhereInput
1304
+ /**
1305
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1306
+ *
1307
+ * Determine the order of Shares to fetch.
1308
+ */
1309
+ orderBy?: Prisma.ShareOrderByWithRelationInput | Prisma.ShareOrderByWithRelationInput[]
1310
+ /**
1311
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1312
+ *
1313
+ * Sets the position for searching for Shares.
1314
+ */
1315
+ cursor?: Prisma.ShareWhereUniqueInput
1316
+ /**
1317
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1318
+ *
1319
+ * Take `±n` Shares from the position of the cursor.
1320
+ */
1321
+ take?: number
1322
+ /**
1323
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1324
+ *
1325
+ * Skip the first `n` Shares.
1326
+ */
1327
+ skip?: number
1328
+ /**
1329
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1330
+ *
1331
+ * Filter by unique combinations of Shares.
1332
+ */
1333
+ distinct?: Prisma.ShareScalarFieldEnum | Prisma.ShareScalarFieldEnum[]
1334
+ }
1335
+
1336
+ /**
1337
+ * Share findFirstOrThrow
1338
+ */
1339
+ export type ShareFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1340
+ /**
1341
+ * Select specific fields to fetch from the Share
1342
+ */
1343
+ select?: Prisma.ShareSelect<ExtArgs> | null
1344
+ /**
1345
+ * Omit specific fields from the Share
1346
+ */
1347
+ omit?: Prisma.ShareOmit<ExtArgs> | null
1348
+ /**
1349
+ * Choose, which related nodes to fetch as well
1350
+ */
1351
+ include?: Prisma.ShareInclude<ExtArgs> | null
1352
+ /**
1353
+ * Filter, which Share to fetch.
1354
+ */
1355
+ where?: Prisma.ShareWhereInput
1356
+ /**
1357
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1358
+ *
1359
+ * Determine the order of Shares to fetch.
1360
+ */
1361
+ orderBy?: Prisma.ShareOrderByWithRelationInput | Prisma.ShareOrderByWithRelationInput[]
1362
+ /**
1363
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1364
+ *
1365
+ * Sets the position for searching for Shares.
1366
+ */
1367
+ cursor?: Prisma.ShareWhereUniqueInput
1368
+ /**
1369
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1370
+ *
1371
+ * Take `±n` Shares from the position of the cursor.
1372
+ */
1373
+ take?: number
1374
+ /**
1375
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1376
+ *
1377
+ * Skip the first `n` Shares.
1378
+ */
1379
+ skip?: number
1380
+ /**
1381
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1382
+ *
1383
+ * Filter by unique combinations of Shares.
1384
+ */
1385
+ distinct?: Prisma.ShareScalarFieldEnum | Prisma.ShareScalarFieldEnum[]
1386
+ }
1387
+
1388
+ /**
1389
+ * Share findMany
1390
+ */
1391
+ export type ShareFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1392
+ /**
1393
+ * Select specific fields to fetch from the Share
1394
+ */
1395
+ select?: Prisma.ShareSelect<ExtArgs> | null
1396
+ /**
1397
+ * Omit specific fields from the Share
1398
+ */
1399
+ omit?: Prisma.ShareOmit<ExtArgs> | null
1400
+ /**
1401
+ * Choose, which related nodes to fetch as well
1402
+ */
1403
+ include?: Prisma.ShareInclude<ExtArgs> | null
1404
+ /**
1405
+ * Filter, which Shares to fetch.
1406
+ */
1407
+ where?: Prisma.ShareWhereInput
1408
+ /**
1409
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1410
+ *
1411
+ * Determine the order of Shares to fetch.
1412
+ */
1413
+ orderBy?: Prisma.ShareOrderByWithRelationInput | Prisma.ShareOrderByWithRelationInput[]
1414
+ /**
1415
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1416
+ *
1417
+ * Sets the position for listing Shares.
1418
+ */
1419
+ cursor?: Prisma.ShareWhereUniqueInput
1420
+ /**
1421
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1422
+ *
1423
+ * Take `±n` Shares from the position of the cursor.
1424
+ */
1425
+ take?: number
1426
+ /**
1427
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1428
+ *
1429
+ * Skip the first `n` Shares.
1430
+ */
1431
+ skip?: number
1432
+ /**
1433
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1434
+ *
1435
+ * Filter by unique combinations of Shares.
1436
+ */
1437
+ distinct?: Prisma.ShareScalarFieldEnum | Prisma.ShareScalarFieldEnum[]
1438
+ }
1439
+
1440
+ /**
1441
+ * Share create
1442
+ */
1443
+ export type ShareCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1444
+ /**
1445
+ * Select specific fields to fetch from the Share
1446
+ */
1447
+ select?: Prisma.ShareSelect<ExtArgs> | null
1448
+ /**
1449
+ * Omit specific fields from the Share
1450
+ */
1451
+ omit?: Prisma.ShareOmit<ExtArgs> | null
1452
+ /**
1453
+ * Choose, which related nodes to fetch as well
1454
+ */
1455
+ include?: Prisma.ShareInclude<ExtArgs> | null
1456
+ /**
1457
+ * The data needed to create a Share.
1458
+ */
1459
+ data: Prisma.XOR<Prisma.ShareCreateInput, Prisma.ShareUncheckedCreateInput>
1460
+ }
1461
+
1462
+ /**
1463
+ * Share createMany
1464
+ */
1465
+ export type ShareCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1466
+ /**
1467
+ * The data used to create many Shares.
1468
+ */
1469
+ data: Prisma.ShareCreateManyInput | Prisma.ShareCreateManyInput[]
1470
+ }
1471
+
1472
+ /**
1473
+ * Share createManyAndReturn
1474
+ */
1475
+ export type ShareCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1476
+ /**
1477
+ * Select specific fields to fetch from the Share
1478
+ */
1479
+ select?: Prisma.ShareSelectCreateManyAndReturn<ExtArgs> | null
1480
+ /**
1481
+ * Omit specific fields from the Share
1482
+ */
1483
+ omit?: Prisma.ShareOmit<ExtArgs> | null
1484
+ /**
1485
+ * The data used to create many Shares.
1486
+ */
1487
+ data: Prisma.ShareCreateManyInput | Prisma.ShareCreateManyInput[]
1488
+ /**
1489
+ * Choose, which related nodes to fetch as well
1490
+ */
1491
+ include?: Prisma.ShareIncludeCreateManyAndReturn<ExtArgs> | null
1492
+ }
1493
+
1494
+ /**
1495
+ * Share update
1496
+ */
1497
+ export type ShareUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1498
+ /**
1499
+ * Select specific fields to fetch from the Share
1500
+ */
1501
+ select?: Prisma.ShareSelect<ExtArgs> | null
1502
+ /**
1503
+ * Omit specific fields from the Share
1504
+ */
1505
+ omit?: Prisma.ShareOmit<ExtArgs> | null
1506
+ /**
1507
+ * Choose, which related nodes to fetch as well
1508
+ */
1509
+ include?: Prisma.ShareInclude<ExtArgs> | null
1510
+ /**
1511
+ * The data needed to update a Share.
1512
+ */
1513
+ data: Prisma.XOR<Prisma.ShareUpdateInput, Prisma.ShareUncheckedUpdateInput>
1514
+ /**
1515
+ * Choose, which Share to update.
1516
+ */
1517
+ where: Prisma.ShareWhereUniqueInput
1518
+ }
1519
+
1520
+ /**
1521
+ * Share updateMany
1522
+ */
1523
+ export type ShareUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1524
+ /**
1525
+ * The data used to update Shares.
1526
+ */
1527
+ data: Prisma.XOR<Prisma.ShareUpdateManyMutationInput, Prisma.ShareUncheckedUpdateManyInput>
1528
+ /**
1529
+ * Filter which Shares to update
1530
+ */
1531
+ where?: Prisma.ShareWhereInput
1532
+ /**
1533
+ * Limit how many Shares to update.
1534
+ */
1535
+ limit?: number
1536
+ }
1537
+
1538
+ /**
1539
+ * Share updateManyAndReturn
1540
+ */
1541
+ export type ShareUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1542
+ /**
1543
+ * Select specific fields to fetch from the Share
1544
+ */
1545
+ select?: Prisma.ShareSelectUpdateManyAndReturn<ExtArgs> | null
1546
+ /**
1547
+ * Omit specific fields from the Share
1548
+ */
1549
+ omit?: Prisma.ShareOmit<ExtArgs> | null
1550
+ /**
1551
+ * The data used to update Shares.
1552
+ */
1553
+ data: Prisma.XOR<Prisma.ShareUpdateManyMutationInput, Prisma.ShareUncheckedUpdateManyInput>
1554
+ /**
1555
+ * Filter which Shares to update
1556
+ */
1557
+ where?: Prisma.ShareWhereInput
1558
+ /**
1559
+ * Limit how many Shares to update.
1560
+ */
1561
+ limit?: number
1562
+ /**
1563
+ * Choose, which related nodes to fetch as well
1564
+ */
1565
+ include?: Prisma.ShareIncludeUpdateManyAndReturn<ExtArgs> | null
1566
+ }
1567
+
1568
+ /**
1569
+ * Share upsert
1570
+ */
1571
+ export type ShareUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1572
+ /**
1573
+ * Select specific fields to fetch from the Share
1574
+ */
1575
+ select?: Prisma.ShareSelect<ExtArgs> | null
1576
+ /**
1577
+ * Omit specific fields from the Share
1578
+ */
1579
+ omit?: Prisma.ShareOmit<ExtArgs> | null
1580
+ /**
1581
+ * Choose, which related nodes to fetch as well
1582
+ */
1583
+ include?: Prisma.ShareInclude<ExtArgs> | null
1584
+ /**
1585
+ * The filter to search for the Share to update in case it exists.
1586
+ */
1587
+ where: Prisma.ShareWhereUniqueInput
1588
+ /**
1589
+ * In case the Share found by the `where` argument doesn't exist, create a new Share with this data.
1590
+ */
1591
+ create: Prisma.XOR<Prisma.ShareCreateInput, Prisma.ShareUncheckedCreateInput>
1592
+ /**
1593
+ * In case the Share was found with the provided `where` argument, update it with this data.
1594
+ */
1595
+ update: Prisma.XOR<Prisma.ShareUpdateInput, Prisma.ShareUncheckedUpdateInput>
1596
+ }
1597
+
1598
+ /**
1599
+ * Share delete
1600
+ */
1601
+ export type ShareDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1602
+ /**
1603
+ * Select specific fields to fetch from the Share
1604
+ */
1605
+ select?: Prisma.ShareSelect<ExtArgs> | null
1606
+ /**
1607
+ * Omit specific fields from the Share
1608
+ */
1609
+ omit?: Prisma.ShareOmit<ExtArgs> | null
1610
+ /**
1611
+ * Choose, which related nodes to fetch as well
1612
+ */
1613
+ include?: Prisma.ShareInclude<ExtArgs> | null
1614
+ /**
1615
+ * Filter which Share to delete.
1616
+ */
1617
+ where: Prisma.ShareWhereUniqueInput
1618
+ }
1619
+
1620
+ /**
1621
+ * Share deleteMany
1622
+ */
1623
+ export type ShareDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1624
+ /**
1625
+ * Filter which Shares to delete
1626
+ */
1627
+ where?: Prisma.ShareWhereInput
1628
+ /**
1629
+ * Limit how many Shares to delete.
1630
+ */
1631
+ limit?: number
1632
+ }
1633
+
1634
+ /**
1635
+ * Share.shareVersions
1636
+ */
1637
+ export type Share$shareVersionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1638
+ /**
1639
+ * Select specific fields to fetch from the ShareVersion
1640
+ */
1641
+ select?: Prisma.ShareVersionSelect<ExtArgs> | null
1642
+ /**
1643
+ * Omit specific fields from the ShareVersion
1644
+ */
1645
+ omit?: Prisma.ShareVersionOmit<ExtArgs> | null
1646
+ /**
1647
+ * Choose, which related nodes to fetch as well
1648
+ */
1649
+ include?: Prisma.ShareVersionInclude<ExtArgs> | null
1650
+ where?: Prisma.ShareVersionWhereInput
1651
+ orderBy?: Prisma.ShareVersionOrderByWithRelationInput | Prisma.ShareVersionOrderByWithRelationInput[]
1652
+ cursor?: Prisma.ShareVersionWhereUniqueInput
1653
+ take?: number
1654
+ skip?: number
1655
+ distinct?: Prisma.ShareVersionScalarFieldEnum | Prisma.ShareVersionScalarFieldEnum[]
1656
+ }
1657
+
1658
+ /**
1659
+ * Share without action
1660
+ */
1661
+ export type ShareDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1662
+ /**
1663
+ * Select specific fields to fetch from the Share
1664
+ */
1665
+ select?: Prisma.ShareSelect<ExtArgs> | null
1666
+ /**
1667
+ * Omit specific fields from the Share
1668
+ */
1669
+ omit?: Prisma.ShareOmit<ExtArgs> | null
1670
+ /**
1671
+ * Choose, which related nodes to fetch as well
1672
+ */
1673
+ include?: Prisma.ShareInclude<ExtArgs> | null
1674
+ }