mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-01 01:29:31 +08:00
chore(server): merge duplicate queries (#10857)
This commit is contained in:
@@ -2363,40 +2363,6 @@ export type AddContextFileMutation = {
|
||||
};
|
||||
};
|
||||
|
||||
export type ListContextFilesQueryVariables = Exact<{
|
||||
workspaceId: Scalars['String']['input'];
|
||||
sessionId: Scalars['String']['input'];
|
||||
contextId: Scalars['String']['input'];
|
||||
}>;
|
||||
|
||||
export type ListContextFilesQuery = {
|
||||
__typename?: 'Query';
|
||||
currentUser: {
|
||||
__typename?: 'UserType';
|
||||
copilot: {
|
||||
__typename?: 'Copilot';
|
||||
contexts: Array<{
|
||||
__typename?: 'CopilotContext';
|
||||
docs: Array<{
|
||||
__typename?: 'CopilotContextDoc';
|
||||
id: string;
|
||||
createdAt: number;
|
||||
}>;
|
||||
files: Array<{
|
||||
__typename?: 'CopilotContextFile';
|
||||
id: string;
|
||||
name: string;
|
||||
blobId: string;
|
||||
chunkSize: number;
|
||||
error: string | null;
|
||||
status: ContextEmbedStatus;
|
||||
createdAt: number;
|
||||
}>;
|
||||
}>;
|
||||
};
|
||||
} | null;
|
||||
};
|
||||
|
||||
export type MatchContextQueryVariables = Exact<{
|
||||
contextId: Scalars['String']['input'];
|
||||
content: Scalars['String']['input'];
|
||||
@@ -2432,13 +2398,13 @@ export type RemoveContextFileMutation = {
|
||||
removeContextFile: boolean;
|
||||
};
|
||||
|
||||
export type ListContextDocsAndFilesQueryVariables = Exact<{
|
||||
export type ListContextObjectQueryVariables = Exact<{
|
||||
workspaceId: Scalars['String']['input'];
|
||||
sessionId: Scalars['String']['input'];
|
||||
contextId: Scalars['String']['input'];
|
||||
}>;
|
||||
|
||||
export type ListContextDocsAndFilesQuery = {
|
||||
export type ListContextObjectQuery = {
|
||||
__typename?: 'Query';
|
||||
currentUser: {
|
||||
__typename?: 'UserType';
|
||||
@@ -4028,20 +3994,15 @@ export type Queries =
|
||||
variables: ListBlobsQueryVariables;
|
||||
response: ListBlobsQuery;
|
||||
}
|
||||
| {
|
||||
name: 'listContextFilesQuery';
|
||||
variables: ListContextFilesQueryVariables;
|
||||
response: ListContextFilesQuery;
|
||||
}
|
||||
| {
|
||||
name: 'matchContextQuery';
|
||||
variables: MatchContextQueryVariables;
|
||||
response: MatchContextQuery;
|
||||
}
|
||||
| {
|
||||
name: 'listContextDocsAndFilesQuery';
|
||||
variables: ListContextDocsAndFilesQueryVariables;
|
||||
response: ListContextDocsAndFilesQuery;
|
||||
name: 'listContextObjectQuery';
|
||||
variables: ListContextObjectQueryVariables;
|
||||
response: ListContextObjectQuery;
|
||||
}
|
||||
| {
|
||||
name: 'listContextQuery';
|
||||
|
||||
Reference in New Issue
Block a user