@ondc/automation-mock-runner 1.3.9 → 1.3.10

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.
@@ -481,6 +481,16 @@ class MockRunner {
481
481
  const histItem = config.transaction_history[i] ?? {
482
482
  payload: {},
483
483
  };
484
+ if (histItem.action === "dynamic_form" ||
485
+ histItem.action === "html_form") {
486
+ if (!sessionData.formData) {
487
+ sessionData.formData = {};
488
+ }
489
+ sessionData.formData[histItem.action_id] = histItem.payload;
490
+ sessionData[histItem.action_id] =
491
+ histItem.saved_info?.submissionId ?? (0, uuid_1.v4)();
492
+ continue;
493
+ }
484
494
  const saveData = config.steps[i]?.mock.saveData ?? {};
485
495
  for (const key in saveData) {
486
496
  const path = saveData[key];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ondc/automation-mock-runner",
3
- "version": "1.3.9",
3
+ "version": "1.3.10",
4
4
  "description": "A TypeScript library for ONDC automation mock runner",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",