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