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