@moostjs/event-wf 0.2.34 → 0.2.36
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.cjs +708 -16
- package/dist/index.d.ts +14 -3
- package/dist/index.mjs +704 -17
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare class MoostWf<T> implements TMoostAdapter<TWfHandlerMeta> {
|
|
|
13
13
|
constructor(opts?: TMoostWfOpts<T> | undefined);
|
|
14
14
|
onNotFound(): Promise<unknown>;
|
|
15
15
|
protected moost?: Moost;
|
|
16
|
+
protected toInit: (() => void)[];
|
|
16
17
|
onInit(moost: Moost): void;
|
|
17
18
|
start<I>(schemaId: string, inputContext: T, input?: I): Promise<TFlowOutput<T, I>>;
|
|
18
19
|
resume<I>(schemaId: string, inputContext: T, indexes: number[], input?: I): Promise<TFlowOutput<T, I>>;
|
|
@@ -36,10 +37,20 @@ export declare interface TWfHandlerMeta {
|
|
|
36
37
|
|
|
37
38
|
export { useCliContext }
|
|
38
39
|
|
|
39
|
-
export declare
|
|
40
|
+
export declare const WfCtx: (name?: string) => ParameterDecorator & PropertyDecorator;
|
|
40
41
|
|
|
41
|
-
export declare
|
|
42
|
+
export declare const WfIndexes: () => ParameterDecorator & PropertyDecorator;
|
|
42
43
|
|
|
43
|
-
export declare
|
|
44
|
+
export declare const WfInput: (name?: string) => ParameterDecorator & PropertyDecorator;
|
|
45
|
+
|
|
46
|
+
export declare function WFlow(path?: string): MethodDecorator;
|
|
47
|
+
|
|
48
|
+
export declare const WfResume: () => ParameterDecorator & PropertyDecorator;
|
|
49
|
+
|
|
50
|
+
export declare const WfSchemaId: () => ParameterDecorator & PropertyDecorator;
|
|
51
|
+
|
|
52
|
+
export declare function WSchema<T>(schema: TWorkflowSchema<T>): MethodDecorator;
|
|
53
|
+
|
|
54
|
+
export declare function WStep(path?: string): MethodDecorator;
|
|
44
55
|
|
|
45
56
|
export { }
|