@allbluecn/database 0.11.0 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/index.ts +19 -17
  2. package/migrations/20261030000000_sync_overlay/migration.sql +152 -0
  3. package/package.json +29 -21
  4. package/pglite-init.ts +92 -0
  5. package/LICENSE +0 -661
  6. package/desktop-init.ts +0 -162
  7. package/generated-sqlite/browser.ts +0 -499
  8. package/generated-sqlite/client.ts +0 -523
  9. package/generated-sqlite/commonInputTypes.ts +0 -722
  10. package/generated-sqlite/enums.ts +0 -15
  11. package/generated-sqlite/internal/class.ts +0 -1154
  12. package/generated-sqlite/internal/prismaNamespace.ts +0 -9576
  13. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +0 -1761
  14. package/generated-sqlite/models/AgentConversation.ts +0 -1647
  15. package/generated-sqlite/models/AgentMessage.ts +0 -1406
  16. package/generated-sqlite/models/AiProvider.ts +0 -1605
  17. package/generated-sqlite/models/AiProviderConfig.ts +0 -1610
  18. package/generated-sqlite/models/AiStreamChunk.ts +0 -1157
  19. package/generated-sqlite/models/AiUsageLog.ts +0 -1905
  20. package/generated-sqlite/models/AnyHubApp.ts +0 -1908
  21. package/generated-sqlite/models/AnyHubMarketApp.ts +0 -1997
  22. package/generated-sqlite/models/AnyHubPermission.ts +0 -1419
  23. package/generated-sqlite/models/AnyHubRecommendation.ts +0 -1867
  24. package/generated-sqlite/models/AnyHubRecommender.ts +0 -1467
  25. package/generated-sqlite/models/ArticleFavorite.ts +0 -1349
  26. package/generated-sqlite/models/AuditLog.ts +0 -1287
  27. package/generated-sqlite/models/Blob.ts +0 -1425
  28. package/generated-sqlite/models/Block.ts +0 -1648
  29. package/generated-sqlite/models/BlockComponent.ts +0 -1730
  30. package/generated-sqlite/models/BlockInstance.ts +0 -2039
  31. package/generated-sqlite/models/BookmarkCategory.ts +0 -1667
  32. package/generated-sqlite/models/BusinessAgentBinding.ts +0 -1549
  33. package/generated-sqlite/models/ChatInterrupt.ts +0 -1736
  34. package/generated-sqlite/models/ChatMessage.ts +0 -1464
  35. package/generated-sqlite/models/ChatPersistenceMeta.ts +0 -1119
  36. package/generated-sqlite/models/ChatRun.ts +0 -1802
  37. package/generated-sqlite/models/ChatThread.ts +0 -2417
  38. package/generated-sqlite/models/CodeSnippet.ts +0 -1552
  39. package/generated-sqlite/models/Comment.ts +0 -2201
  40. package/generated-sqlite/models/CommentIgnore.ts +0 -1426
  41. package/generated-sqlite/models/ComplianceExport.ts +0 -1343
  42. package/generated-sqlite/models/Component.ts +0 -2132
  43. package/generated-sqlite/models/ComponentInstance.ts +0 -2097
  44. package/generated-sqlite/models/CustomRole.ts +0 -1209
  45. package/generated-sqlite/models/Design.ts +0 -2497
  46. package/generated-sqlite/models/DesignPage.ts +0 -2398
  47. package/generated-sqlite/models/DesignVersion.ts +0 -2117
  48. package/generated-sqlite/models/DesktopSetting.ts +0 -1057
  49. package/generated-sqlite/models/DeveloperLog.ts +0 -1281
  50. package/generated-sqlite/models/DictionaryTerm.ts +0 -1639
  51. package/generated-sqlite/models/EmailLog.ts +0 -1343
  52. package/generated-sqlite/models/EmailPreference.ts +0 -1255
  53. package/generated-sqlite/models/EmailSubscriber.ts +0 -1231
  54. package/generated-sqlite/models/EmailVerificationToken.ts +0 -1377
  55. package/generated-sqlite/models/GenerationRun.ts +0 -1732
  56. package/generated-sqlite/models/HarnessPlugin.ts +0 -1666
  57. package/generated-sqlite/models/HarnessWorkspace.ts +0 -1647
  58. package/generated-sqlite/models/IndustryCompliance.ts +0 -1794
  59. package/generated-sqlite/models/InvitationCode.ts +0 -1471
  60. package/generated-sqlite/models/InvitationUse.ts +0 -1420
  61. package/generated-sqlite/models/Invoice.ts +0 -1707
  62. package/generated-sqlite/models/Iteration.ts +0 -1874
  63. package/generated-sqlite/models/IterationAutoSchedule.ts +0 -1483
  64. package/generated-sqlite/models/KnowledgeBase.ts +0 -2238
  65. package/generated-sqlite/models/KnowledgeDocument.ts +0 -2450
  66. package/generated-sqlite/models/KnowledgeShareRecord.ts +0 -1349
  67. package/generated-sqlite/models/LegalRegulation.ts +0 -1905
  68. package/generated-sqlite/models/LicenseActivation.ts +0 -1203
  69. package/generated-sqlite/models/LicenseKey.ts +0 -1443
  70. package/generated-sqlite/models/LoginLog.ts +0 -1447
  71. package/generated-sqlite/models/NotificationPreference.ts +0 -1313
  72. package/generated-sqlite/models/OAuthProviderConfig.ts +0 -1225
  73. package/generated-sqlite/models/PageVersion.ts +0 -1520
  74. package/generated-sqlite/models/PasswordResetToken.ts +0 -1377
  75. package/generated-sqlite/models/Plan.ts +0 -2250
  76. package/generated-sqlite/models/Project.ts +0 -2628
  77. package/generated-sqlite/models/ProjectActivity.ts +0 -1578
  78. package/generated-sqlite/models/ProjectKnowledgeBase.ts +0 -1426
  79. package/generated-sqlite/models/ProjectMember.ts +0 -1508
  80. package/generated-sqlite/models/ProviderEvent.ts +0 -1225
  81. package/generated-sqlite/models/Reference.ts +0 -1175
  82. package/generated-sqlite/models/Review.ts +0 -1903
  83. package/generated-sqlite/models/ReviewComment.ts +0 -1899
  84. package/generated-sqlite/models/RoleAssignment.ts +0 -1125
  85. package/generated-sqlite/models/SandboxInstance.ts +0 -1283
  86. package/generated-sqlite/models/Share.ts +0 -1674
  87. package/generated-sqlite/models/ShareVersion.ts +0 -1385
  88. package/generated-sqlite/models/SsoMapping.ts +0 -1181
  89. package/generated-sqlite/models/SsoProvider.ts +0 -1266
  90. package/generated-sqlite/models/Story.ts +0 -3263
  91. package/generated-sqlite/models/Subscription.ts +0 -2137
  92. package/generated-sqlite/models/SystemPromptTemplate.ts +0 -1581
  93. package/generated-sqlite/models/SystemPromptVersion.ts +0 -1456
  94. package/generated-sqlite/models/SystemSetting.ts +0 -1215
  95. package/generated-sqlite/models/TeamInvitation.ts +0 -1758
  96. package/generated-sqlite/models/TeamJoinRequest.ts +0 -1793
  97. package/generated-sqlite/models/TeamMembership.ts +0 -1433
  98. package/generated-sqlite/models/Template.ts +0 -1389
  99. package/generated-sqlite/models/TemplateBlock.ts +0 -1660
  100. package/generated-sqlite/models/ThirdPartyDependency.ts +0 -1471
  101. package/generated-sqlite/models/UsageRecord.ts +0 -1498
  102. package/generated-sqlite/models/User.ts +0 -21247
  103. package/generated-sqlite/models/UserAgent.ts +0 -2146
  104. package/generated-sqlite/models/UserSkill.ts +0 -1453
  105. package/generated-sqlite/models/WebsiteBookmark.ts +0 -2215
  106. package/generated-sqlite/models/Workspace.ts +0 -2341
  107. package/generated-sqlite/models/WorkspaceFile.ts +0 -1532
  108. package/generated-sqlite/models/WorkspaceKnowledgeBase.ts +0 -1426
  109. package/generated-sqlite/models/WorkspaceQuickDoc.ts +0 -2025
  110. package/generated-sqlite/models.ts +0 -107
  111. package/schema.sqlite.prisma +0 -2045
@@ -1,1520 +0,0 @@
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 `PageVersion` 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 PageVersion
17
- *
18
- */
19
- export type PageVersionModel = runtime.Types.Result.DefaultSelection<Prisma.$PageVersionPayload>
20
-
21
- export type AggregatePageVersion = {
22
- _count: PageVersionCountAggregateOutputType | null
23
- _avg: PageVersionAvgAggregateOutputType | null
24
- _sum: PageVersionSumAggregateOutputType | null
25
- _min: PageVersionMinAggregateOutputType | null
26
- _max: PageVersionMaxAggregateOutputType | null
27
- }
28
-
29
- export type PageVersionAvgAggregateOutputType = {
30
- version: number | null
31
- restoredFromVersion: number | null
32
- }
33
-
34
- export type PageVersionSumAggregateOutputType = {
35
- version: number | null
36
- restoredFromVersion: number | null
37
- }
38
-
39
- export type PageVersionMinAggregateOutputType = {
40
- id: string | null
41
- pageId: string | null
42
- version: number | null
43
- notes: string | null
44
- restoredFromVersion: number | null
45
- fromDesignVersionId: string | null
46
- createdAt: Date | null
47
- }
48
-
49
- export type PageVersionMaxAggregateOutputType = {
50
- id: string | null
51
- pageId: string | null
52
- version: number | null
53
- notes: string | null
54
- restoredFromVersion: number | null
55
- fromDesignVersionId: string | null
56
- createdAt: Date | null
57
- }
58
-
59
- export type PageVersionCountAggregateOutputType = {
60
- id: number
61
- pageId: number
62
- version: number
63
- notes: number
64
- canvas: number
65
- content: number
66
- restoredFromVersion: number
67
- fromDesignVersionId: number
68
- createdAt: number
69
- _all: number
70
- }
71
-
72
-
73
- export type PageVersionAvgAggregateInputType = {
74
- version?: true
75
- restoredFromVersion?: true
76
- }
77
-
78
- export type PageVersionSumAggregateInputType = {
79
- version?: true
80
- restoredFromVersion?: true
81
- }
82
-
83
- export type PageVersionMinAggregateInputType = {
84
- id?: true
85
- pageId?: true
86
- version?: true
87
- notes?: true
88
- restoredFromVersion?: true
89
- fromDesignVersionId?: true
90
- createdAt?: true
91
- }
92
-
93
- export type PageVersionMaxAggregateInputType = {
94
- id?: true
95
- pageId?: true
96
- version?: true
97
- notes?: true
98
- restoredFromVersion?: true
99
- fromDesignVersionId?: true
100
- createdAt?: true
101
- }
102
-
103
- export type PageVersionCountAggregateInputType = {
104
- id?: true
105
- pageId?: true
106
- version?: true
107
- notes?: true
108
- canvas?: true
109
- content?: true
110
- restoredFromVersion?: true
111
- fromDesignVersionId?: true
112
- createdAt?: true
113
- _all?: true
114
- }
115
-
116
- export type PageVersionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
117
- /**
118
- * Filter which PageVersion to aggregate.
119
- */
120
- where?: Prisma.PageVersionWhereInput
121
- /**
122
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
123
- *
124
- * Determine the order of PageVersions to fetch.
125
- */
126
- orderBy?: Prisma.PageVersionOrderByWithRelationInput | Prisma.PageVersionOrderByWithRelationInput[]
127
- /**
128
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
129
- *
130
- * Sets the start position
131
- */
132
- cursor?: Prisma.PageVersionWhereUniqueInput
133
- /**
134
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
135
- *
136
- * Take `±n` PageVersions from the position of the cursor.
137
- */
138
- take?: number
139
- /**
140
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
141
- *
142
- * Skip the first `n` PageVersions.
143
- */
144
- skip?: number
145
- /**
146
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
147
- *
148
- * Count returned PageVersions
149
- **/
150
- _count?: true | PageVersionCountAggregateInputType
151
- /**
152
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
153
- *
154
- * Select which fields to average
155
- **/
156
- _avg?: PageVersionAvgAggregateInputType
157
- /**
158
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
159
- *
160
- * Select which fields to sum
161
- **/
162
- _sum?: PageVersionSumAggregateInputType
163
- /**
164
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
165
- *
166
- * Select which fields to find the minimum value
167
- **/
168
- _min?: PageVersionMinAggregateInputType
169
- /**
170
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
171
- *
172
- * Select which fields to find the maximum value
173
- **/
174
- _max?: PageVersionMaxAggregateInputType
175
- }
176
-
177
- export type GetPageVersionAggregateType<T extends PageVersionAggregateArgs> = {
178
- [P in keyof T & keyof AggregatePageVersion]: P extends '_count' | 'count'
179
- ? T[P] extends true
180
- ? number
181
- : Prisma.GetScalarType<T[P], AggregatePageVersion[P]>
182
- : Prisma.GetScalarType<T[P], AggregatePageVersion[P]>
183
- }
184
-
185
-
186
-
187
-
188
- export type PageVersionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
189
- where?: Prisma.PageVersionWhereInput
190
- orderBy?: Prisma.PageVersionOrderByWithAggregationInput | Prisma.PageVersionOrderByWithAggregationInput[]
191
- by: Prisma.PageVersionScalarFieldEnum[] | Prisma.PageVersionScalarFieldEnum
192
- having?: Prisma.PageVersionScalarWhereWithAggregatesInput
193
- take?: number
194
- skip?: number
195
- _count?: PageVersionCountAggregateInputType | true
196
- _avg?: PageVersionAvgAggregateInputType
197
- _sum?: PageVersionSumAggregateInputType
198
- _min?: PageVersionMinAggregateInputType
199
- _max?: PageVersionMaxAggregateInputType
200
- }
201
-
202
- export type PageVersionGroupByOutputType = {
203
- id: string
204
- pageId: string
205
- version: number
206
- notes: string | null
207
- canvas: runtime.JsonValue | null
208
- content: runtime.JsonValue | null
209
- restoredFromVersion: number | null
210
- fromDesignVersionId: string | null
211
- createdAt: Date
212
- _count: PageVersionCountAggregateOutputType | null
213
- _avg: PageVersionAvgAggregateOutputType | null
214
- _sum: PageVersionSumAggregateOutputType | null
215
- _min: PageVersionMinAggregateOutputType | null
216
- _max: PageVersionMaxAggregateOutputType | null
217
- }
218
-
219
- export type GetPageVersionGroupByPayload<T extends PageVersionGroupByArgs> = Prisma.PrismaPromise<
220
- Array<
221
- Prisma.PickEnumerable<PageVersionGroupByOutputType, T['by']> &
222
- {
223
- [P in ((keyof T) & (keyof PageVersionGroupByOutputType))]: P extends '_count'
224
- ? T[P] extends boolean
225
- ? number
226
- : Prisma.GetScalarType<T[P], PageVersionGroupByOutputType[P]>
227
- : Prisma.GetScalarType<T[P], PageVersionGroupByOutputType[P]>
228
- }
229
- >
230
- >
231
-
232
-
233
-
234
- export type PageVersionWhereInput = {
235
- AND?: Prisma.PageVersionWhereInput | Prisma.PageVersionWhereInput[]
236
- OR?: Prisma.PageVersionWhereInput[]
237
- NOT?: Prisma.PageVersionWhereInput | Prisma.PageVersionWhereInput[]
238
- id?: Prisma.StringFilter<"PageVersion"> | string
239
- pageId?: Prisma.StringFilter<"PageVersion"> | string
240
- version?: Prisma.IntFilter<"PageVersion"> | number
241
- notes?: Prisma.StringNullableFilter<"PageVersion"> | string | null
242
- canvas?: Prisma.JsonNullableFilter<"PageVersion">
243
- content?: Prisma.JsonNullableFilter<"PageVersion">
244
- restoredFromVersion?: Prisma.IntNullableFilter<"PageVersion"> | number | null
245
- fromDesignVersionId?: Prisma.StringNullableFilter<"PageVersion"> | string | null
246
- createdAt?: Prisma.DateTimeFilter<"PageVersion"> | Date | string
247
- page?: Prisma.XOR<Prisma.DesignPageScalarRelationFilter, Prisma.DesignPageWhereInput>
248
- }
249
-
250
- export type PageVersionOrderByWithRelationInput = {
251
- id?: Prisma.SortOrder
252
- pageId?: Prisma.SortOrder
253
- version?: Prisma.SortOrder
254
- notes?: Prisma.SortOrderInput | Prisma.SortOrder
255
- canvas?: Prisma.SortOrderInput | Prisma.SortOrder
256
- content?: Prisma.SortOrderInput | Prisma.SortOrder
257
- restoredFromVersion?: Prisma.SortOrderInput | Prisma.SortOrder
258
- fromDesignVersionId?: Prisma.SortOrderInput | Prisma.SortOrder
259
- createdAt?: Prisma.SortOrder
260
- page?: Prisma.DesignPageOrderByWithRelationInput
261
- }
262
-
263
- export type PageVersionWhereUniqueInput = Prisma.AtLeast<{
264
- id?: string
265
- AND?: Prisma.PageVersionWhereInput | Prisma.PageVersionWhereInput[]
266
- OR?: Prisma.PageVersionWhereInput[]
267
- NOT?: Prisma.PageVersionWhereInput | Prisma.PageVersionWhereInput[]
268
- pageId?: Prisma.StringFilter<"PageVersion"> | string
269
- version?: Prisma.IntFilter<"PageVersion"> | number
270
- notes?: Prisma.StringNullableFilter<"PageVersion"> | string | null
271
- canvas?: Prisma.JsonNullableFilter<"PageVersion">
272
- content?: Prisma.JsonNullableFilter<"PageVersion">
273
- restoredFromVersion?: Prisma.IntNullableFilter<"PageVersion"> | number | null
274
- fromDesignVersionId?: Prisma.StringNullableFilter<"PageVersion"> | string | null
275
- createdAt?: Prisma.DateTimeFilter<"PageVersion"> | Date | string
276
- page?: Prisma.XOR<Prisma.DesignPageScalarRelationFilter, Prisma.DesignPageWhereInput>
277
- }, "id">
278
-
279
- export type PageVersionOrderByWithAggregationInput = {
280
- id?: Prisma.SortOrder
281
- pageId?: Prisma.SortOrder
282
- version?: Prisma.SortOrder
283
- notes?: Prisma.SortOrderInput | Prisma.SortOrder
284
- canvas?: Prisma.SortOrderInput | Prisma.SortOrder
285
- content?: Prisma.SortOrderInput | Prisma.SortOrder
286
- restoredFromVersion?: Prisma.SortOrderInput | Prisma.SortOrder
287
- fromDesignVersionId?: Prisma.SortOrderInput | Prisma.SortOrder
288
- createdAt?: Prisma.SortOrder
289
- _count?: Prisma.PageVersionCountOrderByAggregateInput
290
- _avg?: Prisma.PageVersionAvgOrderByAggregateInput
291
- _max?: Prisma.PageVersionMaxOrderByAggregateInput
292
- _min?: Prisma.PageVersionMinOrderByAggregateInput
293
- _sum?: Prisma.PageVersionSumOrderByAggregateInput
294
- }
295
-
296
- export type PageVersionScalarWhereWithAggregatesInput = {
297
- AND?: Prisma.PageVersionScalarWhereWithAggregatesInput | Prisma.PageVersionScalarWhereWithAggregatesInput[]
298
- OR?: Prisma.PageVersionScalarWhereWithAggregatesInput[]
299
- NOT?: Prisma.PageVersionScalarWhereWithAggregatesInput | Prisma.PageVersionScalarWhereWithAggregatesInput[]
300
- id?: Prisma.StringWithAggregatesFilter<"PageVersion"> | string
301
- pageId?: Prisma.StringWithAggregatesFilter<"PageVersion"> | string
302
- version?: Prisma.IntWithAggregatesFilter<"PageVersion"> | number
303
- notes?: Prisma.StringNullableWithAggregatesFilter<"PageVersion"> | string | null
304
- canvas?: Prisma.JsonNullableWithAggregatesFilter<"PageVersion">
305
- content?: Prisma.JsonNullableWithAggregatesFilter<"PageVersion">
306
- restoredFromVersion?: Prisma.IntNullableWithAggregatesFilter<"PageVersion"> | number | null
307
- fromDesignVersionId?: Prisma.StringNullableWithAggregatesFilter<"PageVersion"> | string | null
308
- createdAt?: Prisma.DateTimeWithAggregatesFilter<"PageVersion"> | Date | string
309
- }
310
-
311
- export type PageVersionCreateInput = {
312
- id?: string
313
- version: number
314
- notes?: string | null
315
- canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
316
- content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
317
- restoredFromVersion?: number | null
318
- fromDesignVersionId?: string | null
319
- createdAt?: Date | string
320
- page: Prisma.DesignPageCreateNestedOneWithoutPageVersionsInput
321
- }
322
-
323
- export type PageVersionUncheckedCreateInput = {
324
- id?: string
325
- pageId: string
326
- version: number
327
- notes?: string | null
328
- canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
329
- content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
330
- restoredFromVersion?: number | null
331
- fromDesignVersionId?: string | null
332
- createdAt?: Date | string
333
- }
334
-
335
- export type PageVersionUpdateInput = {
336
- id?: Prisma.StringFieldUpdateOperationsInput | string
337
- version?: Prisma.IntFieldUpdateOperationsInput | number
338
- notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
339
- canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
340
- content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
341
- restoredFromVersion?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
342
- fromDesignVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
343
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
344
- page?: Prisma.DesignPageUpdateOneRequiredWithoutPageVersionsNestedInput
345
- }
346
-
347
- export type PageVersionUncheckedUpdateInput = {
348
- id?: Prisma.StringFieldUpdateOperationsInput | string
349
- pageId?: Prisma.StringFieldUpdateOperationsInput | string
350
- version?: Prisma.IntFieldUpdateOperationsInput | number
351
- notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
352
- canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
353
- content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
354
- restoredFromVersion?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
355
- fromDesignVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
356
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
357
- }
358
-
359
- export type PageVersionCreateManyInput = {
360
- id?: string
361
- pageId: string
362
- version: number
363
- notes?: string | null
364
- canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
365
- content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
366
- restoredFromVersion?: number | null
367
- fromDesignVersionId?: string | null
368
- createdAt?: Date | string
369
- }
370
-
371
- export type PageVersionUpdateManyMutationInput = {
372
- id?: Prisma.StringFieldUpdateOperationsInput | string
373
- version?: Prisma.IntFieldUpdateOperationsInput | number
374
- notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
375
- canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
376
- content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
377
- restoredFromVersion?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
378
- fromDesignVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
379
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
380
- }
381
-
382
- export type PageVersionUncheckedUpdateManyInput = {
383
- id?: Prisma.StringFieldUpdateOperationsInput | string
384
- pageId?: Prisma.StringFieldUpdateOperationsInput | string
385
- version?: Prisma.IntFieldUpdateOperationsInput | number
386
- notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
387
- canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
388
- content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
389
- restoredFromVersion?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
390
- fromDesignVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
391
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
392
- }
393
-
394
- export type PageVersionListRelationFilter = {
395
- every?: Prisma.PageVersionWhereInput
396
- some?: Prisma.PageVersionWhereInput
397
- none?: Prisma.PageVersionWhereInput
398
- }
399
-
400
- export type PageVersionOrderByRelationAggregateInput = {
401
- _count?: Prisma.SortOrder
402
- }
403
-
404
- export type PageVersionCountOrderByAggregateInput = {
405
- id?: Prisma.SortOrder
406
- pageId?: Prisma.SortOrder
407
- version?: Prisma.SortOrder
408
- notes?: Prisma.SortOrder
409
- canvas?: Prisma.SortOrder
410
- content?: Prisma.SortOrder
411
- restoredFromVersion?: Prisma.SortOrder
412
- fromDesignVersionId?: Prisma.SortOrder
413
- createdAt?: Prisma.SortOrder
414
- }
415
-
416
- export type PageVersionAvgOrderByAggregateInput = {
417
- version?: Prisma.SortOrder
418
- restoredFromVersion?: Prisma.SortOrder
419
- }
420
-
421
- export type PageVersionMaxOrderByAggregateInput = {
422
- id?: Prisma.SortOrder
423
- pageId?: Prisma.SortOrder
424
- version?: Prisma.SortOrder
425
- notes?: Prisma.SortOrder
426
- restoredFromVersion?: Prisma.SortOrder
427
- fromDesignVersionId?: Prisma.SortOrder
428
- createdAt?: Prisma.SortOrder
429
- }
430
-
431
- export type PageVersionMinOrderByAggregateInput = {
432
- id?: Prisma.SortOrder
433
- pageId?: Prisma.SortOrder
434
- version?: Prisma.SortOrder
435
- notes?: Prisma.SortOrder
436
- restoredFromVersion?: Prisma.SortOrder
437
- fromDesignVersionId?: Prisma.SortOrder
438
- createdAt?: Prisma.SortOrder
439
- }
440
-
441
- export type PageVersionSumOrderByAggregateInput = {
442
- version?: Prisma.SortOrder
443
- restoredFromVersion?: Prisma.SortOrder
444
- }
445
-
446
- export type PageVersionCreateNestedManyWithoutPageInput = {
447
- create?: Prisma.XOR<Prisma.PageVersionCreateWithoutPageInput, Prisma.PageVersionUncheckedCreateWithoutPageInput> | Prisma.PageVersionCreateWithoutPageInput[] | Prisma.PageVersionUncheckedCreateWithoutPageInput[]
448
- connectOrCreate?: Prisma.PageVersionCreateOrConnectWithoutPageInput | Prisma.PageVersionCreateOrConnectWithoutPageInput[]
449
- createMany?: Prisma.PageVersionCreateManyPageInputEnvelope
450
- connect?: Prisma.PageVersionWhereUniqueInput | Prisma.PageVersionWhereUniqueInput[]
451
- }
452
-
453
- export type PageVersionUncheckedCreateNestedManyWithoutPageInput = {
454
- create?: Prisma.XOR<Prisma.PageVersionCreateWithoutPageInput, Prisma.PageVersionUncheckedCreateWithoutPageInput> | Prisma.PageVersionCreateWithoutPageInput[] | Prisma.PageVersionUncheckedCreateWithoutPageInput[]
455
- connectOrCreate?: Prisma.PageVersionCreateOrConnectWithoutPageInput | Prisma.PageVersionCreateOrConnectWithoutPageInput[]
456
- createMany?: Prisma.PageVersionCreateManyPageInputEnvelope
457
- connect?: Prisma.PageVersionWhereUniqueInput | Prisma.PageVersionWhereUniqueInput[]
458
- }
459
-
460
- export type PageVersionUpdateManyWithoutPageNestedInput = {
461
- create?: Prisma.XOR<Prisma.PageVersionCreateWithoutPageInput, Prisma.PageVersionUncheckedCreateWithoutPageInput> | Prisma.PageVersionCreateWithoutPageInput[] | Prisma.PageVersionUncheckedCreateWithoutPageInput[]
462
- connectOrCreate?: Prisma.PageVersionCreateOrConnectWithoutPageInput | Prisma.PageVersionCreateOrConnectWithoutPageInput[]
463
- upsert?: Prisma.PageVersionUpsertWithWhereUniqueWithoutPageInput | Prisma.PageVersionUpsertWithWhereUniqueWithoutPageInput[]
464
- createMany?: Prisma.PageVersionCreateManyPageInputEnvelope
465
- set?: Prisma.PageVersionWhereUniqueInput | Prisma.PageVersionWhereUniqueInput[]
466
- disconnect?: Prisma.PageVersionWhereUniqueInput | Prisma.PageVersionWhereUniqueInput[]
467
- delete?: Prisma.PageVersionWhereUniqueInput | Prisma.PageVersionWhereUniqueInput[]
468
- connect?: Prisma.PageVersionWhereUniqueInput | Prisma.PageVersionWhereUniqueInput[]
469
- update?: Prisma.PageVersionUpdateWithWhereUniqueWithoutPageInput | Prisma.PageVersionUpdateWithWhereUniqueWithoutPageInput[]
470
- updateMany?: Prisma.PageVersionUpdateManyWithWhereWithoutPageInput | Prisma.PageVersionUpdateManyWithWhereWithoutPageInput[]
471
- deleteMany?: Prisma.PageVersionScalarWhereInput | Prisma.PageVersionScalarWhereInput[]
472
- }
473
-
474
- export type PageVersionUncheckedUpdateManyWithoutPageNestedInput = {
475
- create?: Prisma.XOR<Prisma.PageVersionCreateWithoutPageInput, Prisma.PageVersionUncheckedCreateWithoutPageInput> | Prisma.PageVersionCreateWithoutPageInput[] | Prisma.PageVersionUncheckedCreateWithoutPageInput[]
476
- connectOrCreate?: Prisma.PageVersionCreateOrConnectWithoutPageInput | Prisma.PageVersionCreateOrConnectWithoutPageInput[]
477
- upsert?: Prisma.PageVersionUpsertWithWhereUniqueWithoutPageInput | Prisma.PageVersionUpsertWithWhereUniqueWithoutPageInput[]
478
- createMany?: Prisma.PageVersionCreateManyPageInputEnvelope
479
- set?: Prisma.PageVersionWhereUniqueInput | Prisma.PageVersionWhereUniqueInput[]
480
- disconnect?: Prisma.PageVersionWhereUniqueInput | Prisma.PageVersionWhereUniqueInput[]
481
- delete?: Prisma.PageVersionWhereUniqueInput | Prisma.PageVersionWhereUniqueInput[]
482
- connect?: Prisma.PageVersionWhereUniqueInput | Prisma.PageVersionWhereUniqueInput[]
483
- update?: Prisma.PageVersionUpdateWithWhereUniqueWithoutPageInput | Prisma.PageVersionUpdateWithWhereUniqueWithoutPageInput[]
484
- updateMany?: Prisma.PageVersionUpdateManyWithWhereWithoutPageInput | Prisma.PageVersionUpdateManyWithWhereWithoutPageInput[]
485
- deleteMany?: Prisma.PageVersionScalarWhereInput | Prisma.PageVersionScalarWhereInput[]
486
- }
487
-
488
- export type PageVersionCreateWithoutPageInput = {
489
- id?: string
490
- version: number
491
- notes?: string | null
492
- canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
493
- content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
494
- restoredFromVersion?: number | null
495
- fromDesignVersionId?: string | null
496
- createdAt?: Date | string
497
- }
498
-
499
- export type PageVersionUncheckedCreateWithoutPageInput = {
500
- id?: string
501
- version: number
502
- notes?: string | null
503
- canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
504
- content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
505
- restoredFromVersion?: number | null
506
- fromDesignVersionId?: string | null
507
- createdAt?: Date | string
508
- }
509
-
510
- export type PageVersionCreateOrConnectWithoutPageInput = {
511
- where: Prisma.PageVersionWhereUniqueInput
512
- create: Prisma.XOR<Prisma.PageVersionCreateWithoutPageInput, Prisma.PageVersionUncheckedCreateWithoutPageInput>
513
- }
514
-
515
- export type PageVersionCreateManyPageInputEnvelope = {
516
- data: Prisma.PageVersionCreateManyPageInput | Prisma.PageVersionCreateManyPageInput[]
517
- }
518
-
519
- export type PageVersionUpsertWithWhereUniqueWithoutPageInput = {
520
- where: Prisma.PageVersionWhereUniqueInput
521
- update: Prisma.XOR<Prisma.PageVersionUpdateWithoutPageInput, Prisma.PageVersionUncheckedUpdateWithoutPageInput>
522
- create: Prisma.XOR<Prisma.PageVersionCreateWithoutPageInput, Prisma.PageVersionUncheckedCreateWithoutPageInput>
523
- }
524
-
525
- export type PageVersionUpdateWithWhereUniqueWithoutPageInput = {
526
- where: Prisma.PageVersionWhereUniqueInput
527
- data: Prisma.XOR<Prisma.PageVersionUpdateWithoutPageInput, Prisma.PageVersionUncheckedUpdateWithoutPageInput>
528
- }
529
-
530
- export type PageVersionUpdateManyWithWhereWithoutPageInput = {
531
- where: Prisma.PageVersionScalarWhereInput
532
- data: Prisma.XOR<Prisma.PageVersionUpdateManyMutationInput, Prisma.PageVersionUncheckedUpdateManyWithoutPageInput>
533
- }
534
-
535
- export type PageVersionScalarWhereInput = {
536
- AND?: Prisma.PageVersionScalarWhereInput | Prisma.PageVersionScalarWhereInput[]
537
- OR?: Prisma.PageVersionScalarWhereInput[]
538
- NOT?: Prisma.PageVersionScalarWhereInput | Prisma.PageVersionScalarWhereInput[]
539
- id?: Prisma.StringFilter<"PageVersion"> | string
540
- pageId?: Prisma.StringFilter<"PageVersion"> | string
541
- version?: Prisma.IntFilter<"PageVersion"> | number
542
- notes?: Prisma.StringNullableFilter<"PageVersion"> | string | null
543
- canvas?: Prisma.JsonNullableFilter<"PageVersion">
544
- content?: Prisma.JsonNullableFilter<"PageVersion">
545
- restoredFromVersion?: Prisma.IntNullableFilter<"PageVersion"> | number | null
546
- fromDesignVersionId?: Prisma.StringNullableFilter<"PageVersion"> | string | null
547
- createdAt?: Prisma.DateTimeFilter<"PageVersion"> | Date | string
548
- }
549
-
550
- export type PageVersionCreateManyPageInput = {
551
- id?: string
552
- version: number
553
- notes?: string | null
554
- canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
555
- content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
556
- restoredFromVersion?: number | null
557
- fromDesignVersionId?: string | null
558
- createdAt?: Date | string
559
- }
560
-
561
- export type PageVersionUpdateWithoutPageInput = {
562
- id?: Prisma.StringFieldUpdateOperationsInput | string
563
- version?: Prisma.IntFieldUpdateOperationsInput | number
564
- notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
565
- canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
566
- content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
567
- restoredFromVersion?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
568
- fromDesignVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
569
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
570
- }
571
-
572
- export type PageVersionUncheckedUpdateWithoutPageInput = {
573
- id?: Prisma.StringFieldUpdateOperationsInput | string
574
- version?: Prisma.IntFieldUpdateOperationsInput | number
575
- notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
576
- canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
577
- content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
578
- restoredFromVersion?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
579
- fromDesignVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
580
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
581
- }
582
-
583
- export type PageVersionUncheckedUpdateManyWithoutPageInput = {
584
- id?: Prisma.StringFieldUpdateOperationsInput | string
585
- version?: Prisma.IntFieldUpdateOperationsInput | number
586
- notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
587
- canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
588
- content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
589
- restoredFromVersion?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
590
- fromDesignVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
591
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
592
- }
593
-
594
-
595
-
596
- export type PageVersionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
597
- id?: boolean
598
- pageId?: boolean
599
- version?: boolean
600
- notes?: boolean
601
- canvas?: boolean
602
- content?: boolean
603
- restoredFromVersion?: boolean
604
- fromDesignVersionId?: boolean
605
- createdAt?: boolean
606
- page?: boolean | Prisma.DesignPageDefaultArgs<ExtArgs>
607
- }, ExtArgs["result"]["pageVersion"]>
608
-
609
- export type PageVersionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
610
- id?: boolean
611
- pageId?: boolean
612
- version?: boolean
613
- notes?: boolean
614
- canvas?: boolean
615
- content?: boolean
616
- restoredFromVersion?: boolean
617
- fromDesignVersionId?: boolean
618
- createdAt?: boolean
619
- page?: boolean | Prisma.DesignPageDefaultArgs<ExtArgs>
620
- }, ExtArgs["result"]["pageVersion"]>
621
-
622
- export type PageVersionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
623
- id?: boolean
624
- pageId?: boolean
625
- version?: boolean
626
- notes?: boolean
627
- canvas?: boolean
628
- content?: boolean
629
- restoredFromVersion?: boolean
630
- fromDesignVersionId?: boolean
631
- createdAt?: boolean
632
- page?: boolean | Prisma.DesignPageDefaultArgs<ExtArgs>
633
- }, ExtArgs["result"]["pageVersion"]>
634
-
635
- export type PageVersionSelectScalar = {
636
- id?: boolean
637
- pageId?: boolean
638
- version?: boolean
639
- notes?: boolean
640
- canvas?: boolean
641
- content?: boolean
642
- restoredFromVersion?: boolean
643
- fromDesignVersionId?: boolean
644
- createdAt?: boolean
645
- }
646
-
647
- export type PageVersionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "pageId" | "version" | "notes" | "canvas" | "content" | "restoredFromVersion" | "fromDesignVersionId" | "createdAt", ExtArgs["result"]["pageVersion"]>
648
- export type PageVersionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
649
- page?: boolean | Prisma.DesignPageDefaultArgs<ExtArgs>
650
- }
651
- export type PageVersionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
652
- page?: boolean | Prisma.DesignPageDefaultArgs<ExtArgs>
653
- }
654
- export type PageVersionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
655
- page?: boolean | Prisma.DesignPageDefaultArgs<ExtArgs>
656
- }
657
-
658
- export type $PageVersionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
659
- name: "PageVersion"
660
- objects: {
661
- page: Prisma.$DesignPagePayload<ExtArgs>
662
- }
663
- scalars: runtime.Types.Extensions.GetPayloadResult<{
664
- id: string
665
- pageId: string
666
- version: number
667
- notes: string | null
668
- canvas: runtime.JsonValue | null
669
- content: runtime.JsonValue | null
670
- restoredFromVersion: number | null
671
- fromDesignVersionId: string | null
672
- createdAt: Date
673
- }, ExtArgs["result"]["pageVersion"]>
674
- composites: {}
675
- }
676
-
677
- export type PageVersionGetPayload<S extends boolean | null | undefined | PageVersionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PageVersionPayload, S>
678
-
679
- export type PageVersionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
680
- Omit<PageVersionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
681
- select?: PageVersionCountAggregateInputType | true
682
- }
683
-
684
- export interface PageVersionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
685
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['PageVersion'], meta: { name: 'PageVersion' } }
686
- /**
687
- * Find zero or one PageVersion that matches the filter.
688
- * @param {PageVersionFindUniqueArgs} args - Arguments to find a PageVersion
689
- * @example
690
- * // Get one PageVersion
691
- * const pageVersion = await prisma.pageVersion.findUnique({
692
- * where: {
693
- * // ... provide filter here
694
- * }
695
- * })
696
- */
697
- findUnique<T extends PageVersionFindUniqueArgs>(args: Prisma.SelectSubset<T, PageVersionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PageVersionClient<runtime.Types.Result.GetResult<Prisma.$PageVersionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
698
-
699
- /**
700
- * Find one PageVersion that matches the filter or throw an error with `error.code='P2025'`
701
- * if no matches were found.
702
- * @param {PageVersionFindUniqueOrThrowArgs} args - Arguments to find a PageVersion
703
- * @example
704
- * // Get one PageVersion
705
- * const pageVersion = await prisma.pageVersion.findUniqueOrThrow({
706
- * where: {
707
- * // ... provide filter here
708
- * }
709
- * })
710
- */
711
- findUniqueOrThrow<T extends PageVersionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PageVersionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PageVersionClient<runtime.Types.Result.GetResult<Prisma.$PageVersionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
712
-
713
- /**
714
- * Find the first PageVersion that matches the filter.
715
- * Note, that providing `undefined` is treated as the value not being there.
716
- * Read more here: https://pris.ly/d/null-undefined
717
- * @param {PageVersionFindFirstArgs} args - Arguments to find a PageVersion
718
- * @example
719
- * // Get one PageVersion
720
- * const pageVersion = await prisma.pageVersion.findFirst({
721
- * where: {
722
- * // ... provide filter here
723
- * }
724
- * })
725
- */
726
- findFirst<T extends PageVersionFindFirstArgs>(args?: Prisma.SelectSubset<T, PageVersionFindFirstArgs<ExtArgs>>): Prisma.Prisma__PageVersionClient<runtime.Types.Result.GetResult<Prisma.$PageVersionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
727
-
728
- /**
729
- * Find the first PageVersion that matches the filter or
730
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
731
- * Note, that providing `undefined` is treated as the value not being there.
732
- * Read more here: https://pris.ly/d/null-undefined
733
- * @param {PageVersionFindFirstOrThrowArgs} args - Arguments to find a PageVersion
734
- * @example
735
- * // Get one PageVersion
736
- * const pageVersion = await prisma.pageVersion.findFirstOrThrow({
737
- * where: {
738
- * // ... provide filter here
739
- * }
740
- * })
741
- */
742
- findFirstOrThrow<T extends PageVersionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PageVersionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PageVersionClient<runtime.Types.Result.GetResult<Prisma.$PageVersionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
743
-
744
- /**
745
- * Find zero or more PageVersions that matches the filter.
746
- * Note, that providing `undefined` is treated as the value not being there.
747
- * Read more here: https://pris.ly/d/null-undefined
748
- * @param {PageVersionFindManyArgs} args - Arguments to filter and select certain fields only.
749
- * @example
750
- * // Get all PageVersions
751
- * const pageVersions = await prisma.pageVersion.findMany()
752
- *
753
- * // Get first 10 PageVersions
754
- * const pageVersions = await prisma.pageVersion.findMany({ take: 10 })
755
- *
756
- * // Only select the `id`
757
- * const pageVersionWithIdOnly = await prisma.pageVersion.findMany({ select: { id: true } })
758
- *
759
- */
760
- findMany<T extends PageVersionFindManyArgs>(args?: Prisma.SelectSubset<T, PageVersionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PageVersionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
761
-
762
- /**
763
- * Create a PageVersion.
764
- * @param {PageVersionCreateArgs} args - Arguments to create a PageVersion.
765
- * @example
766
- * // Create one PageVersion
767
- * const PageVersion = await prisma.pageVersion.create({
768
- * data: {
769
- * // ... data to create a PageVersion
770
- * }
771
- * })
772
- *
773
- */
774
- create<T extends PageVersionCreateArgs>(args: Prisma.SelectSubset<T, PageVersionCreateArgs<ExtArgs>>): Prisma.Prisma__PageVersionClient<runtime.Types.Result.GetResult<Prisma.$PageVersionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
775
-
776
- /**
777
- * Create many PageVersions.
778
- * @param {PageVersionCreateManyArgs} args - Arguments to create many PageVersions.
779
- * @example
780
- * // Create many PageVersions
781
- * const pageVersion = await prisma.pageVersion.createMany({
782
- * data: [
783
- * // ... provide data here
784
- * ]
785
- * })
786
- *
787
- */
788
- createMany<T extends PageVersionCreateManyArgs>(args?: Prisma.SelectSubset<T, PageVersionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
789
-
790
- /**
791
- * Create many PageVersions and returns the data saved in the database.
792
- * @param {PageVersionCreateManyAndReturnArgs} args - Arguments to create many PageVersions.
793
- * @example
794
- * // Create many PageVersions
795
- * const pageVersion = await prisma.pageVersion.createManyAndReturn({
796
- * data: [
797
- * // ... provide data here
798
- * ]
799
- * })
800
- *
801
- * // Create many PageVersions and only return the `id`
802
- * const pageVersionWithIdOnly = await prisma.pageVersion.createManyAndReturn({
803
- * select: { id: true },
804
- * data: [
805
- * // ... provide data here
806
- * ]
807
- * })
808
- * Note, that providing `undefined` is treated as the value not being there.
809
- * Read more here: https://pris.ly/d/null-undefined
810
- *
811
- */
812
- createManyAndReturn<T extends PageVersionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PageVersionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PageVersionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
813
-
814
- /**
815
- * Delete a PageVersion.
816
- * @param {PageVersionDeleteArgs} args - Arguments to delete one PageVersion.
817
- * @example
818
- * // Delete one PageVersion
819
- * const PageVersion = await prisma.pageVersion.delete({
820
- * where: {
821
- * // ... filter to delete one PageVersion
822
- * }
823
- * })
824
- *
825
- */
826
- delete<T extends PageVersionDeleteArgs>(args: Prisma.SelectSubset<T, PageVersionDeleteArgs<ExtArgs>>): Prisma.Prisma__PageVersionClient<runtime.Types.Result.GetResult<Prisma.$PageVersionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
827
-
828
- /**
829
- * Update one PageVersion.
830
- * @param {PageVersionUpdateArgs} args - Arguments to update one PageVersion.
831
- * @example
832
- * // Update one PageVersion
833
- * const pageVersion = await prisma.pageVersion.update({
834
- * where: {
835
- * // ... provide filter here
836
- * },
837
- * data: {
838
- * // ... provide data here
839
- * }
840
- * })
841
- *
842
- */
843
- update<T extends PageVersionUpdateArgs>(args: Prisma.SelectSubset<T, PageVersionUpdateArgs<ExtArgs>>): Prisma.Prisma__PageVersionClient<runtime.Types.Result.GetResult<Prisma.$PageVersionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
844
-
845
- /**
846
- * Delete zero or more PageVersions.
847
- * @param {PageVersionDeleteManyArgs} args - Arguments to filter PageVersions to delete.
848
- * @example
849
- * // Delete a few PageVersions
850
- * const { count } = await prisma.pageVersion.deleteMany({
851
- * where: {
852
- * // ... provide filter here
853
- * }
854
- * })
855
- *
856
- */
857
- deleteMany<T extends PageVersionDeleteManyArgs>(args?: Prisma.SelectSubset<T, PageVersionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
858
-
859
- /**
860
- * Update zero or more PageVersions.
861
- * Note, that providing `undefined` is treated as the value not being there.
862
- * Read more here: https://pris.ly/d/null-undefined
863
- * @param {PageVersionUpdateManyArgs} args - Arguments to update one or more rows.
864
- * @example
865
- * // Update many PageVersions
866
- * const pageVersion = await prisma.pageVersion.updateMany({
867
- * where: {
868
- * // ... provide filter here
869
- * },
870
- * data: {
871
- * // ... provide data here
872
- * }
873
- * })
874
- *
875
- */
876
- updateMany<T extends PageVersionUpdateManyArgs>(args: Prisma.SelectSubset<T, PageVersionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
877
-
878
- /**
879
- * Update zero or more PageVersions and returns the data updated in the database.
880
- * @param {PageVersionUpdateManyAndReturnArgs} args - Arguments to update many PageVersions.
881
- * @example
882
- * // Update many PageVersions
883
- * const pageVersion = await prisma.pageVersion.updateManyAndReturn({
884
- * where: {
885
- * // ... provide filter here
886
- * },
887
- * data: [
888
- * // ... provide data here
889
- * ]
890
- * })
891
- *
892
- * // Update zero or more PageVersions and only return the `id`
893
- * const pageVersionWithIdOnly = await prisma.pageVersion.updateManyAndReturn({
894
- * select: { id: true },
895
- * where: {
896
- * // ... provide filter here
897
- * },
898
- * data: [
899
- * // ... provide data here
900
- * ]
901
- * })
902
- * Note, that providing `undefined` is treated as the value not being there.
903
- * Read more here: https://pris.ly/d/null-undefined
904
- *
905
- */
906
- updateManyAndReturn<T extends PageVersionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PageVersionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PageVersionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
907
-
908
- /**
909
- * Create or update one PageVersion.
910
- * @param {PageVersionUpsertArgs} args - Arguments to update or create a PageVersion.
911
- * @example
912
- * // Update or create a PageVersion
913
- * const pageVersion = await prisma.pageVersion.upsert({
914
- * create: {
915
- * // ... data to create a PageVersion
916
- * },
917
- * update: {
918
- * // ... in case it already exists, update
919
- * },
920
- * where: {
921
- * // ... the filter for the PageVersion we want to update
922
- * }
923
- * })
924
- */
925
- upsert<T extends PageVersionUpsertArgs>(args: Prisma.SelectSubset<T, PageVersionUpsertArgs<ExtArgs>>): Prisma.Prisma__PageVersionClient<runtime.Types.Result.GetResult<Prisma.$PageVersionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
926
-
927
-
928
- /**
929
- * Count the number of PageVersions.
930
- * Note, that providing `undefined` is treated as the value not being there.
931
- * Read more here: https://pris.ly/d/null-undefined
932
- * @param {PageVersionCountArgs} args - Arguments to filter PageVersions to count.
933
- * @example
934
- * // Count the number of PageVersions
935
- * const count = await prisma.pageVersion.count({
936
- * where: {
937
- * // ... the filter for the PageVersions we want to count
938
- * }
939
- * })
940
- **/
941
- count<T extends PageVersionCountArgs>(
942
- args?: Prisma.Subset<T, PageVersionCountArgs>,
943
- ): Prisma.PrismaPromise<
944
- T extends runtime.Types.Utils.Record<'select', any>
945
- ? T['select'] extends true
946
- ? number
947
- : Prisma.GetScalarType<T['select'], PageVersionCountAggregateOutputType>
948
- : number
949
- >
950
-
951
- /**
952
- * Allows you to perform aggregations operations on a PageVersion.
953
- * Note, that providing `undefined` is treated as the value not being there.
954
- * Read more here: https://pris.ly/d/null-undefined
955
- * @param {PageVersionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
956
- * @example
957
- * // Ordered by age ascending
958
- * // Where email contains prisma.io
959
- * // Limited to the 10 users
960
- * const aggregations = await prisma.user.aggregate({
961
- * _avg: {
962
- * age: true,
963
- * },
964
- * where: {
965
- * email: {
966
- * contains: "prisma.io",
967
- * },
968
- * },
969
- * orderBy: {
970
- * age: "asc",
971
- * },
972
- * take: 10,
973
- * })
974
- **/
975
- aggregate<T extends PageVersionAggregateArgs>(args: Prisma.Subset<T, PageVersionAggregateArgs>): Prisma.PrismaPromise<GetPageVersionAggregateType<T>>
976
-
977
- /**
978
- * Group by PageVersion.
979
- * Note, that providing `undefined` is treated as the value not being there.
980
- * Read more here: https://pris.ly/d/null-undefined
981
- * @param {PageVersionGroupByArgs} args - Group by arguments.
982
- * @example
983
- * // Group by city, order by createdAt, get count
984
- * const result = await prisma.user.groupBy({
985
- * by: ['city', 'createdAt'],
986
- * orderBy: {
987
- * createdAt: true
988
- * },
989
- * _count: {
990
- * _all: true
991
- * },
992
- * })
993
- *
994
- **/
995
- groupBy<
996
- T extends PageVersionGroupByArgs,
997
- HasSelectOrTake extends Prisma.Or<
998
- Prisma.Extends<'skip', Prisma.Keys<T>>,
999
- Prisma.Extends<'take', Prisma.Keys<T>>
1000
- >,
1001
- OrderByArg extends Prisma.True extends HasSelectOrTake
1002
- ? { orderBy: PageVersionGroupByArgs['orderBy'] }
1003
- : { orderBy?: PageVersionGroupByArgs['orderBy'] },
1004
- OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1005
- ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1006
- ByValid extends Prisma.Has<ByFields, OrderFields>,
1007
- HavingFields extends Prisma.GetHavingFields<T['having']>,
1008
- HavingValid extends Prisma.Has<ByFields, HavingFields>,
1009
- ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1010
- InputErrors extends ByEmpty extends Prisma.True
1011
- ? `Error: "by" must not be empty.`
1012
- : HavingValid extends Prisma.False
1013
- ? {
1014
- [P in HavingFields]: P extends ByFields
1015
- ? never
1016
- : P extends string
1017
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1018
- : [
1019
- Error,
1020
- 'Field ',
1021
- P,
1022
- ` in "having" needs to be provided in "by"`,
1023
- ]
1024
- }[HavingFields]
1025
- : 'take' extends Prisma.Keys<T>
1026
- ? 'orderBy' extends Prisma.Keys<T>
1027
- ? ByValid extends Prisma.True
1028
- ? {}
1029
- : {
1030
- [P in OrderFields]: P extends ByFields
1031
- ? never
1032
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1033
- }[OrderFields]
1034
- : 'Error: If you provide "take", you also need to provide "orderBy"'
1035
- : 'skip' extends Prisma.Keys<T>
1036
- ? 'orderBy' extends Prisma.Keys<T>
1037
- ? ByValid extends Prisma.True
1038
- ? {}
1039
- : {
1040
- [P in OrderFields]: P extends ByFields
1041
- ? never
1042
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1043
- }[OrderFields]
1044
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
1045
- : ByValid extends Prisma.True
1046
- ? {}
1047
- : {
1048
- [P in OrderFields]: P extends ByFields
1049
- ? never
1050
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1051
- }[OrderFields]
1052
- >(args: Prisma.SubsetIntersection<T, PageVersionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPageVersionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1053
- /**
1054
- * Fields of the PageVersion model
1055
- */
1056
- readonly fields: PageVersionFieldRefs;
1057
- }
1058
-
1059
- /**
1060
- * The delegate class that acts as a "Promise-like" for PageVersion.
1061
- * Why is this prefixed with `Prisma__`?
1062
- * Because we want to prevent naming conflicts as mentioned in
1063
- * https://github.com/prisma/prisma-client-js/issues/707
1064
- */
1065
- export interface Prisma__PageVersionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1066
- readonly [Symbol.toStringTag]: "PrismaPromise"
1067
- page<T extends Prisma.DesignPageDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DesignPageDefaultArgs<ExtArgs>>): Prisma.Prisma__DesignPageClient<runtime.Types.Result.GetResult<Prisma.$DesignPagePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1068
- /**
1069
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1070
- * @param onfulfilled The callback to execute when the Promise is resolved.
1071
- * @param onrejected The callback to execute when the Promise is rejected.
1072
- * @returns A Promise for the completion of which ever callback is executed.
1073
- */
1074
- 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>
1075
- /**
1076
- * Attaches a callback for only the rejection of the Promise.
1077
- * @param onrejected The callback to execute when the Promise is rejected.
1078
- * @returns A Promise for the completion of the callback.
1079
- */
1080
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1081
- /**
1082
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1083
- * resolved value cannot be modified from the callback.
1084
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1085
- * @returns A Promise for the completion of the callback.
1086
- */
1087
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1088
- }
1089
-
1090
-
1091
-
1092
-
1093
- /**
1094
- * Fields of the PageVersion model
1095
- */
1096
- export interface PageVersionFieldRefs {
1097
- readonly id: Prisma.FieldRef<"PageVersion", 'String'>
1098
- readonly pageId: Prisma.FieldRef<"PageVersion", 'String'>
1099
- readonly version: Prisma.FieldRef<"PageVersion", 'Int'>
1100
- readonly notes: Prisma.FieldRef<"PageVersion", 'String'>
1101
- readonly canvas: Prisma.FieldRef<"PageVersion", 'Json'>
1102
- readonly content: Prisma.FieldRef<"PageVersion", 'Json'>
1103
- readonly restoredFromVersion: Prisma.FieldRef<"PageVersion", 'Int'>
1104
- readonly fromDesignVersionId: Prisma.FieldRef<"PageVersion", 'String'>
1105
- readonly createdAt: Prisma.FieldRef<"PageVersion", 'DateTime'>
1106
- }
1107
-
1108
-
1109
- // Custom InputTypes
1110
- /**
1111
- * PageVersion findUnique
1112
- */
1113
- export type PageVersionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1114
- /**
1115
- * Select specific fields to fetch from the PageVersion
1116
- */
1117
- select?: Prisma.PageVersionSelect<ExtArgs> | null
1118
- /**
1119
- * Omit specific fields from the PageVersion
1120
- */
1121
- omit?: Prisma.PageVersionOmit<ExtArgs> | null
1122
- /**
1123
- * Choose, which related nodes to fetch as well
1124
- */
1125
- include?: Prisma.PageVersionInclude<ExtArgs> | null
1126
- /**
1127
- * Filter, which PageVersion to fetch.
1128
- */
1129
- where: Prisma.PageVersionWhereUniqueInput
1130
- }
1131
-
1132
- /**
1133
- * PageVersion findUniqueOrThrow
1134
- */
1135
- export type PageVersionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1136
- /**
1137
- * Select specific fields to fetch from the PageVersion
1138
- */
1139
- select?: Prisma.PageVersionSelect<ExtArgs> | null
1140
- /**
1141
- * Omit specific fields from the PageVersion
1142
- */
1143
- omit?: Prisma.PageVersionOmit<ExtArgs> | null
1144
- /**
1145
- * Choose, which related nodes to fetch as well
1146
- */
1147
- include?: Prisma.PageVersionInclude<ExtArgs> | null
1148
- /**
1149
- * Filter, which PageVersion to fetch.
1150
- */
1151
- where: Prisma.PageVersionWhereUniqueInput
1152
- }
1153
-
1154
- /**
1155
- * PageVersion findFirst
1156
- */
1157
- export type PageVersionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1158
- /**
1159
- * Select specific fields to fetch from the PageVersion
1160
- */
1161
- select?: Prisma.PageVersionSelect<ExtArgs> | null
1162
- /**
1163
- * Omit specific fields from the PageVersion
1164
- */
1165
- omit?: Prisma.PageVersionOmit<ExtArgs> | null
1166
- /**
1167
- * Choose, which related nodes to fetch as well
1168
- */
1169
- include?: Prisma.PageVersionInclude<ExtArgs> | null
1170
- /**
1171
- * Filter, which PageVersion to fetch.
1172
- */
1173
- where?: Prisma.PageVersionWhereInput
1174
- /**
1175
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1176
- *
1177
- * Determine the order of PageVersions to fetch.
1178
- */
1179
- orderBy?: Prisma.PageVersionOrderByWithRelationInput | Prisma.PageVersionOrderByWithRelationInput[]
1180
- /**
1181
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1182
- *
1183
- * Sets the position for searching for PageVersions.
1184
- */
1185
- cursor?: Prisma.PageVersionWhereUniqueInput
1186
- /**
1187
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1188
- *
1189
- * Take `±n` PageVersions from the position of the cursor.
1190
- */
1191
- take?: number
1192
- /**
1193
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1194
- *
1195
- * Skip the first `n` PageVersions.
1196
- */
1197
- skip?: number
1198
- /**
1199
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1200
- *
1201
- * Filter by unique combinations of PageVersions.
1202
- */
1203
- distinct?: Prisma.PageVersionScalarFieldEnum | Prisma.PageVersionScalarFieldEnum[]
1204
- }
1205
-
1206
- /**
1207
- * PageVersion findFirstOrThrow
1208
- */
1209
- export type PageVersionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1210
- /**
1211
- * Select specific fields to fetch from the PageVersion
1212
- */
1213
- select?: Prisma.PageVersionSelect<ExtArgs> | null
1214
- /**
1215
- * Omit specific fields from the PageVersion
1216
- */
1217
- omit?: Prisma.PageVersionOmit<ExtArgs> | null
1218
- /**
1219
- * Choose, which related nodes to fetch as well
1220
- */
1221
- include?: Prisma.PageVersionInclude<ExtArgs> | null
1222
- /**
1223
- * Filter, which PageVersion to fetch.
1224
- */
1225
- where?: Prisma.PageVersionWhereInput
1226
- /**
1227
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1228
- *
1229
- * Determine the order of PageVersions to fetch.
1230
- */
1231
- orderBy?: Prisma.PageVersionOrderByWithRelationInput | Prisma.PageVersionOrderByWithRelationInput[]
1232
- /**
1233
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1234
- *
1235
- * Sets the position for searching for PageVersions.
1236
- */
1237
- cursor?: Prisma.PageVersionWhereUniqueInput
1238
- /**
1239
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1240
- *
1241
- * Take `±n` PageVersions from the position of the cursor.
1242
- */
1243
- take?: number
1244
- /**
1245
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1246
- *
1247
- * Skip the first `n` PageVersions.
1248
- */
1249
- skip?: number
1250
- /**
1251
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1252
- *
1253
- * Filter by unique combinations of PageVersions.
1254
- */
1255
- distinct?: Prisma.PageVersionScalarFieldEnum | Prisma.PageVersionScalarFieldEnum[]
1256
- }
1257
-
1258
- /**
1259
- * PageVersion findMany
1260
- */
1261
- export type PageVersionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1262
- /**
1263
- * Select specific fields to fetch from the PageVersion
1264
- */
1265
- select?: Prisma.PageVersionSelect<ExtArgs> | null
1266
- /**
1267
- * Omit specific fields from the PageVersion
1268
- */
1269
- omit?: Prisma.PageVersionOmit<ExtArgs> | null
1270
- /**
1271
- * Choose, which related nodes to fetch as well
1272
- */
1273
- include?: Prisma.PageVersionInclude<ExtArgs> | null
1274
- /**
1275
- * Filter, which PageVersions to fetch.
1276
- */
1277
- where?: Prisma.PageVersionWhereInput
1278
- /**
1279
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1280
- *
1281
- * Determine the order of PageVersions to fetch.
1282
- */
1283
- orderBy?: Prisma.PageVersionOrderByWithRelationInput | Prisma.PageVersionOrderByWithRelationInput[]
1284
- /**
1285
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1286
- *
1287
- * Sets the position for listing PageVersions.
1288
- */
1289
- cursor?: Prisma.PageVersionWhereUniqueInput
1290
- /**
1291
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1292
- *
1293
- * Take `±n` PageVersions from the position of the cursor.
1294
- */
1295
- take?: number
1296
- /**
1297
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1298
- *
1299
- * Skip the first `n` PageVersions.
1300
- */
1301
- skip?: number
1302
- /**
1303
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1304
- *
1305
- * Filter by unique combinations of PageVersions.
1306
- */
1307
- distinct?: Prisma.PageVersionScalarFieldEnum | Prisma.PageVersionScalarFieldEnum[]
1308
- }
1309
-
1310
- /**
1311
- * PageVersion create
1312
- */
1313
- export type PageVersionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1314
- /**
1315
- * Select specific fields to fetch from the PageVersion
1316
- */
1317
- select?: Prisma.PageVersionSelect<ExtArgs> | null
1318
- /**
1319
- * Omit specific fields from the PageVersion
1320
- */
1321
- omit?: Prisma.PageVersionOmit<ExtArgs> | null
1322
- /**
1323
- * Choose, which related nodes to fetch as well
1324
- */
1325
- include?: Prisma.PageVersionInclude<ExtArgs> | null
1326
- /**
1327
- * The data needed to create a PageVersion.
1328
- */
1329
- data: Prisma.XOR<Prisma.PageVersionCreateInput, Prisma.PageVersionUncheckedCreateInput>
1330
- }
1331
-
1332
- /**
1333
- * PageVersion createMany
1334
- */
1335
- export type PageVersionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1336
- /**
1337
- * The data used to create many PageVersions.
1338
- */
1339
- data: Prisma.PageVersionCreateManyInput | Prisma.PageVersionCreateManyInput[]
1340
- }
1341
-
1342
- /**
1343
- * PageVersion createManyAndReturn
1344
- */
1345
- export type PageVersionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1346
- /**
1347
- * Select specific fields to fetch from the PageVersion
1348
- */
1349
- select?: Prisma.PageVersionSelectCreateManyAndReturn<ExtArgs> | null
1350
- /**
1351
- * Omit specific fields from the PageVersion
1352
- */
1353
- omit?: Prisma.PageVersionOmit<ExtArgs> | null
1354
- /**
1355
- * The data used to create many PageVersions.
1356
- */
1357
- data: Prisma.PageVersionCreateManyInput | Prisma.PageVersionCreateManyInput[]
1358
- /**
1359
- * Choose, which related nodes to fetch as well
1360
- */
1361
- include?: Prisma.PageVersionIncludeCreateManyAndReturn<ExtArgs> | null
1362
- }
1363
-
1364
- /**
1365
- * PageVersion update
1366
- */
1367
- export type PageVersionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1368
- /**
1369
- * Select specific fields to fetch from the PageVersion
1370
- */
1371
- select?: Prisma.PageVersionSelect<ExtArgs> | null
1372
- /**
1373
- * Omit specific fields from the PageVersion
1374
- */
1375
- omit?: Prisma.PageVersionOmit<ExtArgs> | null
1376
- /**
1377
- * Choose, which related nodes to fetch as well
1378
- */
1379
- include?: Prisma.PageVersionInclude<ExtArgs> | null
1380
- /**
1381
- * The data needed to update a PageVersion.
1382
- */
1383
- data: Prisma.XOR<Prisma.PageVersionUpdateInput, Prisma.PageVersionUncheckedUpdateInput>
1384
- /**
1385
- * Choose, which PageVersion to update.
1386
- */
1387
- where: Prisma.PageVersionWhereUniqueInput
1388
- }
1389
-
1390
- /**
1391
- * PageVersion updateMany
1392
- */
1393
- export type PageVersionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1394
- /**
1395
- * The data used to update PageVersions.
1396
- */
1397
- data: Prisma.XOR<Prisma.PageVersionUpdateManyMutationInput, Prisma.PageVersionUncheckedUpdateManyInput>
1398
- /**
1399
- * Filter which PageVersions to update
1400
- */
1401
- where?: Prisma.PageVersionWhereInput
1402
- /**
1403
- * Limit how many PageVersions to update.
1404
- */
1405
- limit?: number
1406
- }
1407
-
1408
- /**
1409
- * PageVersion updateManyAndReturn
1410
- */
1411
- export type PageVersionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1412
- /**
1413
- * Select specific fields to fetch from the PageVersion
1414
- */
1415
- select?: Prisma.PageVersionSelectUpdateManyAndReturn<ExtArgs> | null
1416
- /**
1417
- * Omit specific fields from the PageVersion
1418
- */
1419
- omit?: Prisma.PageVersionOmit<ExtArgs> | null
1420
- /**
1421
- * The data used to update PageVersions.
1422
- */
1423
- data: Prisma.XOR<Prisma.PageVersionUpdateManyMutationInput, Prisma.PageVersionUncheckedUpdateManyInput>
1424
- /**
1425
- * Filter which PageVersions to update
1426
- */
1427
- where?: Prisma.PageVersionWhereInput
1428
- /**
1429
- * Limit how many PageVersions to update.
1430
- */
1431
- limit?: number
1432
- /**
1433
- * Choose, which related nodes to fetch as well
1434
- */
1435
- include?: Prisma.PageVersionIncludeUpdateManyAndReturn<ExtArgs> | null
1436
- }
1437
-
1438
- /**
1439
- * PageVersion upsert
1440
- */
1441
- export type PageVersionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1442
- /**
1443
- * Select specific fields to fetch from the PageVersion
1444
- */
1445
- select?: Prisma.PageVersionSelect<ExtArgs> | null
1446
- /**
1447
- * Omit specific fields from the PageVersion
1448
- */
1449
- omit?: Prisma.PageVersionOmit<ExtArgs> | null
1450
- /**
1451
- * Choose, which related nodes to fetch as well
1452
- */
1453
- include?: Prisma.PageVersionInclude<ExtArgs> | null
1454
- /**
1455
- * The filter to search for the PageVersion to update in case it exists.
1456
- */
1457
- where: Prisma.PageVersionWhereUniqueInput
1458
- /**
1459
- * In case the PageVersion found by the `where` argument doesn't exist, create a new PageVersion with this data.
1460
- */
1461
- create: Prisma.XOR<Prisma.PageVersionCreateInput, Prisma.PageVersionUncheckedCreateInput>
1462
- /**
1463
- * In case the PageVersion was found with the provided `where` argument, update it with this data.
1464
- */
1465
- update: Prisma.XOR<Prisma.PageVersionUpdateInput, Prisma.PageVersionUncheckedUpdateInput>
1466
- }
1467
-
1468
- /**
1469
- * PageVersion delete
1470
- */
1471
- export type PageVersionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1472
- /**
1473
- * Select specific fields to fetch from the PageVersion
1474
- */
1475
- select?: Prisma.PageVersionSelect<ExtArgs> | null
1476
- /**
1477
- * Omit specific fields from the PageVersion
1478
- */
1479
- omit?: Prisma.PageVersionOmit<ExtArgs> | null
1480
- /**
1481
- * Choose, which related nodes to fetch as well
1482
- */
1483
- include?: Prisma.PageVersionInclude<ExtArgs> | null
1484
- /**
1485
- * Filter which PageVersion to delete.
1486
- */
1487
- where: Prisma.PageVersionWhereUniqueInput
1488
- }
1489
-
1490
- /**
1491
- * PageVersion deleteMany
1492
- */
1493
- export type PageVersionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1494
- /**
1495
- * Filter which PageVersions to delete
1496
- */
1497
- where?: Prisma.PageVersionWhereInput
1498
- /**
1499
- * Limit how many PageVersions to delete.
1500
- */
1501
- limit?: number
1502
- }
1503
-
1504
- /**
1505
- * PageVersion without action
1506
- */
1507
- export type PageVersionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1508
- /**
1509
- * Select specific fields to fetch from the PageVersion
1510
- */
1511
- select?: Prisma.PageVersionSelect<ExtArgs> | null
1512
- /**
1513
- * Omit specific fields from the PageVersion
1514
- */
1515
- omit?: Prisma.PageVersionOmit<ExtArgs> | null
1516
- /**
1517
- * Choose, which related nodes to fetch as well
1518
- */
1519
- include?: Prisma.PageVersionInclude<ExtArgs> | null
1520
- }