@kubun/plugin-workflow-api 0.16.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.
Files changed (2) hide show
  1. package/lib/index.d.ts +2 -0
  2. package/package.json +5 -4
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.16.0",
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/store-workflow": "^0.16.0",
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"
@@ -26,8 +27,8 @@
26
27
  "scripts": {
27
28
  "build": "pnpm run build:clean && pnpm run build:js && pnpm run build:types",
28
29
  "build:clean": "del lib",
29
- "build:js": "swc src -d ./lib --config-file ../../node_modules/@kigu/dev/swc.json --strip-leading-paths",
30
- "build:types": "tsc --emitDeclarationOnly --skipLibCheck",
30
+ "build:js": "del 'lib/**/*.js' && swc src -d ./lib --config-file ../../node_modules/@kigu/dev/swc.json --strip-leading-paths",
31
+ "build:types": "del 'lib/**/*.d.ts' 'lib/**/*.d.ts.map' && tsc --emitDeclarationOnly --skipLibCheck",
31
32
  "build:types:ci": "tsc --emitDeclarationOnly --declarationMap false",
32
33
  "test": "pnpm run test:types",
33
34
  "test:types": "tsc --noEmit --skipLibCheck"