@allbluecn/database 0.3.14 → 0.4.1

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