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