"use strict";
var _a;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomScopeValidator = void 0;
const DetailedTripScopeEnum_1 = require("./DetailedTripScopeEnum");
class CustomScopeValidator {
}
exports.CustomScopeValidator = CustomScopeValidator;
_a = CustomScopeValidator;
CustomScopeValidator.allowedScopes = Object.values(DetailedTripScopeEnum_1.DetailedTripScope);
CustomScopeValidator.validate = (value, _) => {
    if (value instanceof Array) {
        return value.every((scope) => _a.allowedScopes.includes(scope));
    }
    return _a.allowedScopes.includes(value);
};
//# sourceMappingURL=CustomScopeValidator.js.map