"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OpenLinkStep = void 0;
const MablStepV2_1 = require("../../MablStepV2");
class OpenLinkStep extends MablStepV2_1.MablStepV2 {
    static stepName = 'OpenLink';
    static yamlMablScriptNames = [OpenLinkStep.stepName];
    static stepVersion = 2;
    constructor(descriptor) {
        super(OpenLinkStep.stepName, descriptor, 'openLink');
    }
    stepDescription() {
        return `Open deep link: ${this.descriptor.url}`;
    }
    static fromYaml(_stepName, stepDescriptor) {
        return new OpenLinkStep(stepDescriptor);
    }
    static create(descriptor) {
        descriptor.id = descriptor.id ?? MablStepV2_1.MablStepV2.generateStepId();
        return new OpenLinkStep(descriptor);
    }
}
exports.OpenLinkStep = OpenLinkStep;
