@ondc/automation-mock-runner 1.3.15 → 1.3.17
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.
package/dist/lib/MockRunner.d.ts
CHANGED
package/dist/lib/MockRunner.js
CHANGED
|
@@ -456,7 +456,7 @@ class MockRunner {
|
|
|
456
456
|
const version = this.config.meta?.version || "2.0.0";
|
|
457
457
|
const majorVersion = parseInt(version.split(".")[0], 10);
|
|
458
458
|
// set city code
|
|
459
|
-
const cityCode = MockRunner.getIdFromSession(sessionData, "city_code")
|
|
459
|
+
const cityCode = MockRunner.getIdFromSession(sessionData, "city_code") ?? "*";
|
|
460
460
|
if (majorVersion === 1) {
|
|
461
461
|
return {
|
|
462
462
|
...baseContext,
|
|
@@ -7,6 +7,7 @@ export declare const MetaSchema: z.ZodObject<{
|
|
|
7
7
|
domain: z.ZodString;
|
|
8
8
|
version: z.ZodString;
|
|
9
9
|
flowId: z.ZodString;
|
|
10
|
+
config_version: z.ZodOptional<z.ZodString>;
|
|
10
11
|
}, z.core.$strip>;
|
|
11
12
|
export declare const TransactionDataSchema: z.ZodObject<{
|
|
12
13
|
transaction_id: z.ZodString;
|
|
@@ -63,6 +64,7 @@ export declare const MockPlaygroundConfigSchema: z.ZodObject<{
|
|
|
63
64
|
domain: z.ZodString;
|
|
64
65
|
version: z.ZodString;
|
|
65
66
|
flowId: z.ZodString;
|
|
67
|
+
config_version: z.ZodOptional<z.ZodString>;
|
|
66
68
|
}, z.core.$strip>;
|
|
67
69
|
transaction_data: z.ZodObject<{
|
|
68
70
|
transaction_id: z.ZodString;
|
|
@@ -8,6 +8,7 @@ exports.MetaSchema = zod_1.z.object({
|
|
|
8
8
|
domain: zod_1.z.string().min(1, "Domain is required"),
|
|
9
9
|
version: zod_1.z.string().min(1, "Version is required"),
|
|
10
10
|
flowId: zod_1.z.string().min(1, "Flow ID is required"),
|
|
11
|
+
config_version: zod_1.z.string().optional(),
|
|
11
12
|
});
|
|
12
13
|
exports.TransactionDataSchema = zod_1.z.object({
|
|
13
14
|
transaction_id: zod_1.z.string().min(1, "Transaction ID is required"),
|