@allbluecn/database 0.9.1 → 0.9.3

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 (150) hide show
  1. package/cf-env-stub.ts +4 -0
  2. package/cf-env.ts +25 -0
  3. package/cloudflare-workers.d.ts +6 -0
  4. package/desktop-init.ts +2 -2
  5. package/dist/cf-env-stub.d.ts +1 -0
  6. package/dist/cf-env-stub.js +4 -0
  7. package/dist/cf-env.d.ts +1 -0
  8. package/dist/cf-env.js +8 -0
  9. package/dist/lib/share-utils.js +3 -3
  10. package/generated/browser.ts +143 -38
  11. package/generated/client.ts +143 -38
  12. package/generated/commonInputTypes.ts +34 -0
  13. package/generated/enums.ts +14 -0
  14. package/generated/internal/class.ts +290 -80
  15. package/generated/internal/prismaNamespace.ts +3756 -1797
  16. package/generated/internal/prismaNamespaceBrowser.ts +478 -108
  17. package/generated/models/AgentConversation.ts +89 -89
  18. package/generated/models/AiProvider.ts +3 -3
  19. package/generated/models/AiStreamChunk.ts +3 -3
  20. package/generated/models/AiTask.ts +2481 -0
  21. package/generated/models/AiTaskRun.ts +1564 -0
  22. package/generated/models/AnyHubMarketApp.ts +8 -8
  23. package/generated/models/AuditLog.ts +6 -6
  24. package/generated/models/BlockInstance.ts +17 -17
  25. package/generated/models/Bug.ts +5116 -0
  26. package/generated/models/BugActivity.ts +1765 -0
  27. package/generated/models/BugComment.ts +1992 -0
  28. package/generated/models/BugCommentReaction.ts +1472 -0
  29. package/generated/models/BugEvent.ts +1339 -0
  30. package/generated/models/BugFilterView.ts +1438 -0
  31. package/generated/models/BugFixRun.ts +1479 -0
  32. package/generated/models/BugLabel.ts +1349 -0
  33. package/generated/models/BugProjectSettings.ts +1403 -0
  34. package/generated/models/BugReproRun.ts +1582 -0
  35. package/generated/models/ChatPersistenceMeta.ts +3 -3
  36. package/generated/models/CollabClient.ts +1199 -0
  37. package/generated/models/CollabDocument.ts +1121 -0
  38. package/generated/models/CollabUpdate.ts +1149 -0
  39. package/generated/models/Comment.ts +99 -99
  40. package/generated/models/Component.ts +7 -201
  41. package/generated/models/ComponentInstance.ts +17 -17
  42. package/generated/models/CustomRole.ts +8 -8
  43. package/generated/models/Design.ts +2682 -0
  44. package/generated/models/DesignPage.ts +2402 -0
  45. package/generated/models/DesignVersion.ts +2121 -0
  46. package/generated/models/DesktopSetting.ts +3 -3
  47. package/generated/models/Iteration.ts +148 -0
  48. package/generated/models/Label.ts +118 -0
  49. package/generated/models/LicenseKey.ts +16 -16
  50. package/generated/models/NotificationPreference.ts +5 -5
  51. package/generated/models/PageVersion.ts +49 -49
  52. package/generated/models/Plan.ts +5 -5
  53. package/generated/models/Project.ts +2240 -67
  54. package/generated/models/ProjectAccessToken.ts +1705 -0
  55. package/generated/models/ProjectWebhook.ts +1409 -0
  56. package/generated/models/Review.ts +118 -118
  57. package/generated/models/Share.ts +83 -83
  58. package/generated/models/ShareVersion.ts +15 -15
  59. package/generated/models/SsoProvider.ts +8 -8
  60. package/generated/models/Story.ts +973 -87
  61. package/generated/models/StoryDesignLink.ts +1430 -0
  62. package/generated/models/StoryFilterView.ts +12 -12
  63. package/generated/models/SystemPromptVersion.ts +6 -6
  64. package/generated/models/TestAutomationArtifact.ts +1790 -0
  65. package/generated/models/TestCase.ts +3645 -0
  66. package/generated/models/TestCaseFilterView.ts +1587 -0
  67. package/generated/models/TestCaseFolder.ts +1795 -0
  68. package/generated/models/TestExecRun.ts +1673 -0
  69. package/generated/models/TestGenerationRun.ts +1952 -0
  70. package/generated/models/TestPlan.ts +1950 -0
  71. package/generated/models/TestPlanCase.ts +1430 -0
  72. package/generated/models/TestRun.ts +1979 -0
  73. package/generated/models/TestRunCase.ts +2772 -0
  74. package/generated/models/ThirdPartyDependency.ts +19 -15
  75. package/generated/models/User.ts +13573 -3351
  76. package/generated/models/Workspace.ts +204 -0
  77. package/generated/models.ts +31 -10
  78. package/generated-sqlite/browser.ts +6 -36
  79. package/generated-sqlite/client.ts +6 -36
  80. package/generated-sqlite/internal/class.ts +16 -76
  81. package/generated-sqlite/internal/prismaNamespace.ts +127 -659
  82. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +21 -103
  83. package/generated-sqlite/models/AgentConversation.ts +89 -89
  84. package/generated-sqlite/models/AiProvider.ts +3 -3
  85. package/generated-sqlite/models/AiStreamChunk.ts +3 -3
  86. package/generated-sqlite/models/AnyHubMarketApp.ts +8 -8
  87. package/generated-sqlite/models/BlockInstance.ts +17 -17
  88. package/generated-sqlite/models/ChatPersistenceMeta.ts +3 -3
  89. package/generated-sqlite/models/Comment.ts +99 -99
  90. package/generated-sqlite/models/Component.ts +7 -201
  91. package/generated-sqlite/models/ComponentInstance.ts +17 -17
  92. package/generated-sqlite/models/Design.ts +2497 -0
  93. package/generated-sqlite/models/DesignPage.ts +2398 -0
  94. package/generated-sqlite/models/DesignVersion.ts +2117 -0
  95. package/generated-sqlite/models/DesktopSetting.ts +3 -3
  96. package/generated-sqlite/models/KnowledgeBase.ts +240 -1
  97. package/generated-sqlite/models/NotificationPreference.ts +5 -5
  98. package/generated-sqlite/models/PageVersion.ts +49 -49
  99. package/generated-sqlite/models/Review.ts +118 -118
  100. package/generated-sqlite/models/Share.ts +83 -83
  101. package/generated-sqlite/models/ShareVersion.ts +15 -15
  102. package/generated-sqlite/models/SystemPromptVersion.ts +6 -6
  103. package/generated-sqlite/models/User.ts +1310 -2016
  104. package/generated-sqlite/models/Workspace.ts +164 -0
  105. package/generated-sqlite/models.ts +3 -9
  106. package/index.ts +31 -3
  107. package/migrations/20260924084200_add_prd_kind_drop_design_sketch/migration.sql +24 -0
  108. package/migrations/20260924123118_drop_user_sketch_api_token/migration.sql +8 -0
  109. package/migrations/20260925011516_rename_prd_tables/migration.sql +189 -0
  110. package/migrations/20260925064226_rename_prd_columns/migration.sql +193 -0
  111. package/migrations/20260925080000_rename_prd_embeddings/migration.sql +43 -0
  112. package/migrations/20261002184838_bug_module_init/migration.sql +297 -0
  113. package/migrations/20261004234209_testcase_module_init/migration.sql +290 -0
  114. package/migrations/20261005090000_testcase_plan_cases/migration.sql +34 -0
  115. package/migrations/20261006151229_add_missing_fk_indexes_auth_billing/migration.sql +50 -0
  116. package/migrations/20261006152058_add_missing_fk_indexes_story_bug_test/migration.sql +59 -0
  117. package/migrations/20261006152153_add_missing_fk_indexes_design_misc/migration.sql +50 -0
  118. package/migrations/20261006184250_explicit_on_delete_core/migration.sql +33 -0
  119. package/migrations/20261006184604_explicit_on_delete_rest/migration.sql +117 -0
  120. package/migrations/20261006184932_json_column_defaults/migration.sql +74 -0
  121. package/migrations/20261006191724_revert_version_token_cascade/migration.sql +21 -0
  122. package/migrations/20261007025537_dependency_category_enum/migration.sql +22 -0
  123. package/migrations/20261007112656_collab_init/migration.sql +45 -0
  124. package/migrations/20261007122530_collab_client_clientid_bigint/migration.sql +10 -0
  125. package/migrations/20261009194853_remove_tag_module/migration.sql +24 -0
  126. package/migrations/20261009222043_ai_task_init/migration.sql +67 -0
  127. package/migrations/20261019202531_ui_alignment_board_order/migration.sql +35 -0
  128. package/package.json +17 -6
  129. package/schema.prisma +777 -222
  130. package/schema.sqlite.prisma +140 -196
  131. package/src/lib/share-utils.ts +2 -2
  132. package/generated/models/Artboard.ts +0 -1811
  133. package/generated/models/ArtboardExport.ts +0 -1548
  134. package/generated/models/ComponentTag.ts +0 -1281
  135. package/generated/models/DesignProject.ts +0 -1643
  136. package/generated/models/PRD.ts +0 -2805
  137. package/generated/models/PRDPage.ts +0 -2402
  138. package/generated/models/PRDTag.ts +0 -1430
  139. package/generated/models/PRDVersion.ts +0 -2121
  140. package/generated/models/StoryPrdLink.ts +0 -1430
  141. package/generated/models/Tag.ts +0 -1655
  142. package/generated-sqlite/models/Artboard.ts +0 -1808
  143. package/generated-sqlite/models/ArtboardExport.ts +0 -1545
  144. package/generated-sqlite/models/ComponentTag.ts +0 -1278
  145. package/generated-sqlite/models/DesignProject.ts +0 -1640
  146. package/generated-sqlite/models/PRD.ts +0 -2616
  147. package/generated-sqlite/models/PRDPage.ts +0 -2398
  148. package/generated-sqlite/models/PRDTag.ts +0 -1426
  149. package/generated-sqlite/models/PRDVersion.ts +0 -2117
  150. package/generated-sqlite/models/Tag.ts +0 -1652
@@ -0,0 +1,2398 @@
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 `DesignPage` 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.ts"
13
+ import type * as Prisma from "../internal/prismaNamespace.ts"
14
+
15
+ /**
16
+ * Model DesignPage
17
+ *
18
+ */
19
+ export type DesignPageModel = runtime.Types.Result.DefaultSelection<Prisma.$DesignPagePayload>
20
+
21
+ export type AggregateDesignPage = {
22
+ _count: DesignPageCountAggregateOutputType | null
23
+ _avg: DesignPageAvgAggregateOutputType | null
24
+ _sum: DesignPageSumAggregateOutputType | null
25
+ _min: DesignPageMinAggregateOutputType | null
26
+ _max: DesignPageMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type DesignPageAvgAggregateOutputType = {
30
+ order: number | null
31
+ version: number | null
32
+ }
33
+
34
+ export type DesignPageSumAggregateOutputType = {
35
+ order: number | null
36
+ version: number | null
37
+ }
38
+
39
+ export type DesignPageMinAggregateOutputType = {
40
+ id: string | null
41
+ designId: string | null
42
+ parentId: string | null
43
+ name: string | null
44
+ order: number | null
45
+ type: string | null
46
+ version: number | null
47
+ createdAt: Date | null
48
+ updatedAt: Date | null
49
+ }
50
+
51
+ export type DesignPageMaxAggregateOutputType = {
52
+ id: string | null
53
+ designId: string | null
54
+ parentId: string | null
55
+ name: string | null
56
+ order: number | null
57
+ type: string | null
58
+ version: number | null
59
+ createdAt: Date | null
60
+ updatedAt: Date | null
61
+ }
62
+
63
+ export type DesignPageCountAggregateOutputType = {
64
+ id: number
65
+ designId: number
66
+ parentId: number
67
+ name: number
68
+ order: number
69
+ type: number
70
+ canvas: number
71
+ content: number
72
+ version: number
73
+ createdAt: number
74
+ updatedAt: number
75
+ _all: number
76
+ }
77
+
78
+
79
+ export type DesignPageAvgAggregateInputType = {
80
+ order?: true
81
+ version?: true
82
+ }
83
+
84
+ export type DesignPageSumAggregateInputType = {
85
+ order?: true
86
+ version?: true
87
+ }
88
+
89
+ export type DesignPageMinAggregateInputType = {
90
+ id?: true
91
+ designId?: true
92
+ parentId?: true
93
+ name?: true
94
+ order?: true
95
+ type?: true
96
+ version?: true
97
+ createdAt?: true
98
+ updatedAt?: true
99
+ }
100
+
101
+ export type DesignPageMaxAggregateInputType = {
102
+ id?: true
103
+ designId?: true
104
+ parentId?: true
105
+ name?: true
106
+ order?: true
107
+ type?: true
108
+ version?: true
109
+ createdAt?: true
110
+ updatedAt?: true
111
+ }
112
+
113
+ export type DesignPageCountAggregateInputType = {
114
+ id?: true
115
+ designId?: true
116
+ parentId?: true
117
+ name?: true
118
+ order?: true
119
+ type?: true
120
+ canvas?: true
121
+ content?: true
122
+ version?: true
123
+ createdAt?: true
124
+ updatedAt?: true
125
+ _all?: true
126
+ }
127
+
128
+ export type DesignPageAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
129
+ /**
130
+ * Filter which DesignPage to aggregate.
131
+ */
132
+ where?: Prisma.DesignPageWhereInput
133
+ /**
134
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
135
+ *
136
+ * Determine the order of DesignPages to fetch.
137
+ */
138
+ orderBy?: Prisma.DesignPageOrderByWithRelationInput | Prisma.DesignPageOrderByWithRelationInput[]
139
+ /**
140
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
141
+ *
142
+ * Sets the start position
143
+ */
144
+ cursor?: Prisma.DesignPageWhereUniqueInput
145
+ /**
146
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
147
+ *
148
+ * Take `±n` DesignPages from the position of the cursor.
149
+ */
150
+ take?: number
151
+ /**
152
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
153
+ *
154
+ * Skip the first `n` DesignPages.
155
+ */
156
+ skip?: number
157
+ /**
158
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
159
+ *
160
+ * Count returned DesignPages
161
+ **/
162
+ _count?: true | DesignPageCountAggregateInputType
163
+ /**
164
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
165
+ *
166
+ * Select which fields to average
167
+ **/
168
+ _avg?: DesignPageAvgAggregateInputType
169
+ /**
170
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
171
+ *
172
+ * Select which fields to sum
173
+ **/
174
+ _sum?: DesignPageSumAggregateInputType
175
+ /**
176
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
177
+ *
178
+ * Select which fields to find the minimum value
179
+ **/
180
+ _min?: DesignPageMinAggregateInputType
181
+ /**
182
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
183
+ *
184
+ * Select which fields to find the maximum value
185
+ **/
186
+ _max?: DesignPageMaxAggregateInputType
187
+ }
188
+
189
+ export type GetDesignPageAggregateType<T extends DesignPageAggregateArgs> = {
190
+ [P in keyof T & keyof AggregateDesignPage]: P extends '_count' | 'count'
191
+ ? T[P] extends true
192
+ ? number
193
+ : Prisma.GetScalarType<T[P], AggregateDesignPage[P]>
194
+ : Prisma.GetScalarType<T[P], AggregateDesignPage[P]>
195
+ }
196
+
197
+
198
+
199
+
200
+ export type DesignPageGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
201
+ where?: Prisma.DesignPageWhereInput
202
+ orderBy?: Prisma.DesignPageOrderByWithAggregationInput | Prisma.DesignPageOrderByWithAggregationInput[]
203
+ by: Prisma.DesignPageScalarFieldEnum[] | Prisma.DesignPageScalarFieldEnum
204
+ having?: Prisma.DesignPageScalarWhereWithAggregatesInput
205
+ take?: number
206
+ skip?: number
207
+ _count?: DesignPageCountAggregateInputType | true
208
+ _avg?: DesignPageAvgAggregateInputType
209
+ _sum?: DesignPageSumAggregateInputType
210
+ _min?: DesignPageMinAggregateInputType
211
+ _max?: DesignPageMaxAggregateInputType
212
+ }
213
+
214
+ export type DesignPageGroupByOutputType = {
215
+ id: string
216
+ designId: string
217
+ parentId: string | null
218
+ name: string
219
+ order: number
220
+ type: string
221
+ canvas: runtime.JsonValue | null
222
+ content: runtime.JsonValue | null
223
+ version: number
224
+ createdAt: Date
225
+ updatedAt: Date
226
+ _count: DesignPageCountAggregateOutputType | null
227
+ _avg: DesignPageAvgAggregateOutputType | null
228
+ _sum: DesignPageSumAggregateOutputType | null
229
+ _min: DesignPageMinAggregateOutputType | null
230
+ _max: DesignPageMaxAggregateOutputType | null
231
+ }
232
+
233
+ export type GetDesignPageGroupByPayload<T extends DesignPageGroupByArgs> = Prisma.PrismaPromise<
234
+ Array<
235
+ Prisma.PickEnumerable<DesignPageGroupByOutputType, T['by']> &
236
+ {
237
+ [P in ((keyof T) & (keyof DesignPageGroupByOutputType))]: P extends '_count'
238
+ ? T[P] extends boolean
239
+ ? number
240
+ : Prisma.GetScalarType<T[P], DesignPageGroupByOutputType[P]>
241
+ : Prisma.GetScalarType<T[P], DesignPageGroupByOutputType[P]>
242
+ }
243
+ >
244
+ >
245
+
246
+
247
+
248
+ export type DesignPageWhereInput = {
249
+ AND?: Prisma.DesignPageWhereInput | Prisma.DesignPageWhereInput[]
250
+ OR?: Prisma.DesignPageWhereInput[]
251
+ NOT?: Prisma.DesignPageWhereInput | Prisma.DesignPageWhereInput[]
252
+ id?: Prisma.StringFilter<"DesignPage"> | string
253
+ designId?: Prisma.StringFilter<"DesignPage"> | string
254
+ parentId?: Prisma.StringNullableFilter<"DesignPage"> | string | null
255
+ name?: Prisma.StringFilter<"DesignPage"> | string
256
+ order?: Prisma.IntFilter<"DesignPage"> | number
257
+ type?: Prisma.StringFilter<"DesignPage"> | string
258
+ canvas?: Prisma.JsonNullableFilter<"DesignPage">
259
+ content?: Prisma.JsonNullableFilter<"DesignPage">
260
+ version?: Prisma.IntFilter<"DesignPage"> | number
261
+ createdAt?: Prisma.DateTimeFilter<"DesignPage"> | Date | string
262
+ updatedAt?: Prisma.DateTimeFilter<"DesignPage"> | Date | string
263
+ design?: Prisma.XOR<Prisma.DesignScalarRelationFilter, Prisma.DesignWhereInput>
264
+ parent?: Prisma.XOR<Prisma.DesignPageNullableScalarRelationFilter, Prisma.DesignPageWhereInput> | null
265
+ children?: Prisma.DesignPageListRelationFilter
266
+ componentInstances?: Prisma.ComponentInstanceListRelationFilter
267
+ blockInstances?: Prisma.BlockInstanceListRelationFilter
268
+ pageVersions?: Prisma.PageVersionListRelationFilter
269
+ }
270
+
271
+ export type DesignPageOrderByWithRelationInput = {
272
+ id?: Prisma.SortOrder
273
+ designId?: Prisma.SortOrder
274
+ parentId?: Prisma.SortOrderInput | Prisma.SortOrder
275
+ name?: Prisma.SortOrder
276
+ order?: Prisma.SortOrder
277
+ type?: Prisma.SortOrder
278
+ canvas?: Prisma.SortOrderInput | Prisma.SortOrder
279
+ content?: Prisma.SortOrderInput | Prisma.SortOrder
280
+ version?: Prisma.SortOrder
281
+ createdAt?: Prisma.SortOrder
282
+ updatedAt?: Prisma.SortOrder
283
+ design?: Prisma.DesignOrderByWithRelationInput
284
+ parent?: Prisma.DesignPageOrderByWithRelationInput
285
+ children?: Prisma.DesignPageOrderByRelationAggregateInput
286
+ componentInstances?: Prisma.ComponentInstanceOrderByRelationAggregateInput
287
+ blockInstances?: Prisma.BlockInstanceOrderByRelationAggregateInput
288
+ pageVersions?: Prisma.PageVersionOrderByRelationAggregateInput
289
+ }
290
+
291
+ export type DesignPageWhereUniqueInput = Prisma.AtLeast<{
292
+ id?: string
293
+ AND?: Prisma.DesignPageWhereInput | Prisma.DesignPageWhereInput[]
294
+ OR?: Prisma.DesignPageWhereInput[]
295
+ NOT?: Prisma.DesignPageWhereInput | Prisma.DesignPageWhereInput[]
296
+ designId?: Prisma.StringFilter<"DesignPage"> | string
297
+ parentId?: Prisma.StringNullableFilter<"DesignPage"> | string | null
298
+ name?: Prisma.StringFilter<"DesignPage"> | string
299
+ order?: Prisma.IntFilter<"DesignPage"> | number
300
+ type?: Prisma.StringFilter<"DesignPage"> | string
301
+ canvas?: Prisma.JsonNullableFilter<"DesignPage">
302
+ content?: Prisma.JsonNullableFilter<"DesignPage">
303
+ version?: Prisma.IntFilter<"DesignPage"> | number
304
+ createdAt?: Prisma.DateTimeFilter<"DesignPage"> | Date | string
305
+ updatedAt?: Prisma.DateTimeFilter<"DesignPage"> | Date | string
306
+ design?: Prisma.XOR<Prisma.DesignScalarRelationFilter, Prisma.DesignWhereInput>
307
+ parent?: Prisma.XOR<Prisma.DesignPageNullableScalarRelationFilter, Prisma.DesignPageWhereInput> | null
308
+ children?: Prisma.DesignPageListRelationFilter
309
+ componentInstances?: Prisma.ComponentInstanceListRelationFilter
310
+ blockInstances?: Prisma.BlockInstanceListRelationFilter
311
+ pageVersions?: Prisma.PageVersionListRelationFilter
312
+ }, "id">
313
+
314
+ export type DesignPageOrderByWithAggregationInput = {
315
+ id?: Prisma.SortOrder
316
+ designId?: Prisma.SortOrder
317
+ parentId?: Prisma.SortOrderInput | Prisma.SortOrder
318
+ name?: Prisma.SortOrder
319
+ order?: Prisma.SortOrder
320
+ type?: Prisma.SortOrder
321
+ canvas?: Prisma.SortOrderInput | Prisma.SortOrder
322
+ content?: Prisma.SortOrderInput | Prisma.SortOrder
323
+ version?: Prisma.SortOrder
324
+ createdAt?: Prisma.SortOrder
325
+ updatedAt?: Prisma.SortOrder
326
+ _count?: Prisma.DesignPageCountOrderByAggregateInput
327
+ _avg?: Prisma.DesignPageAvgOrderByAggregateInput
328
+ _max?: Prisma.DesignPageMaxOrderByAggregateInput
329
+ _min?: Prisma.DesignPageMinOrderByAggregateInput
330
+ _sum?: Prisma.DesignPageSumOrderByAggregateInput
331
+ }
332
+
333
+ export type DesignPageScalarWhereWithAggregatesInput = {
334
+ AND?: Prisma.DesignPageScalarWhereWithAggregatesInput | Prisma.DesignPageScalarWhereWithAggregatesInput[]
335
+ OR?: Prisma.DesignPageScalarWhereWithAggregatesInput[]
336
+ NOT?: Prisma.DesignPageScalarWhereWithAggregatesInput | Prisma.DesignPageScalarWhereWithAggregatesInput[]
337
+ id?: Prisma.StringWithAggregatesFilter<"DesignPage"> | string
338
+ designId?: Prisma.StringWithAggregatesFilter<"DesignPage"> | string
339
+ parentId?: Prisma.StringNullableWithAggregatesFilter<"DesignPage"> | string | null
340
+ name?: Prisma.StringWithAggregatesFilter<"DesignPage"> | string
341
+ order?: Prisma.IntWithAggregatesFilter<"DesignPage"> | number
342
+ type?: Prisma.StringWithAggregatesFilter<"DesignPage"> | string
343
+ canvas?: Prisma.JsonNullableWithAggregatesFilter<"DesignPage">
344
+ content?: Prisma.JsonNullableWithAggregatesFilter<"DesignPage">
345
+ version?: Prisma.IntWithAggregatesFilter<"DesignPage"> | number
346
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"DesignPage"> | Date | string
347
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"DesignPage"> | Date | string
348
+ }
349
+
350
+ export type DesignPageCreateInput = {
351
+ id?: string
352
+ name: string
353
+ order?: number
354
+ type?: string
355
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
356
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
357
+ version?: number
358
+ createdAt?: Date | string
359
+ updatedAt?: Date | string
360
+ design: Prisma.DesignCreateNestedOneWithoutPagesInput
361
+ parent?: Prisma.DesignPageCreateNestedOneWithoutChildrenInput
362
+ children?: Prisma.DesignPageCreateNestedManyWithoutParentInput
363
+ componentInstances?: Prisma.ComponentInstanceCreateNestedManyWithoutPageInput
364
+ blockInstances?: Prisma.BlockInstanceCreateNestedManyWithoutPageInput
365
+ pageVersions?: Prisma.PageVersionCreateNestedManyWithoutPageInput
366
+ }
367
+
368
+ export type DesignPageUncheckedCreateInput = {
369
+ id?: string
370
+ designId: string
371
+ parentId?: string | null
372
+ name: string
373
+ order?: number
374
+ type?: string
375
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
376
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
377
+ version?: number
378
+ createdAt?: Date | string
379
+ updatedAt?: Date | string
380
+ children?: Prisma.DesignPageUncheckedCreateNestedManyWithoutParentInput
381
+ componentInstances?: Prisma.ComponentInstanceUncheckedCreateNestedManyWithoutPageInput
382
+ blockInstances?: Prisma.BlockInstanceUncheckedCreateNestedManyWithoutPageInput
383
+ pageVersions?: Prisma.PageVersionUncheckedCreateNestedManyWithoutPageInput
384
+ }
385
+
386
+ export type DesignPageUpdateInput = {
387
+ id?: Prisma.StringFieldUpdateOperationsInput | string
388
+ name?: Prisma.StringFieldUpdateOperationsInput | string
389
+ order?: Prisma.IntFieldUpdateOperationsInput | number
390
+ type?: Prisma.StringFieldUpdateOperationsInput | string
391
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
392
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
393
+ version?: Prisma.IntFieldUpdateOperationsInput | number
394
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
395
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
396
+ design?: Prisma.DesignUpdateOneRequiredWithoutPagesNestedInput
397
+ parent?: Prisma.DesignPageUpdateOneWithoutChildrenNestedInput
398
+ children?: Prisma.DesignPageUpdateManyWithoutParentNestedInput
399
+ componentInstances?: Prisma.ComponentInstanceUpdateManyWithoutPageNestedInput
400
+ blockInstances?: Prisma.BlockInstanceUpdateManyWithoutPageNestedInput
401
+ pageVersions?: Prisma.PageVersionUpdateManyWithoutPageNestedInput
402
+ }
403
+
404
+ export type DesignPageUncheckedUpdateInput = {
405
+ id?: Prisma.StringFieldUpdateOperationsInput | string
406
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
407
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
408
+ name?: Prisma.StringFieldUpdateOperationsInput | string
409
+ order?: Prisma.IntFieldUpdateOperationsInput | number
410
+ type?: Prisma.StringFieldUpdateOperationsInput | string
411
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
412
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
413
+ version?: Prisma.IntFieldUpdateOperationsInput | number
414
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
415
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
416
+ children?: Prisma.DesignPageUncheckedUpdateManyWithoutParentNestedInput
417
+ componentInstances?: Prisma.ComponentInstanceUncheckedUpdateManyWithoutPageNestedInput
418
+ blockInstances?: Prisma.BlockInstanceUncheckedUpdateManyWithoutPageNestedInput
419
+ pageVersions?: Prisma.PageVersionUncheckedUpdateManyWithoutPageNestedInput
420
+ }
421
+
422
+ export type DesignPageCreateManyInput = {
423
+ id?: string
424
+ designId: string
425
+ parentId?: string | null
426
+ name: string
427
+ order?: number
428
+ type?: string
429
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
430
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
431
+ version?: number
432
+ createdAt?: Date | string
433
+ updatedAt?: Date | string
434
+ }
435
+
436
+ export type DesignPageUpdateManyMutationInput = {
437
+ id?: Prisma.StringFieldUpdateOperationsInput | string
438
+ name?: Prisma.StringFieldUpdateOperationsInput | string
439
+ order?: Prisma.IntFieldUpdateOperationsInput | number
440
+ type?: Prisma.StringFieldUpdateOperationsInput | string
441
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
442
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
443
+ version?: Prisma.IntFieldUpdateOperationsInput | number
444
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
445
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
446
+ }
447
+
448
+ export type DesignPageUncheckedUpdateManyInput = {
449
+ id?: Prisma.StringFieldUpdateOperationsInput | string
450
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
451
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
452
+ name?: Prisma.StringFieldUpdateOperationsInput | string
453
+ order?: Prisma.IntFieldUpdateOperationsInput | number
454
+ type?: Prisma.StringFieldUpdateOperationsInput | string
455
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
456
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
457
+ version?: Prisma.IntFieldUpdateOperationsInput | number
458
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
459
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
460
+ }
461
+
462
+ export type DesignPageListRelationFilter = {
463
+ every?: Prisma.DesignPageWhereInput
464
+ some?: Prisma.DesignPageWhereInput
465
+ none?: Prisma.DesignPageWhereInput
466
+ }
467
+
468
+ export type DesignPageOrderByRelationAggregateInput = {
469
+ _count?: Prisma.SortOrder
470
+ }
471
+
472
+ export type DesignPageNullableScalarRelationFilter = {
473
+ is?: Prisma.DesignPageWhereInput | null
474
+ isNot?: Prisma.DesignPageWhereInput | null
475
+ }
476
+
477
+ export type DesignPageCountOrderByAggregateInput = {
478
+ id?: Prisma.SortOrder
479
+ designId?: Prisma.SortOrder
480
+ parentId?: Prisma.SortOrder
481
+ name?: Prisma.SortOrder
482
+ order?: Prisma.SortOrder
483
+ type?: Prisma.SortOrder
484
+ canvas?: Prisma.SortOrder
485
+ content?: Prisma.SortOrder
486
+ version?: Prisma.SortOrder
487
+ createdAt?: Prisma.SortOrder
488
+ updatedAt?: Prisma.SortOrder
489
+ }
490
+
491
+ export type DesignPageAvgOrderByAggregateInput = {
492
+ order?: Prisma.SortOrder
493
+ version?: Prisma.SortOrder
494
+ }
495
+
496
+ export type DesignPageMaxOrderByAggregateInput = {
497
+ id?: Prisma.SortOrder
498
+ designId?: Prisma.SortOrder
499
+ parentId?: Prisma.SortOrder
500
+ name?: Prisma.SortOrder
501
+ order?: Prisma.SortOrder
502
+ type?: Prisma.SortOrder
503
+ version?: Prisma.SortOrder
504
+ createdAt?: Prisma.SortOrder
505
+ updatedAt?: Prisma.SortOrder
506
+ }
507
+
508
+ export type DesignPageMinOrderByAggregateInput = {
509
+ id?: Prisma.SortOrder
510
+ designId?: Prisma.SortOrder
511
+ parentId?: Prisma.SortOrder
512
+ name?: Prisma.SortOrder
513
+ order?: Prisma.SortOrder
514
+ type?: Prisma.SortOrder
515
+ version?: Prisma.SortOrder
516
+ createdAt?: Prisma.SortOrder
517
+ updatedAt?: Prisma.SortOrder
518
+ }
519
+
520
+ export type DesignPageSumOrderByAggregateInput = {
521
+ order?: Prisma.SortOrder
522
+ version?: Prisma.SortOrder
523
+ }
524
+
525
+ export type DesignPageScalarRelationFilter = {
526
+ is?: Prisma.DesignPageWhereInput
527
+ isNot?: Prisma.DesignPageWhereInput
528
+ }
529
+
530
+ export type DesignPageCreateNestedManyWithoutDesignInput = {
531
+ create?: Prisma.XOR<Prisma.DesignPageCreateWithoutDesignInput, Prisma.DesignPageUncheckedCreateWithoutDesignInput> | Prisma.DesignPageCreateWithoutDesignInput[] | Prisma.DesignPageUncheckedCreateWithoutDesignInput[]
532
+ connectOrCreate?: Prisma.DesignPageCreateOrConnectWithoutDesignInput | Prisma.DesignPageCreateOrConnectWithoutDesignInput[]
533
+ createMany?: Prisma.DesignPageCreateManyDesignInputEnvelope
534
+ connect?: Prisma.DesignPageWhereUniqueInput | Prisma.DesignPageWhereUniqueInput[]
535
+ }
536
+
537
+ export type DesignPageUncheckedCreateNestedManyWithoutDesignInput = {
538
+ create?: Prisma.XOR<Prisma.DesignPageCreateWithoutDesignInput, Prisma.DesignPageUncheckedCreateWithoutDesignInput> | Prisma.DesignPageCreateWithoutDesignInput[] | Prisma.DesignPageUncheckedCreateWithoutDesignInput[]
539
+ connectOrCreate?: Prisma.DesignPageCreateOrConnectWithoutDesignInput | Prisma.DesignPageCreateOrConnectWithoutDesignInput[]
540
+ createMany?: Prisma.DesignPageCreateManyDesignInputEnvelope
541
+ connect?: Prisma.DesignPageWhereUniqueInput | Prisma.DesignPageWhereUniqueInput[]
542
+ }
543
+
544
+ export type DesignPageUpdateManyWithoutDesignNestedInput = {
545
+ create?: Prisma.XOR<Prisma.DesignPageCreateWithoutDesignInput, Prisma.DesignPageUncheckedCreateWithoutDesignInput> | Prisma.DesignPageCreateWithoutDesignInput[] | Prisma.DesignPageUncheckedCreateWithoutDesignInput[]
546
+ connectOrCreate?: Prisma.DesignPageCreateOrConnectWithoutDesignInput | Prisma.DesignPageCreateOrConnectWithoutDesignInput[]
547
+ upsert?: Prisma.DesignPageUpsertWithWhereUniqueWithoutDesignInput | Prisma.DesignPageUpsertWithWhereUniqueWithoutDesignInput[]
548
+ createMany?: Prisma.DesignPageCreateManyDesignInputEnvelope
549
+ set?: Prisma.DesignPageWhereUniqueInput | Prisma.DesignPageWhereUniqueInput[]
550
+ disconnect?: Prisma.DesignPageWhereUniqueInput | Prisma.DesignPageWhereUniqueInput[]
551
+ delete?: Prisma.DesignPageWhereUniqueInput | Prisma.DesignPageWhereUniqueInput[]
552
+ connect?: Prisma.DesignPageWhereUniqueInput | Prisma.DesignPageWhereUniqueInput[]
553
+ update?: Prisma.DesignPageUpdateWithWhereUniqueWithoutDesignInput | Prisma.DesignPageUpdateWithWhereUniqueWithoutDesignInput[]
554
+ updateMany?: Prisma.DesignPageUpdateManyWithWhereWithoutDesignInput | Prisma.DesignPageUpdateManyWithWhereWithoutDesignInput[]
555
+ deleteMany?: Prisma.DesignPageScalarWhereInput | Prisma.DesignPageScalarWhereInput[]
556
+ }
557
+
558
+ export type DesignPageUncheckedUpdateManyWithoutDesignNestedInput = {
559
+ create?: Prisma.XOR<Prisma.DesignPageCreateWithoutDesignInput, Prisma.DesignPageUncheckedCreateWithoutDesignInput> | Prisma.DesignPageCreateWithoutDesignInput[] | Prisma.DesignPageUncheckedCreateWithoutDesignInput[]
560
+ connectOrCreate?: Prisma.DesignPageCreateOrConnectWithoutDesignInput | Prisma.DesignPageCreateOrConnectWithoutDesignInput[]
561
+ upsert?: Prisma.DesignPageUpsertWithWhereUniqueWithoutDesignInput | Prisma.DesignPageUpsertWithWhereUniqueWithoutDesignInput[]
562
+ createMany?: Prisma.DesignPageCreateManyDesignInputEnvelope
563
+ set?: Prisma.DesignPageWhereUniqueInput | Prisma.DesignPageWhereUniqueInput[]
564
+ disconnect?: Prisma.DesignPageWhereUniqueInput | Prisma.DesignPageWhereUniqueInput[]
565
+ delete?: Prisma.DesignPageWhereUniqueInput | Prisma.DesignPageWhereUniqueInput[]
566
+ connect?: Prisma.DesignPageWhereUniqueInput | Prisma.DesignPageWhereUniqueInput[]
567
+ update?: Prisma.DesignPageUpdateWithWhereUniqueWithoutDesignInput | Prisma.DesignPageUpdateWithWhereUniqueWithoutDesignInput[]
568
+ updateMany?: Prisma.DesignPageUpdateManyWithWhereWithoutDesignInput | Prisma.DesignPageUpdateManyWithWhereWithoutDesignInput[]
569
+ deleteMany?: Prisma.DesignPageScalarWhereInput | Prisma.DesignPageScalarWhereInput[]
570
+ }
571
+
572
+ export type DesignPageCreateNestedOneWithoutChildrenInput = {
573
+ create?: Prisma.XOR<Prisma.DesignPageCreateWithoutChildrenInput, Prisma.DesignPageUncheckedCreateWithoutChildrenInput>
574
+ connectOrCreate?: Prisma.DesignPageCreateOrConnectWithoutChildrenInput
575
+ connect?: Prisma.DesignPageWhereUniqueInput
576
+ }
577
+
578
+ export type DesignPageCreateNestedManyWithoutParentInput = {
579
+ create?: Prisma.XOR<Prisma.DesignPageCreateWithoutParentInput, Prisma.DesignPageUncheckedCreateWithoutParentInput> | Prisma.DesignPageCreateWithoutParentInput[] | Prisma.DesignPageUncheckedCreateWithoutParentInput[]
580
+ connectOrCreate?: Prisma.DesignPageCreateOrConnectWithoutParentInput | Prisma.DesignPageCreateOrConnectWithoutParentInput[]
581
+ createMany?: Prisma.DesignPageCreateManyParentInputEnvelope
582
+ connect?: Prisma.DesignPageWhereUniqueInput | Prisma.DesignPageWhereUniqueInput[]
583
+ }
584
+
585
+ export type DesignPageUncheckedCreateNestedManyWithoutParentInput = {
586
+ create?: Prisma.XOR<Prisma.DesignPageCreateWithoutParentInput, Prisma.DesignPageUncheckedCreateWithoutParentInput> | Prisma.DesignPageCreateWithoutParentInput[] | Prisma.DesignPageUncheckedCreateWithoutParentInput[]
587
+ connectOrCreate?: Prisma.DesignPageCreateOrConnectWithoutParentInput | Prisma.DesignPageCreateOrConnectWithoutParentInput[]
588
+ createMany?: Prisma.DesignPageCreateManyParentInputEnvelope
589
+ connect?: Prisma.DesignPageWhereUniqueInput | Prisma.DesignPageWhereUniqueInput[]
590
+ }
591
+
592
+ export type DesignPageUpdateOneWithoutChildrenNestedInput = {
593
+ create?: Prisma.XOR<Prisma.DesignPageCreateWithoutChildrenInput, Prisma.DesignPageUncheckedCreateWithoutChildrenInput>
594
+ connectOrCreate?: Prisma.DesignPageCreateOrConnectWithoutChildrenInput
595
+ upsert?: Prisma.DesignPageUpsertWithoutChildrenInput
596
+ disconnect?: Prisma.DesignPageWhereInput | boolean
597
+ delete?: Prisma.DesignPageWhereInput | boolean
598
+ connect?: Prisma.DesignPageWhereUniqueInput
599
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DesignPageUpdateToOneWithWhereWithoutChildrenInput, Prisma.DesignPageUpdateWithoutChildrenInput>, Prisma.DesignPageUncheckedUpdateWithoutChildrenInput>
600
+ }
601
+
602
+ export type DesignPageUpdateManyWithoutParentNestedInput = {
603
+ create?: Prisma.XOR<Prisma.DesignPageCreateWithoutParentInput, Prisma.DesignPageUncheckedCreateWithoutParentInput> | Prisma.DesignPageCreateWithoutParentInput[] | Prisma.DesignPageUncheckedCreateWithoutParentInput[]
604
+ connectOrCreate?: Prisma.DesignPageCreateOrConnectWithoutParentInput | Prisma.DesignPageCreateOrConnectWithoutParentInput[]
605
+ upsert?: Prisma.DesignPageUpsertWithWhereUniqueWithoutParentInput | Prisma.DesignPageUpsertWithWhereUniqueWithoutParentInput[]
606
+ createMany?: Prisma.DesignPageCreateManyParentInputEnvelope
607
+ set?: Prisma.DesignPageWhereUniqueInput | Prisma.DesignPageWhereUniqueInput[]
608
+ disconnect?: Prisma.DesignPageWhereUniqueInput | Prisma.DesignPageWhereUniqueInput[]
609
+ delete?: Prisma.DesignPageWhereUniqueInput | Prisma.DesignPageWhereUniqueInput[]
610
+ connect?: Prisma.DesignPageWhereUniqueInput | Prisma.DesignPageWhereUniqueInput[]
611
+ update?: Prisma.DesignPageUpdateWithWhereUniqueWithoutParentInput | Prisma.DesignPageUpdateWithWhereUniqueWithoutParentInput[]
612
+ updateMany?: Prisma.DesignPageUpdateManyWithWhereWithoutParentInput | Prisma.DesignPageUpdateManyWithWhereWithoutParentInput[]
613
+ deleteMany?: Prisma.DesignPageScalarWhereInput | Prisma.DesignPageScalarWhereInput[]
614
+ }
615
+
616
+ export type DesignPageUncheckedUpdateManyWithoutParentNestedInput = {
617
+ create?: Prisma.XOR<Prisma.DesignPageCreateWithoutParentInput, Prisma.DesignPageUncheckedCreateWithoutParentInput> | Prisma.DesignPageCreateWithoutParentInput[] | Prisma.DesignPageUncheckedCreateWithoutParentInput[]
618
+ connectOrCreate?: Prisma.DesignPageCreateOrConnectWithoutParentInput | Prisma.DesignPageCreateOrConnectWithoutParentInput[]
619
+ upsert?: Prisma.DesignPageUpsertWithWhereUniqueWithoutParentInput | Prisma.DesignPageUpsertWithWhereUniqueWithoutParentInput[]
620
+ createMany?: Prisma.DesignPageCreateManyParentInputEnvelope
621
+ set?: Prisma.DesignPageWhereUniqueInput | Prisma.DesignPageWhereUniqueInput[]
622
+ disconnect?: Prisma.DesignPageWhereUniqueInput | Prisma.DesignPageWhereUniqueInput[]
623
+ delete?: Prisma.DesignPageWhereUniqueInput | Prisma.DesignPageWhereUniqueInput[]
624
+ connect?: Prisma.DesignPageWhereUniqueInput | Prisma.DesignPageWhereUniqueInput[]
625
+ update?: Prisma.DesignPageUpdateWithWhereUniqueWithoutParentInput | Prisma.DesignPageUpdateWithWhereUniqueWithoutParentInput[]
626
+ updateMany?: Prisma.DesignPageUpdateManyWithWhereWithoutParentInput | Prisma.DesignPageUpdateManyWithWhereWithoutParentInput[]
627
+ deleteMany?: Prisma.DesignPageScalarWhereInput | Prisma.DesignPageScalarWhereInput[]
628
+ }
629
+
630
+ export type DesignPageCreateNestedOneWithoutComponentInstancesInput = {
631
+ create?: Prisma.XOR<Prisma.DesignPageCreateWithoutComponentInstancesInput, Prisma.DesignPageUncheckedCreateWithoutComponentInstancesInput>
632
+ connectOrCreate?: Prisma.DesignPageCreateOrConnectWithoutComponentInstancesInput
633
+ connect?: Prisma.DesignPageWhereUniqueInput
634
+ }
635
+
636
+ export type DesignPageUpdateOneRequiredWithoutComponentInstancesNestedInput = {
637
+ create?: Prisma.XOR<Prisma.DesignPageCreateWithoutComponentInstancesInput, Prisma.DesignPageUncheckedCreateWithoutComponentInstancesInput>
638
+ connectOrCreate?: Prisma.DesignPageCreateOrConnectWithoutComponentInstancesInput
639
+ upsert?: Prisma.DesignPageUpsertWithoutComponentInstancesInput
640
+ connect?: Prisma.DesignPageWhereUniqueInput
641
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DesignPageUpdateToOneWithWhereWithoutComponentInstancesInput, Prisma.DesignPageUpdateWithoutComponentInstancesInput>, Prisma.DesignPageUncheckedUpdateWithoutComponentInstancesInput>
642
+ }
643
+
644
+ export type DesignPageCreateNestedOneWithoutBlockInstancesInput = {
645
+ create?: Prisma.XOR<Prisma.DesignPageCreateWithoutBlockInstancesInput, Prisma.DesignPageUncheckedCreateWithoutBlockInstancesInput>
646
+ connectOrCreate?: Prisma.DesignPageCreateOrConnectWithoutBlockInstancesInput
647
+ connect?: Prisma.DesignPageWhereUniqueInput
648
+ }
649
+
650
+ export type DesignPageUpdateOneRequiredWithoutBlockInstancesNestedInput = {
651
+ create?: Prisma.XOR<Prisma.DesignPageCreateWithoutBlockInstancesInput, Prisma.DesignPageUncheckedCreateWithoutBlockInstancesInput>
652
+ connectOrCreate?: Prisma.DesignPageCreateOrConnectWithoutBlockInstancesInput
653
+ upsert?: Prisma.DesignPageUpsertWithoutBlockInstancesInput
654
+ connect?: Prisma.DesignPageWhereUniqueInput
655
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DesignPageUpdateToOneWithWhereWithoutBlockInstancesInput, Prisma.DesignPageUpdateWithoutBlockInstancesInput>, Prisma.DesignPageUncheckedUpdateWithoutBlockInstancesInput>
656
+ }
657
+
658
+ export type DesignPageCreateNestedOneWithoutPageVersionsInput = {
659
+ create?: Prisma.XOR<Prisma.DesignPageCreateWithoutPageVersionsInput, Prisma.DesignPageUncheckedCreateWithoutPageVersionsInput>
660
+ connectOrCreate?: Prisma.DesignPageCreateOrConnectWithoutPageVersionsInput
661
+ connect?: Prisma.DesignPageWhereUniqueInput
662
+ }
663
+
664
+ export type DesignPageUpdateOneRequiredWithoutPageVersionsNestedInput = {
665
+ create?: Prisma.XOR<Prisma.DesignPageCreateWithoutPageVersionsInput, Prisma.DesignPageUncheckedCreateWithoutPageVersionsInput>
666
+ connectOrCreate?: Prisma.DesignPageCreateOrConnectWithoutPageVersionsInput
667
+ upsert?: Prisma.DesignPageUpsertWithoutPageVersionsInput
668
+ connect?: Prisma.DesignPageWhereUniqueInput
669
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DesignPageUpdateToOneWithWhereWithoutPageVersionsInput, Prisma.DesignPageUpdateWithoutPageVersionsInput>, Prisma.DesignPageUncheckedUpdateWithoutPageVersionsInput>
670
+ }
671
+
672
+ export type DesignPageCreateWithoutDesignInput = {
673
+ id?: string
674
+ name: string
675
+ order?: number
676
+ type?: string
677
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
678
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
679
+ version?: number
680
+ createdAt?: Date | string
681
+ updatedAt?: Date | string
682
+ parent?: Prisma.DesignPageCreateNestedOneWithoutChildrenInput
683
+ children?: Prisma.DesignPageCreateNestedManyWithoutParentInput
684
+ componentInstances?: Prisma.ComponentInstanceCreateNestedManyWithoutPageInput
685
+ blockInstances?: Prisma.BlockInstanceCreateNestedManyWithoutPageInput
686
+ pageVersions?: Prisma.PageVersionCreateNestedManyWithoutPageInput
687
+ }
688
+
689
+ export type DesignPageUncheckedCreateWithoutDesignInput = {
690
+ id?: string
691
+ parentId?: string | null
692
+ name: string
693
+ order?: number
694
+ type?: string
695
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
696
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
697
+ version?: number
698
+ createdAt?: Date | string
699
+ updatedAt?: Date | string
700
+ children?: Prisma.DesignPageUncheckedCreateNestedManyWithoutParentInput
701
+ componentInstances?: Prisma.ComponentInstanceUncheckedCreateNestedManyWithoutPageInput
702
+ blockInstances?: Prisma.BlockInstanceUncheckedCreateNestedManyWithoutPageInput
703
+ pageVersions?: Prisma.PageVersionUncheckedCreateNestedManyWithoutPageInput
704
+ }
705
+
706
+ export type DesignPageCreateOrConnectWithoutDesignInput = {
707
+ where: Prisma.DesignPageWhereUniqueInput
708
+ create: Prisma.XOR<Prisma.DesignPageCreateWithoutDesignInput, Prisma.DesignPageUncheckedCreateWithoutDesignInput>
709
+ }
710
+
711
+ export type DesignPageCreateManyDesignInputEnvelope = {
712
+ data: Prisma.DesignPageCreateManyDesignInput | Prisma.DesignPageCreateManyDesignInput[]
713
+ }
714
+
715
+ export type DesignPageUpsertWithWhereUniqueWithoutDesignInput = {
716
+ where: Prisma.DesignPageWhereUniqueInput
717
+ update: Prisma.XOR<Prisma.DesignPageUpdateWithoutDesignInput, Prisma.DesignPageUncheckedUpdateWithoutDesignInput>
718
+ create: Prisma.XOR<Prisma.DesignPageCreateWithoutDesignInput, Prisma.DesignPageUncheckedCreateWithoutDesignInput>
719
+ }
720
+
721
+ export type DesignPageUpdateWithWhereUniqueWithoutDesignInput = {
722
+ where: Prisma.DesignPageWhereUniqueInput
723
+ data: Prisma.XOR<Prisma.DesignPageUpdateWithoutDesignInput, Prisma.DesignPageUncheckedUpdateWithoutDesignInput>
724
+ }
725
+
726
+ export type DesignPageUpdateManyWithWhereWithoutDesignInput = {
727
+ where: Prisma.DesignPageScalarWhereInput
728
+ data: Prisma.XOR<Prisma.DesignPageUpdateManyMutationInput, Prisma.DesignPageUncheckedUpdateManyWithoutDesignInput>
729
+ }
730
+
731
+ export type DesignPageScalarWhereInput = {
732
+ AND?: Prisma.DesignPageScalarWhereInput | Prisma.DesignPageScalarWhereInput[]
733
+ OR?: Prisma.DesignPageScalarWhereInput[]
734
+ NOT?: Prisma.DesignPageScalarWhereInput | Prisma.DesignPageScalarWhereInput[]
735
+ id?: Prisma.StringFilter<"DesignPage"> | string
736
+ designId?: Prisma.StringFilter<"DesignPage"> | string
737
+ parentId?: Prisma.StringNullableFilter<"DesignPage"> | string | null
738
+ name?: Prisma.StringFilter<"DesignPage"> | string
739
+ order?: Prisma.IntFilter<"DesignPage"> | number
740
+ type?: Prisma.StringFilter<"DesignPage"> | string
741
+ canvas?: Prisma.JsonNullableFilter<"DesignPage">
742
+ content?: Prisma.JsonNullableFilter<"DesignPage">
743
+ version?: Prisma.IntFilter<"DesignPage"> | number
744
+ createdAt?: Prisma.DateTimeFilter<"DesignPage"> | Date | string
745
+ updatedAt?: Prisma.DateTimeFilter<"DesignPage"> | Date | string
746
+ }
747
+
748
+ export type DesignPageCreateWithoutChildrenInput = {
749
+ id?: string
750
+ name: string
751
+ order?: number
752
+ type?: string
753
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
754
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
755
+ version?: number
756
+ createdAt?: Date | string
757
+ updatedAt?: Date | string
758
+ design: Prisma.DesignCreateNestedOneWithoutPagesInput
759
+ parent?: Prisma.DesignPageCreateNestedOneWithoutChildrenInput
760
+ componentInstances?: Prisma.ComponentInstanceCreateNestedManyWithoutPageInput
761
+ blockInstances?: Prisma.BlockInstanceCreateNestedManyWithoutPageInput
762
+ pageVersions?: Prisma.PageVersionCreateNestedManyWithoutPageInput
763
+ }
764
+
765
+ export type DesignPageUncheckedCreateWithoutChildrenInput = {
766
+ id?: string
767
+ designId: string
768
+ parentId?: string | null
769
+ name: string
770
+ order?: number
771
+ type?: string
772
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
773
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
774
+ version?: number
775
+ createdAt?: Date | string
776
+ updatedAt?: Date | string
777
+ componentInstances?: Prisma.ComponentInstanceUncheckedCreateNestedManyWithoutPageInput
778
+ blockInstances?: Prisma.BlockInstanceUncheckedCreateNestedManyWithoutPageInput
779
+ pageVersions?: Prisma.PageVersionUncheckedCreateNestedManyWithoutPageInput
780
+ }
781
+
782
+ export type DesignPageCreateOrConnectWithoutChildrenInput = {
783
+ where: Prisma.DesignPageWhereUniqueInput
784
+ create: Prisma.XOR<Prisma.DesignPageCreateWithoutChildrenInput, Prisma.DesignPageUncheckedCreateWithoutChildrenInput>
785
+ }
786
+
787
+ export type DesignPageCreateWithoutParentInput = {
788
+ id?: string
789
+ name: string
790
+ order?: number
791
+ type?: string
792
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
793
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
794
+ version?: number
795
+ createdAt?: Date | string
796
+ updatedAt?: Date | string
797
+ design: Prisma.DesignCreateNestedOneWithoutPagesInput
798
+ children?: Prisma.DesignPageCreateNestedManyWithoutParentInput
799
+ componentInstances?: Prisma.ComponentInstanceCreateNestedManyWithoutPageInput
800
+ blockInstances?: Prisma.BlockInstanceCreateNestedManyWithoutPageInput
801
+ pageVersions?: Prisma.PageVersionCreateNestedManyWithoutPageInput
802
+ }
803
+
804
+ export type DesignPageUncheckedCreateWithoutParentInput = {
805
+ id?: string
806
+ designId: string
807
+ name: string
808
+ order?: number
809
+ type?: string
810
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
811
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
812
+ version?: number
813
+ createdAt?: Date | string
814
+ updatedAt?: Date | string
815
+ children?: Prisma.DesignPageUncheckedCreateNestedManyWithoutParentInput
816
+ componentInstances?: Prisma.ComponentInstanceUncheckedCreateNestedManyWithoutPageInput
817
+ blockInstances?: Prisma.BlockInstanceUncheckedCreateNestedManyWithoutPageInput
818
+ pageVersions?: Prisma.PageVersionUncheckedCreateNestedManyWithoutPageInput
819
+ }
820
+
821
+ export type DesignPageCreateOrConnectWithoutParentInput = {
822
+ where: Prisma.DesignPageWhereUniqueInput
823
+ create: Prisma.XOR<Prisma.DesignPageCreateWithoutParentInput, Prisma.DesignPageUncheckedCreateWithoutParentInput>
824
+ }
825
+
826
+ export type DesignPageCreateManyParentInputEnvelope = {
827
+ data: Prisma.DesignPageCreateManyParentInput | Prisma.DesignPageCreateManyParentInput[]
828
+ }
829
+
830
+ export type DesignPageUpsertWithoutChildrenInput = {
831
+ update: Prisma.XOR<Prisma.DesignPageUpdateWithoutChildrenInput, Prisma.DesignPageUncheckedUpdateWithoutChildrenInput>
832
+ create: Prisma.XOR<Prisma.DesignPageCreateWithoutChildrenInput, Prisma.DesignPageUncheckedCreateWithoutChildrenInput>
833
+ where?: Prisma.DesignPageWhereInput
834
+ }
835
+
836
+ export type DesignPageUpdateToOneWithWhereWithoutChildrenInput = {
837
+ where?: Prisma.DesignPageWhereInput
838
+ data: Prisma.XOR<Prisma.DesignPageUpdateWithoutChildrenInput, Prisma.DesignPageUncheckedUpdateWithoutChildrenInput>
839
+ }
840
+
841
+ export type DesignPageUpdateWithoutChildrenInput = {
842
+ id?: Prisma.StringFieldUpdateOperationsInput | string
843
+ name?: Prisma.StringFieldUpdateOperationsInput | string
844
+ order?: Prisma.IntFieldUpdateOperationsInput | number
845
+ type?: Prisma.StringFieldUpdateOperationsInput | string
846
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
847
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
848
+ version?: Prisma.IntFieldUpdateOperationsInput | number
849
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
850
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
851
+ design?: Prisma.DesignUpdateOneRequiredWithoutPagesNestedInput
852
+ parent?: Prisma.DesignPageUpdateOneWithoutChildrenNestedInput
853
+ componentInstances?: Prisma.ComponentInstanceUpdateManyWithoutPageNestedInput
854
+ blockInstances?: Prisma.BlockInstanceUpdateManyWithoutPageNestedInput
855
+ pageVersions?: Prisma.PageVersionUpdateManyWithoutPageNestedInput
856
+ }
857
+
858
+ export type DesignPageUncheckedUpdateWithoutChildrenInput = {
859
+ id?: Prisma.StringFieldUpdateOperationsInput | string
860
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
861
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
862
+ name?: Prisma.StringFieldUpdateOperationsInput | string
863
+ order?: Prisma.IntFieldUpdateOperationsInput | number
864
+ type?: Prisma.StringFieldUpdateOperationsInput | string
865
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
866
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
867
+ version?: Prisma.IntFieldUpdateOperationsInput | number
868
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
869
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
870
+ componentInstances?: Prisma.ComponentInstanceUncheckedUpdateManyWithoutPageNestedInput
871
+ blockInstances?: Prisma.BlockInstanceUncheckedUpdateManyWithoutPageNestedInput
872
+ pageVersions?: Prisma.PageVersionUncheckedUpdateManyWithoutPageNestedInput
873
+ }
874
+
875
+ export type DesignPageUpsertWithWhereUniqueWithoutParentInput = {
876
+ where: Prisma.DesignPageWhereUniqueInput
877
+ update: Prisma.XOR<Prisma.DesignPageUpdateWithoutParentInput, Prisma.DesignPageUncheckedUpdateWithoutParentInput>
878
+ create: Prisma.XOR<Prisma.DesignPageCreateWithoutParentInput, Prisma.DesignPageUncheckedCreateWithoutParentInput>
879
+ }
880
+
881
+ export type DesignPageUpdateWithWhereUniqueWithoutParentInput = {
882
+ where: Prisma.DesignPageWhereUniqueInput
883
+ data: Prisma.XOR<Prisma.DesignPageUpdateWithoutParentInput, Prisma.DesignPageUncheckedUpdateWithoutParentInput>
884
+ }
885
+
886
+ export type DesignPageUpdateManyWithWhereWithoutParentInput = {
887
+ where: Prisma.DesignPageScalarWhereInput
888
+ data: Prisma.XOR<Prisma.DesignPageUpdateManyMutationInput, Prisma.DesignPageUncheckedUpdateManyWithoutParentInput>
889
+ }
890
+
891
+ export type DesignPageCreateWithoutComponentInstancesInput = {
892
+ id?: string
893
+ name: string
894
+ order?: number
895
+ type?: string
896
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
897
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
898
+ version?: number
899
+ createdAt?: Date | string
900
+ updatedAt?: Date | string
901
+ design: Prisma.DesignCreateNestedOneWithoutPagesInput
902
+ parent?: Prisma.DesignPageCreateNestedOneWithoutChildrenInput
903
+ children?: Prisma.DesignPageCreateNestedManyWithoutParentInput
904
+ blockInstances?: Prisma.BlockInstanceCreateNestedManyWithoutPageInput
905
+ pageVersions?: Prisma.PageVersionCreateNestedManyWithoutPageInput
906
+ }
907
+
908
+ export type DesignPageUncheckedCreateWithoutComponentInstancesInput = {
909
+ id?: string
910
+ designId: string
911
+ parentId?: string | null
912
+ name: string
913
+ order?: number
914
+ type?: string
915
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
916
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
917
+ version?: number
918
+ createdAt?: Date | string
919
+ updatedAt?: Date | string
920
+ children?: Prisma.DesignPageUncheckedCreateNestedManyWithoutParentInput
921
+ blockInstances?: Prisma.BlockInstanceUncheckedCreateNestedManyWithoutPageInput
922
+ pageVersions?: Prisma.PageVersionUncheckedCreateNestedManyWithoutPageInput
923
+ }
924
+
925
+ export type DesignPageCreateOrConnectWithoutComponentInstancesInput = {
926
+ where: Prisma.DesignPageWhereUniqueInput
927
+ create: Prisma.XOR<Prisma.DesignPageCreateWithoutComponentInstancesInput, Prisma.DesignPageUncheckedCreateWithoutComponentInstancesInput>
928
+ }
929
+
930
+ export type DesignPageUpsertWithoutComponentInstancesInput = {
931
+ update: Prisma.XOR<Prisma.DesignPageUpdateWithoutComponentInstancesInput, Prisma.DesignPageUncheckedUpdateWithoutComponentInstancesInput>
932
+ create: Prisma.XOR<Prisma.DesignPageCreateWithoutComponentInstancesInput, Prisma.DesignPageUncheckedCreateWithoutComponentInstancesInput>
933
+ where?: Prisma.DesignPageWhereInput
934
+ }
935
+
936
+ export type DesignPageUpdateToOneWithWhereWithoutComponentInstancesInput = {
937
+ where?: Prisma.DesignPageWhereInput
938
+ data: Prisma.XOR<Prisma.DesignPageUpdateWithoutComponentInstancesInput, Prisma.DesignPageUncheckedUpdateWithoutComponentInstancesInput>
939
+ }
940
+
941
+ export type DesignPageUpdateWithoutComponentInstancesInput = {
942
+ id?: Prisma.StringFieldUpdateOperationsInput | string
943
+ name?: Prisma.StringFieldUpdateOperationsInput | string
944
+ order?: Prisma.IntFieldUpdateOperationsInput | number
945
+ type?: Prisma.StringFieldUpdateOperationsInput | string
946
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
947
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
948
+ version?: Prisma.IntFieldUpdateOperationsInput | number
949
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
950
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
951
+ design?: Prisma.DesignUpdateOneRequiredWithoutPagesNestedInput
952
+ parent?: Prisma.DesignPageUpdateOneWithoutChildrenNestedInput
953
+ children?: Prisma.DesignPageUpdateManyWithoutParentNestedInput
954
+ blockInstances?: Prisma.BlockInstanceUpdateManyWithoutPageNestedInput
955
+ pageVersions?: Prisma.PageVersionUpdateManyWithoutPageNestedInput
956
+ }
957
+
958
+ export type DesignPageUncheckedUpdateWithoutComponentInstancesInput = {
959
+ id?: Prisma.StringFieldUpdateOperationsInput | string
960
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
961
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
962
+ name?: Prisma.StringFieldUpdateOperationsInput | string
963
+ order?: Prisma.IntFieldUpdateOperationsInput | number
964
+ type?: Prisma.StringFieldUpdateOperationsInput | string
965
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
966
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
967
+ version?: Prisma.IntFieldUpdateOperationsInput | number
968
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
969
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
970
+ children?: Prisma.DesignPageUncheckedUpdateManyWithoutParentNestedInput
971
+ blockInstances?: Prisma.BlockInstanceUncheckedUpdateManyWithoutPageNestedInput
972
+ pageVersions?: Prisma.PageVersionUncheckedUpdateManyWithoutPageNestedInput
973
+ }
974
+
975
+ export type DesignPageCreateWithoutBlockInstancesInput = {
976
+ id?: string
977
+ name: string
978
+ order?: number
979
+ type?: string
980
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
981
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
982
+ version?: number
983
+ createdAt?: Date | string
984
+ updatedAt?: Date | string
985
+ design: Prisma.DesignCreateNestedOneWithoutPagesInput
986
+ parent?: Prisma.DesignPageCreateNestedOneWithoutChildrenInput
987
+ children?: Prisma.DesignPageCreateNestedManyWithoutParentInput
988
+ componentInstances?: Prisma.ComponentInstanceCreateNestedManyWithoutPageInput
989
+ pageVersions?: Prisma.PageVersionCreateNestedManyWithoutPageInput
990
+ }
991
+
992
+ export type DesignPageUncheckedCreateWithoutBlockInstancesInput = {
993
+ id?: string
994
+ designId: string
995
+ parentId?: string | null
996
+ name: string
997
+ order?: number
998
+ type?: string
999
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1000
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1001
+ version?: number
1002
+ createdAt?: Date | string
1003
+ updatedAt?: Date | string
1004
+ children?: Prisma.DesignPageUncheckedCreateNestedManyWithoutParentInput
1005
+ componentInstances?: Prisma.ComponentInstanceUncheckedCreateNestedManyWithoutPageInput
1006
+ pageVersions?: Prisma.PageVersionUncheckedCreateNestedManyWithoutPageInput
1007
+ }
1008
+
1009
+ export type DesignPageCreateOrConnectWithoutBlockInstancesInput = {
1010
+ where: Prisma.DesignPageWhereUniqueInput
1011
+ create: Prisma.XOR<Prisma.DesignPageCreateWithoutBlockInstancesInput, Prisma.DesignPageUncheckedCreateWithoutBlockInstancesInput>
1012
+ }
1013
+
1014
+ export type DesignPageUpsertWithoutBlockInstancesInput = {
1015
+ update: Prisma.XOR<Prisma.DesignPageUpdateWithoutBlockInstancesInput, Prisma.DesignPageUncheckedUpdateWithoutBlockInstancesInput>
1016
+ create: Prisma.XOR<Prisma.DesignPageCreateWithoutBlockInstancesInput, Prisma.DesignPageUncheckedCreateWithoutBlockInstancesInput>
1017
+ where?: Prisma.DesignPageWhereInput
1018
+ }
1019
+
1020
+ export type DesignPageUpdateToOneWithWhereWithoutBlockInstancesInput = {
1021
+ where?: Prisma.DesignPageWhereInput
1022
+ data: Prisma.XOR<Prisma.DesignPageUpdateWithoutBlockInstancesInput, Prisma.DesignPageUncheckedUpdateWithoutBlockInstancesInput>
1023
+ }
1024
+
1025
+ export type DesignPageUpdateWithoutBlockInstancesInput = {
1026
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1027
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1028
+ order?: Prisma.IntFieldUpdateOperationsInput | number
1029
+ type?: Prisma.StringFieldUpdateOperationsInput | string
1030
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1031
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1032
+ version?: Prisma.IntFieldUpdateOperationsInput | number
1033
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1034
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1035
+ design?: Prisma.DesignUpdateOneRequiredWithoutPagesNestedInput
1036
+ parent?: Prisma.DesignPageUpdateOneWithoutChildrenNestedInput
1037
+ children?: Prisma.DesignPageUpdateManyWithoutParentNestedInput
1038
+ componentInstances?: Prisma.ComponentInstanceUpdateManyWithoutPageNestedInput
1039
+ pageVersions?: Prisma.PageVersionUpdateManyWithoutPageNestedInput
1040
+ }
1041
+
1042
+ export type DesignPageUncheckedUpdateWithoutBlockInstancesInput = {
1043
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1044
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
1045
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1046
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1047
+ order?: Prisma.IntFieldUpdateOperationsInput | number
1048
+ type?: Prisma.StringFieldUpdateOperationsInput | string
1049
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1050
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1051
+ version?: Prisma.IntFieldUpdateOperationsInput | number
1052
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1053
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1054
+ children?: Prisma.DesignPageUncheckedUpdateManyWithoutParentNestedInput
1055
+ componentInstances?: Prisma.ComponentInstanceUncheckedUpdateManyWithoutPageNestedInput
1056
+ pageVersions?: Prisma.PageVersionUncheckedUpdateManyWithoutPageNestedInput
1057
+ }
1058
+
1059
+ export type DesignPageCreateWithoutPageVersionsInput = {
1060
+ id?: string
1061
+ name: string
1062
+ order?: number
1063
+ type?: string
1064
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1065
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1066
+ version?: number
1067
+ createdAt?: Date | string
1068
+ updatedAt?: Date | string
1069
+ design: Prisma.DesignCreateNestedOneWithoutPagesInput
1070
+ parent?: Prisma.DesignPageCreateNestedOneWithoutChildrenInput
1071
+ children?: Prisma.DesignPageCreateNestedManyWithoutParentInput
1072
+ componentInstances?: Prisma.ComponentInstanceCreateNestedManyWithoutPageInput
1073
+ blockInstances?: Prisma.BlockInstanceCreateNestedManyWithoutPageInput
1074
+ }
1075
+
1076
+ export type DesignPageUncheckedCreateWithoutPageVersionsInput = {
1077
+ id?: string
1078
+ designId: string
1079
+ parentId?: string | null
1080
+ name: string
1081
+ order?: number
1082
+ type?: string
1083
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1084
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1085
+ version?: number
1086
+ createdAt?: Date | string
1087
+ updatedAt?: Date | string
1088
+ children?: Prisma.DesignPageUncheckedCreateNestedManyWithoutParentInput
1089
+ componentInstances?: Prisma.ComponentInstanceUncheckedCreateNestedManyWithoutPageInput
1090
+ blockInstances?: Prisma.BlockInstanceUncheckedCreateNestedManyWithoutPageInput
1091
+ }
1092
+
1093
+ export type DesignPageCreateOrConnectWithoutPageVersionsInput = {
1094
+ where: Prisma.DesignPageWhereUniqueInput
1095
+ create: Prisma.XOR<Prisma.DesignPageCreateWithoutPageVersionsInput, Prisma.DesignPageUncheckedCreateWithoutPageVersionsInput>
1096
+ }
1097
+
1098
+ export type DesignPageUpsertWithoutPageVersionsInput = {
1099
+ update: Prisma.XOR<Prisma.DesignPageUpdateWithoutPageVersionsInput, Prisma.DesignPageUncheckedUpdateWithoutPageVersionsInput>
1100
+ create: Prisma.XOR<Prisma.DesignPageCreateWithoutPageVersionsInput, Prisma.DesignPageUncheckedCreateWithoutPageVersionsInput>
1101
+ where?: Prisma.DesignPageWhereInput
1102
+ }
1103
+
1104
+ export type DesignPageUpdateToOneWithWhereWithoutPageVersionsInput = {
1105
+ where?: Prisma.DesignPageWhereInput
1106
+ data: Prisma.XOR<Prisma.DesignPageUpdateWithoutPageVersionsInput, Prisma.DesignPageUncheckedUpdateWithoutPageVersionsInput>
1107
+ }
1108
+
1109
+ export type DesignPageUpdateWithoutPageVersionsInput = {
1110
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1111
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1112
+ order?: Prisma.IntFieldUpdateOperationsInput | number
1113
+ type?: Prisma.StringFieldUpdateOperationsInput | string
1114
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1115
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1116
+ version?: Prisma.IntFieldUpdateOperationsInput | number
1117
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1118
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1119
+ design?: Prisma.DesignUpdateOneRequiredWithoutPagesNestedInput
1120
+ parent?: Prisma.DesignPageUpdateOneWithoutChildrenNestedInput
1121
+ children?: Prisma.DesignPageUpdateManyWithoutParentNestedInput
1122
+ componentInstances?: Prisma.ComponentInstanceUpdateManyWithoutPageNestedInput
1123
+ blockInstances?: Prisma.BlockInstanceUpdateManyWithoutPageNestedInput
1124
+ }
1125
+
1126
+ export type DesignPageUncheckedUpdateWithoutPageVersionsInput = {
1127
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1128
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
1129
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1130
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1131
+ order?: Prisma.IntFieldUpdateOperationsInput | number
1132
+ type?: Prisma.StringFieldUpdateOperationsInput | string
1133
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1134
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1135
+ version?: Prisma.IntFieldUpdateOperationsInput | number
1136
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1137
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1138
+ children?: Prisma.DesignPageUncheckedUpdateManyWithoutParentNestedInput
1139
+ componentInstances?: Prisma.ComponentInstanceUncheckedUpdateManyWithoutPageNestedInput
1140
+ blockInstances?: Prisma.BlockInstanceUncheckedUpdateManyWithoutPageNestedInput
1141
+ }
1142
+
1143
+ export type DesignPageCreateManyDesignInput = {
1144
+ id?: string
1145
+ parentId?: string | null
1146
+ name: string
1147
+ order?: number
1148
+ type?: string
1149
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1150
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1151
+ version?: number
1152
+ createdAt?: Date | string
1153
+ updatedAt?: Date | string
1154
+ }
1155
+
1156
+ export type DesignPageUpdateWithoutDesignInput = {
1157
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1158
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1159
+ order?: Prisma.IntFieldUpdateOperationsInput | number
1160
+ type?: Prisma.StringFieldUpdateOperationsInput | string
1161
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1162
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1163
+ version?: Prisma.IntFieldUpdateOperationsInput | number
1164
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1165
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1166
+ parent?: Prisma.DesignPageUpdateOneWithoutChildrenNestedInput
1167
+ children?: Prisma.DesignPageUpdateManyWithoutParentNestedInput
1168
+ componentInstances?: Prisma.ComponentInstanceUpdateManyWithoutPageNestedInput
1169
+ blockInstances?: Prisma.BlockInstanceUpdateManyWithoutPageNestedInput
1170
+ pageVersions?: Prisma.PageVersionUpdateManyWithoutPageNestedInput
1171
+ }
1172
+
1173
+ export type DesignPageUncheckedUpdateWithoutDesignInput = {
1174
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1175
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1176
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1177
+ order?: Prisma.IntFieldUpdateOperationsInput | number
1178
+ type?: Prisma.StringFieldUpdateOperationsInput | string
1179
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1180
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1181
+ version?: Prisma.IntFieldUpdateOperationsInput | number
1182
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1183
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1184
+ children?: Prisma.DesignPageUncheckedUpdateManyWithoutParentNestedInput
1185
+ componentInstances?: Prisma.ComponentInstanceUncheckedUpdateManyWithoutPageNestedInput
1186
+ blockInstances?: Prisma.BlockInstanceUncheckedUpdateManyWithoutPageNestedInput
1187
+ pageVersions?: Prisma.PageVersionUncheckedUpdateManyWithoutPageNestedInput
1188
+ }
1189
+
1190
+ export type DesignPageUncheckedUpdateManyWithoutDesignInput = {
1191
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1192
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1193
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1194
+ order?: Prisma.IntFieldUpdateOperationsInput | number
1195
+ type?: Prisma.StringFieldUpdateOperationsInput | string
1196
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1197
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1198
+ version?: Prisma.IntFieldUpdateOperationsInput | number
1199
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1200
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1201
+ }
1202
+
1203
+ export type DesignPageCreateManyParentInput = {
1204
+ id?: string
1205
+ designId: string
1206
+ name: string
1207
+ order?: number
1208
+ type?: string
1209
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1210
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1211
+ version?: number
1212
+ createdAt?: Date | string
1213
+ updatedAt?: Date | string
1214
+ }
1215
+
1216
+ export type DesignPageUpdateWithoutParentInput = {
1217
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1218
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1219
+ order?: Prisma.IntFieldUpdateOperationsInput | number
1220
+ type?: Prisma.StringFieldUpdateOperationsInput | string
1221
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1222
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1223
+ version?: Prisma.IntFieldUpdateOperationsInput | number
1224
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1225
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1226
+ design?: Prisma.DesignUpdateOneRequiredWithoutPagesNestedInput
1227
+ children?: Prisma.DesignPageUpdateManyWithoutParentNestedInput
1228
+ componentInstances?: Prisma.ComponentInstanceUpdateManyWithoutPageNestedInput
1229
+ blockInstances?: Prisma.BlockInstanceUpdateManyWithoutPageNestedInput
1230
+ pageVersions?: Prisma.PageVersionUpdateManyWithoutPageNestedInput
1231
+ }
1232
+
1233
+ export type DesignPageUncheckedUpdateWithoutParentInput = {
1234
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1235
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
1236
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1237
+ order?: Prisma.IntFieldUpdateOperationsInput | number
1238
+ type?: Prisma.StringFieldUpdateOperationsInput | string
1239
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1240
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1241
+ version?: Prisma.IntFieldUpdateOperationsInput | number
1242
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1243
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1244
+ children?: Prisma.DesignPageUncheckedUpdateManyWithoutParentNestedInput
1245
+ componentInstances?: Prisma.ComponentInstanceUncheckedUpdateManyWithoutPageNestedInput
1246
+ blockInstances?: Prisma.BlockInstanceUncheckedUpdateManyWithoutPageNestedInput
1247
+ pageVersions?: Prisma.PageVersionUncheckedUpdateManyWithoutPageNestedInput
1248
+ }
1249
+
1250
+ export type DesignPageUncheckedUpdateManyWithoutParentInput = {
1251
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1252
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
1253
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1254
+ order?: Prisma.IntFieldUpdateOperationsInput | number
1255
+ type?: Prisma.StringFieldUpdateOperationsInput | string
1256
+ canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1257
+ content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1258
+ version?: Prisma.IntFieldUpdateOperationsInput | number
1259
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1260
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1261
+ }
1262
+
1263
+
1264
+ /**
1265
+ * Count Type DesignPageCountOutputType
1266
+ */
1267
+
1268
+ export type DesignPageCountOutputType = {
1269
+ children: number
1270
+ componentInstances: number
1271
+ blockInstances: number
1272
+ pageVersions: number
1273
+ }
1274
+
1275
+ export type DesignPageCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1276
+ children?: boolean | DesignPageCountOutputTypeCountChildrenArgs
1277
+ componentInstances?: boolean | DesignPageCountOutputTypeCountComponentInstancesArgs
1278
+ blockInstances?: boolean | DesignPageCountOutputTypeCountBlockInstancesArgs
1279
+ pageVersions?: boolean | DesignPageCountOutputTypeCountPageVersionsArgs
1280
+ }
1281
+
1282
+ /**
1283
+ * DesignPageCountOutputType without action
1284
+ */
1285
+ export type DesignPageCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1286
+ /**
1287
+ * Select specific fields to fetch from the DesignPageCountOutputType
1288
+ */
1289
+ select?: Prisma.DesignPageCountOutputTypeSelect<ExtArgs> | null
1290
+ }
1291
+
1292
+ /**
1293
+ * DesignPageCountOutputType without action
1294
+ */
1295
+ export type DesignPageCountOutputTypeCountChildrenArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1296
+ where?: Prisma.DesignPageWhereInput
1297
+ }
1298
+
1299
+ /**
1300
+ * DesignPageCountOutputType without action
1301
+ */
1302
+ export type DesignPageCountOutputTypeCountComponentInstancesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1303
+ where?: Prisma.ComponentInstanceWhereInput
1304
+ }
1305
+
1306
+ /**
1307
+ * DesignPageCountOutputType without action
1308
+ */
1309
+ export type DesignPageCountOutputTypeCountBlockInstancesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1310
+ where?: Prisma.BlockInstanceWhereInput
1311
+ }
1312
+
1313
+ /**
1314
+ * DesignPageCountOutputType without action
1315
+ */
1316
+ export type DesignPageCountOutputTypeCountPageVersionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1317
+ where?: Prisma.PageVersionWhereInput
1318
+ }
1319
+
1320
+
1321
+ export type DesignPageSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1322
+ id?: boolean
1323
+ designId?: boolean
1324
+ parentId?: boolean
1325
+ name?: boolean
1326
+ order?: boolean
1327
+ type?: boolean
1328
+ canvas?: boolean
1329
+ content?: boolean
1330
+ version?: boolean
1331
+ createdAt?: boolean
1332
+ updatedAt?: boolean
1333
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
1334
+ parent?: boolean | Prisma.DesignPage$parentArgs<ExtArgs>
1335
+ children?: boolean | Prisma.DesignPage$childrenArgs<ExtArgs>
1336
+ componentInstances?: boolean | Prisma.DesignPage$componentInstancesArgs<ExtArgs>
1337
+ blockInstances?: boolean | Prisma.DesignPage$blockInstancesArgs<ExtArgs>
1338
+ pageVersions?: boolean | Prisma.DesignPage$pageVersionsArgs<ExtArgs>
1339
+ _count?: boolean | Prisma.DesignPageCountOutputTypeDefaultArgs<ExtArgs>
1340
+ }, ExtArgs["result"]["designPage"]>
1341
+
1342
+ export type DesignPageSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1343
+ id?: boolean
1344
+ designId?: boolean
1345
+ parentId?: boolean
1346
+ name?: boolean
1347
+ order?: boolean
1348
+ type?: boolean
1349
+ canvas?: boolean
1350
+ content?: boolean
1351
+ version?: boolean
1352
+ createdAt?: boolean
1353
+ updatedAt?: boolean
1354
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
1355
+ parent?: boolean | Prisma.DesignPage$parentArgs<ExtArgs>
1356
+ }, ExtArgs["result"]["designPage"]>
1357
+
1358
+ export type DesignPageSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1359
+ id?: boolean
1360
+ designId?: boolean
1361
+ parentId?: boolean
1362
+ name?: boolean
1363
+ order?: boolean
1364
+ type?: boolean
1365
+ canvas?: boolean
1366
+ content?: boolean
1367
+ version?: boolean
1368
+ createdAt?: boolean
1369
+ updatedAt?: boolean
1370
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
1371
+ parent?: boolean | Prisma.DesignPage$parentArgs<ExtArgs>
1372
+ }, ExtArgs["result"]["designPage"]>
1373
+
1374
+ export type DesignPageSelectScalar = {
1375
+ id?: boolean
1376
+ designId?: boolean
1377
+ parentId?: boolean
1378
+ name?: boolean
1379
+ order?: boolean
1380
+ type?: boolean
1381
+ canvas?: boolean
1382
+ content?: boolean
1383
+ version?: boolean
1384
+ createdAt?: boolean
1385
+ updatedAt?: boolean
1386
+ }
1387
+
1388
+ export type DesignPageOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "designId" | "parentId" | "name" | "order" | "type" | "canvas" | "content" | "version" | "createdAt" | "updatedAt", ExtArgs["result"]["designPage"]>
1389
+ export type DesignPageInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1390
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
1391
+ parent?: boolean | Prisma.DesignPage$parentArgs<ExtArgs>
1392
+ children?: boolean | Prisma.DesignPage$childrenArgs<ExtArgs>
1393
+ componentInstances?: boolean | Prisma.DesignPage$componentInstancesArgs<ExtArgs>
1394
+ blockInstances?: boolean | Prisma.DesignPage$blockInstancesArgs<ExtArgs>
1395
+ pageVersions?: boolean | Prisma.DesignPage$pageVersionsArgs<ExtArgs>
1396
+ _count?: boolean | Prisma.DesignPageCountOutputTypeDefaultArgs<ExtArgs>
1397
+ }
1398
+ export type DesignPageIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1399
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
1400
+ parent?: boolean | Prisma.DesignPage$parentArgs<ExtArgs>
1401
+ }
1402
+ export type DesignPageIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1403
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
1404
+ parent?: boolean | Prisma.DesignPage$parentArgs<ExtArgs>
1405
+ }
1406
+
1407
+ export type $DesignPagePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1408
+ name: "DesignPage"
1409
+ objects: {
1410
+ design: Prisma.$DesignPayload<ExtArgs>
1411
+ parent: Prisma.$DesignPagePayload<ExtArgs> | null
1412
+ children: Prisma.$DesignPagePayload<ExtArgs>[]
1413
+ componentInstances: Prisma.$ComponentInstancePayload<ExtArgs>[]
1414
+ blockInstances: Prisma.$BlockInstancePayload<ExtArgs>[]
1415
+ pageVersions: Prisma.$PageVersionPayload<ExtArgs>[]
1416
+ }
1417
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1418
+ id: string
1419
+ designId: string
1420
+ parentId: string | null
1421
+ name: string
1422
+ order: number
1423
+ type: string
1424
+ canvas: runtime.JsonValue | null
1425
+ content: runtime.JsonValue | null
1426
+ version: number
1427
+ createdAt: Date
1428
+ updatedAt: Date
1429
+ }, ExtArgs["result"]["designPage"]>
1430
+ composites: {}
1431
+ }
1432
+
1433
+ export type DesignPageGetPayload<S extends boolean | null | undefined | DesignPageDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$DesignPagePayload, S>
1434
+
1435
+ export type DesignPageCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1436
+ Omit<DesignPageFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1437
+ select?: DesignPageCountAggregateInputType | true
1438
+ }
1439
+
1440
+ export interface DesignPageDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1441
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['DesignPage'], meta: { name: 'DesignPage' } }
1442
+ /**
1443
+ * Find zero or one DesignPage that matches the filter.
1444
+ * @param {DesignPageFindUniqueArgs} args - Arguments to find a DesignPage
1445
+ * @example
1446
+ * // Get one DesignPage
1447
+ * const designPage = await prisma.designPage.findUnique({
1448
+ * where: {
1449
+ * // ... provide filter here
1450
+ * }
1451
+ * })
1452
+ */
1453
+ findUnique<T extends DesignPageFindUniqueArgs>(args: Prisma.SelectSubset<T, DesignPageFindUniqueArgs<ExtArgs>>): Prisma.Prisma__DesignPageClient<runtime.Types.Result.GetResult<Prisma.$DesignPagePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1454
+
1455
+ /**
1456
+ * Find one DesignPage that matches the filter or throw an error with `error.code='P2025'`
1457
+ * if no matches were found.
1458
+ * @param {DesignPageFindUniqueOrThrowArgs} args - Arguments to find a DesignPage
1459
+ * @example
1460
+ * // Get one DesignPage
1461
+ * const designPage = await prisma.designPage.findUniqueOrThrow({
1462
+ * where: {
1463
+ * // ... provide filter here
1464
+ * }
1465
+ * })
1466
+ */
1467
+ findUniqueOrThrow<T extends DesignPageFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, DesignPageFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__DesignPageClient<runtime.Types.Result.GetResult<Prisma.$DesignPagePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1468
+
1469
+ /**
1470
+ * Find the first DesignPage that matches the filter.
1471
+ * Note, that providing `undefined` is treated as the value not being there.
1472
+ * Read more here: https://pris.ly/d/null-undefined
1473
+ * @param {DesignPageFindFirstArgs} args - Arguments to find a DesignPage
1474
+ * @example
1475
+ * // Get one DesignPage
1476
+ * const designPage = await prisma.designPage.findFirst({
1477
+ * where: {
1478
+ * // ... provide filter here
1479
+ * }
1480
+ * })
1481
+ */
1482
+ findFirst<T extends DesignPageFindFirstArgs>(args?: Prisma.SelectSubset<T, DesignPageFindFirstArgs<ExtArgs>>): Prisma.Prisma__DesignPageClient<runtime.Types.Result.GetResult<Prisma.$DesignPagePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1483
+
1484
+ /**
1485
+ * Find the first DesignPage that matches the filter or
1486
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1487
+ * Note, that providing `undefined` is treated as the value not being there.
1488
+ * Read more here: https://pris.ly/d/null-undefined
1489
+ * @param {DesignPageFindFirstOrThrowArgs} args - Arguments to find a DesignPage
1490
+ * @example
1491
+ * // Get one DesignPage
1492
+ * const designPage = await prisma.designPage.findFirstOrThrow({
1493
+ * where: {
1494
+ * // ... provide filter here
1495
+ * }
1496
+ * })
1497
+ */
1498
+ findFirstOrThrow<T extends DesignPageFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, DesignPageFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__DesignPageClient<runtime.Types.Result.GetResult<Prisma.$DesignPagePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1499
+
1500
+ /**
1501
+ * Find zero or more DesignPages that matches the filter.
1502
+ * Note, that providing `undefined` is treated as the value not being there.
1503
+ * Read more here: https://pris.ly/d/null-undefined
1504
+ * @param {DesignPageFindManyArgs} args - Arguments to filter and select certain fields only.
1505
+ * @example
1506
+ * // Get all DesignPages
1507
+ * const designPages = await prisma.designPage.findMany()
1508
+ *
1509
+ * // Get first 10 DesignPages
1510
+ * const designPages = await prisma.designPage.findMany({ take: 10 })
1511
+ *
1512
+ * // Only select the `id`
1513
+ * const designPageWithIdOnly = await prisma.designPage.findMany({ select: { id: true } })
1514
+ *
1515
+ */
1516
+ findMany<T extends DesignPageFindManyArgs>(args?: Prisma.SelectSubset<T, DesignPageFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DesignPagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1517
+
1518
+ /**
1519
+ * Create a DesignPage.
1520
+ * @param {DesignPageCreateArgs} args - Arguments to create a DesignPage.
1521
+ * @example
1522
+ * // Create one DesignPage
1523
+ * const DesignPage = await prisma.designPage.create({
1524
+ * data: {
1525
+ * // ... data to create a DesignPage
1526
+ * }
1527
+ * })
1528
+ *
1529
+ */
1530
+ create<T extends DesignPageCreateArgs>(args: Prisma.SelectSubset<T, DesignPageCreateArgs<ExtArgs>>): Prisma.Prisma__DesignPageClient<runtime.Types.Result.GetResult<Prisma.$DesignPagePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1531
+
1532
+ /**
1533
+ * Create many DesignPages.
1534
+ * @param {DesignPageCreateManyArgs} args - Arguments to create many DesignPages.
1535
+ * @example
1536
+ * // Create many DesignPages
1537
+ * const designPage = await prisma.designPage.createMany({
1538
+ * data: [
1539
+ * // ... provide data here
1540
+ * ]
1541
+ * })
1542
+ *
1543
+ */
1544
+ createMany<T extends DesignPageCreateManyArgs>(args?: Prisma.SelectSubset<T, DesignPageCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1545
+
1546
+ /**
1547
+ * Create many DesignPages and returns the data saved in the database.
1548
+ * @param {DesignPageCreateManyAndReturnArgs} args - Arguments to create many DesignPages.
1549
+ * @example
1550
+ * // Create many DesignPages
1551
+ * const designPage = await prisma.designPage.createManyAndReturn({
1552
+ * data: [
1553
+ * // ... provide data here
1554
+ * ]
1555
+ * })
1556
+ *
1557
+ * // Create many DesignPages and only return the `id`
1558
+ * const designPageWithIdOnly = await prisma.designPage.createManyAndReturn({
1559
+ * select: { id: true },
1560
+ * data: [
1561
+ * // ... provide data here
1562
+ * ]
1563
+ * })
1564
+ * Note, that providing `undefined` is treated as the value not being there.
1565
+ * Read more here: https://pris.ly/d/null-undefined
1566
+ *
1567
+ */
1568
+ createManyAndReturn<T extends DesignPageCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, DesignPageCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DesignPagePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1569
+
1570
+ /**
1571
+ * Delete a DesignPage.
1572
+ * @param {DesignPageDeleteArgs} args - Arguments to delete one DesignPage.
1573
+ * @example
1574
+ * // Delete one DesignPage
1575
+ * const DesignPage = await prisma.designPage.delete({
1576
+ * where: {
1577
+ * // ... filter to delete one DesignPage
1578
+ * }
1579
+ * })
1580
+ *
1581
+ */
1582
+ delete<T extends DesignPageDeleteArgs>(args: Prisma.SelectSubset<T, DesignPageDeleteArgs<ExtArgs>>): Prisma.Prisma__DesignPageClient<runtime.Types.Result.GetResult<Prisma.$DesignPagePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1583
+
1584
+ /**
1585
+ * Update one DesignPage.
1586
+ * @param {DesignPageUpdateArgs} args - Arguments to update one DesignPage.
1587
+ * @example
1588
+ * // Update one DesignPage
1589
+ * const designPage = await prisma.designPage.update({
1590
+ * where: {
1591
+ * // ... provide filter here
1592
+ * },
1593
+ * data: {
1594
+ * // ... provide data here
1595
+ * }
1596
+ * })
1597
+ *
1598
+ */
1599
+ update<T extends DesignPageUpdateArgs>(args: Prisma.SelectSubset<T, DesignPageUpdateArgs<ExtArgs>>): Prisma.Prisma__DesignPageClient<runtime.Types.Result.GetResult<Prisma.$DesignPagePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1600
+
1601
+ /**
1602
+ * Delete zero or more DesignPages.
1603
+ * @param {DesignPageDeleteManyArgs} args - Arguments to filter DesignPages to delete.
1604
+ * @example
1605
+ * // Delete a few DesignPages
1606
+ * const { count } = await prisma.designPage.deleteMany({
1607
+ * where: {
1608
+ * // ... provide filter here
1609
+ * }
1610
+ * })
1611
+ *
1612
+ */
1613
+ deleteMany<T extends DesignPageDeleteManyArgs>(args?: Prisma.SelectSubset<T, DesignPageDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1614
+
1615
+ /**
1616
+ * Update zero or more DesignPages.
1617
+ * Note, that providing `undefined` is treated as the value not being there.
1618
+ * Read more here: https://pris.ly/d/null-undefined
1619
+ * @param {DesignPageUpdateManyArgs} args - Arguments to update one or more rows.
1620
+ * @example
1621
+ * // Update many DesignPages
1622
+ * const designPage = await prisma.designPage.updateMany({
1623
+ * where: {
1624
+ * // ... provide filter here
1625
+ * },
1626
+ * data: {
1627
+ * // ... provide data here
1628
+ * }
1629
+ * })
1630
+ *
1631
+ */
1632
+ updateMany<T extends DesignPageUpdateManyArgs>(args: Prisma.SelectSubset<T, DesignPageUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1633
+
1634
+ /**
1635
+ * Update zero or more DesignPages and returns the data updated in the database.
1636
+ * @param {DesignPageUpdateManyAndReturnArgs} args - Arguments to update many DesignPages.
1637
+ * @example
1638
+ * // Update many DesignPages
1639
+ * const designPage = await prisma.designPage.updateManyAndReturn({
1640
+ * where: {
1641
+ * // ... provide filter here
1642
+ * },
1643
+ * data: [
1644
+ * // ... provide data here
1645
+ * ]
1646
+ * })
1647
+ *
1648
+ * // Update zero or more DesignPages and only return the `id`
1649
+ * const designPageWithIdOnly = await prisma.designPage.updateManyAndReturn({
1650
+ * select: { id: true },
1651
+ * where: {
1652
+ * // ... provide filter here
1653
+ * },
1654
+ * data: [
1655
+ * // ... provide data here
1656
+ * ]
1657
+ * })
1658
+ * Note, that providing `undefined` is treated as the value not being there.
1659
+ * Read more here: https://pris.ly/d/null-undefined
1660
+ *
1661
+ */
1662
+ updateManyAndReturn<T extends DesignPageUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, DesignPageUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DesignPagePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1663
+
1664
+ /**
1665
+ * Create or update one DesignPage.
1666
+ * @param {DesignPageUpsertArgs} args - Arguments to update or create a DesignPage.
1667
+ * @example
1668
+ * // Update or create a DesignPage
1669
+ * const designPage = await prisma.designPage.upsert({
1670
+ * create: {
1671
+ * // ... data to create a DesignPage
1672
+ * },
1673
+ * update: {
1674
+ * // ... in case it already exists, update
1675
+ * },
1676
+ * where: {
1677
+ * // ... the filter for the DesignPage we want to update
1678
+ * }
1679
+ * })
1680
+ */
1681
+ upsert<T extends DesignPageUpsertArgs>(args: Prisma.SelectSubset<T, DesignPageUpsertArgs<ExtArgs>>): Prisma.Prisma__DesignPageClient<runtime.Types.Result.GetResult<Prisma.$DesignPagePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1682
+
1683
+
1684
+ /**
1685
+ * Count the number of DesignPages.
1686
+ * Note, that providing `undefined` is treated as the value not being there.
1687
+ * Read more here: https://pris.ly/d/null-undefined
1688
+ * @param {DesignPageCountArgs} args - Arguments to filter DesignPages to count.
1689
+ * @example
1690
+ * // Count the number of DesignPages
1691
+ * const count = await prisma.designPage.count({
1692
+ * where: {
1693
+ * // ... the filter for the DesignPages we want to count
1694
+ * }
1695
+ * })
1696
+ **/
1697
+ count<T extends DesignPageCountArgs>(
1698
+ args?: Prisma.Subset<T, DesignPageCountArgs>,
1699
+ ): Prisma.PrismaPromise<
1700
+ T extends runtime.Types.Utils.Record<'select', any>
1701
+ ? T['select'] extends true
1702
+ ? number
1703
+ : Prisma.GetScalarType<T['select'], DesignPageCountAggregateOutputType>
1704
+ : number
1705
+ >
1706
+
1707
+ /**
1708
+ * Allows you to perform aggregations operations on a DesignPage.
1709
+ * Note, that providing `undefined` is treated as the value not being there.
1710
+ * Read more here: https://pris.ly/d/null-undefined
1711
+ * @param {DesignPageAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1712
+ * @example
1713
+ * // Ordered by age ascending
1714
+ * // Where email contains prisma.io
1715
+ * // Limited to the 10 users
1716
+ * const aggregations = await prisma.user.aggregate({
1717
+ * _avg: {
1718
+ * age: true,
1719
+ * },
1720
+ * where: {
1721
+ * email: {
1722
+ * contains: "prisma.io",
1723
+ * },
1724
+ * },
1725
+ * orderBy: {
1726
+ * age: "asc",
1727
+ * },
1728
+ * take: 10,
1729
+ * })
1730
+ **/
1731
+ aggregate<T extends DesignPageAggregateArgs>(args: Prisma.Subset<T, DesignPageAggregateArgs>): Prisma.PrismaPromise<GetDesignPageAggregateType<T>>
1732
+
1733
+ /**
1734
+ * Group by DesignPage.
1735
+ * Note, that providing `undefined` is treated as the value not being there.
1736
+ * Read more here: https://pris.ly/d/null-undefined
1737
+ * @param {DesignPageGroupByArgs} args - Group by arguments.
1738
+ * @example
1739
+ * // Group by city, order by createdAt, get count
1740
+ * const result = await prisma.user.groupBy({
1741
+ * by: ['city', 'createdAt'],
1742
+ * orderBy: {
1743
+ * createdAt: true
1744
+ * },
1745
+ * _count: {
1746
+ * _all: true
1747
+ * },
1748
+ * })
1749
+ *
1750
+ **/
1751
+ groupBy<
1752
+ T extends DesignPageGroupByArgs,
1753
+ HasSelectOrTake extends Prisma.Or<
1754
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1755
+ Prisma.Extends<'take', Prisma.Keys<T>>
1756
+ >,
1757
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1758
+ ? { orderBy: DesignPageGroupByArgs['orderBy'] }
1759
+ : { orderBy?: DesignPageGroupByArgs['orderBy'] },
1760
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1761
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1762
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1763
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1764
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1765
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1766
+ InputErrors extends ByEmpty extends Prisma.True
1767
+ ? `Error: "by" must not be empty.`
1768
+ : HavingValid extends Prisma.False
1769
+ ? {
1770
+ [P in HavingFields]: P extends ByFields
1771
+ ? never
1772
+ : P extends string
1773
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1774
+ : [
1775
+ Error,
1776
+ 'Field ',
1777
+ P,
1778
+ ` in "having" needs to be provided in "by"`,
1779
+ ]
1780
+ }[HavingFields]
1781
+ : 'take' extends Prisma.Keys<T>
1782
+ ? 'orderBy' extends Prisma.Keys<T>
1783
+ ? ByValid extends Prisma.True
1784
+ ? {}
1785
+ : {
1786
+ [P in OrderFields]: P extends ByFields
1787
+ ? never
1788
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1789
+ }[OrderFields]
1790
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1791
+ : 'skip' extends Prisma.Keys<T>
1792
+ ? 'orderBy' extends Prisma.Keys<T>
1793
+ ? ByValid extends Prisma.True
1794
+ ? {}
1795
+ : {
1796
+ [P in OrderFields]: P extends ByFields
1797
+ ? never
1798
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1799
+ }[OrderFields]
1800
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1801
+ : ByValid extends Prisma.True
1802
+ ? {}
1803
+ : {
1804
+ [P in OrderFields]: P extends ByFields
1805
+ ? never
1806
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1807
+ }[OrderFields]
1808
+ >(args: Prisma.SubsetIntersection<T, DesignPageGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDesignPageGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1809
+ /**
1810
+ * Fields of the DesignPage model
1811
+ */
1812
+ readonly fields: DesignPageFieldRefs;
1813
+ }
1814
+
1815
+ /**
1816
+ * The delegate class that acts as a "Promise-like" for DesignPage.
1817
+ * Why is this prefixed with `Prisma__`?
1818
+ * Because we want to prevent naming conflicts as mentioned in
1819
+ * https://github.com/prisma/prisma-client-js/issues/707
1820
+ */
1821
+ export interface Prisma__DesignPageClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1822
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1823
+ design<T extends Prisma.DesignDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DesignDefaultArgs<ExtArgs>>): Prisma.Prisma__DesignClient<runtime.Types.Result.GetResult<Prisma.$DesignPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1824
+ parent<T extends Prisma.DesignPage$parentArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DesignPage$parentArgs<ExtArgs>>): Prisma.Prisma__DesignPageClient<runtime.Types.Result.GetResult<Prisma.$DesignPagePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1825
+ children<T extends Prisma.DesignPage$childrenArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DesignPage$childrenArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DesignPagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1826
+ componentInstances<T extends Prisma.DesignPage$componentInstancesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DesignPage$componentInstancesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ComponentInstancePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1827
+ blockInstances<T extends Prisma.DesignPage$blockInstancesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DesignPage$blockInstancesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BlockInstancePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1828
+ pageVersions<T extends Prisma.DesignPage$pageVersionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DesignPage$pageVersionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PageVersionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1829
+ /**
1830
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1831
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1832
+ * @param onrejected The callback to execute when the Promise is rejected.
1833
+ * @returns A Promise for the completion of which ever callback is executed.
1834
+ */
1835
+ 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>
1836
+ /**
1837
+ * Attaches a callback for only the rejection of the Promise.
1838
+ * @param onrejected The callback to execute when the Promise is rejected.
1839
+ * @returns A Promise for the completion of the callback.
1840
+ */
1841
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1842
+ /**
1843
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1844
+ * resolved value cannot be modified from the callback.
1845
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1846
+ * @returns A Promise for the completion of the callback.
1847
+ */
1848
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1849
+ }
1850
+
1851
+
1852
+
1853
+
1854
+ /**
1855
+ * Fields of the DesignPage model
1856
+ */
1857
+ export interface DesignPageFieldRefs {
1858
+ readonly id: Prisma.FieldRef<"DesignPage", 'String'>
1859
+ readonly designId: Prisma.FieldRef<"DesignPage", 'String'>
1860
+ readonly parentId: Prisma.FieldRef<"DesignPage", 'String'>
1861
+ readonly name: Prisma.FieldRef<"DesignPage", 'String'>
1862
+ readonly order: Prisma.FieldRef<"DesignPage", 'Int'>
1863
+ readonly type: Prisma.FieldRef<"DesignPage", 'String'>
1864
+ readonly canvas: Prisma.FieldRef<"DesignPage", 'Json'>
1865
+ readonly content: Prisma.FieldRef<"DesignPage", 'Json'>
1866
+ readonly version: Prisma.FieldRef<"DesignPage", 'Int'>
1867
+ readonly createdAt: Prisma.FieldRef<"DesignPage", 'DateTime'>
1868
+ readonly updatedAt: Prisma.FieldRef<"DesignPage", 'DateTime'>
1869
+ }
1870
+
1871
+
1872
+ // Custom InputTypes
1873
+ /**
1874
+ * DesignPage findUnique
1875
+ */
1876
+ export type DesignPageFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1877
+ /**
1878
+ * Select specific fields to fetch from the DesignPage
1879
+ */
1880
+ select?: Prisma.DesignPageSelect<ExtArgs> | null
1881
+ /**
1882
+ * Omit specific fields from the DesignPage
1883
+ */
1884
+ omit?: Prisma.DesignPageOmit<ExtArgs> | null
1885
+ /**
1886
+ * Choose, which related nodes to fetch as well
1887
+ */
1888
+ include?: Prisma.DesignPageInclude<ExtArgs> | null
1889
+ /**
1890
+ * Filter, which DesignPage to fetch.
1891
+ */
1892
+ where: Prisma.DesignPageWhereUniqueInput
1893
+ }
1894
+
1895
+ /**
1896
+ * DesignPage findUniqueOrThrow
1897
+ */
1898
+ export type DesignPageFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1899
+ /**
1900
+ * Select specific fields to fetch from the DesignPage
1901
+ */
1902
+ select?: Prisma.DesignPageSelect<ExtArgs> | null
1903
+ /**
1904
+ * Omit specific fields from the DesignPage
1905
+ */
1906
+ omit?: Prisma.DesignPageOmit<ExtArgs> | null
1907
+ /**
1908
+ * Choose, which related nodes to fetch as well
1909
+ */
1910
+ include?: Prisma.DesignPageInclude<ExtArgs> | null
1911
+ /**
1912
+ * Filter, which DesignPage to fetch.
1913
+ */
1914
+ where: Prisma.DesignPageWhereUniqueInput
1915
+ }
1916
+
1917
+ /**
1918
+ * DesignPage findFirst
1919
+ */
1920
+ export type DesignPageFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1921
+ /**
1922
+ * Select specific fields to fetch from the DesignPage
1923
+ */
1924
+ select?: Prisma.DesignPageSelect<ExtArgs> | null
1925
+ /**
1926
+ * Omit specific fields from the DesignPage
1927
+ */
1928
+ omit?: Prisma.DesignPageOmit<ExtArgs> | null
1929
+ /**
1930
+ * Choose, which related nodes to fetch as well
1931
+ */
1932
+ include?: Prisma.DesignPageInclude<ExtArgs> | null
1933
+ /**
1934
+ * Filter, which DesignPage to fetch.
1935
+ */
1936
+ where?: Prisma.DesignPageWhereInput
1937
+ /**
1938
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1939
+ *
1940
+ * Determine the order of DesignPages to fetch.
1941
+ */
1942
+ orderBy?: Prisma.DesignPageOrderByWithRelationInput | Prisma.DesignPageOrderByWithRelationInput[]
1943
+ /**
1944
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1945
+ *
1946
+ * Sets the position for searching for DesignPages.
1947
+ */
1948
+ cursor?: Prisma.DesignPageWhereUniqueInput
1949
+ /**
1950
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1951
+ *
1952
+ * Take `±n` DesignPages from the position of the cursor.
1953
+ */
1954
+ take?: number
1955
+ /**
1956
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1957
+ *
1958
+ * Skip the first `n` DesignPages.
1959
+ */
1960
+ skip?: number
1961
+ /**
1962
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1963
+ *
1964
+ * Filter by unique combinations of DesignPages.
1965
+ */
1966
+ distinct?: Prisma.DesignPageScalarFieldEnum | Prisma.DesignPageScalarFieldEnum[]
1967
+ }
1968
+
1969
+ /**
1970
+ * DesignPage findFirstOrThrow
1971
+ */
1972
+ export type DesignPageFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1973
+ /**
1974
+ * Select specific fields to fetch from the DesignPage
1975
+ */
1976
+ select?: Prisma.DesignPageSelect<ExtArgs> | null
1977
+ /**
1978
+ * Omit specific fields from the DesignPage
1979
+ */
1980
+ omit?: Prisma.DesignPageOmit<ExtArgs> | null
1981
+ /**
1982
+ * Choose, which related nodes to fetch as well
1983
+ */
1984
+ include?: Prisma.DesignPageInclude<ExtArgs> | null
1985
+ /**
1986
+ * Filter, which DesignPage to fetch.
1987
+ */
1988
+ where?: Prisma.DesignPageWhereInput
1989
+ /**
1990
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1991
+ *
1992
+ * Determine the order of DesignPages to fetch.
1993
+ */
1994
+ orderBy?: Prisma.DesignPageOrderByWithRelationInput | Prisma.DesignPageOrderByWithRelationInput[]
1995
+ /**
1996
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1997
+ *
1998
+ * Sets the position for searching for DesignPages.
1999
+ */
2000
+ cursor?: Prisma.DesignPageWhereUniqueInput
2001
+ /**
2002
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2003
+ *
2004
+ * Take `±n` DesignPages from the position of the cursor.
2005
+ */
2006
+ take?: number
2007
+ /**
2008
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2009
+ *
2010
+ * Skip the first `n` DesignPages.
2011
+ */
2012
+ skip?: number
2013
+ /**
2014
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2015
+ *
2016
+ * Filter by unique combinations of DesignPages.
2017
+ */
2018
+ distinct?: Prisma.DesignPageScalarFieldEnum | Prisma.DesignPageScalarFieldEnum[]
2019
+ }
2020
+
2021
+ /**
2022
+ * DesignPage findMany
2023
+ */
2024
+ export type DesignPageFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2025
+ /**
2026
+ * Select specific fields to fetch from the DesignPage
2027
+ */
2028
+ select?: Prisma.DesignPageSelect<ExtArgs> | null
2029
+ /**
2030
+ * Omit specific fields from the DesignPage
2031
+ */
2032
+ omit?: Prisma.DesignPageOmit<ExtArgs> | null
2033
+ /**
2034
+ * Choose, which related nodes to fetch as well
2035
+ */
2036
+ include?: Prisma.DesignPageInclude<ExtArgs> | null
2037
+ /**
2038
+ * Filter, which DesignPages to fetch.
2039
+ */
2040
+ where?: Prisma.DesignPageWhereInput
2041
+ /**
2042
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2043
+ *
2044
+ * Determine the order of DesignPages to fetch.
2045
+ */
2046
+ orderBy?: Prisma.DesignPageOrderByWithRelationInput | Prisma.DesignPageOrderByWithRelationInput[]
2047
+ /**
2048
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2049
+ *
2050
+ * Sets the position for listing DesignPages.
2051
+ */
2052
+ cursor?: Prisma.DesignPageWhereUniqueInput
2053
+ /**
2054
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2055
+ *
2056
+ * Take `±n` DesignPages from the position of the cursor.
2057
+ */
2058
+ take?: number
2059
+ /**
2060
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2061
+ *
2062
+ * Skip the first `n` DesignPages.
2063
+ */
2064
+ skip?: number
2065
+ /**
2066
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2067
+ *
2068
+ * Filter by unique combinations of DesignPages.
2069
+ */
2070
+ distinct?: Prisma.DesignPageScalarFieldEnum | Prisma.DesignPageScalarFieldEnum[]
2071
+ }
2072
+
2073
+ /**
2074
+ * DesignPage create
2075
+ */
2076
+ export type DesignPageCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2077
+ /**
2078
+ * Select specific fields to fetch from the DesignPage
2079
+ */
2080
+ select?: Prisma.DesignPageSelect<ExtArgs> | null
2081
+ /**
2082
+ * Omit specific fields from the DesignPage
2083
+ */
2084
+ omit?: Prisma.DesignPageOmit<ExtArgs> | null
2085
+ /**
2086
+ * Choose, which related nodes to fetch as well
2087
+ */
2088
+ include?: Prisma.DesignPageInclude<ExtArgs> | null
2089
+ /**
2090
+ * The data needed to create a DesignPage.
2091
+ */
2092
+ data: Prisma.XOR<Prisma.DesignPageCreateInput, Prisma.DesignPageUncheckedCreateInput>
2093
+ }
2094
+
2095
+ /**
2096
+ * DesignPage createMany
2097
+ */
2098
+ export type DesignPageCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2099
+ /**
2100
+ * The data used to create many DesignPages.
2101
+ */
2102
+ data: Prisma.DesignPageCreateManyInput | Prisma.DesignPageCreateManyInput[]
2103
+ }
2104
+
2105
+ /**
2106
+ * DesignPage createManyAndReturn
2107
+ */
2108
+ export type DesignPageCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2109
+ /**
2110
+ * Select specific fields to fetch from the DesignPage
2111
+ */
2112
+ select?: Prisma.DesignPageSelectCreateManyAndReturn<ExtArgs> | null
2113
+ /**
2114
+ * Omit specific fields from the DesignPage
2115
+ */
2116
+ omit?: Prisma.DesignPageOmit<ExtArgs> | null
2117
+ /**
2118
+ * The data used to create many DesignPages.
2119
+ */
2120
+ data: Prisma.DesignPageCreateManyInput | Prisma.DesignPageCreateManyInput[]
2121
+ /**
2122
+ * Choose, which related nodes to fetch as well
2123
+ */
2124
+ include?: Prisma.DesignPageIncludeCreateManyAndReturn<ExtArgs> | null
2125
+ }
2126
+
2127
+ /**
2128
+ * DesignPage update
2129
+ */
2130
+ export type DesignPageUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2131
+ /**
2132
+ * Select specific fields to fetch from the DesignPage
2133
+ */
2134
+ select?: Prisma.DesignPageSelect<ExtArgs> | null
2135
+ /**
2136
+ * Omit specific fields from the DesignPage
2137
+ */
2138
+ omit?: Prisma.DesignPageOmit<ExtArgs> | null
2139
+ /**
2140
+ * Choose, which related nodes to fetch as well
2141
+ */
2142
+ include?: Prisma.DesignPageInclude<ExtArgs> | null
2143
+ /**
2144
+ * The data needed to update a DesignPage.
2145
+ */
2146
+ data: Prisma.XOR<Prisma.DesignPageUpdateInput, Prisma.DesignPageUncheckedUpdateInput>
2147
+ /**
2148
+ * Choose, which DesignPage to update.
2149
+ */
2150
+ where: Prisma.DesignPageWhereUniqueInput
2151
+ }
2152
+
2153
+ /**
2154
+ * DesignPage updateMany
2155
+ */
2156
+ export type DesignPageUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2157
+ /**
2158
+ * The data used to update DesignPages.
2159
+ */
2160
+ data: Prisma.XOR<Prisma.DesignPageUpdateManyMutationInput, Prisma.DesignPageUncheckedUpdateManyInput>
2161
+ /**
2162
+ * Filter which DesignPages to update
2163
+ */
2164
+ where?: Prisma.DesignPageWhereInput
2165
+ /**
2166
+ * Limit how many DesignPages to update.
2167
+ */
2168
+ limit?: number
2169
+ }
2170
+
2171
+ /**
2172
+ * DesignPage updateManyAndReturn
2173
+ */
2174
+ export type DesignPageUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2175
+ /**
2176
+ * Select specific fields to fetch from the DesignPage
2177
+ */
2178
+ select?: Prisma.DesignPageSelectUpdateManyAndReturn<ExtArgs> | null
2179
+ /**
2180
+ * Omit specific fields from the DesignPage
2181
+ */
2182
+ omit?: Prisma.DesignPageOmit<ExtArgs> | null
2183
+ /**
2184
+ * The data used to update DesignPages.
2185
+ */
2186
+ data: Prisma.XOR<Prisma.DesignPageUpdateManyMutationInput, Prisma.DesignPageUncheckedUpdateManyInput>
2187
+ /**
2188
+ * Filter which DesignPages to update
2189
+ */
2190
+ where?: Prisma.DesignPageWhereInput
2191
+ /**
2192
+ * Limit how many DesignPages to update.
2193
+ */
2194
+ limit?: number
2195
+ /**
2196
+ * Choose, which related nodes to fetch as well
2197
+ */
2198
+ include?: Prisma.DesignPageIncludeUpdateManyAndReturn<ExtArgs> | null
2199
+ }
2200
+
2201
+ /**
2202
+ * DesignPage upsert
2203
+ */
2204
+ export type DesignPageUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2205
+ /**
2206
+ * Select specific fields to fetch from the DesignPage
2207
+ */
2208
+ select?: Prisma.DesignPageSelect<ExtArgs> | null
2209
+ /**
2210
+ * Omit specific fields from the DesignPage
2211
+ */
2212
+ omit?: Prisma.DesignPageOmit<ExtArgs> | null
2213
+ /**
2214
+ * Choose, which related nodes to fetch as well
2215
+ */
2216
+ include?: Prisma.DesignPageInclude<ExtArgs> | null
2217
+ /**
2218
+ * The filter to search for the DesignPage to update in case it exists.
2219
+ */
2220
+ where: Prisma.DesignPageWhereUniqueInput
2221
+ /**
2222
+ * In case the DesignPage found by the `where` argument doesn't exist, create a new DesignPage with this data.
2223
+ */
2224
+ create: Prisma.XOR<Prisma.DesignPageCreateInput, Prisma.DesignPageUncheckedCreateInput>
2225
+ /**
2226
+ * In case the DesignPage was found with the provided `where` argument, update it with this data.
2227
+ */
2228
+ update: Prisma.XOR<Prisma.DesignPageUpdateInput, Prisma.DesignPageUncheckedUpdateInput>
2229
+ }
2230
+
2231
+ /**
2232
+ * DesignPage delete
2233
+ */
2234
+ export type DesignPageDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2235
+ /**
2236
+ * Select specific fields to fetch from the DesignPage
2237
+ */
2238
+ select?: Prisma.DesignPageSelect<ExtArgs> | null
2239
+ /**
2240
+ * Omit specific fields from the DesignPage
2241
+ */
2242
+ omit?: Prisma.DesignPageOmit<ExtArgs> | null
2243
+ /**
2244
+ * Choose, which related nodes to fetch as well
2245
+ */
2246
+ include?: Prisma.DesignPageInclude<ExtArgs> | null
2247
+ /**
2248
+ * Filter which DesignPage to delete.
2249
+ */
2250
+ where: Prisma.DesignPageWhereUniqueInput
2251
+ }
2252
+
2253
+ /**
2254
+ * DesignPage deleteMany
2255
+ */
2256
+ export type DesignPageDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2257
+ /**
2258
+ * Filter which DesignPages to delete
2259
+ */
2260
+ where?: Prisma.DesignPageWhereInput
2261
+ /**
2262
+ * Limit how many DesignPages to delete.
2263
+ */
2264
+ limit?: number
2265
+ }
2266
+
2267
+ /**
2268
+ * DesignPage.parent
2269
+ */
2270
+ export type DesignPage$parentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2271
+ /**
2272
+ * Select specific fields to fetch from the DesignPage
2273
+ */
2274
+ select?: Prisma.DesignPageSelect<ExtArgs> | null
2275
+ /**
2276
+ * Omit specific fields from the DesignPage
2277
+ */
2278
+ omit?: Prisma.DesignPageOmit<ExtArgs> | null
2279
+ /**
2280
+ * Choose, which related nodes to fetch as well
2281
+ */
2282
+ include?: Prisma.DesignPageInclude<ExtArgs> | null
2283
+ where?: Prisma.DesignPageWhereInput
2284
+ }
2285
+
2286
+ /**
2287
+ * DesignPage.children
2288
+ */
2289
+ export type DesignPage$childrenArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2290
+ /**
2291
+ * Select specific fields to fetch from the DesignPage
2292
+ */
2293
+ select?: Prisma.DesignPageSelect<ExtArgs> | null
2294
+ /**
2295
+ * Omit specific fields from the DesignPage
2296
+ */
2297
+ omit?: Prisma.DesignPageOmit<ExtArgs> | null
2298
+ /**
2299
+ * Choose, which related nodes to fetch as well
2300
+ */
2301
+ include?: Prisma.DesignPageInclude<ExtArgs> | null
2302
+ where?: Prisma.DesignPageWhereInput
2303
+ orderBy?: Prisma.DesignPageOrderByWithRelationInput | Prisma.DesignPageOrderByWithRelationInput[]
2304
+ cursor?: Prisma.DesignPageWhereUniqueInput
2305
+ take?: number
2306
+ skip?: number
2307
+ distinct?: Prisma.DesignPageScalarFieldEnum | Prisma.DesignPageScalarFieldEnum[]
2308
+ }
2309
+
2310
+ /**
2311
+ * DesignPage.componentInstances
2312
+ */
2313
+ export type DesignPage$componentInstancesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2314
+ /**
2315
+ * Select specific fields to fetch from the ComponentInstance
2316
+ */
2317
+ select?: Prisma.ComponentInstanceSelect<ExtArgs> | null
2318
+ /**
2319
+ * Omit specific fields from the ComponentInstance
2320
+ */
2321
+ omit?: Prisma.ComponentInstanceOmit<ExtArgs> | null
2322
+ /**
2323
+ * Choose, which related nodes to fetch as well
2324
+ */
2325
+ include?: Prisma.ComponentInstanceInclude<ExtArgs> | null
2326
+ where?: Prisma.ComponentInstanceWhereInput
2327
+ orderBy?: Prisma.ComponentInstanceOrderByWithRelationInput | Prisma.ComponentInstanceOrderByWithRelationInput[]
2328
+ cursor?: Prisma.ComponentInstanceWhereUniqueInput
2329
+ take?: number
2330
+ skip?: number
2331
+ distinct?: Prisma.ComponentInstanceScalarFieldEnum | Prisma.ComponentInstanceScalarFieldEnum[]
2332
+ }
2333
+
2334
+ /**
2335
+ * DesignPage.blockInstances
2336
+ */
2337
+ export type DesignPage$blockInstancesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2338
+ /**
2339
+ * Select specific fields to fetch from the BlockInstance
2340
+ */
2341
+ select?: Prisma.BlockInstanceSelect<ExtArgs> | null
2342
+ /**
2343
+ * Omit specific fields from the BlockInstance
2344
+ */
2345
+ omit?: Prisma.BlockInstanceOmit<ExtArgs> | null
2346
+ /**
2347
+ * Choose, which related nodes to fetch as well
2348
+ */
2349
+ include?: Prisma.BlockInstanceInclude<ExtArgs> | null
2350
+ where?: Prisma.BlockInstanceWhereInput
2351
+ orderBy?: Prisma.BlockInstanceOrderByWithRelationInput | Prisma.BlockInstanceOrderByWithRelationInput[]
2352
+ cursor?: Prisma.BlockInstanceWhereUniqueInput
2353
+ take?: number
2354
+ skip?: number
2355
+ distinct?: Prisma.BlockInstanceScalarFieldEnum | Prisma.BlockInstanceScalarFieldEnum[]
2356
+ }
2357
+
2358
+ /**
2359
+ * DesignPage.pageVersions
2360
+ */
2361
+ export type DesignPage$pageVersionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2362
+ /**
2363
+ * Select specific fields to fetch from the PageVersion
2364
+ */
2365
+ select?: Prisma.PageVersionSelect<ExtArgs> | null
2366
+ /**
2367
+ * Omit specific fields from the PageVersion
2368
+ */
2369
+ omit?: Prisma.PageVersionOmit<ExtArgs> | null
2370
+ /**
2371
+ * Choose, which related nodes to fetch as well
2372
+ */
2373
+ include?: Prisma.PageVersionInclude<ExtArgs> | null
2374
+ where?: Prisma.PageVersionWhereInput
2375
+ orderBy?: Prisma.PageVersionOrderByWithRelationInput | Prisma.PageVersionOrderByWithRelationInput[]
2376
+ cursor?: Prisma.PageVersionWhereUniqueInput
2377
+ take?: number
2378
+ skip?: number
2379
+ distinct?: Prisma.PageVersionScalarFieldEnum | Prisma.PageVersionScalarFieldEnum[]
2380
+ }
2381
+
2382
+ /**
2383
+ * DesignPage without action
2384
+ */
2385
+ export type DesignPageDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2386
+ /**
2387
+ * Select specific fields to fetch from the DesignPage
2388
+ */
2389
+ select?: Prisma.DesignPageSelect<ExtArgs> | null
2390
+ /**
2391
+ * Omit specific fields from the DesignPage
2392
+ */
2393
+ omit?: Prisma.DesignPageOmit<ExtArgs> | null
2394
+ /**
2395
+ * Choose, which related nodes to fetch as well
2396
+ */
2397
+ include?: Prisma.DesignPageInclude<ExtArgs> | null
2398
+ }