import { getDocumentHistoryTagStyleAndText } from '../info-app/utils.js';
import { UmbDocumentAuditLogServerDataSource } from './document-audit-log.server.data-source.js';
import { UmbRepositoryBase } from '../../../../core/repository/index.js';
/**
 * Repository for the document audit log
 * @class UmbDocumentAuditLogRepository
 * @augments {UmbRepositoryBase}
 */
export class UmbDocumentAuditLogRepository extends UmbRepositoryBase {
    #dataSource;
    /**
     * Creates an instance of UmbDocumentAuditLogRepository.
     * @param {UmbControllerHost} host - The controller host for this controller to be appended to
     * @memberof UmbDocumentAuditLogRepository
     */
    constructor(host) {
        super(host);
        this.#dataSource = new UmbDocumentAuditLogServerDataSource(host);
    }
    /**
     * Request the audit log for a document
     * @param {UmbAuditLogRequestArgs} args
     * @returns {*}
     * @memberof UmbDocumentAuditLogRepository
     */
    async requestAuditLog(args) {
        return this.#dataSource.getAuditLog(args);
    }
    /**
     * Get the tag style and localization data for a given audit log type
     * @param {string} logType
     * @returns {UmbAuditLogTagData}
     * @memberof UmbDocumentAuditLogRepository
     */
    getTagStyleAndText(logType) {
        return getDocumentHistoryTagStyleAndText(logType);
    }
}
export { UmbDocumentAuditLogRepository as api };
