@allbluecn/database 0.4.0 → 0.4.2

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