@ondc/automation-mock-runner 1.3.41 → 1.3.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -101,7 +101,13 @@ function convertToFlowConfig(config) {
101
101
  const pair = config.steps.find((s) => s.responseFor === step.action_id)?.action_id ||
102
102
  null;
103
103
  let flowStep = {};
104
- const isFormStep = ["HTML_FORM", "DYNAMIC_FORM", "HTML_FORM_MULTI"];
104
+ const isFormStep = [
105
+ "HTML_FORM",
106
+ "DYNAMIC_FORM",
107
+ "HTML_FORM_MULTI",
108
+ "dynamic_form",
109
+ "html_form",
110
+ ];
105
111
  // Check if previous step was a form step
106
112
  const previousStep = index > 0 ? config.steps[index - 1] : null;
107
113
  const isPreviousStepForm = previousStep !== null && isFormStep.includes(previousStep.api);
@@ -130,7 +136,7 @@ function convertToFlowConfig(config) {
130
136
  ],
131
137
  };
132
138
  }
133
- else if (step.api === "HTML_FORM") {
139
+ else if (step.api === "HTML_FORM" || step.api === "html_form") {
134
140
  flowStep = {
135
141
  key: step.action_id,
136
142
  type: "HTML_FORM",