export const transformCustomDateFilterToWQL = (filterName, filterValue) => {
    const dateWQLFilters = [];
    if (filterValue.from instanceof Date) {
        dateWQLFilters.push({
            [filterName]: { $gte: filterValue.from.toISOString() },
        });
    }
    if (filterValue.to instanceof Date) {
        dateWQLFilters.push({
            [filterName]: { $lte: filterValue.to.toISOString() },
        });
    }
    return dateWQLFilters;
};
//# sourceMappingURL=transformCustomDateFilterToWQL.js.map