import { UmbDataTypeReferenceServerDataSource } from './data-type-reference.server.data.js';
import { UmbControllerBase } from '../../../../libs/class-api/index.js';
export class UmbDataTypeReferenceRepository extends UmbControllerBase {
    #referenceSource;
    constructor(host) {
        super(host);
        this.#referenceSource = new UmbDataTypeReferenceServerDataSource(this);
    }
    async requestReferencedBy(unique, skip = 0, take = 20) {
        if (!unique)
            throw new Error(`unique is required`);
        return this.#referenceSource.getReferencedBy(unique, skip, take);
    }
    async requestAreReferenced(uniques, skip = 0, take = 20) {
        if (!uniques || uniques.length === 0)
            throw new Error(`uniques is required`);
        return this.#referenceSource.getAreReferenced(uniques, skip, take);
    }
}
export default UmbDataTypeReferenceRepository;
