@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
  });
@@ -21,6 +21,8 @@ export declare enum RunEventType {
21
21
  export interface StepRunEvent {
22
22
  type: RunEventType;
23
23
  payload: string;
24
+ resourceId: string;
25
+ workflowRunId: string;
24
26
  }
25
27
  export declare class RunEventListener {
26
28
  client: DispatcherClient;
@@ -147,6 +147,8 @@ class RunEventListener {
147
147
  this.emit({
148
148
  type: eventType,
149
149
  payload: workflowEvent.eventPayload,
150
+ resourceId: workflowEvent.resourceId,
151
+ workflowRunId: workflowEvent.workflowRunId,
150
152
  });
151
153
  }
152
154
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hatchet-dev/typescript-sdk",
3
- "version": "0.12.1",
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": "^1.167.0",
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"