@hatchet-dev/typescript-sdk 1.24.2 → 1.24.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/package.json +1 -1
- package/v1/client/client.d.ts +1 -3
- package/v1/client/client.js +2 -6
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/package.json
CHANGED
package/v1/client/client.d.ts
CHANGED
|
@@ -46,8 +46,6 @@ export declare class HatchetClient<GlobalInput extends Record<string, any> = {},
|
|
|
46
46
|
/** The tenant ID for the Hatchet client */
|
|
47
47
|
tenantId: string;
|
|
48
48
|
logger: Logger;
|
|
49
|
-
_isV1: boolean | undefined;
|
|
50
|
-
get isV1(): boolean;
|
|
51
49
|
/**
|
|
52
50
|
* Creates a new Hatchet client instance.
|
|
53
51
|
* @param config - Optional configuration for the client
|
|
@@ -132,7 +130,7 @@ export declare class HatchetClient<GlobalInput extends Record<string, any> = {},
|
|
|
132
130
|
* @param options - Configuration options for the workflow run
|
|
133
131
|
* @returns A WorkflowRunRef containing the run ID and methods to interact with the run
|
|
134
132
|
*/
|
|
135
|
-
runNoWait<I extends InputType = UnknownInputType, O extends OutputType = void>(workflow: BaseWorkflowDeclaration<I, O> | LegacyWorkflow | string, input: I, options
|
|
133
|
+
runNoWait<I extends InputType = UnknownInputType, O extends OutputType = void>(workflow: BaseWorkflowDeclaration<I, O> | LegacyWorkflow | string, input: I, options?: RunOpts): Promise<WorkflowRunRef<O>>;
|
|
136
134
|
/**
|
|
137
135
|
* Triggers a workflow run and waits for the result.
|
|
138
136
|
* @template I - The input type for the workflow
|
package/v1/client/client.js
CHANGED
|
@@ -54,9 +54,6 @@ class HatchetClient {
|
|
|
54
54
|
}
|
|
55
55
|
return this._v0;
|
|
56
56
|
}
|
|
57
|
-
get isV1() {
|
|
58
|
-
return true;
|
|
59
|
-
}
|
|
60
57
|
/**
|
|
61
58
|
* Creates a new Hatchet client instance.
|
|
62
59
|
* @param config - Optional configuration for the client
|
|
@@ -66,7 +63,6 @@ class HatchetClient {
|
|
|
66
63
|
*/
|
|
67
64
|
constructor(config, options, axiosConfig) {
|
|
68
65
|
var _a;
|
|
69
|
-
this._isV1 = true;
|
|
70
66
|
try {
|
|
71
67
|
const loaded = config_loader_1.ConfigLoader.loadClientConfig(config, {
|
|
72
68
|
path: options === null || options === void 0 ? void 0 : options.config_path,
|
|
@@ -185,8 +181,8 @@ class HatchetClient {
|
|
|
185
181
|
* @param options - Configuration options for the workflow run
|
|
186
182
|
* @returns A WorkflowRunRef containing the run ID and methods to interact with the run
|
|
187
183
|
*/
|
|
188
|
-
runNoWait(
|
|
189
|
-
return __awaiter(this,
|
|
184
|
+
runNoWait(workflow_1, input_1) {
|
|
185
|
+
return __awaiter(this, arguments, void 0, function* (workflow, input, options = {}) {
|
|
190
186
|
const name = (0, legacy_transformer_1.getWorkflowName)(workflow);
|
|
191
187
|
return this.admin.runWorkflow(name, input, options);
|
|
192
188
|
});
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const HATCHET_VERSION = "1.24.
|
|
1
|
+
export declare const HATCHET_VERSION = "1.24.3";
|
package/version.js
CHANGED