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