@allbluecn/database 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/desktop-init.ts +128 -0
- package/generated/browser.ts +494 -0
- package/generated/client.ts +518 -0
- package/generated/commonInputTypes.ts +1056 -0
- package/generated/enums.ts +93 -0
- package/generated/internal/class.ts +1144 -0
- package/generated/internal/prismaNamespace.ts +9603 -0
- package/generated/internal/prismaNamespaceBrowser.ts +1695 -0
- package/generated/models/Account.ts +1648 -0
- package/generated/models/AgentConversation.ts +1651 -0
- package/generated/models/AgentMessage.ts +1409 -0
- package/generated/models/AiProvider.ts +1607 -0
- package/generated/models/AiProviderConfig.ts +1514 -0
- package/generated/models/AiUsageLog.ts +1863 -0
- package/generated/models/AnyHubApp.ts +1911 -0
- package/generated/models/AnyHubMarketApp.ts +2008 -0
- package/generated/models/AnyHubPermission.ts +1422 -0
- package/generated/models/AnyHubRecommendation.ts +1870 -0
- package/generated/models/AnyHubRecommender.ts +1471 -0
- package/generated/models/Artboard.ts +1811 -0
- package/generated/models/ArtboardExport.ts +1548 -0
- package/generated/models/ArticleFavorite.ts +1352 -0
- package/generated/models/AuditLog.ts +1533 -0
- package/generated/models/Block.ts +1650 -0
- package/generated/models/BlockComponent.ts +1734 -0
- package/generated/models/BlockInstance.ts +2043 -0
- package/generated/models/BookmarkCategory.ts +1670 -0
- package/generated/models/ChatInterrupt.ts +1699 -0
- package/generated/models/ChatMessage.ts +1438 -0
- package/generated/models/ChatRun.ts +1632 -0
- package/generated/models/ChatThread.ts +2133 -0
- package/generated/models/Comment.ts +2206 -0
- package/generated/models/CommentIgnore.ts +1430 -0
- package/generated/models/CommentReaction.ts +1472 -0
- package/generated/models/ComplianceExport.ts +1345 -0
- package/generated/models/Component.ts +2345 -0
- package/generated/models/ComponentInstance.ts +2102 -0
- package/generated/models/ComponentTag.ts +1281 -0
- package/generated/models/CustomRole.ts +1560 -0
- package/generated/models/DesignProject.ts +1643 -0
- package/generated/models/DictionaryTerm.ts +1642 -0
- package/generated/models/GenerationRun.ts +1543 -0
- package/generated/models/IndustryCompliance.ts +1797 -0
- package/generated/models/InvitationCode.ts +1417 -0
- package/generated/models/InvitationUse.ts +1424 -0
- package/generated/models/Invoice.ts +1710 -0
- package/generated/models/KnowledgeBase.ts +1671 -0
- package/generated/models/KnowledgeDocument.ts +2458 -0
- package/generated/models/KnowledgeShareRecord.ts +1352 -0
- package/generated/models/Label.ts +1482 -0
- package/generated/models/LegalRegulation.ts +1873 -0
- package/generated/models/LicenseActivation.ts +1415 -0
- package/generated/models/LicenseKey.ts +1884 -0
- package/generated/models/LoginLog.ts +1450 -0
- package/generated/models/MonitoringErrorReport.ts +1299 -0
- package/generated/models/MonitoringHealthSnapshot.ts +1249 -0
- package/generated/models/MonitoringMetricsSnapshot.ts +1369 -0
- package/generated/models/MonitoringRequestLog.ts +1283 -0
- package/generated/models/PRD.ts +2805 -0
- package/generated/models/PRDPage.ts +2402 -0
- package/generated/models/PRDTag.ts +1430 -0
- package/generated/models/PRDVersion.ts +2121 -0
- package/generated/models/PageVersion.ts +1523 -0
- package/generated/models/PasswordResetToken.ts +1380 -0
- package/generated/models/Plan.ts +2069 -0
- package/generated/models/Project.ts +2148 -0
- package/generated/models/ProjectActivity.ts +1582 -0
- package/generated/models/ProjectMember.ts +1512 -0
- package/generated/models/ProviderEvent.ts +1227 -0
- package/generated/models/Reference.ts +1177 -0
- package/generated/models/Review.ts +1912 -0
- package/generated/models/ReviewComment.ts +1904 -0
- package/generated/models/RoleAssignment.ts +1430 -0
- package/generated/models/SequenceCounter.ts +1137 -0
- package/generated/models/Share.ts +1681 -0
- package/generated/models/ShareVersion.ts +1389 -0
- package/generated/models/SsoMapping.ts +1512 -0
- package/generated/models/SsoProvider.ts +1639 -0
- package/generated/models/Story.ts +5234 -0
- package/generated/models/StoryActivity.ts +1664 -0
- package/generated/models/StoryAttachment.ts +1467 -0
- package/generated/models/StoryComment.ts +1992 -0
- package/generated/models/StoryDependency.ts +1517 -0
- package/generated/models/StoryDocLink.ts +1430 -0
- package/generated/models/StoryFilterView.ts +1587 -0
- package/generated/models/StoryLabel.ts +1349 -0
- package/generated/models/StoryLink.ts +1415 -0
- package/generated/models/StoryPrdLink.ts +1430 -0
- package/generated/models/StoryReaction.ts +1472 -0
- package/generated/models/Subscription.ts +2147 -0
- package/generated/models/SystemSetting.ts +1217 -0
- package/generated/models/Tag.ts +1655 -0
- package/generated/models/TeamInvitation.ts +1526 -0
- package/generated/models/TeamMembership.ts +1436 -0
- package/generated/models/Template.ts +1391 -0
- package/generated/models/TemplateBlock.ts +1664 -0
- package/generated/models/ThirdPartyDependency.ts +1473 -0
- package/generated/models/UsageRecord.ts +1505 -0
- package/generated/models/User.ts +20998 -0
- package/generated/models/UserAgent.ts +1900 -0
- package/generated/models/UserSkill.ts +1456 -0
- package/generated/models/WebsiteBookmark.ts +2219 -0
- package/generated/models/Workspace.ts +2279 -0
- package/generated/models.ts +106 -0
- package/generated-sqlite/browser.ts +399 -0
- package/generated-sqlite/client.ts +423 -0
- package/generated-sqlite/commonInputTypes.ts +608 -0
- package/generated-sqlite/enums.ts +15 -0
- package/generated-sqlite/internal/class.ts +954 -0
- package/generated-sqlite/internal/prismaNamespace.ts +7716 -0
- package/generated-sqlite/internal/prismaNamespaceBrowser.ts +1415 -0
- package/generated-sqlite/models/AgentConversation.ts +1647 -0
- package/generated-sqlite/models/AgentMessage.ts +1406 -0
- package/generated-sqlite/models/AiProvider.ts +1605 -0
- package/generated-sqlite/models/AiProviderConfig.ts +1511 -0
- package/generated-sqlite/models/AiUsageLog.ts +1845 -0
- package/generated-sqlite/models/AnyHubApp.ts +1908 -0
- package/generated-sqlite/models/AnyHubMarketApp.ts +1997 -0
- package/generated-sqlite/models/AnyHubPermission.ts +1419 -0
- package/generated-sqlite/models/AnyHubRecommendation.ts +1867 -0
- package/generated-sqlite/models/AnyHubRecommender.ts +1467 -0
- package/generated-sqlite/models/Artboard.ts +1808 -0
- package/generated-sqlite/models/ArtboardExport.ts +1545 -0
- package/generated-sqlite/models/ArticleFavorite.ts +1349 -0
- package/generated-sqlite/models/AuditLog.ts +1287 -0
- package/generated-sqlite/models/Block.ts +1648 -0
- package/generated-sqlite/models/BlockComponent.ts +1730 -0
- package/generated-sqlite/models/BlockInstance.ts +2039 -0
- package/generated-sqlite/models/BookmarkCategory.ts +1667 -0
- package/generated-sqlite/models/ChatInterrupt.ts +1695 -0
- package/generated-sqlite/models/ChatMessage.ts +1435 -0
- package/generated-sqlite/models/ChatRun.ts +1629 -0
- package/generated-sqlite/models/ChatThread.ts +2129 -0
- package/generated-sqlite/models/Comment.ts +2201 -0
- package/generated-sqlite/models/CommentIgnore.ts +1426 -0
- package/generated-sqlite/models/ComplianceExport.ts +1343 -0
- package/generated-sqlite/models/Component.ts +2326 -0
- package/generated-sqlite/models/ComponentInstance.ts +2097 -0
- package/generated-sqlite/models/ComponentTag.ts +1278 -0
- package/generated-sqlite/models/CustomRole.ts +1209 -0
- package/generated-sqlite/models/DesignProject.ts +1640 -0
- package/generated-sqlite/models/DictionaryTerm.ts +1639 -0
- package/generated-sqlite/models/GenerationRun.ts +1540 -0
- package/generated-sqlite/models/IndustryCompliance.ts +1794 -0
- package/generated-sqlite/models/InvitationCode.ts +1415 -0
- package/generated-sqlite/models/InvitationUse.ts +1420 -0
- package/generated-sqlite/models/Invoice.ts +1707 -0
- package/generated-sqlite/models/KnowledgeBase.ts +1668 -0
- package/generated-sqlite/models/KnowledgeDocument.ts +2282 -0
- package/generated-sqlite/models/KnowledgeShareRecord.ts +1349 -0
- package/generated-sqlite/models/LegalRegulation.ts +1870 -0
- package/generated-sqlite/models/LicenseActivation.ts +1203 -0
- package/generated-sqlite/models/LicenseKey.ts +1443 -0
- package/generated-sqlite/models/LoginLog.ts +1447 -0
- package/generated-sqlite/models/PRD.ts +2616 -0
- package/generated-sqlite/models/PRDPage.ts +2398 -0
- package/generated-sqlite/models/PRDTag.ts +1426 -0
- package/generated-sqlite/models/PRDVersion.ts +2117 -0
- package/generated-sqlite/models/PageVersion.ts +1528 -0
- package/generated-sqlite/models/PasswordResetToken.ts +1377 -0
- package/generated-sqlite/models/Plan.ts +2060 -0
- package/generated-sqlite/models/Project.ts +1994 -0
- package/generated-sqlite/models/ProjectActivity.ts +1578 -0
- package/generated-sqlite/models/ProjectMember.ts +1508 -0
- package/generated-sqlite/models/ProviderEvent.ts +1225 -0
- package/generated-sqlite/models/Reference.ts +1175 -0
- package/generated-sqlite/models/Review.ts +1903 -0
- package/generated-sqlite/models/ReviewComment.ts +1899 -0
- package/generated-sqlite/models/RoleAssignment.ts +1125 -0
- package/generated-sqlite/models/Share.ts +1674 -0
- package/generated-sqlite/models/ShareVersion.ts +1385 -0
- package/generated-sqlite/models/SsoMapping.ts +1181 -0
- package/generated-sqlite/models/SsoProvider.ts +1266 -0
- package/generated-sqlite/models/Subscription.ts +2137 -0
- package/generated-sqlite/models/SystemSetting.ts +1215 -0
- package/generated-sqlite/models/Tag.ts +1652 -0
- package/generated-sqlite/models/TeamInvitation.ts +1523 -0
- package/generated-sqlite/models/TeamMembership.ts +1433 -0
- package/generated-sqlite/models/Template.ts +1389 -0
- package/generated-sqlite/models/TemplateBlock.ts +1660 -0
- package/generated-sqlite/models/ThirdPartyDependency.ts +1471 -0
- package/generated-sqlite/models/UsageRecord.ts +1498 -0
- package/generated-sqlite/models/User.ts +13558 -0
- package/generated-sqlite/models/UserAgent.ts +1897 -0
- package/generated-sqlite/models/UserSkill.ts +1453 -0
- package/generated-sqlite/models/WebsiteBookmark.ts +2215 -0
- package/generated-sqlite/models/Workspace.ts +1824 -0
- package/generated-sqlite/models.ts +87 -0
- package/package.json +7 -3
- package/LICENSE +0 -661
|
@@ -0,0 +1,1523 @@
|
|
|
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"
|
|
13
|
+
import type * as Prisma from "../internal/prismaNamespace"
|
|
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
|
+
fromPRDVersionId: 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
|
+
fromPRDVersionId: 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
|
+
fromPRDVersionId: 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
|
+
fromPRDVersionId?: 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
|
+
fromPRDVersionId?: 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
|
+
fromPRDVersionId?: 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
|
+
fromPRDVersionId: 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
|
+
fromPRDVersionId?: Prisma.StringNullableFilter<"PageVersion"> | string | null
|
|
246
|
+
createdAt?: Prisma.DateTimeFilter<"PageVersion"> | Date | string
|
|
247
|
+
page?: Prisma.XOR<Prisma.PRDPageScalarRelationFilter, Prisma.PRDPageWhereInput>
|
|
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
|
+
fromPRDVersionId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
259
|
+
createdAt?: Prisma.SortOrder
|
|
260
|
+
page?: Prisma.PRDPageOrderByWithRelationInput
|
|
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
|
+
fromPRDVersionId?: Prisma.StringNullableFilter<"PageVersion"> | string | null
|
|
275
|
+
createdAt?: Prisma.DateTimeFilter<"PageVersion"> | Date | string
|
|
276
|
+
page?: Prisma.XOR<Prisma.PRDPageScalarRelationFilter, Prisma.PRDPageWhereInput>
|
|
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
|
+
fromPRDVersionId?: 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
|
+
fromPRDVersionId?: 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
|
+
fromPRDVersionId?: string | null
|
|
319
|
+
createdAt?: Date | string
|
|
320
|
+
page: Prisma.PRDPageCreateNestedOneWithoutPageVersionsInput
|
|
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
|
+
fromPRDVersionId?: 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
|
+
fromPRDVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
343
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
344
|
+
page?: Prisma.PRDPageUpdateOneRequiredWithoutPageVersionsNestedInput
|
|
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
|
+
fromPRDVersionId?: 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
|
+
fromPRDVersionId?: 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
|
+
fromPRDVersionId?: 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
|
+
fromPRDVersionId?: 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
|
+
fromPRDVersionId?: 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
|
+
fromPRDVersionId?: 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
|
+
fromPRDVersionId?: 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
|
+
fromPRDVersionId?: 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
|
+
fromPRDVersionId?: 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
|
+
skipDuplicates?: boolean
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
export type PageVersionUpsertWithWhereUniqueWithoutPageInput = {
|
|
521
|
+
where: Prisma.PageVersionWhereUniqueInput
|
|
522
|
+
update: Prisma.XOR<Prisma.PageVersionUpdateWithoutPageInput, Prisma.PageVersionUncheckedUpdateWithoutPageInput>
|
|
523
|
+
create: Prisma.XOR<Prisma.PageVersionCreateWithoutPageInput, Prisma.PageVersionUncheckedCreateWithoutPageInput>
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
export type PageVersionUpdateWithWhereUniqueWithoutPageInput = {
|
|
527
|
+
where: Prisma.PageVersionWhereUniqueInput
|
|
528
|
+
data: Prisma.XOR<Prisma.PageVersionUpdateWithoutPageInput, Prisma.PageVersionUncheckedUpdateWithoutPageInput>
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
export type PageVersionUpdateManyWithWhereWithoutPageInput = {
|
|
532
|
+
where: Prisma.PageVersionScalarWhereInput
|
|
533
|
+
data: Prisma.XOR<Prisma.PageVersionUpdateManyMutationInput, Prisma.PageVersionUncheckedUpdateManyWithoutPageInput>
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
export type PageVersionScalarWhereInput = {
|
|
537
|
+
AND?: Prisma.PageVersionScalarWhereInput | Prisma.PageVersionScalarWhereInput[]
|
|
538
|
+
OR?: Prisma.PageVersionScalarWhereInput[]
|
|
539
|
+
NOT?: Prisma.PageVersionScalarWhereInput | Prisma.PageVersionScalarWhereInput[]
|
|
540
|
+
id?: Prisma.StringFilter<"PageVersion"> | string
|
|
541
|
+
pageId?: Prisma.StringFilter<"PageVersion"> | string
|
|
542
|
+
version?: Prisma.IntFilter<"PageVersion"> | number
|
|
543
|
+
notes?: Prisma.StringNullableFilter<"PageVersion"> | string | null
|
|
544
|
+
canvas?: Prisma.JsonNullableFilter<"PageVersion">
|
|
545
|
+
content?: Prisma.JsonNullableFilter<"PageVersion">
|
|
546
|
+
restoredFromVersion?: Prisma.IntNullableFilter<"PageVersion"> | number | null
|
|
547
|
+
fromPRDVersionId?: Prisma.StringNullableFilter<"PageVersion"> | string | null
|
|
548
|
+
createdAt?: Prisma.DateTimeFilter<"PageVersion"> | Date | string
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
export type PageVersionCreateManyPageInput = {
|
|
552
|
+
id?: string
|
|
553
|
+
version: number
|
|
554
|
+
notes?: string | null
|
|
555
|
+
canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
556
|
+
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
557
|
+
restoredFromVersion?: number | null
|
|
558
|
+
fromPRDVersionId?: string | null
|
|
559
|
+
createdAt?: Date | string
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
export type PageVersionUpdateWithoutPageInput = {
|
|
563
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
564
|
+
version?: Prisma.IntFieldUpdateOperationsInput | number
|
|
565
|
+
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
566
|
+
canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
567
|
+
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
568
|
+
restoredFromVersion?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
569
|
+
fromPRDVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
570
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
export type PageVersionUncheckedUpdateWithoutPageInput = {
|
|
574
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
575
|
+
version?: Prisma.IntFieldUpdateOperationsInput | number
|
|
576
|
+
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
577
|
+
canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
578
|
+
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
579
|
+
restoredFromVersion?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
580
|
+
fromPRDVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
581
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
export type PageVersionUncheckedUpdateManyWithoutPageInput = {
|
|
585
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
586
|
+
version?: Prisma.IntFieldUpdateOperationsInput | number
|
|
587
|
+
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
588
|
+
canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
589
|
+
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
590
|
+
restoredFromVersion?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
591
|
+
fromPRDVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
592
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
export type PageVersionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
598
|
+
id?: boolean
|
|
599
|
+
pageId?: boolean
|
|
600
|
+
version?: boolean
|
|
601
|
+
notes?: boolean
|
|
602
|
+
canvas?: boolean
|
|
603
|
+
content?: boolean
|
|
604
|
+
restoredFromVersion?: boolean
|
|
605
|
+
fromPRDVersionId?: boolean
|
|
606
|
+
createdAt?: boolean
|
|
607
|
+
page?: boolean | Prisma.PRDPageDefaultArgs<ExtArgs>
|
|
608
|
+
}, ExtArgs["result"]["pageVersion"]>
|
|
609
|
+
|
|
610
|
+
export type PageVersionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
611
|
+
id?: boolean
|
|
612
|
+
pageId?: boolean
|
|
613
|
+
version?: boolean
|
|
614
|
+
notes?: boolean
|
|
615
|
+
canvas?: boolean
|
|
616
|
+
content?: boolean
|
|
617
|
+
restoredFromVersion?: boolean
|
|
618
|
+
fromPRDVersionId?: boolean
|
|
619
|
+
createdAt?: boolean
|
|
620
|
+
page?: boolean | Prisma.PRDPageDefaultArgs<ExtArgs>
|
|
621
|
+
}, ExtArgs["result"]["pageVersion"]>
|
|
622
|
+
|
|
623
|
+
export type PageVersionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
624
|
+
id?: boolean
|
|
625
|
+
pageId?: boolean
|
|
626
|
+
version?: boolean
|
|
627
|
+
notes?: boolean
|
|
628
|
+
canvas?: boolean
|
|
629
|
+
content?: boolean
|
|
630
|
+
restoredFromVersion?: boolean
|
|
631
|
+
fromPRDVersionId?: boolean
|
|
632
|
+
createdAt?: boolean
|
|
633
|
+
page?: boolean | Prisma.PRDPageDefaultArgs<ExtArgs>
|
|
634
|
+
}, ExtArgs["result"]["pageVersion"]>
|
|
635
|
+
|
|
636
|
+
export type PageVersionSelectScalar = {
|
|
637
|
+
id?: boolean
|
|
638
|
+
pageId?: boolean
|
|
639
|
+
version?: boolean
|
|
640
|
+
notes?: boolean
|
|
641
|
+
canvas?: boolean
|
|
642
|
+
content?: boolean
|
|
643
|
+
restoredFromVersion?: boolean
|
|
644
|
+
fromPRDVersionId?: boolean
|
|
645
|
+
createdAt?: boolean
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
export type PageVersionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "pageId" | "version" | "notes" | "canvas" | "content" | "restoredFromVersion" | "fromPRDVersionId" | "createdAt", ExtArgs["result"]["pageVersion"]>
|
|
649
|
+
export type PageVersionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
650
|
+
page?: boolean | Prisma.PRDPageDefaultArgs<ExtArgs>
|
|
651
|
+
}
|
|
652
|
+
export type PageVersionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
653
|
+
page?: boolean | Prisma.PRDPageDefaultArgs<ExtArgs>
|
|
654
|
+
}
|
|
655
|
+
export type PageVersionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
656
|
+
page?: boolean | Prisma.PRDPageDefaultArgs<ExtArgs>
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
export type $PageVersionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
660
|
+
name: "PageVersion"
|
|
661
|
+
objects: {
|
|
662
|
+
page: Prisma.$PRDPagePayload<ExtArgs>
|
|
663
|
+
}
|
|
664
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
665
|
+
id: string
|
|
666
|
+
pageId: string
|
|
667
|
+
version: number
|
|
668
|
+
notes: string | null
|
|
669
|
+
canvas: runtime.JsonValue | null
|
|
670
|
+
content: runtime.JsonValue | null
|
|
671
|
+
restoredFromVersion: number | null
|
|
672
|
+
fromPRDVersionId: string | null
|
|
673
|
+
createdAt: Date
|
|
674
|
+
}, ExtArgs["result"]["pageVersion"]>
|
|
675
|
+
composites: {}
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
export type PageVersionGetPayload<S extends boolean | null | undefined | PageVersionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PageVersionPayload, S>
|
|
679
|
+
|
|
680
|
+
export type PageVersionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
681
|
+
Omit<PageVersionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
682
|
+
select?: PageVersionCountAggregateInputType | true
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
export interface PageVersionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
686
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['PageVersion'], meta: { name: 'PageVersion' } }
|
|
687
|
+
/**
|
|
688
|
+
* Find zero or one PageVersion that matches the filter.
|
|
689
|
+
* @param {PageVersionFindUniqueArgs} args - Arguments to find a PageVersion
|
|
690
|
+
* @example
|
|
691
|
+
* // Get one PageVersion
|
|
692
|
+
* const pageVersion = await prisma.pageVersion.findUnique({
|
|
693
|
+
* where: {
|
|
694
|
+
* // ... provide filter here
|
|
695
|
+
* }
|
|
696
|
+
* })
|
|
697
|
+
*/
|
|
698
|
+
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>
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* Find one PageVersion that matches the filter or throw an error with `error.code='P2025'`
|
|
702
|
+
* if no matches were found.
|
|
703
|
+
* @param {PageVersionFindUniqueOrThrowArgs} args - Arguments to find a PageVersion
|
|
704
|
+
* @example
|
|
705
|
+
* // Get one PageVersion
|
|
706
|
+
* const pageVersion = await prisma.pageVersion.findUniqueOrThrow({
|
|
707
|
+
* where: {
|
|
708
|
+
* // ... provide filter here
|
|
709
|
+
* }
|
|
710
|
+
* })
|
|
711
|
+
*/
|
|
712
|
+
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>
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* Find the first PageVersion that matches the filter.
|
|
716
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
717
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
718
|
+
* @param {PageVersionFindFirstArgs} args - Arguments to find a PageVersion
|
|
719
|
+
* @example
|
|
720
|
+
* // Get one PageVersion
|
|
721
|
+
* const pageVersion = await prisma.pageVersion.findFirst({
|
|
722
|
+
* where: {
|
|
723
|
+
* // ... provide filter here
|
|
724
|
+
* }
|
|
725
|
+
* })
|
|
726
|
+
*/
|
|
727
|
+
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>
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* Find the first PageVersion that matches the filter or
|
|
731
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
732
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
733
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
734
|
+
* @param {PageVersionFindFirstOrThrowArgs} args - Arguments to find a PageVersion
|
|
735
|
+
* @example
|
|
736
|
+
* // Get one PageVersion
|
|
737
|
+
* const pageVersion = await prisma.pageVersion.findFirstOrThrow({
|
|
738
|
+
* where: {
|
|
739
|
+
* // ... provide filter here
|
|
740
|
+
* }
|
|
741
|
+
* })
|
|
742
|
+
*/
|
|
743
|
+
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>
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* Find zero or more PageVersions that matches the filter.
|
|
747
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
748
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
749
|
+
* @param {PageVersionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
750
|
+
* @example
|
|
751
|
+
* // Get all PageVersions
|
|
752
|
+
* const pageVersions = await prisma.pageVersion.findMany()
|
|
753
|
+
*
|
|
754
|
+
* // Get first 10 PageVersions
|
|
755
|
+
* const pageVersions = await prisma.pageVersion.findMany({ take: 10 })
|
|
756
|
+
*
|
|
757
|
+
* // Only select the `id`
|
|
758
|
+
* const pageVersionWithIdOnly = await prisma.pageVersion.findMany({ select: { id: true } })
|
|
759
|
+
*
|
|
760
|
+
*/
|
|
761
|
+
findMany<T extends PageVersionFindManyArgs>(args?: Prisma.SelectSubset<T, PageVersionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PageVersionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* Create a PageVersion.
|
|
765
|
+
* @param {PageVersionCreateArgs} args - Arguments to create a PageVersion.
|
|
766
|
+
* @example
|
|
767
|
+
* // Create one PageVersion
|
|
768
|
+
* const PageVersion = await prisma.pageVersion.create({
|
|
769
|
+
* data: {
|
|
770
|
+
* // ... data to create a PageVersion
|
|
771
|
+
* }
|
|
772
|
+
* })
|
|
773
|
+
*
|
|
774
|
+
*/
|
|
775
|
+
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>
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* Create many PageVersions.
|
|
779
|
+
* @param {PageVersionCreateManyArgs} args - Arguments to create many PageVersions.
|
|
780
|
+
* @example
|
|
781
|
+
* // Create many PageVersions
|
|
782
|
+
* const pageVersion = await prisma.pageVersion.createMany({
|
|
783
|
+
* data: [
|
|
784
|
+
* // ... provide data here
|
|
785
|
+
* ]
|
|
786
|
+
* })
|
|
787
|
+
*
|
|
788
|
+
*/
|
|
789
|
+
createMany<T extends PageVersionCreateManyArgs>(args?: Prisma.SelectSubset<T, PageVersionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* Create many PageVersions and returns the data saved in the database.
|
|
793
|
+
* @param {PageVersionCreateManyAndReturnArgs} args - Arguments to create many PageVersions.
|
|
794
|
+
* @example
|
|
795
|
+
* // Create many PageVersions
|
|
796
|
+
* const pageVersion = await prisma.pageVersion.createManyAndReturn({
|
|
797
|
+
* data: [
|
|
798
|
+
* // ... provide data here
|
|
799
|
+
* ]
|
|
800
|
+
* })
|
|
801
|
+
*
|
|
802
|
+
* // Create many PageVersions and only return the `id`
|
|
803
|
+
* const pageVersionWithIdOnly = await prisma.pageVersion.createManyAndReturn({
|
|
804
|
+
* select: { id: true },
|
|
805
|
+
* data: [
|
|
806
|
+
* // ... provide data here
|
|
807
|
+
* ]
|
|
808
|
+
* })
|
|
809
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
810
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
811
|
+
*
|
|
812
|
+
*/
|
|
813
|
+
createManyAndReturn<T extends PageVersionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PageVersionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PageVersionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* Delete a PageVersion.
|
|
817
|
+
* @param {PageVersionDeleteArgs} args - Arguments to delete one PageVersion.
|
|
818
|
+
* @example
|
|
819
|
+
* // Delete one PageVersion
|
|
820
|
+
* const PageVersion = await prisma.pageVersion.delete({
|
|
821
|
+
* where: {
|
|
822
|
+
* // ... filter to delete one PageVersion
|
|
823
|
+
* }
|
|
824
|
+
* })
|
|
825
|
+
*
|
|
826
|
+
*/
|
|
827
|
+
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>
|
|
828
|
+
|
|
829
|
+
/**
|
|
830
|
+
* Update one PageVersion.
|
|
831
|
+
* @param {PageVersionUpdateArgs} args - Arguments to update one PageVersion.
|
|
832
|
+
* @example
|
|
833
|
+
* // Update one PageVersion
|
|
834
|
+
* const pageVersion = await prisma.pageVersion.update({
|
|
835
|
+
* where: {
|
|
836
|
+
* // ... provide filter here
|
|
837
|
+
* },
|
|
838
|
+
* data: {
|
|
839
|
+
* // ... provide data here
|
|
840
|
+
* }
|
|
841
|
+
* })
|
|
842
|
+
*
|
|
843
|
+
*/
|
|
844
|
+
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>
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* Delete zero or more PageVersions.
|
|
848
|
+
* @param {PageVersionDeleteManyArgs} args - Arguments to filter PageVersions to delete.
|
|
849
|
+
* @example
|
|
850
|
+
* // Delete a few PageVersions
|
|
851
|
+
* const { count } = await prisma.pageVersion.deleteMany({
|
|
852
|
+
* where: {
|
|
853
|
+
* // ... provide filter here
|
|
854
|
+
* }
|
|
855
|
+
* })
|
|
856
|
+
*
|
|
857
|
+
*/
|
|
858
|
+
deleteMany<T extends PageVersionDeleteManyArgs>(args?: Prisma.SelectSubset<T, PageVersionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
859
|
+
|
|
860
|
+
/**
|
|
861
|
+
* Update zero or more PageVersions.
|
|
862
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
863
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
864
|
+
* @param {PageVersionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
865
|
+
* @example
|
|
866
|
+
* // Update many PageVersions
|
|
867
|
+
* const pageVersion = await prisma.pageVersion.updateMany({
|
|
868
|
+
* where: {
|
|
869
|
+
* // ... provide filter here
|
|
870
|
+
* },
|
|
871
|
+
* data: {
|
|
872
|
+
* // ... provide data here
|
|
873
|
+
* }
|
|
874
|
+
* })
|
|
875
|
+
*
|
|
876
|
+
*/
|
|
877
|
+
updateMany<T extends PageVersionUpdateManyArgs>(args: Prisma.SelectSubset<T, PageVersionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
* Update zero or more PageVersions and returns the data updated in the database.
|
|
881
|
+
* @param {PageVersionUpdateManyAndReturnArgs} args - Arguments to update many PageVersions.
|
|
882
|
+
* @example
|
|
883
|
+
* // Update many PageVersions
|
|
884
|
+
* const pageVersion = await prisma.pageVersion.updateManyAndReturn({
|
|
885
|
+
* where: {
|
|
886
|
+
* // ... provide filter here
|
|
887
|
+
* },
|
|
888
|
+
* data: [
|
|
889
|
+
* // ... provide data here
|
|
890
|
+
* ]
|
|
891
|
+
* })
|
|
892
|
+
*
|
|
893
|
+
* // Update zero or more PageVersions and only return the `id`
|
|
894
|
+
* const pageVersionWithIdOnly = await prisma.pageVersion.updateManyAndReturn({
|
|
895
|
+
* select: { id: true },
|
|
896
|
+
* where: {
|
|
897
|
+
* // ... provide filter here
|
|
898
|
+
* },
|
|
899
|
+
* data: [
|
|
900
|
+
* // ... provide data here
|
|
901
|
+
* ]
|
|
902
|
+
* })
|
|
903
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
904
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
905
|
+
*
|
|
906
|
+
*/
|
|
907
|
+
updateManyAndReturn<T extends PageVersionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PageVersionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PageVersionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
908
|
+
|
|
909
|
+
/**
|
|
910
|
+
* Create or update one PageVersion.
|
|
911
|
+
* @param {PageVersionUpsertArgs} args - Arguments to update or create a PageVersion.
|
|
912
|
+
* @example
|
|
913
|
+
* // Update or create a PageVersion
|
|
914
|
+
* const pageVersion = await prisma.pageVersion.upsert({
|
|
915
|
+
* create: {
|
|
916
|
+
* // ... data to create a PageVersion
|
|
917
|
+
* },
|
|
918
|
+
* update: {
|
|
919
|
+
* // ... in case it already exists, update
|
|
920
|
+
* },
|
|
921
|
+
* where: {
|
|
922
|
+
* // ... the filter for the PageVersion we want to update
|
|
923
|
+
* }
|
|
924
|
+
* })
|
|
925
|
+
*/
|
|
926
|
+
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>
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
/**
|
|
930
|
+
* Count the number of PageVersions.
|
|
931
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
932
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
933
|
+
* @param {PageVersionCountArgs} args - Arguments to filter PageVersions to count.
|
|
934
|
+
* @example
|
|
935
|
+
* // Count the number of PageVersions
|
|
936
|
+
* const count = await prisma.pageVersion.count({
|
|
937
|
+
* where: {
|
|
938
|
+
* // ... the filter for the PageVersions we want to count
|
|
939
|
+
* }
|
|
940
|
+
* })
|
|
941
|
+
**/
|
|
942
|
+
count<T extends PageVersionCountArgs>(
|
|
943
|
+
args?: Prisma.Subset<T, PageVersionCountArgs>,
|
|
944
|
+
): Prisma.PrismaPromise<
|
|
945
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
946
|
+
? T['select'] extends true
|
|
947
|
+
? number
|
|
948
|
+
: Prisma.GetScalarType<T['select'], PageVersionCountAggregateOutputType>
|
|
949
|
+
: number
|
|
950
|
+
>
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* Allows you to perform aggregations operations on a PageVersion.
|
|
954
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
955
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
956
|
+
* @param {PageVersionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
957
|
+
* @example
|
|
958
|
+
* // Ordered by age ascending
|
|
959
|
+
* // Where email contains prisma.io
|
|
960
|
+
* // Limited to the 10 users
|
|
961
|
+
* const aggregations = await prisma.user.aggregate({
|
|
962
|
+
* _avg: {
|
|
963
|
+
* age: true,
|
|
964
|
+
* },
|
|
965
|
+
* where: {
|
|
966
|
+
* email: {
|
|
967
|
+
* contains: "prisma.io",
|
|
968
|
+
* },
|
|
969
|
+
* },
|
|
970
|
+
* orderBy: {
|
|
971
|
+
* age: "asc",
|
|
972
|
+
* },
|
|
973
|
+
* take: 10,
|
|
974
|
+
* })
|
|
975
|
+
**/
|
|
976
|
+
aggregate<T extends PageVersionAggregateArgs>(args: Prisma.Subset<T, PageVersionAggregateArgs>): Prisma.PrismaPromise<GetPageVersionAggregateType<T>>
|
|
977
|
+
|
|
978
|
+
/**
|
|
979
|
+
* Group by PageVersion.
|
|
980
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
981
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
982
|
+
* @param {PageVersionGroupByArgs} args - Group by arguments.
|
|
983
|
+
* @example
|
|
984
|
+
* // Group by city, order by createdAt, get count
|
|
985
|
+
* const result = await prisma.user.groupBy({
|
|
986
|
+
* by: ['city', 'createdAt'],
|
|
987
|
+
* orderBy: {
|
|
988
|
+
* createdAt: true
|
|
989
|
+
* },
|
|
990
|
+
* _count: {
|
|
991
|
+
* _all: true
|
|
992
|
+
* },
|
|
993
|
+
* })
|
|
994
|
+
*
|
|
995
|
+
**/
|
|
996
|
+
groupBy<
|
|
997
|
+
T extends PageVersionGroupByArgs,
|
|
998
|
+
HasSelectOrTake extends Prisma.Or<
|
|
999
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
1000
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
1001
|
+
>,
|
|
1002
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
1003
|
+
? { orderBy: PageVersionGroupByArgs['orderBy'] }
|
|
1004
|
+
: { orderBy?: PageVersionGroupByArgs['orderBy'] },
|
|
1005
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
1006
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
1007
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
1008
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
1009
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
1010
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
1011
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
1012
|
+
? `Error: "by" must not be empty.`
|
|
1013
|
+
: HavingValid extends Prisma.False
|
|
1014
|
+
? {
|
|
1015
|
+
[P in HavingFields]: P extends ByFields
|
|
1016
|
+
? never
|
|
1017
|
+
: P extends string
|
|
1018
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
1019
|
+
: [
|
|
1020
|
+
Error,
|
|
1021
|
+
'Field ',
|
|
1022
|
+
P,
|
|
1023
|
+
` in "having" needs to be provided in "by"`,
|
|
1024
|
+
]
|
|
1025
|
+
}[HavingFields]
|
|
1026
|
+
: 'take' extends Prisma.Keys<T>
|
|
1027
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
1028
|
+
? ByValid extends Prisma.True
|
|
1029
|
+
? {}
|
|
1030
|
+
: {
|
|
1031
|
+
[P in OrderFields]: P extends ByFields
|
|
1032
|
+
? never
|
|
1033
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1034
|
+
}[OrderFields]
|
|
1035
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
1036
|
+
: 'skip' extends Prisma.Keys<T>
|
|
1037
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
1038
|
+
? ByValid extends Prisma.True
|
|
1039
|
+
? {}
|
|
1040
|
+
: {
|
|
1041
|
+
[P in OrderFields]: P extends ByFields
|
|
1042
|
+
? never
|
|
1043
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1044
|
+
}[OrderFields]
|
|
1045
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
1046
|
+
: ByValid extends Prisma.True
|
|
1047
|
+
? {}
|
|
1048
|
+
: {
|
|
1049
|
+
[P in OrderFields]: P extends ByFields
|
|
1050
|
+
? never
|
|
1051
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1052
|
+
}[OrderFields]
|
|
1053
|
+
>(args: Prisma.SubsetIntersection<T, PageVersionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPageVersionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
1054
|
+
/**
|
|
1055
|
+
* Fields of the PageVersion model
|
|
1056
|
+
*/
|
|
1057
|
+
readonly fields: PageVersionFieldRefs;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
/**
|
|
1061
|
+
* The delegate class that acts as a "Promise-like" for PageVersion.
|
|
1062
|
+
* Why is this prefixed with `Prisma__`?
|
|
1063
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1064
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1065
|
+
*/
|
|
1066
|
+
export interface Prisma__PageVersionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1067
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
1068
|
+
page<T extends Prisma.PRDPageDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PRDPageDefaultArgs<ExtArgs>>): Prisma.Prisma__PRDPageClient<runtime.Types.Result.GetResult<Prisma.$PRDPagePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
1069
|
+
/**
|
|
1070
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1071
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1072
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1073
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1074
|
+
*/
|
|
1075
|
+
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>
|
|
1076
|
+
/**
|
|
1077
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1078
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1079
|
+
* @returns A Promise for the completion of the callback.
|
|
1080
|
+
*/
|
|
1081
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
1082
|
+
/**
|
|
1083
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1084
|
+
* resolved value cannot be modified from the callback.
|
|
1085
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1086
|
+
* @returns A Promise for the completion of the callback.
|
|
1087
|
+
*/
|
|
1088
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
|
|
1092
|
+
|
|
1093
|
+
|
|
1094
|
+
/**
|
|
1095
|
+
* Fields of the PageVersion model
|
|
1096
|
+
*/
|
|
1097
|
+
export interface PageVersionFieldRefs {
|
|
1098
|
+
readonly id: Prisma.FieldRef<"PageVersion", 'String'>
|
|
1099
|
+
readonly pageId: Prisma.FieldRef<"PageVersion", 'String'>
|
|
1100
|
+
readonly version: Prisma.FieldRef<"PageVersion", 'Int'>
|
|
1101
|
+
readonly notes: Prisma.FieldRef<"PageVersion", 'String'>
|
|
1102
|
+
readonly canvas: Prisma.FieldRef<"PageVersion", 'Json'>
|
|
1103
|
+
readonly content: Prisma.FieldRef<"PageVersion", 'Json'>
|
|
1104
|
+
readonly restoredFromVersion: Prisma.FieldRef<"PageVersion", 'Int'>
|
|
1105
|
+
readonly fromPRDVersionId: Prisma.FieldRef<"PageVersion", 'String'>
|
|
1106
|
+
readonly createdAt: Prisma.FieldRef<"PageVersion", 'DateTime'>
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
// Custom InputTypes
|
|
1111
|
+
/**
|
|
1112
|
+
* PageVersion findUnique
|
|
1113
|
+
*/
|
|
1114
|
+
export type PageVersionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1115
|
+
/**
|
|
1116
|
+
* Select specific fields to fetch from the PageVersion
|
|
1117
|
+
*/
|
|
1118
|
+
select?: Prisma.PageVersionSelect<ExtArgs> | null
|
|
1119
|
+
/**
|
|
1120
|
+
* Omit specific fields from the PageVersion
|
|
1121
|
+
*/
|
|
1122
|
+
omit?: Prisma.PageVersionOmit<ExtArgs> | null
|
|
1123
|
+
/**
|
|
1124
|
+
* Choose, which related nodes to fetch as well
|
|
1125
|
+
*/
|
|
1126
|
+
include?: Prisma.PageVersionInclude<ExtArgs> | null
|
|
1127
|
+
/**
|
|
1128
|
+
* Filter, which PageVersion to fetch.
|
|
1129
|
+
*/
|
|
1130
|
+
where: Prisma.PageVersionWhereUniqueInput
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* PageVersion findUniqueOrThrow
|
|
1135
|
+
*/
|
|
1136
|
+
export type PageVersionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1137
|
+
/**
|
|
1138
|
+
* Select specific fields to fetch from the PageVersion
|
|
1139
|
+
*/
|
|
1140
|
+
select?: Prisma.PageVersionSelect<ExtArgs> | null
|
|
1141
|
+
/**
|
|
1142
|
+
* Omit specific fields from the PageVersion
|
|
1143
|
+
*/
|
|
1144
|
+
omit?: Prisma.PageVersionOmit<ExtArgs> | null
|
|
1145
|
+
/**
|
|
1146
|
+
* Choose, which related nodes to fetch as well
|
|
1147
|
+
*/
|
|
1148
|
+
include?: Prisma.PageVersionInclude<ExtArgs> | null
|
|
1149
|
+
/**
|
|
1150
|
+
* Filter, which PageVersion to fetch.
|
|
1151
|
+
*/
|
|
1152
|
+
where: Prisma.PageVersionWhereUniqueInput
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
/**
|
|
1156
|
+
* PageVersion findFirst
|
|
1157
|
+
*/
|
|
1158
|
+
export type PageVersionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1159
|
+
/**
|
|
1160
|
+
* Select specific fields to fetch from the PageVersion
|
|
1161
|
+
*/
|
|
1162
|
+
select?: Prisma.PageVersionSelect<ExtArgs> | null
|
|
1163
|
+
/**
|
|
1164
|
+
* Omit specific fields from the PageVersion
|
|
1165
|
+
*/
|
|
1166
|
+
omit?: Prisma.PageVersionOmit<ExtArgs> | null
|
|
1167
|
+
/**
|
|
1168
|
+
* Choose, which related nodes to fetch as well
|
|
1169
|
+
*/
|
|
1170
|
+
include?: Prisma.PageVersionInclude<ExtArgs> | null
|
|
1171
|
+
/**
|
|
1172
|
+
* Filter, which PageVersion to fetch.
|
|
1173
|
+
*/
|
|
1174
|
+
where?: Prisma.PageVersionWhereInput
|
|
1175
|
+
/**
|
|
1176
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1177
|
+
*
|
|
1178
|
+
* Determine the order of PageVersions to fetch.
|
|
1179
|
+
*/
|
|
1180
|
+
orderBy?: Prisma.PageVersionOrderByWithRelationInput | Prisma.PageVersionOrderByWithRelationInput[]
|
|
1181
|
+
/**
|
|
1182
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1183
|
+
*
|
|
1184
|
+
* Sets the position for searching for PageVersions.
|
|
1185
|
+
*/
|
|
1186
|
+
cursor?: Prisma.PageVersionWhereUniqueInput
|
|
1187
|
+
/**
|
|
1188
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1189
|
+
*
|
|
1190
|
+
* Take `±n` PageVersions from the position of the cursor.
|
|
1191
|
+
*/
|
|
1192
|
+
take?: number
|
|
1193
|
+
/**
|
|
1194
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1195
|
+
*
|
|
1196
|
+
* Skip the first `n` PageVersions.
|
|
1197
|
+
*/
|
|
1198
|
+
skip?: number
|
|
1199
|
+
/**
|
|
1200
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1201
|
+
*
|
|
1202
|
+
* Filter by unique combinations of PageVersions.
|
|
1203
|
+
*/
|
|
1204
|
+
distinct?: Prisma.PageVersionScalarFieldEnum | Prisma.PageVersionScalarFieldEnum[]
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* PageVersion findFirstOrThrow
|
|
1209
|
+
*/
|
|
1210
|
+
export type PageVersionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1211
|
+
/**
|
|
1212
|
+
* Select specific fields to fetch from the PageVersion
|
|
1213
|
+
*/
|
|
1214
|
+
select?: Prisma.PageVersionSelect<ExtArgs> | null
|
|
1215
|
+
/**
|
|
1216
|
+
* Omit specific fields from the PageVersion
|
|
1217
|
+
*/
|
|
1218
|
+
omit?: Prisma.PageVersionOmit<ExtArgs> | null
|
|
1219
|
+
/**
|
|
1220
|
+
* Choose, which related nodes to fetch as well
|
|
1221
|
+
*/
|
|
1222
|
+
include?: Prisma.PageVersionInclude<ExtArgs> | null
|
|
1223
|
+
/**
|
|
1224
|
+
* Filter, which PageVersion to fetch.
|
|
1225
|
+
*/
|
|
1226
|
+
where?: Prisma.PageVersionWhereInput
|
|
1227
|
+
/**
|
|
1228
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1229
|
+
*
|
|
1230
|
+
* Determine the order of PageVersions to fetch.
|
|
1231
|
+
*/
|
|
1232
|
+
orderBy?: Prisma.PageVersionOrderByWithRelationInput | Prisma.PageVersionOrderByWithRelationInput[]
|
|
1233
|
+
/**
|
|
1234
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1235
|
+
*
|
|
1236
|
+
* Sets the position for searching for PageVersions.
|
|
1237
|
+
*/
|
|
1238
|
+
cursor?: Prisma.PageVersionWhereUniqueInput
|
|
1239
|
+
/**
|
|
1240
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1241
|
+
*
|
|
1242
|
+
* Take `±n` PageVersions from the position of the cursor.
|
|
1243
|
+
*/
|
|
1244
|
+
take?: number
|
|
1245
|
+
/**
|
|
1246
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1247
|
+
*
|
|
1248
|
+
* Skip the first `n` PageVersions.
|
|
1249
|
+
*/
|
|
1250
|
+
skip?: number
|
|
1251
|
+
/**
|
|
1252
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1253
|
+
*
|
|
1254
|
+
* Filter by unique combinations of PageVersions.
|
|
1255
|
+
*/
|
|
1256
|
+
distinct?: Prisma.PageVersionScalarFieldEnum | Prisma.PageVersionScalarFieldEnum[]
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
/**
|
|
1260
|
+
* PageVersion findMany
|
|
1261
|
+
*/
|
|
1262
|
+
export type PageVersionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1263
|
+
/**
|
|
1264
|
+
* Select specific fields to fetch from the PageVersion
|
|
1265
|
+
*/
|
|
1266
|
+
select?: Prisma.PageVersionSelect<ExtArgs> | null
|
|
1267
|
+
/**
|
|
1268
|
+
* Omit specific fields from the PageVersion
|
|
1269
|
+
*/
|
|
1270
|
+
omit?: Prisma.PageVersionOmit<ExtArgs> | null
|
|
1271
|
+
/**
|
|
1272
|
+
* Choose, which related nodes to fetch as well
|
|
1273
|
+
*/
|
|
1274
|
+
include?: Prisma.PageVersionInclude<ExtArgs> | null
|
|
1275
|
+
/**
|
|
1276
|
+
* Filter, which PageVersions to fetch.
|
|
1277
|
+
*/
|
|
1278
|
+
where?: Prisma.PageVersionWhereInput
|
|
1279
|
+
/**
|
|
1280
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1281
|
+
*
|
|
1282
|
+
* Determine the order of PageVersions to fetch.
|
|
1283
|
+
*/
|
|
1284
|
+
orderBy?: Prisma.PageVersionOrderByWithRelationInput | Prisma.PageVersionOrderByWithRelationInput[]
|
|
1285
|
+
/**
|
|
1286
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1287
|
+
*
|
|
1288
|
+
* Sets the position for listing PageVersions.
|
|
1289
|
+
*/
|
|
1290
|
+
cursor?: Prisma.PageVersionWhereUniqueInput
|
|
1291
|
+
/**
|
|
1292
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1293
|
+
*
|
|
1294
|
+
* Take `±n` PageVersions from the position of the cursor.
|
|
1295
|
+
*/
|
|
1296
|
+
take?: number
|
|
1297
|
+
/**
|
|
1298
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1299
|
+
*
|
|
1300
|
+
* Skip the first `n` PageVersions.
|
|
1301
|
+
*/
|
|
1302
|
+
skip?: number
|
|
1303
|
+
/**
|
|
1304
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1305
|
+
*
|
|
1306
|
+
* Filter by unique combinations of PageVersions.
|
|
1307
|
+
*/
|
|
1308
|
+
distinct?: Prisma.PageVersionScalarFieldEnum | Prisma.PageVersionScalarFieldEnum[]
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
/**
|
|
1312
|
+
* PageVersion create
|
|
1313
|
+
*/
|
|
1314
|
+
export type PageVersionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1315
|
+
/**
|
|
1316
|
+
* Select specific fields to fetch from the PageVersion
|
|
1317
|
+
*/
|
|
1318
|
+
select?: Prisma.PageVersionSelect<ExtArgs> | null
|
|
1319
|
+
/**
|
|
1320
|
+
* Omit specific fields from the PageVersion
|
|
1321
|
+
*/
|
|
1322
|
+
omit?: Prisma.PageVersionOmit<ExtArgs> | null
|
|
1323
|
+
/**
|
|
1324
|
+
* Choose, which related nodes to fetch as well
|
|
1325
|
+
*/
|
|
1326
|
+
include?: Prisma.PageVersionInclude<ExtArgs> | null
|
|
1327
|
+
/**
|
|
1328
|
+
* The data needed to create a PageVersion.
|
|
1329
|
+
*/
|
|
1330
|
+
data: Prisma.XOR<Prisma.PageVersionCreateInput, Prisma.PageVersionUncheckedCreateInput>
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
/**
|
|
1334
|
+
* PageVersion createMany
|
|
1335
|
+
*/
|
|
1336
|
+
export type PageVersionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1337
|
+
/**
|
|
1338
|
+
* The data used to create many PageVersions.
|
|
1339
|
+
*/
|
|
1340
|
+
data: Prisma.PageVersionCreateManyInput | Prisma.PageVersionCreateManyInput[]
|
|
1341
|
+
skipDuplicates?: boolean
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
/**
|
|
1345
|
+
* PageVersion createManyAndReturn
|
|
1346
|
+
*/
|
|
1347
|
+
export type PageVersionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1348
|
+
/**
|
|
1349
|
+
* Select specific fields to fetch from the PageVersion
|
|
1350
|
+
*/
|
|
1351
|
+
select?: Prisma.PageVersionSelectCreateManyAndReturn<ExtArgs> | null
|
|
1352
|
+
/**
|
|
1353
|
+
* Omit specific fields from the PageVersion
|
|
1354
|
+
*/
|
|
1355
|
+
omit?: Prisma.PageVersionOmit<ExtArgs> | null
|
|
1356
|
+
/**
|
|
1357
|
+
* The data used to create many PageVersions.
|
|
1358
|
+
*/
|
|
1359
|
+
data: Prisma.PageVersionCreateManyInput | Prisma.PageVersionCreateManyInput[]
|
|
1360
|
+
skipDuplicates?: boolean
|
|
1361
|
+
/**
|
|
1362
|
+
* Choose, which related nodes to fetch as well
|
|
1363
|
+
*/
|
|
1364
|
+
include?: Prisma.PageVersionIncludeCreateManyAndReturn<ExtArgs> | null
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
/**
|
|
1368
|
+
* PageVersion update
|
|
1369
|
+
*/
|
|
1370
|
+
export type PageVersionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1371
|
+
/**
|
|
1372
|
+
* Select specific fields to fetch from the PageVersion
|
|
1373
|
+
*/
|
|
1374
|
+
select?: Prisma.PageVersionSelect<ExtArgs> | null
|
|
1375
|
+
/**
|
|
1376
|
+
* Omit specific fields from the PageVersion
|
|
1377
|
+
*/
|
|
1378
|
+
omit?: Prisma.PageVersionOmit<ExtArgs> | null
|
|
1379
|
+
/**
|
|
1380
|
+
* Choose, which related nodes to fetch as well
|
|
1381
|
+
*/
|
|
1382
|
+
include?: Prisma.PageVersionInclude<ExtArgs> | null
|
|
1383
|
+
/**
|
|
1384
|
+
* The data needed to update a PageVersion.
|
|
1385
|
+
*/
|
|
1386
|
+
data: Prisma.XOR<Prisma.PageVersionUpdateInput, Prisma.PageVersionUncheckedUpdateInput>
|
|
1387
|
+
/**
|
|
1388
|
+
* Choose, which PageVersion to update.
|
|
1389
|
+
*/
|
|
1390
|
+
where: Prisma.PageVersionWhereUniqueInput
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
/**
|
|
1394
|
+
* PageVersion updateMany
|
|
1395
|
+
*/
|
|
1396
|
+
export type PageVersionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1397
|
+
/**
|
|
1398
|
+
* The data used to update PageVersions.
|
|
1399
|
+
*/
|
|
1400
|
+
data: Prisma.XOR<Prisma.PageVersionUpdateManyMutationInput, Prisma.PageVersionUncheckedUpdateManyInput>
|
|
1401
|
+
/**
|
|
1402
|
+
* Filter which PageVersions to update
|
|
1403
|
+
*/
|
|
1404
|
+
where?: Prisma.PageVersionWhereInput
|
|
1405
|
+
/**
|
|
1406
|
+
* Limit how many PageVersions to update.
|
|
1407
|
+
*/
|
|
1408
|
+
limit?: number
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
/**
|
|
1412
|
+
* PageVersion updateManyAndReturn
|
|
1413
|
+
*/
|
|
1414
|
+
export type PageVersionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1415
|
+
/**
|
|
1416
|
+
* Select specific fields to fetch from the PageVersion
|
|
1417
|
+
*/
|
|
1418
|
+
select?: Prisma.PageVersionSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1419
|
+
/**
|
|
1420
|
+
* Omit specific fields from the PageVersion
|
|
1421
|
+
*/
|
|
1422
|
+
omit?: Prisma.PageVersionOmit<ExtArgs> | null
|
|
1423
|
+
/**
|
|
1424
|
+
* The data used to update PageVersions.
|
|
1425
|
+
*/
|
|
1426
|
+
data: Prisma.XOR<Prisma.PageVersionUpdateManyMutationInput, Prisma.PageVersionUncheckedUpdateManyInput>
|
|
1427
|
+
/**
|
|
1428
|
+
* Filter which PageVersions to update
|
|
1429
|
+
*/
|
|
1430
|
+
where?: Prisma.PageVersionWhereInput
|
|
1431
|
+
/**
|
|
1432
|
+
* Limit how many PageVersions to update.
|
|
1433
|
+
*/
|
|
1434
|
+
limit?: number
|
|
1435
|
+
/**
|
|
1436
|
+
* Choose, which related nodes to fetch as well
|
|
1437
|
+
*/
|
|
1438
|
+
include?: Prisma.PageVersionIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
/**
|
|
1442
|
+
* PageVersion upsert
|
|
1443
|
+
*/
|
|
1444
|
+
export type PageVersionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1445
|
+
/**
|
|
1446
|
+
* Select specific fields to fetch from the PageVersion
|
|
1447
|
+
*/
|
|
1448
|
+
select?: Prisma.PageVersionSelect<ExtArgs> | null
|
|
1449
|
+
/**
|
|
1450
|
+
* Omit specific fields from the PageVersion
|
|
1451
|
+
*/
|
|
1452
|
+
omit?: Prisma.PageVersionOmit<ExtArgs> | null
|
|
1453
|
+
/**
|
|
1454
|
+
* Choose, which related nodes to fetch as well
|
|
1455
|
+
*/
|
|
1456
|
+
include?: Prisma.PageVersionInclude<ExtArgs> | null
|
|
1457
|
+
/**
|
|
1458
|
+
* The filter to search for the PageVersion to update in case it exists.
|
|
1459
|
+
*/
|
|
1460
|
+
where: Prisma.PageVersionWhereUniqueInput
|
|
1461
|
+
/**
|
|
1462
|
+
* In case the PageVersion found by the `where` argument doesn't exist, create a new PageVersion with this data.
|
|
1463
|
+
*/
|
|
1464
|
+
create: Prisma.XOR<Prisma.PageVersionCreateInput, Prisma.PageVersionUncheckedCreateInput>
|
|
1465
|
+
/**
|
|
1466
|
+
* In case the PageVersion was found with the provided `where` argument, update it with this data.
|
|
1467
|
+
*/
|
|
1468
|
+
update: Prisma.XOR<Prisma.PageVersionUpdateInput, Prisma.PageVersionUncheckedUpdateInput>
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
/**
|
|
1472
|
+
* PageVersion delete
|
|
1473
|
+
*/
|
|
1474
|
+
export type PageVersionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1475
|
+
/**
|
|
1476
|
+
* Select specific fields to fetch from the PageVersion
|
|
1477
|
+
*/
|
|
1478
|
+
select?: Prisma.PageVersionSelect<ExtArgs> | null
|
|
1479
|
+
/**
|
|
1480
|
+
* Omit specific fields from the PageVersion
|
|
1481
|
+
*/
|
|
1482
|
+
omit?: Prisma.PageVersionOmit<ExtArgs> | null
|
|
1483
|
+
/**
|
|
1484
|
+
* Choose, which related nodes to fetch as well
|
|
1485
|
+
*/
|
|
1486
|
+
include?: Prisma.PageVersionInclude<ExtArgs> | null
|
|
1487
|
+
/**
|
|
1488
|
+
* Filter which PageVersion to delete.
|
|
1489
|
+
*/
|
|
1490
|
+
where: Prisma.PageVersionWhereUniqueInput
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
/**
|
|
1494
|
+
* PageVersion deleteMany
|
|
1495
|
+
*/
|
|
1496
|
+
export type PageVersionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1497
|
+
/**
|
|
1498
|
+
* Filter which PageVersions to delete
|
|
1499
|
+
*/
|
|
1500
|
+
where?: Prisma.PageVersionWhereInput
|
|
1501
|
+
/**
|
|
1502
|
+
* Limit how many PageVersions to delete.
|
|
1503
|
+
*/
|
|
1504
|
+
limit?: number
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
/**
|
|
1508
|
+
* PageVersion without action
|
|
1509
|
+
*/
|
|
1510
|
+
export type PageVersionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1511
|
+
/**
|
|
1512
|
+
* Select specific fields to fetch from the PageVersion
|
|
1513
|
+
*/
|
|
1514
|
+
select?: Prisma.PageVersionSelect<ExtArgs> | null
|
|
1515
|
+
/**
|
|
1516
|
+
* Omit specific fields from the PageVersion
|
|
1517
|
+
*/
|
|
1518
|
+
omit?: Prisma.PageVersionOmit<ExtArgs> | null
|
|
1519
|
+
/**
|
|
1520
|
+
* Choose, which related nodes to fetch as well
|
|
1521
|
+
*/
|
|
1522
|
+
include?: Prisma.PageVersionInclude<ExtArgs> | null
|
|
1523
|
+
}
|