"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isFullyQualifiedCategory = isFullyQualifiedCategory;
exports.isOrganizationCategory = isOrganizationCategory;
exports.isAggregationCategory = isAggregationCategory;
/**
 * Detects whether a given string is a fully qualified category.
 * A fully qualified category is one that starts with either "/Categories/" or "/categories/".
 *
 * @param value The string to check.
 * @returns true if the string is a fully qualified category, false otherwise.
 */
function isFullyQualifiedCategory(value) {
    return isOrganizationCategory(value) || isAggregationCategory(value);
}
/**
 * Detects whether a given string comes from an organization's category schema.
 * Since the category schema preserves casing, this function checks for the prefix "/Categories".
 *
 * @param value The string to check.
 * @returns true if the string is an organization category, false otherwise.
 */
function isOrganizationCategory(value) {
    return value.startsWith("/Categories");
}
/**
 * Detects whether a given string comes from a search aggregation.
 * Since search aggregation categories are all lowercase, this function checks for the prefix "/categories".
 *
 * @param value The string to check.
 * @returns true if the string is an aggregation category, false otherwise.
 */
function isAggregationCategory(value) {
    return value.startsWith("/categories");
}
//# sourceMappingURL=isFullyQualifiedCategory.js.map