@hatchet-dev/typescript-sdk 0.12.1 → 0.12.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.
|
@@ -238,13 +238,17 @@ class AdminClient {
|
|
|
238
238
|
* @param input an object containing the input to the workflow
|
|
239
239
|
*/
|
|
240
240
|
scheduleWorkflow(name, options) {
|
|
241
|
+
let computedName = name;
|
|
241
242
|
try {
|
|
243
|
+
if (this.config.namespace && !name.startsWith(this.config.namespace)) {
|
|
244
|
+
computedName = this.config.namespace + name;
|
|
245
|
+
}
|
|
242
246
|
let input;
|
|
243
247
|
if (options === null || options === void 0 ? void 0 : options.input) {
|
|
244
248
|
input = JSON.stringify(options.input);
|
|
245
249
|
}
|
|
246
250
|
this.client.scheduleWorkflow({
|
|
247
|
-
name,
|
|
251
|
+
name: computedName,
|
|
248
252
|
schedules: options === null || options === void 0 ? void 0 : options.schedules,
|
|
249
253
|
input,
|
|
250
254
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hatchet-dev/typescript-sdk",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.3",
|
|
4
4
|
"description": "Background task orchestration & visibility for developers",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"resolve-tspaths": "^0.8.17",
|
|
87
87
|
"ts-jest": "^29.1.1",
|
|
88
88
|
"ts-node": "^10.9.2",
|
|
89
|
-
"ts-proto": "^
|
|
89
|
+
"ts-proto": "^2.0.2",
|
|
90
90
|
"typedoc": "^0.26.2",
|
|
91
91
|
"typedoc-plugin-markdown": "^4.0.2",
|
|
92
92
|
"typescript": "^5.3.3"
|