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