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