@ondc/automation-mock-runner 1.3.45 → 1.3.46

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.
@@ -35,6 +35,7 @@ export declare class MockRunner {
35
35
  bap_uri?: string | undefined;
36
36
  bpp_id?: string | undefined;
37
37
  bpp_uri?: string | undefined;
38
+ external_session_data?: Record<string, any> | undefined;
38
39
  };
39
40
  steps: {
40
41
  api: string;
@@ -29,6 +29,10 @@ function createInitialMockConfig(domain, version, flowId) {
29
29
  bap_uri: "https://bap.example.com",
30
30
  bpp_id: "bpp.example.com",
31
31
  bpp_uri: "https://bpp.example.com",
32
+ external_session_data: {
33
+ finvuUrl: "https://dev-automation.ondc.org/finvu",
34
+ mockBaseUrl: "https://dev-automation.ondc.org/mock",
35
+ },
32
36
  },
33
37
  steps: [],
34
38
  transaction_history: [],
@@ -19,6 +19,7 @@ export declare const TransactionDataSchema: z.ZodObject<{
19
19
  bap_uri: z.ZodOptional<z.ZodString>;
20
20
  bpp_id: z.ZodOptional<z.ZodString>;
21
21
  bpp_uri: z.ZodOptional<z.ZodString>;
22
+ external_session_data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
22
23
  }, z.core.$strip>;
23
24
  export declare const MockConfigSchema: z.ZodObject<{
24
25
  generate: z.ZodBase64;
@@ -92,6 +93,7 @@ export declare const MockPlaygroundConfigSchema: z.ZodObject<{
92
93
  bap_uri: z.ZodOptional<z.ZodString>;
93
94
  bpp_id: z.ZodOptional<z.ZodString>;
94
95
  bpp_uri: z.ZodOptional<z.ZodString>;
96
+ external_session_data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
95
97
  }, z.core.$strip>;
96
98
  steps: z.ZodArray<z.ZodObject<{
97
99
  api: z.ZodString;
@@ -20,6 +20,7 @@ exports.TransactionDataSchema = zod_1.z.object({
20
20
  bap_uri: zod_1.z.string().min(1, "BAP URI is required").optional(),
21
21
  bpp_id: zod_1.z.string().min(1, "BPP ID is required").optional(),
22
22
  bpp_uri: zod_1.z.string().min(1, "BPP URI is required").optional(),
23
+ external_session_data: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).optional(),
23
24
  });
24
25
  exports.MockConfigSchema = zod_1.z.object({
25
26
  generate: zod_1.z.base64(),
@@ -456,6 +456,10 @@ describe("configHelper", () => {
456
456
  bap_uri: "https://bap.example.com",
457
457
  bpp_id: "bpp.example.com",
458
458
  bpp_uri: "https://bpp.example.com",
459
+ external_session_data: {
460
+ finvuUrl: "https://dev-automation.ondc.org/finvu",
461
+ mockBaseUrl: "https://dev-automation.ondc.org/mock",
462
+ },
459
463
  });
460
464
  });
461
465
  it("should initialize empty arrays and strings", () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ondc/automation-mock-runner",
3
- "version": "1.3.45",
3
+ "version": "1.3.46",
4
4
  "description": "A TypeScript library for ONDC automation mock runner",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",