@spine-event-engine/server 2.0.0-snapshot.14 → 2.0.0-snapshot.15
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/README.md +18 -0
- package/REFERENCE.md +93 -7
- package/dist/entity/entity-transaction.d.ts +46 -42
- package/dist/entity/entity-transaction.d.ts.map +1 -1
- package/dist/entity/entity-transaction.js +130 -35
- package/dist/entity/entity-transaction.js.map +1 -1
- package/dist/entity/entity.d.ts +132 -84
- package/dist/entity/entity.d.ts.map +1 -1
- package/dist/entity/entity.js +213 -217
- package/dist/entity/entity.js.map +1 -1
- package/dist/handler/event-registration-readiness.d.ts +13 -56
- package/dist/handler/event-registration-readiness.d.ts.map +1 -1
- package/dist/handler/event-registration-readiness.js +23 -43
- package/dist/handler/event-registration-readiness.js.map +1 -1
- package/dist/handler/generated-handler-registry.d.ts +8 -0
- package/dist/handler/generated-handler-registry.d.ts.map +1 -1
- package/dist/handler/generated-handler-registry.js +165 -3
- package/dist/handler/generated-handler-registry.js.map +1 -1
- package/dist/handler/handler-decorators.d.ts +70 -33
- package/dist/handler/handler-decorators.d.ts.map +1 -1
- package/dist/handler/handler-decorators.js +88 -31
- package/dist/handler/handler-decorators.js.map +1 -1
- package/dist/handler/handler-metadata.d.ts +53 -51
- package/dist/handler/handler-metadata.d.ts.map +1 -1
- package/dist/handler/handler-metadata.js +214 -42
- package/dist/handler/handler-metadata.js.map +1 -1
- package/dist/handler/registration-readiness-metadata.d.ts +4 -0
- package/dist/handler/registration-readiness-metadata.d.ts.map +1 -1
- package/dist/handler/registration-readiness-metadata.js +82 -1
- package/dist/handler/registration-readiness-metadata.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/repository/repository.d.ts +137 -20
- package/dist/repository/repository.d.ts.map +1 -1
- package/dist/repository/repository.js +2589 -282
- package/dist/repository/repository.js.map +1 -1
- package/dist/runtime/standalone-handler-runtime.d.ts +16 -0
- package/dist/runtime/standalone-handler-runtime.d.ts.map +1 -1
- package/dist/runtime/standalone-handler-runtime.js +93 -18
- package/dist/runtime/standalone-handler-runtime.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +12 -12
|
@@ -14,10 +14,15 @@
|
|
|
14
14
|
import { EntityHandlers, } from "./handler-metadata.js";
|
|
15
15
|
const handlerDecoratorMetadataKey = Symbol("@spine-event-engine/server.handlerDecorators");
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Validates declared domain rejections for build-time handler discovery.
|
|
18
|
+
*
|
|
19
|
+
* Put `@Assign` or `@Command` first and `@Throws` last for readability; either
|
|
20
|
+
* order is accepted. The generated registry registers these rejection types
|
|
21
|
+
* even when no server handler consumes them. Rejections are thrown, not normal
|
|
22
|
+
* return values, and do not belong in the handler's return union or tuple.
|
|
18
23
|
*
|
|
19
24
|
* @param declarations Generated rejection companions.
|
|
20
|
-
* @returns A method decorator that
|
|
25
|
+
* @returns A method decorator that validates the annotated instance method.
|
|
21
26
|
*/
|
|
22
27
|
export function Throws(...declarations) {
|
|
23
28
|
if (declarations.length === 0) {
|
|
@@ -57,7 +62,7 @@ export function Assign(schemaOrValue, context) {
|
|
|
57
62
|
* Creates command-handler decorator metadata or a schema-bearing decorator.
|
|
58
63
|
* Command input declares a Process Manager command substitution; Event or rejection
|
|
59
64
|
* input declares an Event Bus command reaction. Schema-bearing metadata cannot
|
|
60
|
-
* provide
|
|
65
|
+
* provide declared returned schemas and is rejected during materialization.
|
|
61
66
|
*
|
|
62
67
|
* @param schemaOrValue Generated Command, Event, or rejection schema, or
|
|
63
68
|
* decorated method implementation.
|
|
@@ -105,22 +110,6 @@ export function Where(options) {
|
|
|
105
110
|
DecoratorMetadata.methodName(context);
|
|
106
111
|
};
|
|
107
112
|
}
|
|
108
|
-
/**
|
|
109
|
-
* Creates legacy framework event-application metadata.
|
|
110
|
-
*
|
|
111
|
-
* New application aggregates must not use `@Apply`; managed aggregates are no
|
|
112
|
-
* longer event-sourced and the framework owns state transactions. This
|
|
113
|
-
* decorator is kept only for compatibility code that still needs explicit
|
|
114
|
-
* schema-bearing event application metadata. The optional `allowImport` flag
|
|
115
|
-
* is preserved only as part of that legacy metadata shape.
|
|
116
|
-
*
|
|
117
|
-
* @param schema Event schema accepted by the decorated method.
|
|
118
|
-
* @param options Legacy event-application metadata options.
|
|
119
|
-
* @returns Decorator that records the application metadata.
|
|
120
|
-
*/
|
|
121
|
-
export function Apply(schema, options = {}) {
|
|
122
|
-
return DecoratorMetadata.create("event-application", schema, options);
|
|
123
|
-
}
|
|
124
113
|
/**
|
|
125
114
|
* Builds schema-bearing decorator declarations for framework compatibility.
|
|
126
115
|
*
|
|
@@ -128,14 +117,14 @@ export function Apply(schema, options = {}) {
|
|
|
128
117
|
* produced by `EntityHandlers.define()` and accepted by
|
|
129
118
|
* `HandlerMetadataRegistry`. Only own prototype methods of `entityType` are
|
|
130
119
|
* inspected; inherited decorated methods are intentionally not materialized by
|
|
131
|
-
* this class
|
|
120
|
+
* this per-class adapter.
|
|
132
121
|
*
|
|
133
122
|
* Application code must not call this function and must not provide its own
|
|
134
123
|
* handler discovery/materialization. Generated framework registries own schema
|
|
135
124
|
* inference for bare decorators; this adapter only supports legacy
|
|
136
125
|
* schema-bearing decorator metadata.
|
|
137
126
|
*
|
|
138
|
-
* @typeParam Instance
|
|
127
|
+
* @typeParam Instance Entity instance on which the handlers run.
|
|
139
128
|
* @typeParam StateSchema - Schema that describes the entity state.
|
|
140
129
|
* @param entityType Entity class whose own decorated methods are read.
|
|
141
130
|
* @param stateSchema Schema that describes the entity state.
|
|
@@ -143,7 +132,18 @@ export function Apply(schema, options = {}) {
|
|
|
143
132
|
*/
|
|
144
133
|
export function materializeDecoratedEntityHandlers(entityType, stateSchema) {
|
|
145
134
|
const decoratedHandlers = DecoratorMetadata.collect(entityType);
|
|
146
|
-
return EntityHandlers.define(entityType, stateSchema, (builder) => decoratedHandlers.map((handler) =>
|
|
135
|
+
return EntityHandlers.define(entityType, stateSchema, (builder) => decoratedHandlers.map((handler) => DecoratorMetadata.materializeLegacyHandler(builder, handler)));
|
|
136
|
+
}
|
|
137
|
+
const DecoratorMetadata = Object.freeze({
|
|
138
|
+
/**
|
|
139
|
+
* Builds legacy schema-bearing metadata for one decorated Entity method.
|
|
140
|
+
*
|
|
141
|
+
* @typeParam Instance Entity receiver type.
|
|
142
|
+
* @param builder Entity handler registration builder.
|
|
143
|
+
* @param handler Decorated method record.
|
|
144
|
+
* @returns Canonical handler metadata.
|
|
145
|
+
*/
|
|
146
|
+
materializeLegacyHandler(builder, handler) {
|
|
147
147
|
const methodName = handler.methodName;
|
|
148
148
|
switch (handler.kind) {
|
|
149
149
|
case "command-assignment":
|
|
@@ -156,14 +156,14 @@ export function materializeDecoratedEntityHandlers(entityType, stateSchema) {
|
|
|
156
156
|
return builder.subscribe(DecoratorMetadata.schema(handler), methodName);
|
|
157
157
|
case "event-reaction":
|
|
158
158
|
return builder.react(DecoratorMetadata.schema(handler), methodName);
|
|
159
|
-
case "event-application":
|
|
160
|
-
return builder.apply(DecoratorMetadata.schema(handler), methodName, {
|
|
161
|
-
allowImport: handler.allowImport ?? false,
|
|
162
|
-
});
|
|
163
159
|
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
|
|
160
|
+
},
|
|
161
|
+
/**
|
|
162
|
+
* Validates a public instance method and reads its string name.
|
|
163
|
+
*
|
|
164
|
+
* @param context TypeScript decorator context identifying the method.
|
|
165
|
+
* @returns The method name used in handler metadata.
|
|
166
|
+
*/
|
|
167
167
|
methodName(context) {
|
|
168
168
|
if (context.static || context.private) {
|
|
169
169
|
throw new TypeError("Spine handler decorators must be applied to public instance methods.");
|
|
@@ -173,6 +173,14 @@ const DecoratorMetadata = Object.freeze({
|
|
|
173
173
|
}
|
|
174
174
|
return context.name;
|
|
175
175
|
},
|
|
176
|
+
/**
|
|
177
|
+
* Applies a bare decorator or creates the internal schema-bearing form.
|
|
178
|
+
*
|
|
179
|
+
* @param kind Handler role recorded for the method.
|
|
180
|
+
* @param schemaOrValue Decorated method, or schema for the internal form.
|
|
181
|
+
* @param context Present when TypeScript invokes a bare decorator.
|
|
182
|
+
* @returns The internal decorator, or undefined after bare decoration.
|
|
183
|
+
*/
|
|
176
184
|
decorateOrCreate(kind, schemaOrValue, context) {
|
|
177
185
|
if (context !== undefined) {
|
|
178
186
|
DecoratorMetadata.create(kind)(schemaOrValue, context);
|
|
@@ -180,14 +188,20 @@ const DecoratorMetadata = Object.freeze({
|
|
|
180
188
|
}
|
|
181
189
|
return DecoratorMetadata.create(kind, schemaOrValue);
|
|
182
190
|
},
|
|
183
|
-
|
|
191
|
+
/**
|
|
192
|
+
* Creates a decorator that appends immutable metadata for one method.
|
|
193
|
+
*
|
|
194
|
+
* @param kind Handler role recorded for the method.
|
|
195
|
+
* @param schema Optional schema supplied by internal compatibility tooling.
|
|
196
|
+
* @returns A standard TypeScript method decorator.
|
|
197
|
+
*/
|
|
198
|
+
create(kind, schema) {
|
|
184
199
|
return (_value, context) => {
|
|
185
200
|
const methodName = DecoratorMetadata.methodName(context);
|
|
186
201
|
const record = Object.freeze({
|
|
187
202
|
kind,
|
|
188
203
|
...(schema === undefined ? {} : { schema }),
|
|
189
204
|
methodName,
|
|
190
|
-
...(kind === "event-application" ? { allowImport: options.allowImport ?? false } : {}),
|
|
191
205
|
});
|
|
192
206
|
const metadata = DecoratorMetadata.require(context);
|
|
193
207
|
const previous = DecoratorMetadata.read(metadata);
|
|
@@ -199,6 +213,12 @@ const DecoratorMetadata = Object.freeze({
|
|
|
199
213
|
});
|
|
200
214
|
};
|
|
201
215
|
},
|
|
216
|
+
/**
|
|
217
|
+
* Reads a legacy declaration's schema, rejecting bare declarations.
|
|
218
|
+
*
|
|
219
|
+
* @param handler Decorator record being materialized.
|
|
220
|
+
* @returns Its explicitly supplied message schema.
|
|
221
|
+
*/
|
|
202
222
|
schema(handler) {
|
|
203
223
|
if (handler.schema === undefined) {
|
|
204
224
|
throw new TypeError(`Decorated handler "${handler.methodName}" was declared without a schema; ` +
|
|
@@ -206,6 +226,13 @@ const DecoratorMetadata = Object.freeze({
|
|
|
206
226
|
}
|
|
207
227
|
return handler.schema;
|
|
208
228
|
},
|
|
229
|
+
/**
|
|
230
|
+
* Reads handler declarations for methods defined on this class prototype.
|
|
231
|
+
*
|
|
232
|
+
* @typeParam Instance Entity instance represented by the constructor.
|
|
233
|
+
* @param entityType Constructor whose declared handlers are collected.
|
|
234
|
+
* @returns A frozen list of matching decorator records.
|
|
235
|
+
*/
|
|
209
236
|
collect(entityType) {
|
|
210
237
|
const metadata = DecoratorMetadata.classMetadata(entityType);
|
|
211
238
|
if (metadata === undefined) {
|
|
@@ -217,6 +244,11 @@ const DecoratorMetadata = Object.freeze({
|
|
|
217
244
|
});
|
|
218
245
|
return Object.freeze(records);
|
|
219
246
|
},
|
|
247
|
+
/**
|
|
248
|
+
* Initializes Symbol.metadata when the runtime does not yet supply it.
|
|
249
|
+
*
|
|
250
|
+
* @returns The existing or newly installed decorator metadata symbol.
|
|
251
|
+
*/
|
|
220
252
|
installSymbol() {
|
|
221
253
|
const existingMetadata = Reflect.get(Symbol, "metadata");
|
|
222
254
|
if (typeof existingMetadata === "symbol") {
|
|
@@ -231,12 +263,25 @@ const DecoratorMetadata = Object.freeze({
|
|
|
231
263
|
});
|
|
232
264
|
return metadata;
|
|
233
265
|
},
|
|
266
|
+
/**
|
|
267
|
+
* Reads TypeScript's class metadata object, rejecting missing support.
|
|
268
|
+
*
|
|
269
|
+
* @param context Decorator context with optional runtime metadata support.
|
|
270
|
+
* @returns The writable class metadata object.
|
|
271
|
+
*/
|
|
234
272
|
require(context) {
|
|
235
273
|
if (context.metadata === undefined) {
|
|
236
274
|
throw new TypeError("Spine handler decorators require standard decorator metadata support.");
|
|
237
275
|
}
|
|
238
276
|
return context.metadata;
|
|
239
277
|
},
|
|
278
|
+
/**
|
|
279
|
+
* Reads metadata defined directly on the Entity constructor.
|
|
280
|
+
*
|
|
281
|
+
* @typeParam Instance Entity instance represented by the constructor.
|
|
282
|
+
* @param entityType Constructor whose metadata is inspected.
|
|
283
|
+
* @returns Its metadata object, or undefined when none is present.
|
|
284
|
+
*/
|
|
240
285
|
classMetadata(entityType) {
|
|
241
286
|
const descriptor = Object.getOwnPropertyDescriptor(entityType, decoratorMetadataSymbol);
|
|
242
287
|
const metadata = descriptor?.value;
|
|
@@ -245,6 +290,12 @@ const DecoratorMetadata = Object.freeze({
|
|
|
245
290
|
}
|
|
246
291
|
return metadata;
|
|
247
292
|
},
|
|
293
|
+
/**
|
|
294
|
+
* Reads Spine handler records without inheriting a parent metadata array.
|
|
295
|
+
*
|
|
296
|
+
* @param metadata Class metadata object to inspect.
|
|
297
|
+
* @returns Stored handler records, or an empty list when absent.
|
|
298
|
+
*/
|
|
248
299
|
read(metadata) {
|
|
249
300
|
if (!Object.hasOwn(metadata, handlerDecoratorMetadataKey)) {
|
|
250
301
|
return [];
|
|
@@ -254,6 +305,12 @@ const DecoratorMetadata = Object.freeze({
|
|
|
254
305
|
},
|
|
255
306
|
});
|
|
256
307
|
const WhereValues = Object.freeze({
|
|
308
|
+
/**
|
|
309
|
+
* Validates and copies the supported single-field Event filter.
|
|
310
|
+
*
|
|
311
|
+
* @param options Field name and comparison value supplied to the decorator.
|
|
312
|
+
* @returns A frozen filter independent of the caller's object.
|
|
313
|
+
*/
|
|
257
314
|
snapshot(options) {
|
|
258
315
|
const value = options;
|
|
259
316
|
if (value === null || typeof value !== "object" || Array.isArray(value)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler-decorators.js","sourceRoot":"","sources":["../../src/handler/handler-decorators.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,EACL,cAAc,GAQf,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"handler-decorators.js","sourceRoot":"","sources":["../../src/handler/handler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AAC,QAAQ,CAAC;YACxB,OAAO,OAAO,CAAC,UAAU,KAAK,QAAQ;YACtC,OAAO,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC;YACtC,OAAO,OAAO,CAAC,MAAM,KAAK,QAAQ,EAClC,CAAC;YACD,MAAM,IAAI,SAAS,CAAC,uEAAuE,CAAC,CAAC;QAC/F,CAAC;QACD,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACnF,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,uBAAuB,GAAG,iBAAiB,CAAC,aAAa,EAAE,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { EntityMetadata, DescriptorMessageSchema } from "../entity/entity-metadata.js";
|
|
2
2
|
/**
|
|
3
3
|
* Entity class value accepted by explicit handler metadata registration.
|
|
4
|
+
* @typeParam Instance Entity receiver type.
|
|
4
5
|
*/
|
|
5
6
|
export interface EntityClass<Instance extends object = object> {
|
|
6
7
|
/**
|
|
@@ -14,7 +15,7 @@ export interface EntityClass<Instance extends object = object> {
|
|
|
14
15
|
/**
|
|
15
16
|
* Public handler metadata categories produced by explicit registration.
|
|
16
17
|
*/
|
|
17
|
-
export type HandlerKind = "command-assignment" | "command-substitution" | "command-reaction" | "event-subscription" | "state-subscription" | "event-reaction"
|
|
18
|
+
export type HandlerKind = "command-assignment" | "command-substitution" | "command-reaction" | "event-subscription" | "state-subscription" | "event-reaction";
|
|
18
19
|
/**
|
|
19
20
|
* Public handler method arity recorded in canonical metadata.
|
|
20
21
|
*/
|
|
@@ -30,6 +31,7 @@ export type HandlerOrigin = "domestic" | "external";
|
|
|
30
31
|
* that return functions or other callable instance properties. Runtime
|
|
31
32
|
* registration therefore applies the narrower public contract: handler names
|
|
32
33
|
* must be own prototype data methods declared with normal class method syntax.
|
|
34
|
+
* @typeParam Instance Entity receiver type.
|
|
33
35
|
*/
|
|
34
36
|
export type HandlerMethodName<Instance extends object> = Extract<{
|
|
35
37
|
[Name in keyof Instance]: Instance[Name] extends (...parameters: never[]) => unknown ? Name : never;
|
|
@@ -56,6 +58,9 @@ export declare class HandlerMetadataError extends Error {
|
|
|
56
58
|
}
|
|
57
59
|
/**
|
|
58
60
|
* Common fields shared by every explicit handler metadata record.
|
|
61
|
+
* @typeParam Kind Handler role type.
|
|
62
|
+
* @typeParam MethodName Type parameter for this declaration.
|
|
63
|
+
* @typeParam Schema Generated message schema type.
|
|
59
64
|
*/
|
|
60
65
|
export interface BaseHandlerMetadata<Kind extends HandlerKind = HandlerKind, Schema extends DescriptorMessageSchema = DescriptorMessageSchema, MethodName extends string = string> {
|
|
61
66
|
/**
|
|
@@ -106,55 +111,52 @@ export interface WhereOptions {
|
|
|
106
111
|
}
|
|
107
112
|
/**
|
|
108
113
|
* Metadata for a command assignee method.
|
|
114
|
+
* @typeParam MethodName Type parameter for this declaration.
|
|
115
|
+
* @typeParam Schema Generated message schema type.
|
|
109
116
|
*/
|
|
110
117
|
export type CommandAssignmentHandlerMetadata<Schema extends DescriptorMessageSchema = DescriptorMessageSchema, MethodName extends string = string> = BaseHandlerMetadata<"command-assignment", Schema, MethodName>;
|
|
111
118
|
/**
|
|
112
119
|
* Metadata for a command-reacting method.
|
|
120
|
+
* @typeParam MethodName Type parameter for this declaration.
|
|
121
|
+
* @typeParam Schema Generated message schema type.
|
|
113
122
|
*/
|
|
114
123
|
export type CommandReactionHandlerMetadata<Schema extends DescriptorMessageSchema = DescriptorMessageSchema, MethodName extends string = string> = BaseHandlerMetadata<"command-reaction", Schema, MethodName>;
|
|
115
124
|
/**
|
|
116
125
|
* Command-input `@Command` metadata that produces Commands after commit.
|
|
126
|
+
* @typeParam MethodName Type parameter for this declaration.
|
|
127
|
+
* @typeParam Schema Generated message schema type.
|
|
117
128
|
*/
|
|
118
129
|
export type CommandSubstitutionHandlerMetadata<Schema extends DescriptorMessageSchema = DescriptorMessageSchema, MethodName extends string = string> = BaseHandlerMetadata<"command-substitution", Schema, MethodName>;
|
|
119
130
|
/**
|
|
120
131
|
* Metadata for an event subscription method.
|
|
132
|
+
* @typeParam MethodName Type parameter for this declaration.
|
|
133
|
+
* @typeParam Schema Generated message schema type.
|
|
121
134
|
*/
|
|
122
135
|
export type EventSubscriptionHandlerMetadata<Schema extends DescriptorMessageSchema = DescriptorMessageSchema, MethodName extends string = string> = BaseHandlerMetadata<"event-subscription", Schema, MethodName>;
|
|
123
136
|
/**
|
|
124
137
|
* Metadata for an Entity-state subscription method.
|
|
138
|
+
* @typeParam MethodName Type parameter for this declaration.
|
|
139
|
+
* @typeParam Schema Generated message schema type.
|
|
125
140
|
*/
|
|
126
141
|
export type StateSubscriptionHandlerMetadata<Schema extends DescriptorMessageSchema = DescriptorMessageSchema, MethodName extends string = string> = BaseHandlerMetadata<"state-subscription", Schema, MethodName>;
|
|
127
142
|
/**
|
|
128
143
|
* Metadata for an event reactor method.
|
|
144
|
+
* @typeParam MethodName Type parameter for this declaration.
|
|
145
|
+
* @typeParam Schema Generated message schema type.
|
|
129
146
|
*/
|
|
130
147
|
export type EventReactionHandlerMetadata<Schema extends DescriptorMessageSchema = DescriptorMessageSchema, MethodName extends string = string> = BaseHandlerMetadata<"event-reaction", Schema, MethodName>;
|
|
131
|
-
/**
|
|
132
|
-
* Options accepted by event applier registration.
|
|
133
|
-
*/
|
|
134
|
-
export interface EventApplicationOptions {
|
|
135
|
-
/**
|
|
136
|
-
* Legacy compatibility flag preserved on schema-bearing event appliers.
|
|
137
|
-
*/
|
|
138
|
-
readonly allowImport?: boolean;
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Metadata for an event applier method.
|
|
142
|
-
*/
|
|
143
|
-
export interface EventApplicationHandlerMetadata<Schema extends DescriptorMessageSchema = DescriptorMessageSchema, MethodName extends string = string> extends BaseHandlerMetadata<"event-application", Schema, MethodName> {
|
|
144
|
-
/**
|
|
145
|
-
* Legacy compatibility flag preserved on schema-bearing event appliers.
|
|
146
|
-
*/
|
|
147
|
-
readonly allowImport: boolean;
|
|
148
|
-
}
|
|
149
148
|
/**
|
|
150
149
|
* Union of all explicit handler metadata records.
|
|
150
|
+
* @typeParam MethodName Type parameter for this declaration.
|
|
151
|
+
* @typeParam Schema Generated message schema type.
|
|
151
152
|
*/
|
|
152
|
-
export type HandlerMetadata<Schema extends DescriptorMessageSchema = DescriptorMessageSchema, MethodName extends string = string> = CommandAssignmentHandlerMetadata<Schema, MethodName> | CommandSubstitutionHandlerMetadata<Schema, MethodName> | CommandReactionHandlerMetadata<Schema, MethodName> | EventSubscriptionHandlerMetadata<Schema, MethodName> | StateSubscriptionHandlerMetadata<Schema, MethodName> | EventReactionHandlerMetadata<Schema, MethodName
|
|
153
|
+
export type HandlerMetadata<Schema extends DescriptorMessageSchema = DescriptorMessageSchema, MethodName extends string = string> = CommandAssignmentHandlerMetadata<Schema, MethodName> | CommandSubstitutionHandlerMetadata<Schema, MethodName> | CommandReactionHandlerMetadata<Schema, MethodName> | EventSubscriptionHandlerMetadata<Schema, MethodName> | StateSubscriptionHandlerMetadata<Schema, MethodName> | EventReactionHandlerMetadata<Schema, MethodName>;
|
|
153
154
|
/**
|
|
154
155
|
* Builder passed to `EntityHandlers.define()` for typed method-name registration.
|
|
155
156
|
*
|
|
156
157
|
* Builder methods accept the compile-time callable-name approximation, then
|
|
157
158
|
* validate that the selected name is an own prototype data method.
|
|
159
|
+
* @typeParam Instance Entity receiver type.
|
|
158
160
|
*/
|
|
159
161
|
export interface HandlerRegistrationBuilder<Instance extends object> {
|
|
160
162
|
/**
|
|
@@ -163,6 +165,7 @@ export interface HandlerRegistrationBuilder<Instance extends object> {
|
|
|
163
165
|
* @param schema Command schema accepted by the method.
|
|
164
166
|
* @param methodName Entity method name.
|
|
165
167
|
* @returns The registered command-assignment metadata.
|
|
168
|
+
* @typeParam Schema Generated message schema type.
|
|
166
169
|
*/
|
|
167
170
|
assign<Schema extends DescriptorMessageSchema>(schema: Schema, methodName: HandlerMethodName<Instance>): CommandAssignmentHandlerMetadata<Schema, HandlerMethodName<Instance>>;
|
|
168
171
|
/**
|
|
@@ -173,6 +176,7 @@ export interface HandlerRegistrationBuilder<Instance extends object> {
|
|
|
173
176
|
* @param methodName Entity method name.
|
|
174
177
|
* @returns Event-subscription metadata for signals, or state-subscription
|
|
175
178
|
* metadata for descriptor-marked Entity state schemas.
|
|
179
|
+
* @typeParam Schema Generated message schema type.
|
|
176
180
|
*/
|
|
177
181
|
subscribe<Schema extends DescriptorMessageSchema>(schema: Schema, methodName: HandlerMethodName<Instance>): EventSubscriptionHandlerMetadata<Schema, HandlerMethodName<Instance>> | StateSubscriptionHandlerMetadata<Schema, HandlerMethodName<Instance>>;
|
|
178
182
|
/**
|
|
@@ -181,22 +185,15 @@ export interface HandlerRegistrationBuilder<Instance extends object> {
|
|
|
181
185
|
* @param schema Event schema accepted by the method.
|
|
182
186
|
* @param methodName Entity method name.
|
|
183
187
|
* @returns The registered event-reaction metadata.
|
|
188
|
+
* @typeParam Schema Generated message schema type.
|
|
184
189
|
*/
|
|
185
190
|
react<Schema extends DescriptorMessageSchema>(schema: Schema, methodName: HandlerMethodName<Instance>): EventReactionHandlerMetadata<Schema, HandlerMethodName<Instance>>;
|
|
186
|
-
/**
|
|
187
|
-
* Registers an event applier method.
|
|
188
|
-
*
|
|
189
|
-
* @param schema Event schema accepted by the method.
|
|
190
|
-
* @param methodName Entity method name.
|
|
191
|
-
* @param options Legacy event-application options.
|
|
192
|
-
* @returns The registered event-application metadata.
|
|
193
|
-
*/
|
|
194
|
-
apply<Schema extends DescriptorMessageSchema>(schema: Schema, methodName: HandlerMethodName<Instance>, options?: EventApplicationOptions): EventApplicationHandlerMetadata<Schema, HandlerMethodName<Instance>>;
|
|
195
191
|
}
|
|
196
192
|
/**
|
|
197
193
|
* Registers generated command substitution metadata during registry ingestion.
|
|
198
194
|
*
|
|
199
195
|
* @internal
|
|
196
|
+
* @typeParam Instance Entity receiver type.
|
|
200
197
|
*/
|
|
201
198
|
export interface GeneratedHandlerRegistrationBuilder<Instance extends object> extends HandlerRegistrationBuilder<Instance> {
|
|
202
199
|
/**
|
|
@@ -205,6 +202,7 @@ export interface GeneratedHandlerRegistrationBuilder<Instance extends object> ex
|
|
|
205
202
|
* @param schema Generated command input schema.
|
|
206
203
|
* @param methodName Process Manager method selected by generated metadata.
|
|
207
204
|
* @returns Generated command-substitution handler metadata.
|
|
205
|
+
* @typeParam Schema Generated message schema type.
|
|
208
206
|
*/
|
|
209
207
|
substitute<Schema extends DescriptorMessageSchema>(schema: Schema, methodName: HandlerMethodName<Instance>): CommandSubstitutionHandlerMetadata<Schema, HandlerMethodName<Instance>>;
|
|
210
208
|
/**
|
|
@@ -213,11 +211,14 @@ export interface GeneratedHandlerRegistrationBuilder<Instance extends object> ex
|
|
|
213
211
|
* @param schema Generated Event or rejection input schema.
|
|
214
212
|
* @param methodName Process Manager method selected by generated metadata.
|
|
215
213
|
* @returns Generated command-reaction handler metadata.
|
|
214
|
+
* @typeParam Schema Generated message schema type.
|
|
216
215
|
*/
|
|
217
216
|
command<Schema extends DescriptorMessageSchema>(schema: Schema, methodName: HandlerMethodName<Instance>): CommandReactionHandlerMetadata<Schema, HandlerMethodName<Instance>>;
|
|
218
217
|
}
|
|
219
218
|
/**
|
|
220
219
|
* Frozen handler metadata for one explicitly registered entity class.
|
|
220
|
+
* @typeParam Instance Entity receiver type.
|
|
221
|
+
* @typeParam StateSchema Generated message schema type.
|
|
221
222
|
*/
|
|
222
223
|
export interface EntityHandlersMetadata<Instance extends object = object, StateSchema extends DescriptorMessageSchema = DescriptorMessageSchema> {
|
|
223
224
|
/**
|
|
@@ -256,15 +257,11 @@ export interface EntityHandlersMetadata<Instance extends object = object, StateS
|
|
|
256
257
|
* Event reactors in declaration order.
|
|
257
258
|
*/
|
|
258
259
|
readonly eventReactions: readonly EventReactionHandlerMetadata[];
|
|
259
|
-
/**
|
|
260
|
-
* Event appliers in declaration order.
|
|
261
|
-
*/
|
|
262
|
-
readonly eventApplications: readonly EventApplicationHandlerMetadata[];
|
|
263
260
|
}
|
|
264
261
|
/**
|
|
265
262
|
* Error code for handler metadata registry validation failures.
|
|
266
263
|
*/
|
|
267
|
-
export type HandlerRegistryErrorCode = "DUPLICATE_COMMAND_ASSIGNMENT"
|
|
264
|
+
export type HandlerRegistryErrorCode = "DUPLICATE_COMMAND_ASSIGNMENT";
|
|
268
265
|
/**
|
|
269
266
|
* Error thrown when a caller-owned handler metadata registry rejects metadata.
|
|
270
267
|
*/
|
|
@@ -283,6 +280,7 @@ export declare class HandlerMetadataRegistryError extends Error {
|
|
|
283
280
|
}
|
|
284
281
|
/**
|
|
285
282
|
* A handler metadata record paired with the entity metadata that declared it.
|
|
283
|
+
* @typeParam Handler Handler metadata type.
|
|
286
284
|
*/
|
|
287
285
|
export interface RegisteredHandlerMetadata<Handler extends HandlerMetadata = HandlerMetadata> {
|
|
288
286
|
/**
|
|
@@ -330,6 +328,7 @@ export interface HandlerMetadataRegistryLookup {
|
|
|
330
328
|
*
|
|
331
329
|
* @param kind Handler role.
|
|
332
330
|
* @returns Matching entries in registration and declaration order.
|
|
331
|
+
* @typeParam Kind Handler role type.
|
|
333
332
|
*/
|
|
334
333
|
findHandlersByKind<Kind extends HandlerKind>(kind: Kind): readonly RegisteredHandlerMetadata<Extract<HandlerMetadata, {
|
|
335
334
|
readonly kind: Kind;
|
|
@@ -348,14 +347,6 @@ export interface HandlerMetadataRegistryLookup {
|
|
|
348
347
|
* @returns The assignment when registered.
|
|
349
348
|
*/
|
|
350
349
|
findCommandAssignment(commandTypeName: string): RegisteredHandlerMetadata<CommandAssignmentHandlerMetadata> | undefined;
|
|
351
|
-
/**
|
|
352
|
-
* Finds the unique event applier for a state and event type.
|
|
353
|
-
*
|
|
354
|
-
* @param stateTypeName Fully qualified entity state type name.
|
|
355
|
-
* @param eventTypeName Fully qualified event type name.
|
|
356
|
-
* @returns The applier when registered.
|
|
357
|
-
*/
|
|
358
|
-
findEventApplication(stateTypeName: string, eventTypeName: string): RegisteredHandlerMetadata<EventApplicationHandlerMetadata> | undefined;
|
|
359
350
|
}
|
|
360
351
|
/**
|
|
361
352
|
* Caller-owned registry for lookup-only handler metadata and duplicate validation.
|
|
@@ -366,11 +357,13 @@ export declare class HandlerMetadataRegistry implements HandlerMetadataRegistryL
|
|
|
366
357
|
* Creates a caller-owned registry and optionally registers metadata.
|
|
367
358
|
*
|
|
368
359
|
* @param entityHandlers Entity metadata to register in iteration order.
|
|
360
|
+
* @typeParam Metadata Type parameter for this declaration.
|
|
369
361
|
*/
|
|
370
362
|
constructor(entityHandlers?: Iterable<EntityHandlersMetadata>);
|
|
371
363
|
/**
|
|
372
364
|
* Registers one entity handler metadata object.
|
|
373
365
|
*
|
|
366
|
+
* @typeParam Metadata Concrete Entity handler metadata type.
|
|
374
367
|
* @param metadata Entity handler metadata to register.
|
|
375
368
|
* @returns The registered metadata unchanged.
|
|
376
369
|
*/
|
|
@@ -397,6 +390,7 @@ export declare class HandlerMetadataRegistry implements HandlerMetadataRegistryL
|
|
|
397
390
|
/**
|
|
398
391
|
* Finds handler entries by handler role.
|
|
399
392
|
*
|
|
393
|
+
* @typeParam Kind Handler role being selected.
|
|
400
394
|
* @param kind Handler role.
|
|
401
395
|
* @returns Matching entries in registration and declaration order.
|
|
402
396
|
*/
|
|
@@ -424,14 +418,6 @@ export declare class HandlerMetadataRegistry implements HandlerMetadataRegistryL
|
|
|
424
418
|
* @returns The receptor when registered.
|
|
425
419
|
*/
|
|
426
420
|
findCommandReceptor(commandTypeName: string): RegisteredHandlerMetadata<CommandAssignmentHandlerMetadata | CommandSubstitutionHandlerMetadata> | undefined;
|
|
427
|
-
/**
|
|
428
|
-
* Finds the unique event applier for a state and event type.
|
|
429
|
-
*
|
|
430
|
-
* @param stateTypeName Fully qualified entity state type name.
|
|
431
|
-
* @param eventTypeName Fully qualified event type name.
|
|
432
|
-
* @returns The applier when registered.
|
|
433
|
-
*/
|
|
434
|
-
findEventApplication(stateTypeName: string, eventTypeName: string): RegisteredHandlerMetadata<EventApplicationHandlerMetadata> | undefined;
|
|
435
421
|
}
|
|
436
422
|
/**
|
|
437
423
|
* Framework-owned arity override for generated handler metadata ingestion.
|
|
@@ -441,7 +427,7 @@ export interface HandlerArity {
|
|
|
441
427
|
/**
|
|
442
428
|
* Handler role whose public arity is being preserved.
|
|
443
429
|
*/
|
|
444
|
-
readonly kind:
|
|
430
|
+
readonly kind: HandlerKind;
|
|
445
431
|
/**
|
|
446
432
|
* Entity instance method name selected by generated metadata.
|
|
447
433
|
*/
|
|
@@ -475,6 +461,8 @@ declare class EntityHandlersOwner {
|
|
|
475
461
|
* @param stateSchema Generated schema for the entity state.
|
|
476
462
|
* @param define Callback that registers handlers with the builder.
|
|
477
463
|
* @returns Frozen metadata for the entity class.
|
|
464
|
+
* @typeParam Instance Entity receiver type.
|
|
465
|
+
* @typeParam StateSchema Generated message schema type.
|
|
478
466
|
*/
|
|
479
467
|
define<Instance extends object, StateSchema extends DescriptorMessageSchema>(entityType: EntityClass<Instance>, stateSchema: StateSchema, define: (builder: HandlerRegistrationBuilder<Instance>) => readonly HandlerMetadata<DescriptorMessageSchema, HandlerMethodName<Instance>>[]): EntityHandlersMetadata<Instance, StateSchema>;
|
|
480
468
|
/**
|
|
@@ -507,6 +495,8 @@ declare class EntityHandlersOwner {
|
|
|
507
495
|
* @param source Source handler metadata.
|
|
508
496
|
* @param target Cloned target handler metadata.
|
|
509
497
|
* @internal
|
|
498
|
+
* @typeParam Instance Entity receiver type.
|
|
499
|
+
* @typeParam StateSchema Generated message schema type.
|
|
510
500
|
*/
|
|
511
501
|
copyOutcomes(source: HandlerMetadata, target: HandlerMetadata): void;
|
|
512
502
|
/**
|
|
@@ -518,8 +508,16 @@ declare class EntityHandlersOwner {
|
|
|
518
508
|
* @param arities Generated arity metadata.
|
|
519
509
|
* @returns Frozen metadata for the entity class.
|
|
520
510
|
* @internal
|
|
511
|
+
* @typeParam Instance Entity receiver type.
|
|
512
|
+
* @typeParam StateSchema Generated message schema type.
|
|
521
513
|
*/
|
|
522
514
|
defineArity<Instance extends object, StateSchema extends DescriptorMessageSchema>(entityType: EntityClass<Instance>, stateSchema: StateSchema, define: (builder: GeneratedHandlerRegistrationBuilder<Instance>) => readonly HandlerMetadata<DescriptorMessageSchema, HandlerMethodName<Instance>>[], arities: Iterable<HandlerArity>): EntityHandlersMetadata<Instance, StateSchema>;
|
|
515
|
+
/**
|
|
516
|
+
* Builds a frozen copy of generated outcome schemas.
|
|
517
|
+
*
|
|
518
|
+
* @param outcomes Outcome schemas to copy.
|
|
519
|
+
* @returns Frozen outcome schemas.
|
|
520
|
+
*/
|
|
523
521
|
static freezeOutcomes(outcomes: HandlerOutcomeSchemas): HandlerOutcomeSchemas;
|
|
524
522
|
}
|
|
525
523
|
/**
|
|
@@ -534,6 +532,8 @@ interface EntityHandlerDefinitions {
|
|
|
534
532
|
/**
|
|
535
533
|
* Creates handler metadata without invoking entity methods.
|
|
536
534
|
*
|
|
535
|
+
* @typeParam Instance Entity receiver type.
|
|
536
|
+
* @typeParam StateSchema Generated Entity state schema type.
|
|
537
537
|
* @param entityType Entity class whose prototype owns the methods.
|
|
538
538
|
* @param stateSchema Generated schema for the entity state.
|
|
539
539
|
* @param define Callback that registers handlers with the builder.
|
|
@@ -543,6 +543,8 @@ interface EntityHandlerDefinitions {
|
|
|
543
543
|
}
|
|
544
544
|
/**
|
|
545
545
|
* Defines metadata for explicitly registered entity handlers.
|
|
546
|
+
* @typeParam Instance Entity receiver type.
|
|
547
|
+
* @typeParam StateSchema Generated message schema type.
|
|
546
548
|
*/
|
|
547
549
|
export declare const EntityHandlers: Readonly<EntityHandlerDefinitions>;
|
|
548
550
|
interface HandlerOutcomeSchemas {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler-metadata.d.ts","sourceRoot":"","sources":["../../src/handler/handler-metadata.ts"],"names":[],"mappings":"AAc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