"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildWorkflowVisibleUpdate = buildWorkflowVisibleUpdate;
exports.buildWorkflowStartedVisibleUpdate = buildWorkflowStartedVisibleUpdate;
const catalog_1 = require("../i18n/catalog");
const publisher_events_1 = require("./publisher-events");
function buildWorkflowVisibleUpdate(input) {
    return {
        kind: "workflow_update",
        ...input,
    };
}
function buildWorkflowStartedVisibleUpdate(input) {
    return buildWorkflowVisibleUpdate({
        event: publisher_events_1.WORKFLOW_VISIBLE_EVENTS.workflowStarted,
        summary: (0, catalog_1.translate)(input.language, "serviceRuntimeConfigApproval.visibleUpdate.start.acceptedReady.summary"),
        next: (0, catalog_1.translate)(input.language, "serviceRuntimeConfigApproval.visibleUpdate.start.acceptedReady.next", {
            targetLabel: (0, catalog_1.translate)(input.language, "serviceRuntimeConfigApproval.feedback.start.targetLabel"),
        }),
    });
}
