"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.addActivityEventLog = void 0;
/**
 * Adjusts the given ISO date string to the next available time within business hours,
 * taking into account the specified time zone.
 *
 * @param message - The message of the event log
 * @param date - The date of the event log. If none provided, the current date is used
 * @returns ActivityEvent
 */
const addActivityEventLog = ({ date, message, }) => {
    const eventDate = date !== null && date !== void 0 ? date : new Date();
    return {
        date: eventDate.toISOString(),
        text: {
            en: message,
        },
    };
};
exports.addActivityEventLog = addActivityEventLog;
//# sourceMappingURL=addActivityEventLog.js.map