"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.sendEvent = sendEvent;
async function sendEvent(client, fullyQualifiedName, payload) {
    const { record_details, properties, occurred_at: occurredAt } = payload;
    const json = {
        eventName: fullyQualifiedName,
        objectId: record_details.object_id ?? undefined,
        email: record_details.email ?? undefined,
        utk: record_details.utk ?? undefined,
        occurredAt,
        properties: properties
    };
    return await client.send(json);
}
//# sourceMappingURL=event-completion-functions.js.map