@brandboostinggmbh/observable-workflows 0.12.0 → 0.12.1

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +8 -7
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -381,6 +381,12 @@ type WorkflowFunction<INPUT, TYPE extends string = string> = {
381
381
  * Use either the WorkflowContect, or the QueueWorkflowContext to run or enqueue this. */
382
382
  _callback: (input: INPUT, ctx: WorkflowContext) => Promise<any>;
383
383
  };
384
+ type WorkflowEnqueueBatchItem<I = any> = {
385
+ workflow: WorkflowFunction<I>;
386
+ tenantId: string;
387
+ input: I;
388
+ initialName: string;
389
+ };
384
390
  type WorkflowQueueMessage = {
385
391
  type: 'workflow-run';
386
392
  workflowType: string;
@@ -448,12 +454,7 @@ declare const createLogAccessor: (context: {
448
454
  //#region src/observableWorkflows/createQueueWorkflowContext.d.ts
449
455
  declare function createQueueWorkflowContext(options: QueueWorkflowContextOptions): {
450
456
  enqueueWorkflow: <I>(workflow: WorkflowFunction<I>, tenantId: string, input: I, initialName: string) => Promise<void>;
451
- enqueueWorkflowBatch: <I>(workflows: Array<{
452
- workflow: WorkflowFunction<I>;
453
- tenantId: string;
454
- input: I;
455
- initialName: string;
456
- }>) => Promise<void>;
457
+ enqueueWorkflowBatch: <I>(workflows: Array<WorkflowEnqueueBatchItem<I>>) => Promise<void>;
457
458
  enqueueRetryWorkflow: <I>(workflow: WorkflowFunction<I>, tenantId: string, oldInstanceId: string, reuseSuccessfulSteps?: boolean) => Promise<void>;
458
459
  handleWorkflowQueueMessage: ({
459
460
  message,
@@ -522,4 +523,4 @@ type R2ExternalBlobStorageOptions = {
522
523
  declare function createR2ExternalBlobStorage(options: R2ExternalBlobStorageOptions): ExternalBlobStorage;
523
524
 
524
525
  //#endregion
525
- export { ConsoleWrapper, DateRangeFilter, ExternalBlobStorage, HandleWorkflowQueueMessageParams, InternalWorkflowContextOptions, Log, PossibleValueTypeNames, PossibleValueTypes, PropertyFilter, QueueWorkflowContextOptions, R2ExternalBlobStorageOptions, Serializer, Step, StepContextOptions, StepCtx, StepWorkflowStatus, StringFilter, ValueTypeMap, WorkflowContext, WorkflowContextInstance, WorkflowContextOptions, WorkflowFilter, WorkflowFunction, WorkflowProperty, WorkflowPropertyDefinition, WorkflowQueueMessage, WorkflowRun, createLogAccessor, createQueueWorkflowContext, createR2ExternalBlobStorage, createStepContext, createWorkflowContext, defaultIdFactory, defaultSerializer, defineWorkflow, deserializeWithExternalStorage, ensureTables, finalizeWorkflowRecord, insertStepRecordFull, insertWorkflowRecord, pushLogToDB, serializeWithExternalStorage, tryDeserializeObj, updateWorkflowName, upsertWorkflowProperty, workflowTableRowToWorkflowRun };
526
+ export { ConsoleWrapper, DateRangeFilter, ExternalBlobStorage, HandleWorkflowQueueMessageParams, InternalWorkflowContextOptions, Log, PossibleValueTypeNames, PossibleValueTypes, PropertyFilter, QueueWorkflowContextOptions, R2ExternalBlobStorageOptions, Serializer, Step, StepContextOptions, StepCtx, StepWorkflowStatus, StringFilter, ValueTypeMap, WorkflowEnqueueBatchItem as WorkflowBatchItem, WorkflowContext, WorkflowContextInstance, WorkflowContextOptions, WorkflowFilter, WorkflowFunction, WorkflowProperty, WorkflowPropertyDefinition, WorkflowQueueMessage, WorkflowRun, createLogAccessor, createQueueWorkflowContext, createR2ExternalBlobStorage, createStepContext, createWorkflowContext, defaultIdFactory, defaultSerializer, defineWorkflow, deserializeWithExternalStorage, ensureTables, finalizeWorkflowRecord, insertStepRecordFull, insertWorkflowRecord, pushLogToDB, serializeWithExternalStorage, tryDeserializeObj, updateWorkflowName, upsertWorkflowProperty, workflowTableRowToWorkflowRun };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brandboostinggmbh/observable-workflows",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "My awesome typescript library",
5
5
  "type": "module",
6
6
  "license": "MIT",