mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-26 10:55:27 +00:00
feat(collection): implement saved search results as collections
This commit is contained in:
Generated
+14
-4
File diff suppressed because one or more lines are too long
+90
-2
@@ -414,7 +414,8 @@ export const ModelName = {
|
||||
AgentSessionEntry: 'AgentSessionEntry',
|
||||
UserMetadata: 'UserMetadata',
|
||||
Model: 'Model',
|
||||
Provider: 'Provider'
|
||||
Provider: 'Provider',
|
||||
Collection: 'Collection'
|
||||
} as const
|
||||
|
||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
||||
@@ -430,7 +431,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
omit: GlobalOmitOptions
|
||||
}
|
||||
meta: {
|
||||
modelProps: "user" | "session" | "account" | "verification" | "authToken" | "team" | "sandbox" | "skill" | "teamMember" | "project" | "projectMember" | "shareLink" | "asset" | "storageKey" | "assetMetadataValue" | "assetComment" | "assetCommentAttachment" | "assetEmbedding" | "invite" | "metadataField" | "notification" | "systemSettings" | "task" | "workflowTask" | "agent" | "agentSkill" | "agentSession" | "agentSessionEntry" | "userMetadata" | "model" | "provider"
|
||||
modelProps: "user" | "session" | "account" | "verification" | "authToken" | "team" | "sandbox" | "skill" | "teamMember" | "project" | "projectMember" | "shareLink" | "asset" | "storageKey" | "assetMetadataValue" | "assetComment" | "assetCommentAttachment" | "assetEmbedding" | "invite" | "metadataField" | "notification" | "systemSettings" | "task" | "workflowTask" | "agent" | "agentSkill" | "agentSession" | "agentSessionEntry" | "userMetadata" | "model" | "provider" | "collection"
|
||||
txIsolationLevel: TransactionIsolationLevel
|
||||
}
|
||||
model: {
|
||||
@@ -2728,6 +2729,80 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
}
|
||||
}
|
||||
}
|
||||
Collection: {
|
||||
payload: Prisma.$CollectionPayload<ExtArgs>
|
||||
fields: Prisma.CollectionFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.CollectionFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$CollectionPayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.CollectionFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$CollectionPayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.CollectionFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$CollectionPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.CollectionFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$CollectionPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.CollectionFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$CollectionPayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.CollectionCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$CollectionPayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.CollectionCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
createManyAndReturn: {
|
||||
args: Prisma.CollectionCreateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$CollectionPayload>[]
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.CollectionDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$CollectionPayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.CollectionUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$CollectionPayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.CollectionDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.CollectionUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateManyAndReturn: {
|
||||
args: Prisma.CollectionUpdateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$CollectionPayload>[]
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.CollectionUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$CollectionPayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.CollectionAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateCollection>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.CollectionGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.CollectionGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.CollectionCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.CollectionCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} & {
|
||||
other: {
|
||||
@@ -3206,6 +3281,18 @@ export const ProviderScalarFieldEnum = {
|
||||
export type ProviderScalarFieldEnum = (typeof ProviderScalarFieldEnum)[keyof typeof ProviderScalarFieldEnum]
|
||||
|
||||
|
||||
export const CollectionScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
filter: 'filter',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
projectId: 'projectId'
|
||||
} as const
|
||||
|
||||
export type CollectionScalarFieldEnum = (typeof CollectionScalarFieldEnum)[keyof typeof CollectionScalarFieldEnum]
|
||||
|
||||
|
||||
export const SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
@@ -3672,6 +3759,7 @@ export type GlobalOmitConfig = {
|
||||
userMetadata?: Prisma.UserMetadataOmit
|
||||
model?: Prisma.ModelOmit
|
||||
provider?: Prisma.ProviderOmit
|
||||
collection?: Prisma.CollectionOmit
|
||||
}
|
||||
|
||||
/* Types for Logging */
|
||||
|
||||
+14
-1
@@ -81,7 +81,8 @@ export const ModelName = {
|
||||
AgentSessionEntry: 'AgentSessionEntry',
|
||||
UserMetadata: 'UserMetadata',
|
||||
Model: 'Model',
|
||||
Provider: 'Provider'
|
||||
Provider: 'Provider',
|
||||
Collection: 'Collection'
|
||||
} as const
|
||||
|
||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
||||
@@ -539,6 +540,18 @@ export const ProviderScalarFieldEnum = {
|
||||
export type ProviderScalarFieldEnum = (typeof ProviderScalarFieldEnum)[keyof typeof ProviderScalarFieldEnum]
|
||||
|
||||
|
||||
export const CollectionScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
filter: 'filter',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
projectId: 'projectId'
|
||||
} as const
|
||||
|
||||
export type CollectionScalarFieldEnum = (typeof CollectionScalarFieldEnum)[keyof typeof CollectionScalarFieldEnum]
|
||||
|
||||
|
||||
export const SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
|
||||
Reference in New Issue
Block a user