feat: add pagination support for workspace config (#11859)

fix AI-78
This commit is contained in:
darkskygit
2025-04-23 11:25:41 +00:00
parent 5397fba897
commit ddb739fa13
13 changed files with 460 additions and 113 deletions

View File

@@ -273,8 +273,8 @@ type CopilotSessionType {
}
type CopilotWorkspaceConfig {
files: [CopilotWorkspaceFile!]!
ignoredDocs: [String!]!
files(pagination: PaginationInput!): PaginatedCopilotWorkspaceFileType!
ignoredDocs(pagination: PaginationInput!): PaginatedIgnoredDocsType!
workspaceId: String!
}
@@ -287,6 +287,21 @@ type CopilotWorkspaceFile {
workspaceId: String!
}
type CopilotWorkspaceFileTypeEdge {
cursor: String!
node: CopilotWorkspaceFile!
}
type CopilotWorkspaceIgnoredDoc {
createdAt: DateTime!
docId: String!
}
type CopilotWorkspaceIgnoredDocTypeEdge {
cursor: String!
node: CopilotWorkspaceIgnoredDoc!
}
input CreateChatMessageInput {
attachments: [String!]
blobs: [Upload!]
@@ -1149,12 +1164,24 @@ type PageInfo {
startCursor: String
}
type PaginatedCopilotWorkspaceFileType {
edges: [CopilotWorkspaceFileTypeEdge!]!
pageInfo: PageInfo!
totalCount: Int!
}
type PaginatedGrantedDocUserType {
edges: [GrantedDocUserTypeEdge!]!
pageInfo: PageInfo!
totalCount: Int!
}
type PaginatedIgnoredDocsType {
edges: [CopilotWorkspaceIgnoredDocTypeEdge!]!
pageInfo: PageInfo!
totalCount: Int!
}
type PaginatedNotificationObjectType {
edges: [NotificationObjectTypeEdge!]!
pageInfo: PageInfo!