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