erpnext-queue-client 2.5.2 → 2.5.3
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/client.js +6 -7
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.TemporalClient = void 0;
|
|
7
4
|
const client_1 = require("@temporalio/client");
|
|
8
|
-
const zod_1 = __importDefault(require("zod"));
|
|
9
5
|
const logger_1 = require("./utils/logger");
|
|
10
6
|
const zodUtils_1 = require("./utils/zodUtils");
|
|
11
7
|
const nanoid_1 = require("nanoid");
|
|
@@ -123,9 +119,12 @@ class TemporalClient {
|
|
|
123
119
|
throw err;
|
|
124
120
|
});
|
|
125
121
|
logger_1.lg.info(`Started workflow ${runId}`);
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
122
|
+
if (responseValidationModel) {
|
|
123
|
+
return (0, zodUtils_1.validateData)(data, responseValidationModel);
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
return data;
|
|
127
|
+
}
|
|
129
128
|
}
|
|
130
129
|
}
|
|
131
130
|
exports.TemporalClient = TemporalClient;
|