enhances(apis): add apis for retrieving tags by name

This commit is contained in:
charlie
2025-12-19 15:54:01 +08:00
parent 513268edb3
commit 2d2a44e6b6
3 changed files with 10 additions and 0 deletions

View File

@@ -771,6 +771,7 @@ export interface IEditorProxy extends Record<string, any> {
getTagObjects: (nameOrIdent: string) => Promise<BlockEntity[] | null>
createTag: (tagName: string, opts?: Partial<{ uuid: string }>) => Promise<PageEntity | null>
getTag: (nameOrIdent: string | EntityID) => Promise<PageEntity | null>
getTagsByName: (tagName: string) => Promise<Array<PageEntity> | null>
addTagProperty: (tagId: BlockIdentity, propertyIdOrName: BlockIdentity) => Promise<void>
removeTagProperty: (tagId: BlockIdentity, propertyIdOrName: BlockIdentity) => Promise<void>
addTagExtends: (tagId: BlockIdentity, parentTagIdOrName: BlockIdentity) => Promise<void>