@kubun/plugin-workflow-api 0.17.0 → 0.17.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.
- package/lib/index.d.ts +2 -0
- package/package.json +3 -2
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { StoreProvider } from '@kubun/db';
|
|
1
2
|
import type { WorkflowStatus } from '@kubun/store-workflow';
|
|
2
3
|
import type { EventsSource } from '@sozai/event';
|
|
3
4
|
import type { FlowAction, HandlersRecord } from '@sozai/flow';
|
|
@@ -124,6 +125,7 @@ export type WorkflowAPI = {
|
|
|
124
125
|
isRemotelyCommandable(name: string): boolean;
|
|
125
126
|
defineQueue(name: string, opts: QueueOptions): void;
|
|
126
127
|
enqueue(name: string, params?: unknown, opts?: EnqueueOptions): Promise<InstanceHandle>;
|
|
128
|
+
enqueueTx(stores: StoreProvider, name: string, params?: unknown, opts?: EnqueueOptions): Promise<InstanceHandle>;
|
|
127
129
|
schedule(name: string, params: unknown, when: ScheduleSpec): Promise<ScheduleHandle>;
|
|
128
130
|
scheduleAdaptive(name: string, params: unknown, opts: {
|
|
129
131
|
policy: AdaptivePolicy;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubun/plugin-workflow-api",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"license": "see LICENSE.md",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"LICENSE.md"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@kubun/
|
|
18
|
+
"@kubun/db": "^0.17.0",
|
|
19
|
+
"@kubun/store-workflow": "^0.17.1",
|
|
19
20
|
"@sozai/event": "^0.1.3",
|
|
20
21
|
"@sozai/flow": "^0.3.1",
|
|
21
22
|
"@sozai/schema": "^0.1.2"
|