import { createTrackingEvent } from './creator.js';
import { AnalyticsEventType } from './types.js';
const tryItSentEvent = createTrackingEvent(AnalyticsEventType.TryItSent);
export const createTryItSentEvent = ({ operation, isSuccess }) => tryItSentEvent({
    resource: 'Redocly_OperationTryIt',
    action: isSuccess ? 'Sent' : 'ValidationFailed',
    operationId: operation.id,
    operationPath: operation.path,
    operationHttpVerb: operation.httpVerb,
    operationSummary: operation.name,
});
//# sourceMappingURL=tryItSent.js.map