@statedelta-actions/events 0.1.0 → 0.3.0
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.d.cts +12 -11
- package/dist/index.d.ts +12 -11
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Directive, RegisterWarning, HookFn, FrameCounters, DirectiveResult, RuleError } from '@statedelta-actions/core';
|
|
2
|
+
import { IActionEngine, HandlerAnalysis } from '@statedelta-actions/actions';
|
|
3
3
|
|
|
4
4
|
interface EventDefinition {
|
|
5
5
|
/** Nome do evento. Chave única no registry. */
|
|
@@ -15,6 +15,16 @@ interface EventDefinition {
|
|
|
15
15
|
/** Descrição humana. */
|
|
16
16
|
readonly description?: string;
|
|
17
17
|
}
|
|
18
|
+
interface EventListenerDefinition<TCtx = unknown> {
|
|
19
|
+
readonly id: string;
|
|
20
|
+
readonly priority: number;
|
|
21
|
+
readonly on: string | string[];
|
|
22
|
+
readonly then: readonly Directive<TCtx>[];
|
|
23
|
+
readonly tags?: readonly string[];
|
|
24
|
+
readonly declarations?: Record<string, unknown>;
|
|
25
|
+
readonly metadata?: Record<string, unknown>;
|
|
26
|
+
}
|
|
27
|
+
|
|
18
28
|
interface EventDefineError {
|
|
19
29
|
readonly event: string;
|
|
20
30
|
readonly code: string;
|
|
@@ -25,15 +35,6 @@ interface EventDefineResult {
|
|
|
25
35
|
readonly errors: readonly EventDefineError[];
|
|
26
36
|
readonly warnings: readonly RegisterWarning[];
|
|
27
37
|
}
|
|
28
|
-
interface EventListenerDefinition<TCtx = unknown> {
|
|
29
|
-
readonly id: string;
|
|
30
|
-
readonly priority: number;
|
|
31
|
-
readonly on: string | string[];
|
|
32
|
-
readonly then: readonly Directive<TCtx>[];
|
|
33
|
-
readonly tags?: readonly string[];
|
|
34
|
-
readonly declarations?: Record<string, unknown>;
|
|
35
|
-
readonly metadata?: Record<string, unknown>;
|
|
36
|
-
}
|
|
37
38
|
interface EventProcessingContext<TCtx = unknown> {
|
|
38
39
|
readonly ctx: TCtx;
|
|
39
40
|
readonly counters: FrameCounters;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Directive, RegisterWarning, HookFn, FrameCounters, DirectiveResult, RuleError } from '@statedelta-actions/core';
|
|
2
|
+
import { IActionEngine, HandlerAnalysis } from '@statedelta-actions/actions';
|
|
3
3
|
|
|
4
4
|
interface EventDefinition {
|
|
5
5
|
/** Nome do evento. Chave única no registry. */
|
|
@@ -15,6 +15,16 @@ interface EventDefinition {
|
|
|
15
15
|
/** Descrição humana. */
|
|
16
16
|
readonly description?: string;
|
|
17
17
|
}
|
|
18
|
+
interface EventListenerDefinition<TCtx = unknown> {
|
|
19
|
+
readonly id: string;
|
|
20
|
+
readonly priority: number;
|
|
21
|
+
readonly on: string | string[];
|
|
22
|
+
readonly then: readonly Directive<TCtx>[];
|
|
23
|
+
readonly tags?: readonly string[];
|
|
24
|
+
readonly declarations?: Record<string, unknown>;
|
|
25
|
+
readonly metadata?: Record<string, unknown>;
|
|
26
|
+
}
|
|
27
|
+
|
|
18
28
|
interface EventDefineError {
|
|
19
29
|
readonly event: string;
|
|
20
30
|
readonly code: string;
|
|
@@ -25,15 +35,6 @@ interface EventDefineResult {
|
|
|
25
35
|
readonly errors: readonly EventDefineError[];
|
|
26
36
|
readonly warnings: readonly RegisterWarning[];
|
|
27
37
|
}
|
|
28
|
-
interface EventListenerDefinition<TCtx = unknown> {
|
|
29
|
-
readonly id: string;
|
|
30
|
-
readonly priority: number;
|
|
31
|
-
readonly on: string | string[];
|
|
32
|
-
readonly then: readonly Directive<TCtx>[];
|
|
33
|
-
readonly tags?: readonly string[];
|
|
34
|
-
readonly declarations?: Record<string, unknown>;
|
|
35
|
-
readonly metadata?: Record<string, unknown>;
|
|
36
|
-
}
|
|
37
38
|
interface EventProcessingContext<TCtx = unknown> {
|
|
38
39
|
readonly ctx: TCtx;
|
|
39
40
|
readonly counters: FrameCounters;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@statedelta-actions/events",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Event processing engine with listener dispatch and JIT optimization",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"README.md"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@statedelta-actions/core": "0.
|
|
22
|
-
"@statedelta-actions/actions": "0.
|
|
21
|
+
"@statedelta-actions/core": "0.3.0",
|
|
22
|
+
"@statedelta-actions/actions": "0.3.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@statedelta-actions/analyzer": "0.
|
|
26
|
-
"@statedelta-actions/graph": "0.
|
|
25
|
+
"@statedelta-actions/analyzer": "0.3.0",
|
|
26
|
+
"@statedelta-actions/graph": "0.3.0"
|
|
27
27
|
},
|
|
28
28
|
"author": "Anderson D. Rosa <andersondrosa@outlook.com>",
|
|
29
29
|
"license": "MIT",
|