"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PrepareSessionStep = void 0;
const MablStepV2_1 = require("../../MablStepV2");
class PrepareSessionStep extends MablStepV2_1.MablStepV2 {
    static stepName = 'PrepareSession';
    static yamlMablScriptNames = [PrepareSessionStep.stepName];
    static stepVersion = 2;
    constructor(descriptor) {
        super(PrepareSessionStep.stepName, descriptor, 'prepareSession');
    }
    stepDescription() {
        return `Launch and initialize app session`;
    }
    static fromYaml(_stepName, stepDescriptor) {
        return new PrepareSessionStep(stepDescriptor);
    }
    static create(descriptor) {
        descriptor.id = descriptor.id ?? MablStepV2_1.MablStepV2.generateStepId();
        return new PrepareSessionStep(descriptor);
    }
}
exports.PrepareSessionStep = PrepareSessionStep;
