/* eslint-disable local-rules/no-direct-api-import */
import { DocumentBlueprintService } from '../../../../core/backend-api/index.js';
import { UmbManagementApiTreeDataRequestManager } from '../../../../management-api/index.js';
export class UmbManagementApiDocumentBlueprintTreeDataRequestManager extends UmbManagementApiTreeDataRequestManager {
    constructor(host) {
        super(host, {
            getRootItems: (args) => DocumentBlueprintService.getTreeDocumentBlueprintRoot({
                query: {
                    foldersOnly: args.foldersOnly,
                    skip: args.paging.skip,
                    take: args.paging.take,
                },
            }),
            getChildrenOf: (args) => DocumentBlueprintService.getTreeDocumentBlueprintChildren({
                query: {
                    parentId: args.parent.unique,
                    foldersOnly: args.foldersOnly,
                    skip: args.paging.skip,
                    take: args.paging.take,
                },
            }),
            getAncestorsOf: (args) => DocumentBlueprintService.getTreeDocumentBlueprintAncestors({
                query: {
                    descendantId: args.treeItem.unique,
                },
            }),
            getSiblingsFrom: (args) => DocumentBlueprintService.getTreeDocumentBlueprintSiblings({
                query: {
                    foldersOnly: args.foldersOnly,
                    target: args.paging.target.unique,
                    before: args.paging.takeBefore,
                    after: args.paging.takeAfter,
                },
            }),
        });
    }
}
