mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
feat(server): add doc meta for ignored docs (#12021)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Ignored documents in workspace embedding now display additional metadata, including document title, creation and update timestamps, and the names and avatars of users who created or updated the document. - **Enhancements** - The list of ignored documents provides richer information for easier identification and management within the workspace. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -2,7 +2,7 @@ import { Field, ObjectType } from '@nestjs/graphql';
|
||||
import { SafeIntResolver } from 'graphql-scalars';
|
||||
|
||||
import { Paginated } from '../../../base';
|
||||
import { CopilotWorkspaceFile } from '../../../models';
|
||||
import { CopilotWorkspaceFile, IgnoredDoc } from '../../../models';
|
||||
|
||||
declare global {
|
||||
interface Events {
|
||||
@@ -16,12 +16,30 @@ declare global {
|
||||
}
|
||||
|
||||
@ObjectType('CopilotWorkspaceIgnoredDoc')
|
||||
export class CopilotWorkspaceIgnoredDocType {
|
||||
export class CopilotWorkspaceIgnoredDocType implements IgnoredDoc {
|
||||
@Field(() => String)
|
||||
docId!: string;
|
||||
|
||||
@Field(() => Date)
|
||||
createdAt!: Date;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
docCreatedAt!: Date | undefined;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
docUpdatedAt!: Date | undefined;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
title!: string | undefined;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
createdBy!: string | undefined;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
createdByAvatar!: string | undefined;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
updatedBy!: string | undefined;
|
||||
}
|
||||
|
||||
@ObjectType()
|
||||
|
||||
Reference in New Issue
Block a user