@brandboostinggmbh/observable-workflows 0.3.2 → 0.3.5

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/index.d.ts CHANGED
@@ -226,6 +226,7 @@ type WorkflowContext = {
226
226
  console: ConsoleWrapper;
227
227
  setWorkflowName: (newName: string) => Promise<void>;
228
228
  setWorkflowProperty: <T extends keyof ValueTypeMap>(key: string, valueType: T, value: ValueTypeMap[T]) => Promise<void>;
229
+ tenantId: string;
229
230
  };
230
231
  type WorkflowFunction<INPUT, TYPE extends string = string> = {
231
232
  workflowType: TYPE;
@@ -281,9 +282,9 @@ declare function createWorkflowContext(options: WorkflowContextOptions): {
281
282
  declare function createQueueWorkflowContext(options: QueueWorkflowContextOptions): {
282
283
  enqueueWorkflow: <I>(workflow: WorkflowFunction<I>, tenantId: string, input: I, initialName: string) => Promise<void>;
283
284
  enqueueRetryWorkflow: <I>(workflow: WorkflowFunction<I>, tenantId: string, oldInstanceId: string) => Promise<void>;
284
- handleWorkflowQueueMessage: <T>(message: WorkflowQueueMessage, env: {
285
+ handleWorkflowQueueMessage: (message: WorkflowQueueMessage, env: {
285
286
  LOG_DB: D1Database;
286
- }, workflowResolver: (workflowType: string) => WorkflowFunction<T> | undefined) => Promise<void>;
287
+ }, workflowResolver: (workflowType: string) => WorkflowFunction<any> | undefined) => Promise<void>;
287
288
  };
288
289
 
289
290
  //#endregion
package/dist/index.js CHANGED
@@ -392,7 +392,8 @@ function createWorkflowContext(options) {
392
392
  value,
393
393
  tenantId
394
394
  });
395
- }
395
+ },
396
+ tenantId
396
397
  });
397
398
  const endTime = Date.now();
398
399
  const workflowStatus = "completed";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brandboostinggmbh/observable-workflows",
3
- "version": "0.3.2",
3
+ "version": "0.3.5",
4
4
  "description": "My awesome typescript library",
5
5
  "type": "module",
6
6
  "license": "MIT",