@atscript/moost-wf 0.1.162 → 0.1.163

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/store.d.mts +8 -11
  2. package/package.json +15 -15
package/dist/store.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { TAtscriptAnnotatedType, TAtscriptTypeComplex, TAtscriptTypeObject, TMetadataMap, TValidatorOptions, Validator } from "@atscript/typescript/utils";
2
2
  import { AtscriptDbTable } from "@atscript/db";
3
3
 
4
- //#region ../../node_modules/.pnpm/@prostojs+wf@0.2.1/node_modules/@prostojs/wf/dist/types-DQ7U9zZ5.d.mts
4
+ //#region ../../node_modules/.pnpm/@prostojs+wf@0.3.0/node_modules/@prostojs/wf/dist/types-DQ7U9zZ5.d.mts
5
5
  interface TFlowState<T> {
6
6
  schemaId: string;
7
7
  context: T;
@@ -9,25 +9,22 @@ interface TFlowState<T> {
9
9
  meta?: Record<string, unknown>;
10
10
  }
11
11
  //#endregion
12
- //#region ../../node_modules/.pnpm/@prostojs+wf@0.2.1/node_modules/@prostojs/wf/dist/outlets/index.d.mts
12
+ //#region ../../node_modules/.pnpm/@prostojs+wf@0.3.0/node_modules/@prostojs/wf/dist/store-B_dDk2EG.d.mts
13
13
  //#region src/outlets/types.d.ts
14
14
  type WfState = TFlowState<unknown>;
15
15
  //#endregion
16
16
  //#region src/outlets/state/store.d.ts
17
+ interface WfStateStoreEntry {
18
+ state: WfState;
19
+ expiresAt?: number;
20
+ }
17
21
  interface WfStateStore {
18
22
  set(handle: string, state: WfState, expiresAt?: number): Promise<void>;
19
- get(handle: string): Promise<{
20
- state: WfState;
21
- expiresAt?: number;
22
- } | null>;
23
+ get(handle: string): Promise<WfStateStoreEntry | null>;
23
24
  delete(handle: string): Promise<void>;
24
- getAndDelete(handle: string): Promise<{
25
- state: WfState;
26
- expiresAt?: number;
27
- } | null>;
25
+ getAndDelete(handle: string): Promise<WfStateStoreEntry | null>;
28
26
  cleanup?(): Promise<number>;
29
27
  } //#endregion
30
- //#region src/outlets/state/handle.d.ts
31
28
  //#endregion
32
29
  //#region src/store/wf-store.d.ts
33
30
  /** Internal row shape — only the columns the store reads back from the table. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atscript/moost-wf",
3
- "version": "0.1.162",
3
+ "version": "0.1.163",
4
4
  "description": "Workflow form integration for moost — decorators, interceptors, and serialization driven by atscript type metadata",
5
5
  "keywords": [
6
6
  "atscript",
@@ -56,30 +56,30 @@
56
56
  "access": "public"
57
57
  },
58
58
  "devDependencies": {
59
- "@atscript/core": "^0.2.1",
60
- "@atscript/db": "^0.1.166",
61
- "@atscript/db-sql-tools": "^0.1.166",
62
- "@atscript/db-sqlite": "^0.1.166",
63
- "@atscript/typescript": "^0.2.1",
64
- "@moostjs/event-wf": "^0.7.0",
65
- "@prostojs/wf": "^0.2.1",
59
+ "@atscript/core": "^0.2.3",
60
+ "@atscript/db": "^0.1.167",
61
+ "@atscript/db-sql-tools": "^0.1.167",
62
+ "@atscript/db-sqlite": "^0.1.167",
63
+ "@atscript/typescript": "^0.2.3",
64
+ "@moostjs/event-wf": "^0.7.1",
65
+ "@prostojs/wf": "^0.3.0",
66
66
  "@uniqu/core": "^0.1.15",
67
67
  "@wooksjs/event-core": "^0.8.0",
68
68
  "@wooksjs/event-http": "^0.8.0",
69
69
  "@wooksjs/event-wf": "^0.8.0",
70
70
  "@wooksjs/http-body": "^0.8.0",
71
- "moost": "^0.7.0",
72
- "unplugin-atscript": "^0.2.1",
71
+ "moost": "^0.7.1",
72
+ "unplugin-atscript": "^0.2.3",
73
73
  "vitest": "npm:@voidzero-dev/vite-plus-test@0.1.14",
74
- "@atscript/ui": "^0.1.162"
74
+ "@atscript/ui": "^0.1.163"
75
75
  },
76
76
  "peerDependencies": {
77
- "@atscript/core": "^0.2.1",
78
- "@atscript/typescript": "^0.2.1",
79
- "@moostjs/event-wf": "^0.7.0",
77
+ "@atscript/core": "^0.2.3",
78
+ "@atscript/typescript": "^0.2.3",
79
+ "@moostjs/event-wf": "^0.7.1",
80
80
  "@wooksjs/event-core": "^0.8.0",
81
81
  "@wooksjs/event-wf": "^0.8.0",
82
- "moost": "^0.7.0"
82
+ "moost": "^0.7.1"
83
83
  },
84
84
  "scripts": {
85
85
  "build": "vp pack",