@allbluecn/database 0.5.0 → 0.6.0
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/generated/browser.ts +10 -0
- package/generated/client.ts +10 -0
- package/generated/internal/class.ts +24 -4
- package/generated/internal/prismaNamespace.ts +182 -1
- package/generated/internal/prismaNamespaceBrowser.ts +31 -0
- package/generated/models/KnowledgeBase.ts +158 -0
- package/generated/models/KnowledgeDocument.ts +176 -0
- package/generated/models/User.ts +634 -0
- package/generated/models/Workspace.ts +380 -0
- package/generated/models/WorkspaceKnowledgeBase.ts +1430 -0
- package/generated/models/WorkspaceQuickDoc.ts +2030 -0
- package/generated/models.ts +2 -0
- package/generated-sqlite/browser.ts +10 -0
- package/generated-sqlite/client.ts +10 -0
- package/generated-sqlite/internal/class.ts +24 -4
- package/generated-sqlite/internal/prismaNamespace.ts +182 -1
- package/generated-sqlite/internal/prismaNamespaceBrowser.ts +31 -0
- package/generated-sqlite/models/KnowledgeBase.ts +150 -0
- package/generated-sqlite/models/KnowledgeDocument.ts +168 -0
- package/generated-sqlite/models/User.ts +518 -0
- package/generated-sqlite/models/Workspace.ts +300 -0
- package/generated-sqlite/models/WorkspaceKnowledgeBase.ts +1426 -0
- package/generated-sqlite/models/WorkspaceQuickDoc.ts +2025 -0
- package/generated-sqlite/models.ts +2 -0
- package/migrations/20260909070745_workspace_kb_card/migration.sql +55 -0
- package/migrations/20260909123637_workspace_quick_doc_column_index/migration.sql +2 -0
- package/migrations/20260909123656_workspace_quick_doc_column_backfill/migration.sql +4 -0
- package/migrations/20260909144328_workspace_quick_doc_label/migration.sql +2 -0
- package/migrations/20260909154315_workspace_quick_doc_icon/migration.sql +2 -0
- package/package.json +2 -2
- package/schema.prisma +48 -2
- package/schema.sqlite.prisma +48 -2
|
@@ -457,6 +457,8 @@ export const ModelName = {
|
|
|
457
457
|
CommentReaction: 'CommentReaction',
|
|
458
458
|
StoryDependency: 'StoryDependency',
|
|
459
459
|
ProjectKnowledgeBase: 'ProjectKnowledgeBase',
|
|
460
|
+
WorkspaceKnowledgeBase: 'WorkspaceKnowledgeBase',
|
|
461
|
+
WorkspaceQuickDoc: 'WorkspaceQuickDoc',
|
|
460
462
|
StoryLink: 'StoryLink',
|
|
461
463
|
StoryAttachment: 'StoryAttachment',
|
|
462
464
|
StoryPrdLink: 'StoryPrdLink',
|
|
@@ -503,7 +505,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
503
505
|
omit: GlobalOmitOptions
|
|
504
506
|
}
|
|
505
507
|
meta: {
|
|
506
|
-
modelProps: "systemSetting" | "user" | "account" | "project" | "projectMember" | "workspace" | "workspaceMember" | "teamMembership" | "teamInvitation" | "teamJoinRequest" | "projectActivity" | "chatThread" | "chatMessage" | "chatRun" | "chatInterrupt" | "generationRun" | "loginLog" | "invitationCode" | "invitationUse" | "passwordResetToken" | "knowledgeBase" | "knowledgeDocument" | "pRD" | "agentConversation" | "agentMessage" | "component" | "block" | "blockComponent" | "template" | "templateBlock" | "pRDPage" | "componentInstance" | "blockInstance" | "pRDVersion" | "pageVersion" | "review" | "reviewComment" | "comment" | "commentIgnore" | "share" | "tag" | "pRDTag" | "componentTag" | "reference" | "shareVersion" | "anyHubApp" | "anyHubPermission" | "anyHubMarketApp" | "anyHubRecommendation" | "anyHubRecommender" | "designProject" | "artboard" | "artboardExport" | "aiProvider" | "aiProviderConfig" | "thirdPartyDependency" | "legalRegulation" | "industryCompliance" | "dictionaryTerm" | "websiteBookmark" | "bookmarkCategory" | "knowledgeShareRecord" | "articleFavorite" | "story" | "label" | "storyLabel" | "storyActivity" | "sequenceCounter" | "storyComment" | "storyReaction" | "commentReaction" | "storyDependency" | "projectKnowledgeBase" | "storyLink" | "storyAttachment" | "storyPrdLink" | "storyDocLink" | "storyExternalLink" | "storyFilterView" | "monitoringRequestLog" | "monitoringErrorReport" | "monitoringMetricsSnapshot" | "monitoringHealthSnapshot" | "plan" | "subscription" | "usageRecord" | "aiUsageLog" | "invoice" | "providerEvent" | "licenseKey" | "licenseActivation" | "auditLog" | "ssoProvider" | "ssoMapping" | "customRole" | "roleAssignment" | "complianceExport" | "userAgent" | "userSkill" | "developerLog" | "notification" | "notificationPreference" | "iteration" | "iterationAutoSchedule"
|
|
508
|
+
modelProps: "systemSetting" | "user" | "account" | "project" | "projectMember" | "workspace" | "workspaceMember" | "teamMembership" | "teamInvitation" | "teamJoinRequest" | "projectActivity" | "chatThread" | "chatMessage" | "chatRun" | "chatInterrupt" | "generationRun" | "loginLog" | "invitationCode" | "invitationUse" | "passwordResetToken" | "knowledgeBase" | "knowledgeDocument" | "pRD" | "agentConversation" | "agentMessage" | "component" | "block" | "blockComponent" | "template" | "templateBlock" | "pRDPage" | "componentInstance" | "blockInstance" | "pRDVersion" | "pageVersion" | "review" | "reviewComment" | "comment" | "commentIgnore" | "share" | "tag" | "pRDTag" | "componentTag" | "reference" | "shareVersion" | "anyHubApp" | "anyHubPermission" | "anyHubMarketApp" | "anyHubRecommendation" | "anyHubRecommender" | "designProject" | "artboard" | "artboardExport" | "aiProvider" | "aiProviderConfig" | "thirdPartyDependency" | "legalRegulation" | "industryCompliance" | "dictionaryTerm" | "websiteBookmark" | "bookmarkCategory" | "knowledgeShareRecord" | "articleFavorite" | "story" | "label" | "storyLabel" | "storyActivity" | "sequenceCounter" | "storyComment" | "storyReaction" | "commentReaction" | "storyDependency" | "projectKnowledgeBase" | "workspaceKnowledgeBase" | "workspaceQuickDoc" | "storyLink" | "storyAttachment" | "storyPrdLink" | "storyDocLink" | "storyExternalLink" | "storyFilterView" | "monitoringRequestLog" | "monitoringErrorReport" | "monitoringMetricsSnapshot" | "monitoringHealthSnapshot" | "plan" | "subscription" | "usageRecord" | "aiUsageLog" | "invoice" | "providerEvent" | "licenseKey" | "licenseActivation" | "auditLog" | "ssoProvider" | "ssoMapping" | "customRole" | "roleAssignment" | "complianceExport" | "userAgent" | "userSkill" | "developerLog" | "notification" | "notificationPreference" | "iteration" | "iterationAutoSchedule"
|
|
507
509
|
txIsolationLevel: TransactionIsolationLevel
|
|
508
510
|
}
|
|
509
511
|
model: {
|
|
@@ -5909,6 +5911,154 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
5909
5911
|
}
|
|
5910
5912
|
}
|
|
5911
5913
|
}
|
|
5914
|
+
WorkspaceKnowledgeBase: {
|
|
5915
|
+
payload: Prisma.$WorkspaceKnowledgeBasePayload<ExtArgs>
|
|
5916
|
+
fields: Prisma.WorkspaceKnowledgeBaseFieldRefs
|
|
5917
|
+
operations: {
|
|
5918
|
+
findUnique: {
|
|
5919
|
+
args: Prisma.WorkspaceKnowledgeBaseFindUniqueArgs<ExtArgs>
|
|
5920
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$WorkspaceKnowledgeBasePayload> | null
|
|
5921
|
+
}
|
|
5922
|
+
findUniqueOrThrow: {
|
|
5923
|
+
args: Prisma.WorkspaceKnowledgeBaseFindUniqueOrThrowArgs<ExtArgs>
|
|
5924
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$WorkspaceKnowledgeBasePayload>
|
|
5925
|
+
}
|
|
5926
|
+
findFirst: {
|
|
5927
|
+
args: Prisma.WorkspaceKnowledgeBaseFindFirstArgs<ExtArgs>
|
|
5928
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$WorkspaceKnowledgeBasePayload> | null
|
|
5929
|
+
}
|
|
5930
|
+
findFirstOrThrow: {
|
|
5931
|
+
args: Prisma.WorkspaceKnowledgeBaseFindFirstOrThrowArgs<ExtArgs>
|
|
5932
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$WorkspaceKnowledgeBasePayload>
|
|
5933
|
+
}
|
|
5934
|
+
findMany: {
|
|
5935
|
+
args: Prisma.WorkspaceKnowledgeBaseFindManyArgs<ExtArgs>
|
|
5936
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$WorkspaceKnowledgeBasePayload>[]
|
|
5937
|
+
}
|
|
5938
|
+
create: {
|
|
5939
|
+
args: Prisma.WorkspaceKnowledgeBaseCreateArgs<ExtArgs>
|
|
5940
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$WorkspaceKnowledgeBasePayload>
|
|
5941
|
+
}
|
|
5942
|
+
createMany: {
|
|
5943
|
+
args: Prisma.WorkspaceKnowledgeBaseCreateManyArgs<ExtArgs>
|
|
5944
|
+
result: BatchPayload
|
|
5945
|
+
}
|
|
5946
|
+
createManyAndReturn: {
|
|
5947
|
+
args: Prisma.WorkspaceKnowledgeBaseCreateManyAndReturnArgs<ExtArgs>
|
|
5948
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$WorkspaceKnowledgeBasePayload>[]
|
|
5949
|
+
}
|
|
5950
|
+
delete: {
|
|
5951
|
+
args: Prisma.WorkspaceKnowledgeBaseDeleteArgs<ExtArgs>
|
|
5952
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$WorkspaceKnowledgeBasePayload>
|
|
5953
|
+
}
|
|
5954
|
+
update: {
|
|
5955
|
+
args: Prisma.WorkspaceKnowledgeBaseUpdateArgs<ExtArgs>
|
|
5956
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$WorkspaceKnowledgeBasePayload>
|
|
5957
|
+
}
|
|
5958
|
+
deleteMany: {
|
|
5959
|
+
args: Prisma.WorkspaceKnowledgeBaseDeleteManyArgs<ExtArgs>
|
|
5960
|
+
result: BatchPayload
|
|
5961
|
+
}
|
|
5962
|
+
updateMany: {
|
|
5963
|
+
args: Prisma.WorkspaceKnowledgeBaseUpdateManyArgs<ExtArgs>
|
|
5964
|
+
result: BatchPayload
|
|
5965
|
+
}
|
|
5966
|
+
updateManyAndReturn: {
|
|
5967
|
+
args: Prisma.WorkspaceKnowledgeBaseUpdateManyAndReturnArgs<ExtArgs>
|
|
5968
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$WorkspaceKnowledgeBasePayload>[]
|
|
5969
|
+
}
|
|
5970
|
+
upsert: {
|
|
5971
|
+
args: Prisma.WorkspaceKnowledgeBaseUpsertArgs<ExtArgs>
|
|
5972
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$WorkspaceKnowledgeBasePayload>
|
|
5973
|
+
}
|
|
5974
|
+
aggregate: {
|
|
5975
|
+
args: Prisma.WorkspaceKnowledgeBaseAggregateArgs<ExtArgs>
|
|
5976
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateWorkspaceKnowledgeBase>
|
|
5977
|
+
}
|
|
5978
|
+
groupBy: {
|
|
5979
|
+
args: Prisma.WorkspaceKnowledgeBaseGroupByArgs<ExtArgs>
|
|
5980
|
+
result: runtime.Types.Utils.Optional<Prisma.WorkspaceKnowledgeBaseGroupByOutputType>[]
|
|
5981
|
+
}
|
|
5982
|
+
count: {
|
|
5983
|
+
args: Prisma.WorkspaceKnowledgeBaseCountArgs<ExtArgs>
|
|
5984
|
+
result: runtime.Types.Utils.Optional<Prisma.WorkspaceKnowledgeBaseCountAggregateOutputType> | number
|
|
5985
|
+
}
|
|
5986
|
+
}
|
|
5987
|
+
}
|
|
5988
|
+
WorkspaceQuickDoc: {
|
|
5989
|
+
payload: Prisma.$WorkspaceQuickDocPayload<ExtArgs>
|
|
5990
|
+
fields: Prisma.WorkspaceQuickDocFieldRefs
|
|
5991
|
+
operations: {
|
|
5992
|
+
findUnique: {
|
|
5993
|
+
args: Prisma.WorkspaceQuickDocFindUniqueArgs<ExtArgs>
|
|
5994
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$WorkspaceQuickDocPayload> | null
|
|
5995
|
+
}
|
|
5996
|
+
findUniqueOrThrow: {
|
|
5997
|
+
args: Prisma.WorkspaceQuickDocFindUniqueOrThrowArgs<ExtArgs>
|
|
5998
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$WorkspaceQuickDocPayload>
|
|
5999
|
+
}
|
|
6000
|
+
findFirst: {
|
|
6001
|
+
args: Prisma.WorkspaceQuickDocFindFirstArgs<ExtArgs>
|
|
6002
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$WorkspaceQuickDocPayload> | null
|
|
6003
|
+
}
|
|
6004
|
+
findFirstOrThrow: {
|
|
6005
|
+
args: Prisma.WorkspaceQuickDocFindFirstOrThrowArgs<ExtArgs>
|
|
6006
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$WorkspaceQuickDocPayload>
|
|
6007
|
+
}
|
|
6008
|
+
findMany: {
|
|
6009
|
+
args: Prisma.WorkspaceQuickDocFindManyArgs<ExtArgs>
|
|
6010
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$WorkspaceQuickDocPayload>[]
|
|
6011
|
+
}
|
|
6012
|
+
create: {
|
|
6013
|
+
args: Prisma.WorkspaceQuickDocCreateArgs<ExtArgs>
|
|
6014
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$WorkspaceQuickDocPayload>
|
|
6015
|
+
}
|
|
6016
|
+
createMany: {
|
|
6017
|
+
args: Prisma.WorkspaceQuickDocCreateManyArgs<ExtArgs>
|
|
6018
|
+
result: BatchPayload
|
|
6019
|
+
}
|
|
6020
|
+
createManyAndReturn: {
|
|
6021
|
+
args: Prisma.WorkspaceQuickDocCreateManyAndReturnArgs<ExtArgs>
|
|
6022
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$WorkspaceQuickDocPayload>[]
|
|
6023
|
+
}
|
|
6024
|
+
delete: {
|
|
6025
|
+
args: Prisma.WorkspaceQuickDocDeleteArgs<ExtArgs>
|
|
6026
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$WorkspaceQuickDocPayload>
|
|
6027
|
+
}
|
|
6028
|
+
update: {
|
|
6029
|
+
args: Prisma.WorkspaceQuickDocUpdateArgs<ExtArgs>
|
|
6030
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$WorkspaceQuickDocPayload>
|
|
6031
|
+
}
|
|
6032
|
+
deleteMany: {
|
|
6033
|
+
args: Prisma.WorkspaceQuickDocDeleteManyArgs<ExtArgs>
|
|
6034
|
+
result: BatchPayload
|
|
6035
|
+
}
|
|
6036
|
+
updateMany: {
|
|
6037
|
+
args: Prisma.WorkspaceQuickDocUpdateManyArgs<ExtArgs>
|
|
6038
|
+
result: BatchPayload
|
|
6039
|
+
}
|
|
6040
|
+
updateManyAndReturn: {
|
|
6041
|
+
args: Prisma.WorkspaceQuickDocUpdateManyAndReturnArgs<ExtArgs>
|
|
6042
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$WorkspaceQuickDocPayload>[]
|
|
6043
|
+
}
|
|
6044
|
+
upsert: {
|
|
6045
|
+
args: Prisma.WorkspaceQuickDocUpsertArgs<ExtArgs>
|
|
6046
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$WorkspaceQuickDocPayload>
|
|
6047
|
+
}
|
|
6048
|
+
aggregate: {
|
|
6049
|
+
args: Prisma.WorkspaceQuickDocAggregateArgs<ExtArgs>
|
|
6050
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateWorkspaceQuickDoc>
|
|
6051
|
+
}
|
|
6052
|
+
groupBy: {
|
|
6053
|
+
args: Prisma.WorkspaceQuickDocGroupByArgs<ExtArgs>
|
|
6054
|
+
result: runtime.Types.Utils.Optional<Prisma.WorkspaceQuickDocGroupByOutputType>[]
|
|
6055
|
+
}
|
|
6056
|
+
count: {
|
|
6057
|
+
args: Prisma.WorkspaceQuickDocCountArgs<ExtArgs>
|
|
6058
|
+
result: runtime.Types.Utils.Optional<Prisma.WorkspaceQuickDocCountAggregateOutputType> | number
|
|
6059
|
+
}
|
|
6060
|
+
}
|
|
6061
|
+
}
|
|
5912
6062
|
StoryLink: {
|
|
5913
6063
|
payload: Prisma.$StoryLinkPayload<ExtArgs>
|
|
5914
6064
|
fields: Prisma.StoryLinkFieldRefs
|
|
@@ -9373,6 +9523,35 @@ export const ProjectKnowledgeBaseScalarFieldEnum = {
|
|
|
9373
9523
|
export type ProjectKnowledgeBaseScalarFieldEnum = (typeof ProjectKnowledgeBaseScalarFieldEnum)[keyof typeof ProjectKnowledgeBaseScalarFieldEnum]
|
|
9374
9524
|
|
|
9375
9525
|
|
|
9526
|
+
export const WorkspaceKnowledgeBaseScalarFieldEnum = {
|
|
9527
|
+
id: 'id',
|
|
9528
|
+
workspaceId: 'workspaceId',
|
|
9529
|
+
kbId: 'kbId',
|
|
9530
|
+
createdAt: 'createdAt'
|
|
9531
|
+
} as const
|
|
9532
|
+
|
|
9533
|
+
export type WorkspaceKnowledgeBaseScalarFieldEnum = (typeof WorkspaceKnowledgeBaseScalarFieldEnum)[keyof typeof WorkspaceKnowledgeBaseScalarFieldEnum]
|
|
9534
|
+
|
|
9535
|
+
|
|
9536
|
+
export const WorkspaceQuickDocScalarFieldEnum = {
|
|
9537
|
+
id: 'id',
|
|
9538
|
+
workspaceId: 'workspaceId',
|
|
9539
|
+
docId: 'docId',
|
|
9540
|
+
externalGroup: 'externalGroup',
|
|
9541
|
+
externalId: 'externalId',
|
|
9542
|
+
displayTitle: 'displayTitle',
|
|
9543
|
+
columnIndex: 'columnIndex',
|
|
9544
|
+
sortOrder: 'sortOrder',
|
|
9545
|
+
label: 'label',
|
|
9546
|
+
icon: 'icon',
|
|
9547
|
+
createdBy: 'createdBy',
|
|
9548
|
+
createdAt: 'createdAt',
|
|
9549
|
+
updatedAt: 'updatedAt'
|
|
9550
|
+
} as const
|
|
9551
|
+
|
|
9552
|
+
export type WorkspaceQuickDocScalarFieldEnum = (typeof WorkspaceQuickDocScalarFieldEnum)[keyof typeof WorkspaceQuickDocScalarFieldEnum]
|
|
9553
|
+
|
|
9554
|
+
|
|
9376
9555
|
export const StoryLinkScalarFieldEnum = {
|
|
9377
9556
|
id: 'id',
|
|
9378
9557
|
storyId: 'storyId',
|
|
@@ -10336,6 +10515,8 @@ export type GlobalOmitConfig = {
|
|
|
10336
10515
|
commentReaction?: Prisma.CommentReactionOmit
|
|
10337
10516
|
storyDependency?: Prisma.StoryDependencyOmit
|
|
10338
10517
|
projectKnowledgeBase?: Prisma.ProjectKnowledgeBaseOmit
|
|
10518
|
+
workspaceKnowledgeBase?: Prisma.WorkspaceKnowledgeBaseOmit
|
|
10519
|
+
workspaceQuickDoc?: Prisma.WorkspaceQuickDocOmit
|
|
10339
10520
|
storyLink?: Prisma.StoryLinkOmit
|
|
10340
10521
|
storyAttachment?: Prisma.StoryAttachmentOmit
|
|
10341
10522
|
storyPrdLink?: Prisma.StoryPrdLinkOmit
|
|
@@ -124,6 +124,8 @@ export const ModelName = {
|
|
|
124
124
|
CommentReaction: 'CommentReaction',
|
|
125
125
|
StoryDependency: 'StoryDependency',
|
|
126
126
|
ProjectKnowledgeBase: 'ProjectKnowledgeBase',
|
|
127
|
+
WorkspaceKnowledgeBase: 'WorkspaceKnowledgeBase',
|
|
128
|
+
WorkspaceQuickDoc: 'WorkspaceQuickDoc',
|
|
127
129
|
StoryLink: 'StoryLink',
|
|
128
130
|
StoryAttachment: 'StoryAttachment',
|
|
129
131
|
StoryPrdLink: 'StoryPrdLink',
|
|
@@ -1304,6 +1306,35 @@ export const ProjectKnowledgeBaseScalarFieldEnum = {
|
|
|
1304
1306
|
export type ProjectKnowledgeBaseScalarFieldEnum = (typeof ProjectKnowledgeBaseScalarFieldEnum)[keyof typeof ProjectKnowledgeBaseScalarFieldEnum]
|
|
1305
1307
|
|
|
1306
1308
|
|
|
1309
|
+
export const WorkspaceKnowledgeBaseScalarFieldEnum = {
|
|
1310
|
+
id: 'id',
|
|
1311
|
+
workspaceId: 'workspaceId',
|
|
1312
|
+
kbId: 'kbId',
|
|
1313
|
+
createdAt: 'createdAt'
|
|
1314
|
+
} as const
|
|
1315
|
+
|
|
1316
|
+
export type WorkspaceKnowledgeBaseScalarFieldEnum = (typeof WorkspaceKnowledgeBaseScalarFieldEnum)[keyof typeof WorkspaceKnowledgeBaseScalarFieldEnum]
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
export const WorkspaceQuickDocScalarFieldEnum = {
|
|
1320
|
+
id: 'id',
|
|
1321
|
+
workspaceId: 'workspaceId',
|
|
1322
|
+
docId: 'docId',
|
|
1323
|
+
externalGroup: 'externalGroup',
|
|
1324
|
+
externalId: 'externalId',
|
|
1325
|
+
displayTitle: 'displayTitle',
|
|
1326
|
+
columnIndex: 'columnIndex',
|
|
1327
|
+
sortOrder: 'sortOrder',
|
|
1328
|
+
label: 'label',
|
|
1329
|
+
icon: 'icon',
|
|
1330
|
+
createdBy: 'createdBy',
|
|
1331
|
+
createdAt: 'createdAt',
|
|
1332
|
+
updatedAt: 'updatedAt'
|
|
1333
|
+
} as const
|
|
1334
|
+
|
|
1335
|
+
export type WorkspaceQuickDocScalarFieldEnum = (typeof WorkspaceQuickDocScalarFieldEnum)[keyof typeof WorkspaceQuickDocScalarFieldEnum]
|
|
1336
|
+
|
|
1337
|
+
|
|
1307
1338
|
export const StoryLinkScalarFieldEnum = {
|
|
1308
1339
|
id: 'id',
|
|
1309
1340
|
storyId: 'storyId',
|
|
@@ -238,6 +238,7 @@ export type KnowledgeBaseWhereInput = {
|
|
|
238
238
|
workspace?: Prisma.XOR<Prisma.WorkspaceNullableScalarRelationFilter, Prisma.WorkspaceWhereInput> | null
|
|
239
239
|
documents?: Prisma.KnowledgeDocumentListRelationFilter
|
|
240
240
|
projectLinks?: Prisma.ProjectKnowledgeBaseListRelationFilter
|
|
241
|
+
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseListRelationFilter
|
|
241
242
|
}
|
|
242
243
|
|
|
243
244
|
export type KnowledgeBaseOrderByWithRelationInput = {
|
|
@@ -257,6 +258,7 @@ export type KnowledgeBaseOrderByWithRelationInput = {
|
|
|
257
258
|
workspace?: Prisma.WorkspaceOrderByWithRelationInput
|
|
258
259
|
documents?: Prisma.KnowledgeDocumentOrderByRelationAggregateInput
|
|
259
260
|
projectLinks?: Prisma.ProjectKnowledgeBaseOrderByRelationAggregateInput
|
|
261
|
+
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseOrderByRelationAggregateInput
|
|
260
262
|
}
|
|
261
263
|
|
|
262
264
|
export type KnowledgeBaseWhereUniqueInput = Prisma.AtLeast<{
|
|
@@ -279,6 +281,7 @@ export type KnowledgeBaseWhereUniqueInput = Prisma.AtLeast<{
|
|
|
279
281
|
workspace?: Prisma.XOR<Prisma.WorkspaceNullableScalarRelationFilter, Prisma.WorkspaceWhereInput> | null
|
|
280
282
|
documents?: Prisma.KnowledgeDocumentListRelationFilter
|
|
281
283
|
projectLinks?: Prisma.ProjectKnowledgeBaseListRelationFilter
|
|
284
|
+
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseListRelationFilter
|
|
282
285
|
}, "id">
|
|
283
286
|
|
|
284
287
|
export type KnowledgeBaseOrderByWithAggregationInput = {
|
|
@@ -332,6 +335,7 @@ export type KnowledgeBaseCreateInput = {
|
|
|
332
335
|
workspace?: Prisma.WorkspaceCreateNestedOneWithoutKnowledgeBasesInput
|
|
333
336
|
documents?: Prisma.KnowledgeDocumentCreateNestedManyWithoutKbInput
|
|
334
337
|
projectLinks?: Prisma.ProjectKnowledgeBaseCreateNestedManyWithoutKbInput
|
|
338
|
+
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutKbInput
|
|
335
339
|
}
|
|
336
340
|
|
|
337
341
|
export type KnowledgeBaseUncheckedCreateInput = {
|
|
@@ -349,6 +353,7 @@ export type KnowledgeBaseUncheckedCreateInput = {
|
|
|
349
353
|
updatedAt?: Date | string
|
|
350
354
|
documents?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutKbInput
|
|
351
355
|
projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
|
|
356
|
+
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
|
|
352
357
|
}
|
|
353
358
|
|
|
354
359
|
export type KnowledgeBaseUpdateInput = {
|
|
@@ -366,6 +371,7 @@ export type KnowledgeBaseUpdateInput = {
|
|
|
366
371
|
workspace?: Prisma.WorkspaceUpdateOneWithoutKnowledgeBasesNestedInput
|
|
367
372
|
documents?: Prisma.KnowledgeDocumentUpdateManyWithoutKbNestedInput
|
|
368
373
|
projectLinks?: Prisma.ProjectKnowledgeBaseUpdateManyWithoutKbNestedInput
|
|
374
|
+
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutKbNestedInput
|
|
369
375
|
}
|
|
370
376
|
|
|
371
377
|
export type KnowledgeBaseUncheckedUpdateInput = {
|
|
@@ -383,6 +389,7 @@ export type KnowledgeBaseUncheckedUpdateInput = {
|
|
|
383
389
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
384
390
|
documents?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutKbNestedInput
|
|
385
391
|
projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
|
|
392
|
+
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
|
|
386
393
|
}
|
|
387
394
|
|
|
388
395
|
export type KnowledgeBaseCreateManyInput = {
|
|
@@ -598,6 +605,20 @@ export type KnowledgeBaseUpdateOneRequiredWithoutProjectLinksNestedInput = {
|
|
|
598
605
|
update?: Prisma.XOR<Prisma.XOR<Prisma.KnowledgeBaseUpdateToOneWithWhereWithoutProjectLinksInput, Prisma.KnowledgeBaseUpdateWithoutProjectLinksInput>, Prisma.KnowledgeBaseUncheckedUpdateWithoutProjectLinksInput>
|
|
599
606
|
}
|
|
600
607
|
|
|
608
|
+
export type KnowledgeBaseCreateNestedOneWithoutWorkspaceLinksInput = {
|
|
609
|
+
create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutWorkspaceLinksInput, Prisma.KnowledgeBaseUncheckedCreateWithoutWorkspaceLinksInput>
|
|
610
|
+
connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutWorkspaceLinksInput
|
|
611
|
+
connect?: Prisma.KnowledgeBaseWhereUniqueInput
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
export type KnowledgeBaseUpdateOneRequiredWithoutWorkspaceLinksNestedInput = {
|
|
615
|
+
create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutWorkspaceLinksInput, Prisma.KnowledgeBaseUncheckedCreateWithoutWorkspaceLinksInput>
|
|
616
|
+
connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutWorkspaceLinksInput
|
|
617
|
+
upsert?: Prisma.KnowledgeBaseUpsertWithoutWorkspaceLinksInput
|
|
618
|
+
connect?: Prisma.KnowledgeBaseWhereUniqueInput
|
|
619
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.KnowledgeBaseUpdateToOneWithWhereWithoutWorkspaceLinksInput, Prisma.KnowledgeBaseUpdateWithoutWorkspaceLinksInput>, Prisma.KnowledgeBaseUncheckedUpdateWithoutWorkspaceLinksInput>
|
|
620
|
+
}
|
|
621
|
+
|
|
601
622
|
export type KnowledgeBaseCreateWithoutUserInput = {
|
|
602
623
|
id?: string
|
|
603
624
|
name: string
|
|
@@ -612,6 +633,7 @@ export type KnowledgeBaseCreateWithoutUserInput = {
|
|
|
612
633
|
workspace?: Prisma.WorkspaceCreateNestedOneWithoutKnowledgeBasesInput
|
|
613
634
|
documents?: Prisma.KnowledgeDocumentCreateNestedManyWithoutKbInput
|
|
614
635
|
projectLinks?: Prisma.ProjectKnowledgeBaseCreateNestedManyWithoutKbInput
|
|
636
|
+
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutKbInput
|
|
615
637
|
}
|
|
616
638
|
|
|
617
639
|
export type KnowledgeBaseUncheckedCreateWithoutUserInput = {
|
|
@@ -628,6 +650,7 @@ export type KnowledgeBaseUncheckedCreateWithoutUserInput = {
|
|
|
628
650
|
updatedAt?: Date | string
|
|
629
651
|
documents?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutKbInput
|
|
630
652
|
projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
|
|
653
|
+
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
|
|
631
654
|
}
|
|
632
655
|
|
|
633
656
|
export type KnowledgeBaseCreateOrConnectWithoutUserInput = {
|
|
@@ -688,6 +711,7 @@ export type KnowledgeBaseCreateWithoutWorkspaceInput = {
|
|
|
688
711
|
user: Prisma.UserCreateNestedOneWithoutKnowledgeBasesInput
|
|
689
712
|
documents?: Prisma.KnowledgeDocumentCreateNestedManyWithoutKbInput
|
|
690
713
|
projectLinks?: Prisma.ProjectKnowledgeBaseCreateNestedManyWithoutKbInput
|
|
714
|
+
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutKbInput
|
|
691
715
|
}
|
|
692
716
|
|
|
693
717
|
export type KnowledgeBaseUncheckedCreateWithoutWorkspaceInput = {
|
|
@@ -704,6 +728,7 @@ export type KnowledgeBaseUncheckedCreateWithoutWorkspaceInput = {
|
|
|
704
728
|
updatedAt?: Date | string
|
|
705
729
|
documents?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutKbInput
|
|
706
730
|
projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
|
|
731
|
+
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
|
|
707
732
|
}
|
|
708
733
|
|
|
709
734
|
export type KnowledgeBaseCreateOrConnectWithoutWorkspaceInput = {
|
|
@@ -746,6 +771,7 @@ export type KnowledgeBaseCreateWithoutDocumentsInput = {
|
|
|
746
771
|
user: Prisma.UserCreateNestedOneWithoutKnowledgeBasesInput
|
|
747
772
|
workspace?: Prisma.WorkspaceCreateNestedOneWithoutKnowledgeBasesInput
|
|
748
773
|
projectLinks?: Prisma.ProjectKnowledgeBaseCreateNestedManyWithoutKbInput
|
|
774
|
+
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutKbInput
|
|
749
775
|
}
|
|
750
776
|
|
|
751
777
|
export type KnowledgeBaseUncheckedCreateWithoutDocumentsInput = {
|
|
@@ -762,6 +788,7 @@ export type KnowledgeBaseUncheckedCreateWithoutDocumentsInput = {
|
|
|
762
788
|
createdAt?: Date | string
|
|
763
789
|
updatedAt?: Date | string
|
|
764
790
|
projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
|
|
791
|
+
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
|
|
765
792
|
}
|
|
766
793
|
|
|
767
794
|
export type KnowledgeBaseCreateOrConnectWithoutDocumentsInput = {
|
|
@@ -794,6 +821,7 @@ export type KnowledgeBaseUpdateWithoutDocumentsInput = {
|
|
|
794
821
|
user?: Prisma.UserUpdateOneRequiredWithoutKnowledgeBasesNestedInput
|
|
795
822
|
workspace?: Prisma.WorkspaceUpdateOneWithoutKnowledgeBasesNestedInput
|
|
796
823
|
projectLinks?: Prisma.ProjectKnowledgeBaseUpdateManyWithoutKbNestedInput
|
|
824
|
+
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutKbNestedInput
|
|
797
825
|
}
|
|
798
826
|
|
|
799
827
|
export type KnowledgeBaseUncheckedUpdateWithoutDocumentsInput = {
|
|
@@ -810,6 +838,7 @@ export type KnowledgeBaseUncheckedUpdateWithoutDocumentsInput = {
|
|
|
810
838
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
811
839
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
812
840
|
projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
|
|
841
|
+
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
|
|
813
842
|
}
|
|
814
843
|
|
|
815
844
|
export type KnowledgeBaseCreateWithoutProjectLinksInput = {
|
|
@@ -826,6 +855,7 @@ export type KnowledgeBaseCreateWithoutProjectLinksInput = {
|
|
|
826
855
|
user: Prisma.UserCreateNestedOneWithoutKnowledgeBasesInput
|
|
827
856
|
workspace?: Prisma.WorkspaceCreateNestedOneWithoutKnowledgeBasesInput
|
|
828
857
|
documents?: Prisma.KnowledgeDocumentCreateNestedManyWithoutKbInput
|
|
858
|
+
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutKbInput
|
|
829
859
|
}
|
|
830
860
|
|
|
831
861
|
export type KnowledgeBaseUncheckedCreateWithoutProjectLinksInput = {
|
|
@@ -842,6 +872,7 @@ export type KnowledgeBaseUncheckedCreateWithoutProjectLinksInput = {
|
|
|
842
872
|
createdAt?: Date | string
|
|
843
873
|
updatedAt?: Date | string
|
|
844
874
|
documents?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutKbInput
|
|
875
|
+
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
|
|
845
876
|
}
|
|
846
877
|
|
|
847
878
|
export type KnowledgeBaseCreateOrConnectWithoutProjectLinksInput = {
|
|
@@ -874,6 +905,7 @@ export type KnowledgeBaseUpdateWithoutProjectLinksInput = {
|
|
|
874
905
|
user?: Prisma.UserUpdateOneRequiredWithoutKnowledgeBasesNestedInput
|
|
875
906
|
workspace?: Prisma.WorkspaceUpdateOneWithoutKnowledgeBasesNestedInput
|
|
876
907
|
documents?: Prisma.KnowledgeDocumentUpdateManyWithoutKbNestedInput
|
|
908
|
+
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutKbNestedInput
|
|
877
909
|
}
|
|
878
910
|
|
|
879
911
|
export type KnowledgeBaseUncheckedUpdateWithoutProjectLinksInput = {
|
|
@@ -890,6 +922,91 @@ export type KnowledgeBaseUncheckedUpdateWithoutProjectLinksInput = {
|
|
|
890
922
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
891
923
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
892
924
|
documents?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutKbNestedInput
|
|
925
|
+
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
export type KnowledgeBaseCreateWithoutWorkspaceLinksInput = {
|
|
929
|
+
id?: string
|
|
930
|
+
name: string
|
|
931
|
+
description?: string | null
|
|
932
|
+
icon?: string
|
|
933
|
+
tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
934
|
+
visibility?: string
|
|
935
|
+
pinnedToSidebar?: boolean
|
|
936
|
+
isDeleted?: boolean
|
|
937
|
+
createdAt?: Date | string
|
|
938
|
+
updatedAt?: Date | string
|
|
939
|
+
user: Prisma.UserCreateNestedOneWithoutKnowledgeBasesInput
|
|
940
|
+
workspace?: Prisma.WorkspaceCreateNestedOneWithoutKnowledgeBasesInput
|
|
941
|
+
documents?: Prisma.KnowledgeDocumentCreateNestedManyWithoutKbInput
|
|
942
|
+
projectLinks?: Prisma.ProjectKnowledgeBaseCreateNestedManyWithoutKbInput
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
export type KnowledgeBaseUncheckedCreateWithoutWorkspaceLinksInput = {
|
|
946
|
+
id?: string
|
|
947
|
+
name: string
|
|
948
|
+
description?: string | null
|
|
949
|
+
icon?: string
|
|
950
|
+
tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
951
|
+
visibility?: string
|
|
952
|
+
userId: string
|
|
953
|
+
workspaceId?: string | null
|
|
954
|
+
pinnedToSidebar?: boolean
|
|
955
|
+
isDeleted?: boolean
|
|
956
|
+
createdAt?: Date | string
|
|
957
|
+
updatedAt?: Date | string
|
|
958
|
+
documents?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutKbInput
|
|
959
|
+
projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
export type KnowledgeBaseCreateOrConnectWithoutWorkspaceLinksInput = {
|
|
963
|
+
where: Prisma.KnowledgeBaseWhereUniqueInput
|
|
964
|
+
create: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutWorkspaceLinksInput, Prisma.KnowledgeBaseUncheckedCreateWithoutWorkspaceLinksInput>
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
export type KnowledgeBaseUpsertWithoutWorkspaceLinksInput = {
|
|
968
|
+
update: Prisma.XOR<Prisma.KnowledgeBaseUpdateWithoutWorkspaceLinksInput, Prisma.KnowledgeBaseUncheckedUpdateWithoutWorkspaceLinksInput>
|
|
969
|
+
create: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutWorkspaceLinksInput, Prisma.KnowledgeBaseUncheckedCreateWithoutWorkspaceLinksInput>
|
|
970
|
+
where?: Prisma.KnowledgeBaseWhereInput
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
export type KnowledgeBaseUpdateToOneWithWhereWithoutWorkspaceLinksInput = {
|
|
974
|
+
where?: Prisma.KnowledgeBaseWhereInput
|
|
975
|
+
data: Prisma.XOR<Prisma.KnowledgeBaseUpdateWithoutWorkspaceLinksInput, Prisma.KnowledgeBaseUncheckedUpdateWithoutWorkspaceLinksInput>
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
export type KnowledgeBaseUpdateWithoutWorkspaceLinksInput = {
|
|
979
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
980
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
981
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
982
|
+
icon?: Prisma.StringFieldUpdateOperationsInput | string
|
|
983
|
+
tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
984
|
+
visibility?: Prisma.StringFieldUpdateOperationsInput | string
|
|
985
|
+
pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
986
|
+
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
987
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
988
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
989
|
+
user?: Prisma.UserUpdateOneRequiredWithoutKnowledgeBasesNestedInput
|
|
990
|
+
workspace?: Prisma.WorkspaceUpdateOneWithoutKnowledgeBasesNestedInput
|
|
991
|
+
documents?: Prisma.KnowledgeDocumentUpdateManyWithoutKbNestedInput
|
|
992
|
+
projectLinks?: Prisma.ProjectKnowledgeBaseUpdateManyWithoutKbNestedInput
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
export type KnowledgeBaseUncheckedUpdateWithoutWorkspaceLinksInput = {
|
|
996
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
997
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
998
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
999
|
+
icon?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1000
|
+
tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
1001
|
+
visibility?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1002
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1003
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1004
|
+
pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1005
|
+
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1006
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1007
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1008
|
+
documents?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutKbNestedInput
|
|
1009
|
+
projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
|
|
893
1010
|
}
|
|
894
1011
|
|
|
895
1012
|
export type KnowledgeBaseCreateManyUserInput = {
|
|
@@ -920,6 +1037,7 @@ export type KnowledgeBaseUpdateWithoutUserInput = {
|
|
|
920
1037
|
workspace?: Prisma.WorkspaceUpdateOneWithoutKnowledgeBasesNestedInput
|
|
921
1038
|
documents?: Prisma.KnowledgeDocumentUpdateManyWithoutKbNestedInput
|
|
922
1039
|
projectLinks?: Prisma.ProjectKnowledgeBaseUpdateManyWithoutKbNestedInput
|
|
1040
|
+
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutKbNestedInput
|
|
923
1041
|
}
|
|
924
1042
|
|
|
925
1043
|
export type KnowledgeBaseUncheckedUpdateWithoutUserInput = {
|
|
@@ -936,6 +1054,7 @@ export type KnowledgeBaseUncheckedUpdateWithoutUserInput = {
|
|
|
936
1054
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
937
1055
|
documents?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutKbNestedInput
|
|
938
1056
|
projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
|
|
1057
|
+
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
|
|
939
1058
|
}
|
|
940
1059
|
|
|
941
1060
|
export type KnowledgeBaseUncheckedUpdateManyWithoutUserInput = {
|
|
@@ -980,6 +1099,7 @@ export type KnowledgeBaseUpdateWithoutWorkspaceInput = {
|
|
|
980
1099
|
user?: Prisma.UserUpdateOneRequiredWithoutKnowledgeBasesNestedInput
|
|
981
1100
|
documents?: Prisma.KnowledgeDocumentUpdateManyWithoutKbNestedInput
|
|
982
1101
|
projectLinks?: Prisma.ProjectKnowledgeBaseUpdateManyWithoutKbNestedInput
|
|
1102
|
+
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutKbNestedInput
|
|
983
1103
|
}
|
|
984
1104
|
|
|
985
1105
|
export type KnowledgeBaseUncheckedUpdateWithoutWorkspaceInput = {
|
|
@@ -996,6 +1116,7 @@ export type KnowledgeBaseUncheckedUpdateWithoutWorkspaceInput = {
|
|
|
996
1116
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
997
1117
|
documents?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutKbNestedInput
|
|
998
1118
|
projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
|
|
1119
|
+
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
|
|
999
1120
|
}
|
|
1000
1121
|
|
|
1001
1122
|
export type KnowledgeBaseUncheckedUpdateManyWithoutWorkspaceInput = {
|
|
@@ -1020,11 +1141,13 @@ export type KnowledgeBaseUncheckedUpdateManyWithoutWorkspaceInput = {
|
|
|
1020
1141
|
export type KnowledgeBaseCountOutputType = {
|
|
1021
1142
|
documents: number
|
|
1022
1143
|
projectLinks: number
|
|
1144
|
+
workspaceLinks: number
|
|
1023
1145
|
}
|
|
1024
1146
|
|
|
1025
1147
|
export type KnowledgeBaseCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1026
1148
|
documents?: boolean | KnowledgeBaseCountOutputTypeCountDocumentsArgs
|
|
1027
1149
|
projectLinks?: boolean | KnowledgeBaseCountOutputTypeCountProjectLinksArgs
|
|
1150
|
+
workspaceLinks?: boolean | KnowledgeBaseCountOutputTypeCountWorkspaceLinksArgs
|
|
1028
1151
|
}
|
|
1029
1152
|
|
|
1030
1153
|
/**
|
|
@@ -1051,6 +1174,13 @@ export type KnowledgeBaseCountOutputTypeCountProjectLinksArgs<ExtArgs extends ru
|
|
|
1051
1174
|
where?: Prisma.ProjectKnowledgeBaseWhereInput
|
|
1052
1175
|
}
|
|
1053
1176
|
|
|
1177
|
+
/**
|
|
1178
|
+
* KnowledgeBaseCountOutputType without action
|
|
1179
|
+
*/
|
|
1180
|
+
export type KnowledgeBaseCountOutputTypeCountWorkspaceLinksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1181
|
+
where?: Prisma.WorkspaceKnowledgeBaseWhereInput
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1054
1184
|
|
|
1055
1185
|
export type KnowledgeBaseSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
1056
1186
|
id?: boolean
|
|
@@ -1069,6 +1199,7 @@ export type KnowledgeBaseSelect<ExtArgs extends runtime.Types.Extensions.Interna
|
|
|
1069
1199
|
workspace?: boolean | Prisma.KnowledgeBase$workspaceArgs<ExtArgs>
|
|
1070
1200
|
documents?: boolean | Prisma.KnowledgeBase$documentsArgs<ExtArgs>
|
|
1071
1201
|
projectLinks?: boolean | Prisma.KnowledgeBase$projectLinksArgs<ExtArgs>
|
|
1202
|
+
workspaceLinks?: boolean | Prisma.KnowledgeBase$workspaceLinksArgs<ExtArgs>
|
|
1072
1203
|
_count?: boolean | Prisma.KnowledgeBaseCountOutputTypeDefaultArgs<ExtArgs>
|
|
1073
1204
|
}, ExtArgs["result"]["knowledgeBase"]>
|
|
1074
1205
|
|
|
@@ -1127,6 +1258,7 @@ export type KnowledgeBaseInclude<ExtArgs extends runtime.Types.Extensions.Intern
|
|
|
1127
1258
|
workspace?: boolean | Prisma.KnowledgeBase$workspaceArgs<ExtArgs>
|
|
1128
1259
|
documents?: boolean | Prisma.KnowledgeBase$documentsArgs<ExtArgs>
|
|
1129
1260
|
projectLinks?: boolean | Prisma.KnowledgeBase$projectLinksArgs<ExtArgs>
|
|
1261
|
+
workspaceLinks?: boolean | Prisma.KnowledgeBase$workspaceLinksArgs<ExtArgs>
|
|
1130
1262
|
_count?: boolean | Prisma.KnowledgeBaseCountOutputTypeDefaultArgs<ExtArgs>
|
|
1131
1263
|
}
|
|
1132
1264
|
export type KnowledgeBaseIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
@@ -1145,6 +1277,7 @@ export type $KnowledgeBasePayload<ExtArgs extends runtime.Types.Extensions.Inter
|
|
|
1145
1277
|
workspace: Prisma.$WorkspacePayload<ExtArgs> | null
|
|
1146
1278
|
documents: Prisma.$KnowledgeDocumentPayload<ExtArgs>[]
|
|
1147
1279
|
projectLinks: Prisma.$ProjectKnowledgeBasePayload<ExtArgs>[]
|
|
1280
|
+
workspaceLinks: Prisma.$WorkspaceKnowledgeBasePayload<ExtArgs>[]
|
|
1148
1281
|
}
|
|
1149
1282
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
1150
1283
|
id: string
|
|
@@ -1557,6 +1690,7 @@ export interface Prisma__KnowledgeBaseClient<T, Null = never, ExtArgs extends ru
|
|
|
1557
1690
|
workspace<T extends Prisma.KnowledgeBase$workspaceArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBase$workspaceArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
1558
1691
|
documents<T extends Prisma.KnowledgeBase$documentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBase$documentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeDocumentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
1559
1692
|
projectLinks<T extends Prisma.KnowledgeBase$projectLinksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBase$projectLinksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectKnowledgeBasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
1693
|
+
workspaceLinks<T extends Prisma.KnowledgeBase$workspaceLinksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBase$workspaceLinksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkspaceKnowledgeBasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
1560
1694
|
/**
|
|
1561
1695
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1562
1696
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
@@ -2065,6 +2199,30 @@ export type KnowledgeBase$projectLinksArgs<ExtArgs extends runtime.Types.Extensi
|
|
|
2065
2199
|
distinct?: Prisma.ProjectKnowledgeBaseScalarFieldEnum | Prisma.ProjectKnowledgeBaseScalarFieldEnum[]
|
|
2066
2200
|
}
|
|
2067
2201
|
|
|
2202
|
+
/**
|
|
2203
|
+
* KnowledgeBase.workspaceLinks
|
|
2204
|
+
*/
|
|
2205
|
+
export type KnowledgeBase$workspaceLinksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2206
|
+
/**
|
|
2207
|
+
* Select specific fields to fetch from the WorkspaceKnowledgeBase
|
|
2208
|
+
*/
|
|
2209
|
+
select?: Prisma.WorkspaceKnowledgeBaseSelect<ExtArgs> | null
|
|
2210
|
+
/**
|
|
2211
|
+
* Omit specific fields from the WorkspaceKnowledgeBase
|
|
2212
|
+
*/
|
|
2213
|
+
omit?: Prisma.WorkspaceKnowledgeBaseOmit<ExtArgs> | null
|
|
2214
|
+
/**
|
|
2215
|
+
* Choose, which related nodes to fetch as well
|
|
2216
|
+
*/
|
|
2217
|
+
include?: Prisma.WorkspaceKnowledgeBaseInclude<ExtArgs> | null
|
|
2218
|
+
where?: Prisma.WorkspaceKnowledgeBaseWhereInput
|
|
2219
|
+
orderBy?: Prisma.WorkspaceKnowledgeBaseOrderByWithRelationInput | Prisma.WorkspaceKnowledgeBaseOrderByWithRelationInput[]
|
|
2220
|
+
cursor?: Prisma.WorkspaceKnowledgeBaseWhereUniqueInput
|
|
2221
|
+
take?: number
|
|
2222
|
+
skip?: number
|
|
2223
|
+
distinct?: Prisma.WorkspaceKnowledgeBaseScalarFieldEnum | Prisma.WorkspaceKnowledgeBaseScalarFieldEnum[]
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2068
2226
|
/**
|
|
2069
2227
|
* KnowledgeBase without action
|
|
2070
2228
|
*/
|