@cratis/chronicle 6.8.0 → 6.9.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.
@@ -1 +1 @@
1
- {"version":3,"file":"Reactors.d.ts","sourceRoot":"","sources":["../../reactors/Reactors.ts"],"names":[],"mappings":"AAGA,OAAO,kBAAkB,CAAC;AAI1B,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAM3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAEhE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAwEtE;;;GAGG;AACH,qBAAa,QAAS,YAAW,SAAS;IAoBlC,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,UAAU;IAE3B,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC;IAzBpC,iFAAiF;IACjF,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,iBAAiB,CAAQ;IAEjD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA2E;IACnG,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAsB;IACjD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAkC;IAC5D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAiD;IACzE,OAAO,CAAC,WAAW,CAAS;IAE5B;;;;;;;;OAQG;IACH,YACqB,gBAAgB,EAAE,wBAAwB,EAC1C,WAAW,EAAE,mBAAmB,EAChC,eAAe,EAAE,M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,CAAC,OAAO,CAA2E;IACnG,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAsB;IACjD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAkC;IAC5D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAiD;IACzE,OAAO,CAAC,WAAW,CAAS;IAE5B;;;;;;;;OAQG;IACH,YACqB,gBAAgB,EAAE,wBAAwB,EAC1C,WAAW,EAAE,mBAAmB,EAChC,eAAe,EAAE,MAAM,EACvB,UAAU,EAAE,MAAM,EACnC,SAAS,EAAE,mBAAmB,EACb,SAAS,EAAE,SAAS,EACpB,cAAc,CAAC,EAAE,oBAAoB,YAAA,EAQzD;IAED,kBAAkB;IACZ,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAS9B;IAED,kBAAkB;IACZ,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAe9B;IAED,OAAO,CAAC,gBAAgB;YAeV,cAAc;IAe5B;;;;;;;;OAQG;IACH,OAAO,CAAC,iBAAiB;YAmBX,cAAc;IA6I5B,OAAO,CAAC,gBAAgB;IA2DxB,OAAO,CAAC,aAAa;CAMxB"}
@@ -2,7 +2,7 @@
2
2
  // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
3
  import 'reflect-metadata';
4
4
  import { diag } from '@opentelemetry/api';
5
- import { ObservationState } from '@cratis/chronicle.contracts';
5
+ import { EventObservationState, ObservationState } from '@cratis/chronicle.contracts';
6
6
  import { getEventTypeMetadata } from '../events/eventTypeDecorator.js';
7
7
  import { toClientEventContext } from '../events/toClientEventContext.js';
8
8
  import { getTagsFor } from '../events/tagDecorator.js';
@@ -11,6 +11,8 @@ import { EventSequenceId } from '../eventSequences/EventSequenceId.js';
11
11
  import { notifyReplayLifecycle } from '../observation/notifyReplayLifecycle.js';
12
12
  import { dispatchReactorSideEffects } from './ReactorSideEffects.js';
13
13
  import { getReactorMetadata } from './reactor.js';
14
+ import { isOnceOnly } from './onceOnly.js';
15
+ import { getReplayEventType } from './replay.js';
14
16
  /** Expression used to partition reactor observations by event source ID. */
15
17
  const EVENT_SOURCE_ID_KEY = '$eventSourceId';
16
18
  /** Sentinel sequence number sent back when no event was successfully processed. */
@@ -198,7 +200,7 @@ export class Reactors {
198
200
  EventType: { Id: et.id, Generation: et.generation, Tombstone: false },
199
201
  Key: EVENT_SOURCE_ID_KEY
200
202
  })),
201
- IsReplayable: false,
203
+ IsReplayable: !isOnceOnly(reactorType),
202
204
  Tags: getTagsFor(reactorType).map(t => t.value),
203
205
  Filters: {
204
206
  FilterTags: getFilterTagsFor(reactorType).map(t => t.value),
@@ -241,7 +243,19 @@ export class Reactors {
241
243
  }
242
244
  const entry = eventTypes.find(et => et.id === eventTypeId);
243
245
  if (!entry) {
244
- this._logger.debug('No handler registered for event type — skipping', { reactorId: id, eventTypeId });
246
+ this._logger.debug('No reactor handler found', { reactorId: id, eventTypeId });
247
+ lastSuccessfullyObservedEvent = event.Context.SequenceNumber;
248
+ continue;
249
+ }
250
+ const isReplay = (event.Context.ObservationState & EventObservationState.Replay) !== 0;
251
+ const methodName = isReplay ? (entry.replayMethodName ?? entry.methodName) : entry.methodName;
252
+ if (!methodName || (isReplay && isOnceOnly(reactorInstance[methodName]))) {
253
+ if (isReplay && methodName && isOnceOnly(reactorInstance[methodName])) {
254
+ this._logger.debug('Reactor handler skipped for replay', { reactorId: id, eventTypeId, method: methodName });
255
+ }
256
+ else {
257
+ this._logger.debug('No reactor handler found', { reactorId: id, eventTypeId, isReplay });
258
+ }
245
259
  lastSuccessfullyObservedEvent = event.Context.SequenceNumber;
246
260
  continue;
247
261
  }
@@ -250,11 +264,11 @@ export class Reactors {
250
264
  const context = toClientEventContext(event.Context);
251
265
  this._logger.info('Invoking reactor handler', {
252
266
  reactorId: id,
253
- method: entry.methodName,
267
+ method: methodName,
254
268
  sequenceNumber: event.Context.SequenceNumber.toString(),
255
269
  eventTypeId
256
270
  });
257
- const handlerResult = await reactorInstance[entry.methodName](content, context);
271
+ const handlerResult = await reactorInstance[methodName](content, context);
258
272
  await dispatchReactorSideEffects(this._eventLog, handlerResult, context, reactorType, this._eventStoreName, this._namespace, this._resultHandler);
259
273
  lastSuccessfullyObservedEvent = event.Context.SequenceNumber;
260
274
  }
@@ -300,17 +314,54 @@ export class Reactors {
300
314
  getEventTypesFor(reactorType) {
301
315
  const proto = reactorType.prototype;
302
316
  const entries = [];
317
+ const replayHandlers = new Map();
318
+ const eventTypes = new Map();
303
319
  for (const eventTypeClass of this._clientArtifacts.eventTypes) {
304
- const eventTypeMeta = getEventTypeMetadata(eventTypeClass);
305
- if (!eventTypeMeta)
306
- continue;
307
- const className = eventTypeClass.name;
320
+ const metadata = getEventTypeMetadata(eventTypeClass);
321
+ if (metadata) {
322
+ eventTypes.set(eventTypeClass.name, {
323
+ eventTypeClass: eventTypeClass,
324
+ id: metadata.eventType.id.value,
325
+ generation: metadata.eventType.generation.value
326
+ });
327
+ }
328
+ }
329
+ // A derived method shadows a base method of the same name, even if it is not marked for replay.
330
+ const seenMethods = new Set();
331
+ for (let current = proto; current && current !== Object.prototype; current = Object.getPrototypeOf(current)) {
332
+ for (const name of Object.getOwnPropertyNames(current)) {
333
+ if (seenMethods.has(name))
334
+ continue;
335
+ seenMethods.add(name);
336
+ const method = current[name];
337
+ if (typeof method !== 'function')
338
+ continue;
339
+ const replayEventType = getReplayEventType(method);
340
+ if (replayEventType === undefined)
341
+ continue;
342
+ const eventType = replayEventType === true
343
+ ? eventTypes.get(name.startsWith('replay') ? name.slice('replay'.length) : '')
344
+ : [...eventTypes.values()].find(candidate => candidate.eventTypeClass === replayEventType);
345
+ if (!eventType) {
346
+ throw new Error(`Replay handler '${name}' on reactor '${reactorType.name}' has no registered event type.`);
347
+ }
348
+ if (replayHandlers.has(eventType.id)) {
349
+ throw new Error(`Reactor '${reactorType.name}' has multiple replay handlers for event type '${eventType.id}': '${replayHandlers.get(eventType.id)}' and '${name}'.`);
350
+ }
351
+ replayHandlers.set(eventType.id, name);
352
+ }
353
+ }
354
+ for (const [className, eventType] of eventTypes) {
308
355
  const methodName = className.charAt(0).toLowerCase() + className.slice(1);
309
- if (typeof proto[methodName] === 'function') {
356
+ const liveMethod = proto[methodName];
357
+ const liveMethodName = typeof liveMethod === 'function' && getReplayEventType(liveMethod) === undefined ? methodName : undefined;
358
+ const replayMethodName = replayHandlers.get(eventType.id);
359
+ if (liveMethodName || replayMethodName) {
310
360
  entries.push({
311
- id: eventTypeMeta.eventType.id.value,
312
- generation: eventTypeMeta.eventType.generation.value,
313
- methodName
361
+ id: eventType.id,
362
+ generation: eventType.generation,
363
+ methodName: liveMethodName,
364
+ replayMethodName
314
365
  });
315
366
  }
316
367
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Reactors.js","sourceRoot":"","sources":["../../reactors/Reactors.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAkB,MAAM,6BAA6B,CAAC;AAI/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAEvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAEhF,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGlD,4EAA4E;AAC5E,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;AAE7C,mFAAmF;AACnF,MAAM,2BAA2B,GAAG,WAAW,CAAC;AAQhD;;;;GAIG;AACH,MAAM,UAAU;IACK,M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D,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACzB,CAAC;CACJ"}
@@ -1,5 +1,7 @@
1
1
  export { ReactorId } from './ReactorId.js';
2
2
  export { reactor, getReactorMetadata, isReactor } from './reactor.js';
3
+ export { onceOnly } from './onceOnly.js';
4
+ export { replay } from './replay.js';
3
5
  export type { ReactorMetadata } from './reactor.js';
4
6
  export type { IReactors } from './IReactors.js';
5
7
  export { Reactors } from './Reactors.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../reactors/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACtE,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,YAAY,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../reactors/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,YAAY,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC"}
@@ -2,5 +2,7 @@
2
2
  // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
3
  export { ReactorId } from './ReactorId.js';
4
4
  export { reactor, getReactorMetadata, isReactor } from './reactor.js';
5
+ export { onceOnly } from './onceOnly.js';
6
+ export { replay } from './replay.js';
5
7
  export { Reactors } from './Reactors.js';
6
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../reactors/index.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGtE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../reactors/index.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAGrC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,11 @@
1
+ import 'reflect-metadata';
2
+ /**
3
+ * Reactors replay by default. Excludes a whole reactor from replay, or skips one
4
+ * handler for replayed events. A class-level marker is not inherited by subclasses.
5
+ * This does not prevent ordinary redelivery after a failed partition is retried.
6
+ * @returns A class or method decorator for legacy and standard TypeScript decorators.
7
+ */
8
+ export declare function onceOnly(): ClassDecorator & MethodDecorator & ((value: Function, context: ClassDecoratorContext | ClassMethodDecoratorContext) => void);
9
+ /** Whether this class or handler is marked as once-only (without inheriting the marker). */
10
+ export declare function isOnceOnly(target: Function): boolean;
11
+ //# sourceMappingURL=onceOnly.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onceOnly.d.ts","sourceRoot":"","sources":["../../reactors/onceOnly.ts"],"names":[],"mappings":"AAGA,OAAO,kBAAkB,CAAC;AAI1B;;;;;GAKG;AACH,wBAAgB,QAAQ,IAAI,cAAc,GAAG,eAAe,GAAG,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,qBAAqB,GAAG,2BAA2B,KAAK,IAAI,CAAC,CAevJ;AAED,4FAA4F;AAC5F,wBAAgB,UAAU,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO,CAEpD"}
@@ -0,0 +1,34 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+ import 'reflect-metadata';
4
+ const METADATA_KEY = 'chronicle:reactor:onceOnly';
5
+ /**
6
+ * Reactors replay by default. Excludes a whole reactor from replay, or skips one
7
+ * handler for replayed events. A class-level marker is not inherited by subclasses.
8
+ * This does not prevent ordinary redelivery after a failed partition is retried.
9
+ * @returns A class or method decorator for legacy and standard TypeScript decorators.
10
+ */
11
+ export function onceOnly() {
12
+ return (target, propertyOrContext, descriptor) => {
13
+ if (typeof propertyOrContext === 'object') {
14
+ if (propertyOrContext.kind !== 'class' && propertyOrContext.kind !== 'method') {
15
+ throw new TypeError('Once-only can only decorate a reactor class or method.');
16
+ }
17
+ Reflect.defineMetadata(METADATA_KEY, true, target);
18
+ }
19
+ else if (propertyOrContext === undefined) {
20
+ Reflect.defineMetadata(METADATA_KEY, true, target);
21
+ }
22
+ else if (descriptor?.value) {
23
+ Reflect.defineMetadata(METADATA_KEY, true, descriptor.value);
24
+ }
25
+ else {
26
+ throw new TypeError('Once-only can only decorate a reactor class or method.');
27
+ }
28
+ };
29
+ }
30
+ /** Whether this class or handler is marked as once-only (without inheriting the marker). */
31
+ export function isOnceOnly(target) {
32
+ return Reflect.getOwnMetadata(METADATA_KEY, target) === true;
33
+ }
34
+ //# sourceMappingURL=onceOnly.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onceOnly.js","sourceRoot":"","sources":["../../reactors/onceOnly.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,kBAAkB,CAAC;AAE1B,MAAM,YAAY,GAAG,4BAA4B,CAAC;AAElD;;;;;GAKG;AACH,MAAM,UAAU,QAAQ;IACpB,OAAO,CAAC,MAAc,EAAE,iBAAyF,EAAE,UAA+B,EAAE,EAAE;QAClJ,IAAI,OAAO,iBAAiB,KAAK,QAAQ,EAAE,CAAC;YACxC,IAAI,iBAAiB,CAAC,IAAI,KAAK,OAAO,IAAI,iBAAiB,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;gBAC5E,MAAM,IAAI,SAAS,CAAC,wDAAwD,CAAC,CAAC;YAClF,CAAC;YACD,OAAO,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;QACvD,CAAC;aAAM,IAAI,iBAAiB,KAAK,SAAS,EAAE,CAAC;YACzC,OAAO,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;QACvD,CAAC;aAAM,IAAI,UAAU,EAAE,KAAK,EAAE,CAAC;YAC3B,OAAO,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;QACjE,CAAC;aAAM,CAAC;YACJ,MAAM,IAAI,SAAS,CAAC,wDAAwD,CAAC,CAAC;QAClF,CAAC;IACL,CAAC,CAAC;AACN,CAAC;AAED,4FAA4F;AAC5F,MAAM,UAAU,UAAU,CAAC,MAAgB;IACvC,OAAO,OAAO,CAAC,cAAc,CAAC,YAAY,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;AACjE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import 'reflect-metadata';
2
+ /**
3
+ * Marks a method as the alternative handler for an event during replay.
4
+ * Without an explicit event type, name the method `replay<EventClassName>`.
5
+ * The regular camelCase handler continues to handle live events, but this method replaces
6
+ * it during replay. Marking this replay handler with @onceOnly() means neither handler
7
+ * runs for replayed events.
8
+ * @param eventType - Optional event constructor for a differently named replay handler.
9
+ * @returns A method decorator for legacy and standard TypeScript decorators.
10
+ */
11
+ export declare function replay(eventType?: Function): MethodDecorator & ((value: Function, context: ClassMethodDecoratorContext) => void);
12
+ /** Gets the explicit event type, or the convention marker, for a replay handler. */
13
+ export declare function getReplayEventType(method: Function): Function | true | undefined;
14
+ //# sourceMappingURL=replay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replay.d.ts","sourceRoot":"","sources":["../../reactors/replay.ts"],"names":[],"mappings":"AAGA,OAAO,kBAAkB,CAAC;AAI1B;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CAAC,SAAS,CAAC,EAAE,QAAQ,GAAG,eAAe,GAAG,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,2BAA2B,KAAK,IAAI,CAAC,CAchI;AAED,oFAAoF;AACpF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,QAAQ,GAAG,QAAQ,GAAG,IAAI,GAAG,SAAS,CAEhF"}
@@ -0,0 +1,33 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+ import 'reflect-metadata';
4
+ const METADATA_KEY = 'chronicle:reactor:replay';
5
+ /**
6
+ * Marks a method as the alternative handler for an event during replay.
7
+ * Without an explicit event type, name the method `replay<EventClassName>`.
8
+ * The regular camelCase handler continues to handle live events, but this method replaces
9
+ * it during replay. Marking this replay handler with @onceOnly() means neither handler
10
+ * runs for replayed events.
11
+ * @param eventType - Optional event constructor for a differently named replay handler.
12
+ * @returns A method decorator for legacy and standard TypeScript decorators.
13
+ */
14
+ export function replay(eventType) {
15
+ return (target, propertyOrContext, descriptor) => {
16
+ const method = typeof propertyOrContext === 'object' ? target : descriptor?.value;
17
+ if (typeof propertyOrContext === 'object' && (propertyOrContext.kind !== 'method' || propertyOrContext.static || propertyOrContext.private)) {
18
+ throw new TypeError('Replay requires a public instance method.');
19
+ }
20
+ if (typeof propertyOrContext !== 'object' && typeof target === 'function') {
21
+ throw new TypeError('Replay requires a public instance method.');
22
+ }
23
+ if (typeof method !== 'function') {
24
+ throw new TypeError('Replay requires a method.');
25
+ }
26
+ Reflect.defineMetadata(METADATA_KEY, eventType ?? true, method);
27
+ };
28
+ }
29
+ /** Gets the explicit event type, or the convention marker, for a replay handler. */
30
+ export function getReplayEventType(method) {
31
+ return Reflect.getOwnMetadata(METADATA_KEY, method);
32
+ }
33
+ //# sourceMappingURL=replay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replay.js","sourceRoot":"","sources":["../../reactors/replay.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,kBAAkB,CAAC;AAE1B,MAAM,YAAY,GAAG,0BAA0B,CAAC;AAEhD;;;;;;;;GAQG;AACH,MAAM,UAAU,MAAM,CAAC,SAAoB;IACvC,OAAO,CAAC,MAAc,EAAE,iBAAgE,EAAE,UAA+B,EAAE,EAAE;QACzH,MAAM,MAAM,GAAG,OAAO,iBAAiB,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,EAAE,KAAK,CAAC;QAClF,IAAI,OAAO,iBAAiB,KAAK,QAAQ,IAAI,CAAC,iBAAiB,CAAC,IAAI,KAAK,QAAQ,IAAI,iBAAiB,CAAC,MAAM,IAAI,iBAAiB,CAAC,OAAO,CAAC,EAAE,CAAC;YAC1I,MAAM,IAAI,SAAS,CAAC,2CAA2C,CAAC,CAAC;QACrE,CAAC;QACD,IAAI,OAAO,iBAAiB,KAAK,QAAQ,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE,CAAC;YACxE,MAAM,IAAI,SAAS,CAAC,2CAA2C,CAAC,CAAC;QACrE,CAAC;QACD,IAAI,OAAO,MAAM,KAAK,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CAAC,UAAU,EAAE,aAAa,EAAE,WAAW,CAAC,UAAU,CAAC,EAAE,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAmB3G;IAED,kBAAkB;IACZ,WAAW,CAAC,UAAU,EAAE,aAAa,EAAE,WAAW,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAGpH;YAEa,wBAAwB;IAStC,OAAO,CAAC,iBAAiB;IAwEzB,OAAO,CAAC,WAAW;IASnB,OAAO,CAAC,gBAAgB;IASxB,OAAO,CAAC,YAAY;IAuBpB,OAAO,CAAC,kBAAkB;IAS1B,OAAO,CAAC,oBAAoB;IAO5B,OAAO,CAAC,2BAA2B;IAenC,OAAO,CAAC,cAAc;CAOzB"}
@@ -135,6 +135,9 @@ export class ReadModels {
135
135
  ReadModelIdentifier: readModel.identifier,
136
136
  EventSequenceId: readModel.eventSequenceId
137
137
  })) {
138
+ if (changeset.Subscribed) {
139
+ continue;
140
+ }
138
141
  const instance = this.deserializeReadModel(readModelType, changeset.ReadModel);
139
142
  const requiresRelease = !changeset.Removed && readModel.observerType === ContractReadModelObserverType.Reducer &&
140
143
  this.schemaHasComplianceMetadata(readModel.schema);
@@ -1 +1 @@
1
- {"version":3,"file":"ReadModels.js","sourceRoot":"","sources":["../../readModels/ReadModels.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAMrG,OAAO,EACH,qBAAqB,IAAI,6BAA6B,EACzD,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C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IAAI,EAAE,CAAC;YACR,OAAO,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,SAAS,CAAe,CAAC;QAChE,CAAC;QACD,OAAO,cAAc,CAAC,WAAW,CAAC,aAAoC,EAAE,IAAI,CAAe,CAAC;IAChG,CAAC;IAEO,2BAA2B,CAAC,MAAc;QAC9C,IAAI,CAAC;YACD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAA4B,CAAC;YAC7D,MAAM,UAAU,GAAG,MAAM,CAAC,UAAiE,CAAC;YAC5F,IAAI,CAAC,UAAU,EAAE,CAAC;gBACd,OAAO,KAAK,CAAC;YACjB,CAAC;YACD,OAAO,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,IAAI,CACjC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAK,QAAQ,CAAC,UAAwB,CAAC,MAAM,GAAG,CAAC,CAClG,CAAC;QACN,CAAC;QAAC,MAAM,CAAC;YACL,OAAO,KAAK,CAAC;QACjB,CAAC;IACL,CAAC;IAEO,cAAc,CAAa,aAAsC,EAAE,QAAoB;QAC3F,MAAM,OAAO,GAAG,wBAAwB,CAAC,WAAW,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;QAC9E,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO,OAAO,CAAC;QACnB,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,gIAAgI,CAAC,CAAC;IACtJ,CAAC;CACJ"}
@@ -1 +1 @@
1
- {"version":"7.0.2","root":["../ChronicleClient.ts","../ChronicleOptions.ts","../EventStore.ts","../EventStoreName.ts","../EventStoreNamespaceName.ts","../IChronicleClient.ts","../IEventStore.ts","../Metrics.ts","../Tracing.ts","../index.ts","../artifacts/DefaultClientArtifactsProvider.ts","../artifacts/IClientArtifactsProvider.ts","../artifacts/index.ts","../artifacts/validateArtifactSchemas.ts","../auditing/Causation.ts","../auditing/CausationManager.ts","../auditing/CausationType.ts","../auditing/ICausationManager.ts","../auditing/index.ts","../compliance/ComplianceContracts.ts","../compliance/ComplianceMetadata.ts","../compliance/ComplianceMetadataResolver.ts","../compliance/ComplianceMetadataType.ts","../compliance/IPIIManager.ts","../compliance/PIIManager.ts","../compliance/PIINotSupportedOnEventSourceId.ts","../compliance/index.ts","../compliance/pii.ts","../compliance/subject.ts","../confidentiality/EncryptedNotSupportedOnEventSourceId.ts","../confidentiality/EncryptionScope.ts","../confidentiality/PIIAndEncryptedCombinedNotSupported.ts","../confidentiality/SecurityMetadata.ts","../confidentiality/SecurityMetadataResolver.ts","../confidentiality/SecurityMetadataType.ts","../confidentiality/encrypted.ts","../confidentiality/index.ts","../connection/ChronicleConnection.ts","../connection/ChronicleConnectionString.ts","../connection/ChronicleServerAddressResolver.ts","../connection/ChronicleServices.ts","../connection/ChronicleSrvResolutionError.ts","../connection/ChronicleSrvResolver.ts","../connection/CompatibilityPreflight.ts","../connection/ConnectionLifecycle.ts","../connection/DateTimeOffset.ts","../connection/Guid.ts","../connection/ILoadBalancerStrategy.ts","../connection/IncompatibleChronicleServer.ts","../connection/KernelKeepAlive.ts","../connection/LeastConnectionsLoadBalancerStrategy.ts","../connection/LoadBalancerMode.ts","../connection/LoadBalancerStrategyFactory.ts","../connection/RandomLoadBalancerStrategy.ts","../connection/RoundRobinLoadBalancerStrategy.ts","../connection/TokenProvider.ts","../connection/callResults.ts","../connection/fetchOAuthAccessToken.ts","../connection/formatServerAddress.ts","../connection/index.ts","../correlation/CorrelationId.ts","../correlation/CorrelationIdManager.ts","../correlation/ICorrelationIdAccessor.ts","../correlation/ICorrelationIdSetter.ts","../correlation/index.ts","../eventSequences/AppendError.ts","../eventSequences/AppendOperationsBroadcaster.ts","../eventSequences/AppendOptions.ts","../eventSequences/AppendResult.ts","../eventSequences/AppendedEventWithResult.ts","../eventSequences/CompleteStreamError.ts","../eventSequences/CompleteStreamResult.ts","../eventSequences/ConcurrencyScope.ts","../eventSequences/ConcurrencyViolation.ts","../eventSequences/ConstraintViolation.ts","../eventSequences/EventForEventSourceId.ts","../eventSequences/EventLog.ts","../eventSequences/EventSequence.ts","../eventSequences/EventSequenceId.ts","../eventSequences/EventSequenceNumber.ts","../eventSequences/IEventLog.ts","../eventSequences/IEventSequence.ts","../eventSequences/ITransactionalEventSequence.ts","../eventSequences/TransactionalEventSequence.ts","../eventSequences/WaitForCompletionResult.ts","../eventSequences/index.ts","../eventStoreSubscriptions/EventStoreSubscriptionBuilder.ts","../eventStoreSubscriptions/EventStoreSubscriptionDefinition.ts","../eventStoreSubscriptions/EventStoreSubscriptionId.ts","../eventStoreSubscriptions/EventStoreSubscriptions.ts","../eventStoreSubscriptions/IEventStoreSubscriptionBuilder.ts","../eventStoreSubscriptions/IEventStoreSubscriptions.ts","../eventStoreSubscriptions/contracts.ts","../eventStoreSubscriptions/index.ts","../events/AppendedEvent.ts","../events/CausationEntry.ts","../events/EventContext.ts","../events/EventType.ts","../events/EventTypeGeneration.ts","../events/EventTypeId.ts","../events/EventTypes.ts","../events/IEventTypes.ts","../events/Tag.ts","../events/WireEventContext.ts","../events/eventTypeDecorator.ts","../events/filterEventsByTagDecorator.ts","../events/index.ts","../events/isRegisteredEvent.ts","../events/mergeTags.ts","../events/tagDecorator.ts","../events/toClientEventContext.ts","../events/constraints/ConstraintBuilder.ts","../events/constraints/ConstraintId.ts","../events/constraints/Constraints.ts","../events/constraints/IConstraint.ts","../events/constraints/IConstraintBuilder.ts","../events/constraints/IConstraints.ts","../events/constraints/IUniqueConstraintBuilder.ts","../events/constraints/UniqueConstraintBuilder.ts","../events/constraints/constraint.ts","../events/constraints/index.ts","../events/constraints/removeConstraint.ts","../events/constraints/unique.ts","../events/migrations/EventMigrationBuilder.ts","../events/migrations/EventMigrationPropertyBuilder.ts","../events/migrations/EventTypeMigrators.ts","../events/migrations/IEventMigrationBuilder.ts","../events/migrations/IEventMigrationPropertyBuilder.ts","../events/migrations/IEventTypeMigration.ts","../events/migrations/IEventTypeMigrators.ts","../events/migrations/InvalidMigrationGenerationGap.ts","../events/migrations/eventTypeMigration.ts","../events/migrations/index.ts","../externalServices/ExternalServiceBuilder.ts","../externalServices/ExternalServices.ts","../externalServices/ExternalServicesContracts.ts","../externalServices/IExternalServiceBuilder.ts","../externalServices/IExternalServices.ts","../externalServices/index.ts","../identities/IIdentityManager.ts","../identities/IdentityManager.ts","../identities/index.ts","../identity/IIdentityProvider.ts","../identity/Identity.ts","../identity/IdentityProvider.ts","../identity/index.ts","../jobs/IJobs.ts","../jobs/JobId.ts","../jobs/Jobs.ts","../jobs/index.ts","../observation/FailedPartition.ts","../observation/FailedPartitionAttempt.ts","../observation/FailedPartitions.ts","../observation/ICanBeNotifiedWhenPartitionReplayed.ts","../observation/ICanBeNotifiedWhenReplay.ts","../observation/IFailedPartitions.ts","../observation/ObserverId.ts","../observation/ObserverRunningState.ts","../observation/index.ts","../observation/notifyReplayLifecycle.ts","../observation/toClientFailedPartition.ts","../observation/toObserverRunningState.ts","../projections/GlobalHandlerPropertyNotOnVariant.ts","../projections/IProjections.ts","../projections/ProjectionId.ts","../projections/ProjectionQueryResult.ts","../projections/ProjectionState.ts","../projections/Projections.ts","../projections/UnableToQueryProjection.ts","../projections/VariantMustDeclareEntersOnEvent.ts","../projections/VariantReclassifier.ts","../projections/index.ts","../projections/declarative/AddBuilder.ts","../projections/declarative/AddChildBuilder.ts","../projections/declarative/AllSetBuilder.ts","../projections/declarative/ChildrenBuilder.ts","../projections/declarative/CompositeKeyBuilder.ts","../projections/declarative/FromBuilder.ts","../projections/declarative/FromEveryBuilder.ts","../projections/declarative/IAddBuilder.ts","../projections/declarative/IAddChildBuilder.ts","../projections/declarative/IAllSetBuilder.ts","../projections/declarative/IChildrenBuilder.ts","../projections/declarative/ICompositeKeyBuilder.ts","../projections/declarative/IFromBuilder.ts","../projections/declarative/IFromEveryBuilder.ts","../projections/declarative/IJoinBuilder.ts","../projections/declarative/INestedBuilder.ts","../projections/declarative/IProjectionBuilder.ts","../projections/declarative/IProjectionBuilderFor.ts","../projections/declarative/IProjectionFor.ts","../projections/declarative/IReadModelPropertiesBuilder.ts","../projections/declarative/IRemovedWithBuilder.ts","../projections/declarative/IRemovedWithJoinBuilder.ts","../projections/declarative/ISetBuilder.ts","../projections/declarative/ISubtractBuilder.ts","../projections/declarative/JoinBuilder.ts","../projections/declarative/NestedBuilder.ts","../projections/declarative/ProjectionBuilderCore.ts","../projections/declarative/ProjectionBuilderFor.ts","../projections/declarative/RemovedWithBuilder.ts","../projections/declarative/RemovedWithJoinBuilder.ts","../projections/declarative/SetBuilder.ts","../projections/declarative/SubtractBuilder.ts","../projections/declarative/index.ts","../projections/declarative/projection.ts","../projections/modelBound/FromEventMetadata.ts","../projections/modelBound/FromEventOptions.ts","../projections/modelBound/addFrom.ts","../projections/modelBound/childrenAndNestedBuilder.ts","../projections/modelBound/childrenFrom.ts","../projections/modelBound/clearWith.ts","../projections/modelBound/count.ts","../projections/modelBound/decrement.ts","../projections/modelBound/entersOn.ts","../projections/modelBound/eventSequence.ts","../projections/modelBound/fromAll.ts","../projections/modelBound/fromEvent.ts","../projections/modelBound/fromEvery.ts","../projections/modelBound/globalFor.ts","../projections/modelBound/increment.ts","../projections/modelBound/index.ts","../projections/modelBound/join.ts","../projections/modelBound/nested.ts","../projections/modelBound/noAutoMap.ts","../projections/modelBound/notRewindable.ts","../projections/modelBound/passive.ts","../projections/modelBound/removedWith.ts","../projections/modelBound/removedWithJoin.ts","../projections/modelBound/setFrom.ts","../projections/modelBound/setFromContext.ts","../projections/modelBound/setValue.ts","../projections/modelBound/subtractFrom.ts","../projections/modelBound/variantOf.ts","../reactors/IReactors.ts","../reactors/ReactorId.ts","../reactors/ReactorResultHandler.ts","../reactors/ReactorSideEffects.ts","../reactors/Reactors.ts","../reactors/index.ts","../reactors/reactor.ts","../readModels/IMaterializedReadModels.ts","../readModels/IReadModels.ts","../readModels/MaterializedReadModels.ts","../readModels/ReadModelChangeset.ts","../readModels/ReadModelId.ts","../readModels/ReadModelSnapshot.ts","../readModels/ReadModelSubjectResolver.ts","../readModels/ReadModels.ts","../readModels/assertUniqueReadModelIds.ts","../readModels/index.ts","../readModels/readModel.ts","../reducers/IReducers.ts","../reducers/ReducerId.ts","../reducers/Reducers.ts","../reducers/index.ts","../reducers/reducer.ts","../schemas/JsonSchema.ts","../schemas/JsonSchemaGenerator.ts","../schemas/createDeferredSchema.ts","../schemas/index.ts","../schemas/jsonSchemaProperty.ts","../seeding/EventSeeding.ts","../seeding/ICanSeedEvents.ts","../seeding/IEventSeeding.ts","../seeding/IEventSeedingBuilder.ts","../seeding/IEventSeedingScopeBuilder.ts","../seeding/index.ts","../seeding/seeder.ts","../sinks/WellKnownSinks.ts","../sinks/index.ts","../transactions/IUnitOfWork.ts","../transactions/IUnitOfWorkManager.ts","../transactions/NoUnitOfWorkHasBeenStarted.ts","../transactions/UnitOfWork.ts","../transactions/UnitOfWorkManager.ts","../transactions/index.ts","../types/DecoratorType.ts","../types/TypeDiscoverer.ts","../types/TypeIntrospector.ts","../types/index.ts","../types/propertyDecoratorMetadata.ts","../types/standardDecoratorMetadata.ts","../webhooks/IWebhook.ts","../webhooks/IWebhookDefinitionBuilder.ts","../webhooks/IWebhooks.ts","../webhooks/WebhookDefinitionBuilder.ts","../webhooks/WebhookId.ts","../webhooks/WebhookTargetUrl.ts","../webhooks/Webhooks.ts","../webhooks/index.ts","../webhooks/webhook.ts"],"packageJsons":["../package.json","../../node_modules/@bufbuild/protobuf/dist/esm/package.json","../../node_modules/@bufbuild/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/package.json","../../node_modules/@cratis/fundamentals/dist/esm/package.json","../../node_modules/@cratis/fundamentals/package.json","../../node_modules/@grpc/grpc-js/package.json","../../node_modules/@grpc/proto-loader/package.json","../../node_modules/@js-sdsl/ordered-map/package.json","../../node_modules/@opentelemetry/api/package.json","../../node_modules/@types/node/package.json","../../node_modules/glob/dist/esm/package.json","../../node_modules/glob/package.json","../../node_modules/long/package.json","../../node_modules/long/umd/package.json","../../node_modules/lru-cache/dist/esm/package.json","../../node_modules/lru-cache/package.json","../../node_modules/minimatch/dist/esm/package.json","../../node_modules/minimatch/package.json","../../node_modules/minipass/dist/esm/package.json","../../node_modules/minipass/package.json","../../node_modules/nice-grpc-common/package.json","../../node_modules/nice-grpc/package.json","../../node_modules/path-scurry/dist/esm/package.json","../../node_modules/path-scurry/package.json","../../node_modules/protobufjs/package.json","../../node_modules/reflect-metadata/package.json","../../node_modules/ts-error/package.json","../../node_modules/undici-types/package.json","../../node_modules/undici/package.json"],"missingPackageJsons":["../../node_modules/@bufbuild/protobuf/dist/esm/codegenv1/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/codegenv2/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/reflect/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wire/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/package.json","../../node_modules/@bufbuild/protobuf/wire/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/google/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/google/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/protobuf-net/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/package.json","../../node_modules/@cratis/chronicle.contracts/dist/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/reflect/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wire/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wkt/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/wire/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/nice-grpc-common/package.json","../../node_modules/@cratis/fundamentals/dist/esm/geospatial/package.json","../../node_modules/@cratis/fundamentals/dist/esm/json/package.json","../../node_modules/@grpc/grpc-js/build/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/google/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/v3/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/package.json","../../node_modules/@grpc/grpc-js/build/src/package.json","../../node_modules/@grpc/proto-loader/build/package.json","../../node_modules/@grpc/proto-loader/build/src/package.json","../../node_modules/@js-sdsl/ordered-map/dist/esm/package.json","../../node_modules/@js-sdsl/ordered-map/dist/package.json","../../node_modules/@opentelemetry/api/build/package.json","../../node_modules/@opentelemetry/api/build/src/api/package.json","../../node_modules/@opentelemetry/api/build/src/baggage/internal/package.json","../../node_modules/@opentelemetry/api/build/src/baggage/package.json","../../node_modules/@opentelemetry/api/build/src/common/package.json","../../node_modules/@opentelemetry/api/build/src/context/package.json","../../node_modules/@opentelemetry/api/build/src/diag/package.json","../../node_modules/@opentelemetry/api/build/src/metrics/package.json","../../node_modules/@opentelemetry/api/build/src/package.json","../../node_modules/@opentelemetry/api/build/src/propagation/package.json","../../node_modules/@opentelemetry/api/build/src/trace/internal/package.json","../../node_modules/@opentelemetry/api/build/src/trace/package.json","../../node_modules/@types/assert/package.json","../../node_modules/@types/assert/strict/package.json","../../node_modules/@types/async_hooks/package.json","../../node_modules/@types/buffer/package.json","../../node_modules/@types/child_process/package.json","../../node_modules/@types/cluster/package.json","../../node_modules/@types/console/package.json","../../node_modules/@types/constants/package.json","../../node_modules/@types/crypto/package.json","../../node_modules/@types/dgram/package.json","../../node_modules/@types/diagnostics_channel/package.json","../../node_modules/@types/dns/package.json","../../node_modules/@types/dns/promises/package.json","../../node_modules/@types/domain/package.json","../../node_modules/@types/events/package.json","../../node_modules/@types/fs/package.json","../../node_modules/@types/fs/promises/package.json","../../node_modules/@types/http/package.json","../../node_modules/@types/http2/package.json","../../node_modules/@types/https/package.json","../../node_modules/@types/inspector/package.json","../../node_modules/@types/inspector/promises/package.json","../../node_modules/@types/module/package.json","../../node_modules/@types/net/package.json","../../node_modules/@types/node/assert/package.json","../../node_modules/@types/node/dns/package.json","../../node_modules/@types/node/fs/package.json","../../node_modules/@types/node/inspector/package.json","../../node_modules/@types/node/path/package.json","../../node_modules/@types/node/readline/package.json","../../node_modules/@types/node/stream/package.json","../../node_modules/@types/node/test/package.json","../../node_modules/@types/node/timers/package.json","../../node_modules/@types/node/util/package.json","../../node_modules/@types/node/web-globals/package.json","../../node_modules/@types/node/zlib/package.json","../../node_modules/@types/os/package.json","../../node_modules/@types/path/package.json","../../node_modules/@types/path/posix/package.json","../../node_modules/@types/path/win32/package.json","../../node_modules/@types/perf_hooks/package.json","../../node_modules/@types/process/package.json","../../node_modules/@types/punycode/package.json","../../node_modules/@types/querystring/package.json","../../node_modules/@types/readline/package.json","../../node_modules/@types/readline/promises/package.json","../../node_modules/@types/repl/package.json","../../node_modules/@types/stream/consumers/package.json","../../node_modules/@types/stream/iter/package.json","../../node_modules/@types/stream/package.json","../../node_modules/@types/stream/promises/package.json","../../node_modules/@types/stream/web/package.json","../../node_modules/@types/string_decoder/package.json","../../node_modules/@types/timers/package.json","../../node_modules/@types/timers/promises/package.json","../../node_modules/@types/tls/package.json","../../node_modules/@types/trace_events/package.json","../../node_modules/@types/tty/package.json","../../node_modules/@types/url/package.json","../../node_modules/@types/util/package.json","../../node_modules/@types/util/types/package.json","../../node_modules/@types/v8/package.json","../../node_modules/@types/vm/package.json","../../node_modules/@types/wasi/package.json","../../node_modules/@types/worker_threads/package.json","../../node_modules/@types/zlib/package.json","../../node_modules/assert/package.json","../../node_modules/assert/strict/package.json","../../node_modules/async_hooks/package.json","../../node_modules/buffer/package.json","../../node_modules/child_process/package.json","../../node_modules/cluster/package.json","../../node_modules/console/package.json","../../node_modules/constants/package.json","../../node_modules/crypto/package.json","../../node_modules/dgram/package.json","../../node_modules/diagnostics_channel/package.json","../../node_modules/dns/package.json","../../node_modules/dns/promises/package.json","../../node_modules/domain/package.json","../../node_modules/events/package.json","../../node_modules/fs/package.json","../../node_modules/fs/promises/package.json","../../node_modules/http/package.json","../../node_modules/http2/package.json","../../node_modules/https/package.json","../../node_modules/inspector/package.json","../../node_modules/inspector/promises/package.json","../../node_modules/module/package.json","../../node_modules/net/package.json","../../node_modules/nice-grpc-common/lib/client/package.json","../../node_modules/nice-grpc-common/lib/package.json","../../node_modules/nice-grpc-common/lib/server/package.json","../../node_modules/nice-grpc/lib/client/package.json","../../node_modules/nice-grpc/lib/package.json","../../node_modules/nice-grpc/lib/server/package.json","../../node_modules/nice-grpc/lib/service-definitions/package.json","../../node_modules/nice-grpc/lib/utils/package.json","../../node_modules/os/package.json","../../node_modules/path/package.json","../../node_modules/path/posix/package.json","../../node_modules/path/win32/package.json","../../node_modules/perf_hooks/package.json","../../node_modules/process/package.json","../../node_modules/protobufjs/ext/descriptor/package.json","../../node_modules/protobufjs/ext/package.json","../../node_modules/protobufjs/node_modules/@types/long/package.json","../../node_modules/protobufjs/node_modules/long/package.json","../../node_modules/punycode/package.json","../../node_modules/querystring/package.json","../../node_modules/readline/package.json","../../node_modules/readline/promises/package.json","../../node_modules/repl/package.json","../../node_modules/stream/consumers/package.json","../../node_modules/stream/iter/package.json","../../node_modules/stream/package.json","../../node_modules/stream/promises/package.json","../../node_modules/stream/web/package.json","../../node_modules/string_decoder/package.json","../../node_modules/timers/package.json","../../node_modules/timers/promises/package.json","../../node_modules/tls/package.json","../../node_modules/trace_events/package.json","../../node_modules/ts-error/lib/package.json","../../node_modules/tty/package.json","../../node_modules/undici/types/package.json","../../node_modules/url/package.json","../../node_modules/util/package.json","../../node_modules/util/types/package.json","../../node_modules/v8/package.json","../../node_modules/vm/package.json","../../node_modules/wasi/package.json","../../node_modules/worker_threads/package.json","../../node_modules/zlib/package.json"]}
1
+ {"version":"7.0.2","root":["../ChronicleClient.ts","../ChronicleOptions.ts","../EventStore.ts","../EventStoreName.ts","../EventStoreNamespaceName.ts","../IChronicleClient.ts","../IEventStore.ts","../Metrics.ts","../Tracing.ts","../index.ts","../artifacts/DefaultClientArtifactsProvider.ts","../artifacts/IClientArtifactsProvider.ts","../artifacts/index.ts","../artifacts/validateArtifactSchemas.ts","../auditing/Causation.ts","../auditing/CausationManager.ts","../auditing/CausationType.ts","../auditing/ICausationManager.ts","../auditing/index.ts","../compliance/ComplianceContracts.ts","../compliance/ComplianceMetadata.ts","../compliance/ComplianceMetadataResolver.ts","../compliance/ComplianceMetadataType.ts","../compliance/IPIIManager.ts","../compliance/PIIManager.ts","../compliance/PIINotSupportedOnEventSourceId.ts","../compliance/index.ts","../compliance/pii.ts","../compliance/subject.ts","../confidentiality/EncryptedNotSupportedOnEventSourceId.ts","../confidentiality/EncryptionScope.ts","../confidentiality/PIIAndEncryptedCombinedNotSupported.ts","../confidentiality/SecurityMetadata.ts","../confidentiality/SecurityMetadataResolver.ts","../confidentiality/SecurityMetadataType.ts","../confidentiality/encrypted.ts","../confidentiality/index.ts","../connection/ChronicleConnection.ts","../connection/ChronicleConnectionString.ts","../connection/ChronicleServerAddressResolver.ts","../connection/ChronicleServices.ts","../connection/ChronicleSrvResolutionError.ts","../connection/ChronicleSrvResolver.ts","../connection/CompatibilityPreflight.ts","../connection/ConnectionLifecycle.ts","../connection/DateTimeOffset.ts","../connection/Guid.ts","../connection/ILoadBalancerStrategy.ts","../connection/IncompatibleChronicleServer.ts","../connection/KernelKeepAlive.ts","../connection/LeastConnectionsLoadBalancerStrategy.ts","../connection/LoadBalancerMode.ts","../connection/LoadBalancerStrategyFactory.ts","../connection/RandomLoadBalancerStrategy.ts","../connection/RoundRobinLoadBalancerStrategy.ts","../connection/TokenProvider.ts","../connection/callResults.ts","../connection/fetchOAuthAccessToken.ts","../connection/formatServerAddress.ts","../connection/index.ts","../correlation/CorrelationId.ts","../correlation/CorrelationIdManager.ts","../correlation/ICorrelationIdAccessor.ts","../correlation/ICorrelationIdSetter.ts","../correlation/index.ts","../eventSequences/AppendError.ts","../eventSequences/AppendOperationsBroadcaster.ts","../eventSequences/AppendOptions.ts","../eventSequences/AppendResult.ts","../eventSequences/AppendedEventWithResult.ts","../eventSequences/CompleteStreamError.ts","../eventSequences/CompleteStreamResult.ts","../eventSequences/ConcurrencyScope.ts","../eventSequences/ConcurrencyViolation.ts","../eventSequences/ConstraintViolation.ts","../eventSequences/EventForEventSourceId.ts","../eventSequences/EventLog.ts","../eventSequences/EventSequence.ts","../eventSequences/EventSequenceId.ts","../eventSequences/EventSequenceNumber.ts","../eventSequences/IEventLog.ts","../eventSequences/IEventSequence.ts","../eventSequences/ITransactionalEventSequence.ts","../eventSequences/TransactionalEventSequence.ts","../eventSequences/WaitForCompletionResult.ts","../eventSequences/index.ts","../eventStoreSubscriptions/EventStoreSubscriptionBuilder.ts","../eventStoreSubscriptions/EventStoreSubscriptionDefinition.ts","../eventStoreSubscriptions/EventStoreSubscriptionId.ts","../eventStoreSubscriptions/EventStoreSubscriptions.ts","../eventStoreSubscriptions/IEventStoreSubscriptionBuilder.ts","../eventStoreSubscriptions/IEventStoreSubscriptions.ts","../eventStoreSubscriptions/contracts.ts","../eventStoreSubscriptions/index.ts","../events/AppendedEvent.ts","../events/CausationEntry.ts","../events/EventContext.ts","../events/EventType.ts","../events/EventTypeGeneration.ts","../events/EventTypeId.ts","../events/EventTypes.ts","../events/IEventTypes.ts","../events/Tag.ts","../events/WireEventContext.ts","../events/eventTypeDecorator.ts","../events/filterEventsByTagDecorator.ts","../events/index.ts","../events/isRegisteredEvent.ts","../events/mergeTags.ts","../events/tagDecorator.ts","../events/toClientEventContext.ts","../events/constraints/ConstraintBuilder.ts","../events/constraints/ConstraintId.ts","../events/constraints/Constraints.ts","../events/constraints/IConstraint.ts","../events/constraints/IConstraintBuilder.ts","../events/constraints/IConstraints.ts","../events/constraints/IUniqueConstraintBuilder.ts","../events/constraints/UniqueConstraintBuilder.ts","../events/constraints/constraint.ts","../events/constraints/index.ts","../events/constraints/removeConstraint.ts","../events/constraints/unique.ts","../events/migrations/EventMigrationBuilder.ts","../events/migrations/EventMigrationPropertyBuilder.ts","../events/migrations/EventTypeMigrators.ts","../events/migrations/IEventMigrationBuilder.ts","../events/migrations/IEventMigrationPropertyBuilder.ts","../events/migrations/IEventTypeMigration.ts","../events/migrations/IEventTypeMigrators.ts","../events/migrations/InvalidMigrationGenerationGap.ts","../events/migrations/eventTypeMigration.ts","../events/migrations/index.ts","../externalServices/ExternalServiceBuilder.ts","../externalServices/ExternalServices.ts","../externalServices/ExternalServicesContracts.ts","../externalServices/IExternalServiceBuilder.ts","../externalServices/IExternalServices.ts","../externalServices/index.ts","../identities/IIdentityManager.ts","../identities/IdentityManager.ts","../identities/index.ts","../identity/IIdentityProvider.ts","../identity/Identity.ts","../identity/IdentityProvider.ts","../identity/index.ts","../jobs/IJobs.ts","../jobs/JobId.ts","../jobs/Jobs.ts","../jobs/index.ts","../observation/FailedPartition.ts","../observation/FailedPartitionAttempt.ts","../observation/FailedPartitions.ts","../observation/ICanBeNotifiedWhenPartitionReplayed.ts","../observation/ICanBeNotifiedWhenReplay.ts","../observation/IFailedPartitions.ts","../observation/ObserverId.ts","../observation/ObserverRunningState.ts","../observation/index.ts","../observation/notifyReplayLifecycle.ts","../observation/toClientFailedPartition.ts","../observation/toObserverRunningState.ts","../projections/GlobalHandlerPropertyNotOnVariant.ts","../projections/IProjections.ts","../projections/ProjectionId.ts","../projections/ProjectionQueryResult.ts","../projections/ProjectionState.ts","../projections/Projections.ts","../projections/UnableToQueryProjection.ts","../projections/VariantMustDeclareEntersOnEvent.ts","../projections/VariantReclassifier.ts","../projections/index.ts","../projections/declarative/AddBuilder.ts","../projections/declarative/AddChildBuilder.ts","../projections/declarative/AllSetBuilder.ts","../projections/declarative/ChildrenBuilder.ts","../projections/declarative/CompositeKeyBuilder.ts","../projections/declarative/FromBuilder.ts","../projections/declarative/FromEveryBuilder.ts","../projections/declarative/IAddBuilder.ts","../projections/declarative/IAddChildBuilder.ts","../projections/declarative/IAllSetBuilder.ts","../projections/declarative/IChildrenBuilder.ts","../projections/declarative/ICompositeKeyBuilder.ts","../projections/declarative/IFromBuilder.ts","../projections/declarative/IFromEveryBuilder.ts","../projections/declarative/IJoinBuilder.ts","../projections/declarative/INestedBuilder.ts","../projections/declarative/IProjectionBuilder.ts","../projections/declarative/IProjectionBuilderFor.ts","../projections/declarative/IProjectionFor.ts","../projections/declarative/IReadModelPropertiesBuilder.ts","../projections/declarative/IRemovedWithBuilder.ts","../projections/declarative/IRemovedWithJoinBuilder.ts","../projections/declarative/ISetBuilder.ts","../projections/declarative/ISubtractBuilder.ts","../projections/declarative/JoinBuilder.ts","../projections/declarative/NestedBuilder.ts","../projections/declarative/ProjectionBuilderCore.ts","../projections/declarative/ProjectionBuilderFor.ts","../projections/declarative/RemovedWithBuilder.ts","../projections/declarative/RemovedWithJoinBuilder.ts","../projections/declarative/SetBuilder.ts","../projections/declarative/SubtractBuilder.ts","../projections/declarative/index.ts","../projections/declarative/projection.ts","../projections/modelBound/FromEventMetadata.ts","../projections/modelBound/FromEventOptions.ts","../projections/modelBound/addFrom.ts","../projections/modelBound/childrenAndNestedBuilder.ts","../projections/modelBound/childrenFrom.ts","../projections/modelBound/clearWith.ts","../projections/modelBound/count.ts","../projections/modelBound/decrement.ts","../projections/modelBound/entersOn.ts","../projections/modelBound/eventSequence.ts","../projections/modelBound/fromAll.ts","../projections/modelBound/fromEvent.ts","../projections/modelBound/fromEvery.ts","../projections/modelBound/globalFor.ts","../projections/modelBound/increment.ts","../projections/modelBound/index.ts","../projections/modelBound/join.ts","../projections/modelBound/nested.ts","../projections/modelBound/noAutoMap.ts","../projections/modelBound/notRewindable.ts","../projections/modelBound/passive.ts","../projections/modelBound/removedWith.ts","../projections/modelBound/removedWithJoin.ts","../projections/modelBound/setFrom.ts","../projections/modelBound/setFromContext.ts","../projections/modelBound/setValue.ts","../projections/modelBound/subtractFrom.ts","../projections/modelBound/variantOf.ts","../reactors/IReactors.ts","../reactors/ReactorId.ts","../reactors/ReactorResultHandler.ts","../reactors/ReactorSideEffects.ts","../reactors/Reactors.ts","../reactors/index.ts","../reactors/onceOnly.ts","../reactors/reactor.ts","../reactors/replay.ts","../readModels/IMaterializedReadModels.ts","../readModels/IReadModels.ts","../readModels/MaterializedReadModels.ts","../readModels/ReadModelChangeset.ts","../readModels/ReadModelId.ts","../readModels/ReadModelSnapshot.ts","../readModels/ReadModelSubjectResolver.ts","../readModels/ReadModels.ts","../readModels/assertUniqueReadModelIds.ts","../readModels/index.ts","../readModels/readModel.ts","../reducers/IReducers.ts","../reducers/ReducerId.ts","../reducers/Reducers.ts","../reducers/index.ts","../reducers/reducer.ts","../schemas/JsonSchema.ts","../schemas/JsonSchemaGenerator.ts","../schemas/createDeferredSchema.ts","../schemas/index.ts","../schemas/jsonSchemaProperty.ts","../seeding/EventSeeding.ts","../seeding/ICanSeedEvents.ts","../seeding/IEventSeeding.ts","../seeding/IEventSeedingBuilder.ts","../seeding/IEventSeedingScopeBuilder.ts","../seeding/index.ts","../seeding/seeder.ts","../sinks/WellKnownSinks.ts","../sinks/index.ts","../transactions/IUnitOfWork.ts","../transactions/IUnitOfWorkManager.ts","../transactions/NoUnitOfWorkHasBeenStarted.ts","../transactions/UnitOfWork.ts","../transactions/UnitOfWorkManager.ts","../transactions/index.ts","../types/DecoratorType.ts","../types/TypeDiscoverer.ts","../types/TypeIntrospector.ts","../types/index.ts","../types/propertyDecoratorMetadata.ts","../types/standardDecoratorMetadata.ts","../webhooks/IWebhook.ts","../webhooks/IWebhookDefinitionBuilder.ts","../webhooks/IWebhooks.ts","../webhooks/WebhookDefinitionBuilder.ts","../webhooks/WebhookId.ts","../webhooks/WebhookTargetUrl.ts","../webhooks/Webhooks.ts","../webhooks/index.ts","../webhooks/webhook.ts"],"packageJsons":["../package.json","../../node_modules/@bufbuild/protobuf/dist/esm/package.json","../../node_modules/@bufbuild/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/package.json","../../node_modules/@cratis/fundamentals/dist/esm/package.json","../../node_modules/@cratis/fundamentals/package.json","../../node_modules/@grpc/grpc-js/package.json","../../node_modules/@grpc/proto-loader/package.json","../../node_modules/@js-sdsl/ordered-map/package.json","../../node_modules/@opentelemetry/api/package.json","../../node_modules/@types/node/package.json","../../node_modules/glob/dist/esm/package.json","../../node_modules/glob/package.json","../../node_modules/long/package.json","../../node_modules/long/umd/package.json","../../node_modules/lru-cache/dist/esm/package.json","../../node_modules/lru-cache/package.json","../../node_modules/minimatch/dist/esm/package.json","../../node_modules/minimatch/package.json","../../node_modules/minipass/dist/esm/package.json","../../node_modules/minipass/package.json","../../node_modules/nice-grpc-common/package.json","../../node_modules/nice-grpc/package.json","../../node_modules/path-scurry/dist/esm/package.json","../../node_modules/path-scurry/package.json","../../node_modules/protobufjs/package.json","../../node_modules/reflect-metadata/package.json","../../node_modules/ts-error/package.json","../../node_modules/undici-types/package.json","../../node_modules/undici/package.json"],"missingPackageJsons":["../../node_modules/@bufbuild/protobuf/dist/esm/codegenv1/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/codegenv2/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/reflect/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wire/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/package.json","../../node_modules/@bufbuild/protobuf/wire/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/google/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/google/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/protobuf-net/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/package.json","../../node_modules/@cratis/chronicle.contracts/dist/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/reflect/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wire/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wkt/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/wire/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/nice-grpc-common/package.json","../../node_modules/@cratis/fundamentals/dist/esm/geospatial/package.json","../../node_modules/@cratis/fundamentals/dist/esm/json/package.json","../../node_modules/@grpc/grpc-js/build/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/google/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/v3/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/package.json","../../node_modules/@grpc/grpc-js/build/src/package.json","../../node_modules/@grpc/proto-loader/build/package.json","../../node_modules/@grpc/proto-loader/build/src/package.json","../../node_modules/@js-sdsl/ordered-map/dist/esm/package.json","../../node_modules/@js-sdsl/ordered-map/dist/package.json","../../node_modules/@opentelemetry/api/build/package.json","../../node_modules/@opentelemetry/api/build/src/api/package.json","../../node_modules/@opentelemetry/api/build/src/baggage/internal/package.json","../../node_modules/@opentelemetry/api/build/src/baggage/package.json","../../node_modules/@opentelemetry/api/build/src/common/package.json","../../node_modules/@opentelemetry/api/build/src/context/package.json","../../node_modules/@opentelemetry/api/build/src/diag/package.json","../../node_modules/@opentelemetry/api/build/src/metrics/package.json","../../node_modules/@opentelemetry/api/build/src/package.json","../../node_modules/@opentelemetry/api/build/src/propagation/package.json","../../node_modules/@opentelemetry/api/build/src/trace/internal/package.json","../../node_modules/@opentelemetry/api/build/src/trace/package.json","../../node_modules/@types/assert/package.json","../../node_modules/@types/assert/strict/package.json","../../node_modules/@types/async_hooks/package.json","../../node_modules/@types/buffer/package.json","../../node_modules/@types/child_process/package.json","../../node_modules/@types/cluster/package.json","../../node_modules/@types/console/package.json","../../node_modules/@types/constants/package.json","../../node_modules/@types/crypto/package.json","../../node_modules/@types/dgram/package.json","../../node_modules/@types/diagnostics_channel/package.json","../../node_modules/@types/dns/package.json","../../node_modules/@types/dns/promises/package.json","../../node_modules/@types/domain/package.json","../../node_modules/@types/events/package.json","../../node_modules/@types/fs/package.json","../../node_modules/@types/fs/promises/package.json","../../node_modules/@types/http/package.json","../../node_modules/@types/http2/package.json","../../node_modules/@types/https/package.json","../../node_modules/@types/inspector/package.json","../../node_modules/@types/inspector/promises/package.json","../../node_modules/@types/module/package.json","../../node_modules/@types/net/package.json","../../node_modules/@types/node/assert/package.json","../../node_modules/@types/node/dns/package.json","../../node_modules/@types/node/fs/package.json","../../node_modules/@types/node/inspector/package.json","../../node_modules/@types/node/path/package.json","../../node_modules/@types/node/readline/package.json","../../node_modules/@types/node/stream/package.json","../../node_modules/@types/node/test/package.json","../../node_modules/@types/node/timers/package.json","../../node_modules/@types/node/util/package.json","../../node_modules/@types/node/web-globals/package.json","../../node_modules/@types/node/zlib/package.json","../../node_modules/@types/os/package.json","../../node_modules/@types/path/package.json","../../node_modules/@types/path/posix/package.json","../../node_modules/@types/path/win32/package.json","../../node_modules/@types/perf_hooks/package.json","../../node_modules/@types/process/package.json","../../node_modules/@types/punycode/package.json","../../node_modules/@types/querystring/package.json","../../node_modules/@types/readline/package.json","../../node_modules/@types/readline/promises/package.json","../../node_modules/@types/repl/package.json","../../node_modules/@types/stream/consumers/package.json","../../node_modules/@types/stream/iter/package.json","../../node_modules/@types/stream/package.json","../../node_modules/@types/stream/promises/package.json","../../node_modules/@types/stream/web/package.json","../../node_modules/@types/string_decoder/package.json","../../node_modules/@types/timers/package.json","../../node_modules/@types/timers/promises/package.json","../../node_modules/@types/tls/package.json","../../node_modules/@types/trace_events/package.json","../../node_modules/@types/tty/package.json","../../node_modules/@types/url/package.json","../../node_modules/@types/util/package.json","../../node_modules/@types/util/types/package.json","../../node_modules/@types/v8/package.json","../../node_modules/@types/vm/package.json","../../node_modules/@types/wasi/package.json","../../node_modules/@types/worker_threads/package.json","../../node_modules/@types/zlib/package.json","../../node_modules/assert/package.json","../../node_modules/assert/strict/package.json","../../node_modules/async_hooks/package.json","../../node_modules/buffer/package.json","../../node_modules/child_process/package.json","../../node_modules/cluster/package.json","../../node_modules/console/package.json","../../node_modules/constants/package.json","../../node_modules/crypto/package.json","../../node_modules/dgram/package.json","../../node_modules/diagnostics_channel/package.json","../../node_modules/dns/package.json","../../node_modules/dns/promises/package.json","../../node_modules/domain/package.json","../../node_modules/events/package.json","../../node_modules/fs/package.json","../../node_modules/fs/promises/package.json","../../node_modules/http/package.json","../../node_modules/http2/package.json","../../node_modules/https/package.json","../../node_modules/inspector/package.json","../../node_modules/inspector/promises/package.json","../../node_modules/module/package.json","../../node_modules/net/package.json","../../node_modules/nice-grpc-common/lib/client/package.json","../../node_modules/nice-grpc-common/lib/package.json","../../node_modules/nice-grpc-common/lib/server/package.json","../../node_modules/nice-grpc/lib/client/package.json","../../node_modules/nice-grpc/lib/package.json","../../node_modules/nice-grpc/lib/server/package.json","../../node_modules/nice-grpc/lib/service-definitions/package.json","../../node_modules/nice-grpc/lib/utils/package.json","../../node_modules/os/package.json","../../node_modules/path/package.json","../../node_modules/path/posix/package.json","../../node_modules/path/win32/package.json","../../node_modules/perf_hooks/package.json","../../node_modules/process/package.json","../../node_modules/protobufjs/ext/descriptor/package.json","../../node_modules/protobufjs/ext/package.json","../../node_modules/protobufjs/node_modules/@types/long/package.json","../../node_modules/protobufjs/node_modules/long/package.json","../../node_modules/punycode/package.json","../../node_modules/querystring/package.json","../../node_modules/readline/package.json","../../node_modules/readline/promises/package.json","../../node_modules/repl/package.json","../../node_modules/stream/consumers/package.json","../../node_modules/stream/iter/package.json","../../node_modules/stream/package.json","../../node_modules/stream/promises/package.json","../../node_modules/stream/web/package.json","../../node_modules/string_decoder/package.json","../../node_modules/timers/package.json","../../node_modules/timers/promises/package.json","../../node_modules/tls/package.json","../../node_modules/trace_events/package.json","../../node_modules/ts-error/lib/package.json","../../node_modules/tty/package.json","../../node_modules/undici/types/package.json","../../node_modules/url/package.json","../../node_modules/util/package.json","../../node_modules/util/types/package.json","../../node_modules/v8/package.json","../../node_modules/vm/package.json","../../node_modules/wasi/package.json","../../node_modules/worker_threads/package.json","../../node_modules/zlib/package.json"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/chronicle",
3
- "version": "6.8.0",
3
+ "version": "6.9.1",
4
4
  "description": "Event sourcing for TypeScript and Node.js — the idiomatic client for Cratis Chronicle, the open-source event-sourcing database",
5
5
  "author": "Cratis",
6
6
  "license": "MIT",
@@ -162,7 +162,7 @@
162
162
  "build": "tsc -b",
163
163
  "clean": "rm -rf dist",
164
164
  "test": "vitest run",
165
- "test:standard-types": "tsc --ignoreConfig --noEmit --target es2022 --module es2022 --moduleResolution bundler --lib es2022,esnext.decorators --types node --skipLibCheck --strict schemas/decorators.standard.spec.ts projections/modelBound/decorators.standard.spec.ts events/classDecorators.standard.spec.ts readModels/standardFallbacks.standard.spec.ts artifacts/validateArtifactSchemas.spec.ts",
165
+ "test:standard-types": "tsc --ignoreConfig --noEmit --target es2022 --module es2022 --moduleResolution bundler --lib es2022,esnext.decorators --types node --skipLibCheck --strict schemas/decorators.standard.spec.ts projections/modelBound/decorators.standard.spec.ts events/classDecorators.standard.spec.ts reactors/decorators.standard.spec.ts readModels/standardFallbacks.standard.spec.ts artifacts/validateArtifactSchemas.spec.ts",
166
166
  "test:native": "node ./scripts/check-native-esm.mjs"
167
167
  },
168
168
  "dependencies": {
@@ -0,0 +1,241 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ import { EventContext, EventObservationState, EventType, ReactorMessage } from '@cratis/chronicle.contracts';
5
+ import { describe, expect, it } from 'vitest';
6
+ import type { IClientArtifactsProvider } from '../artifacts/index.js';
7
+ import type { ChronicleConnection } from '../connection/index.js';
8
+ import { ConnectionLifecycle } from '../connection/ConnectionLifecycle.js';
9
+ import type { IEventLog } from '../eventSequences/IEventLog.js';
10
+ import { eventType } from '../events/eventTypeDecorator.js';
11
+ import { onceOnly } from './onceOnly.js';
12
+ import { reactor } from './reactor.js';
13
+ import { Reactors } from './Reactors.js';
14
+ import { replay } from './replay.js';
15
+
16
+ @eventType('reactor-replay-event')
17
+ class SomethingHappened {
18
+ constructor(readonly value: string = '') {}
19
+ }
20
+
21
+ async function observe(type: Function, states: EventObservationState[]) {
22
+ const lifecycle = new ConnectionLifecycle();
23
+ let registration!: ReactorMessage;
24
+ let result!: ReactorMessage;
25
+ let finish!: () => void;
26
+ const finished = new Promise<void>(resolve => { finish = resolve; });
27
+ async function* stream(queue: AsyncIterable<ReactorMessage>) {
28
+ const messages = queue[Symbol.asyncIterator]();
29
+ registration = (await messages.next()).value!;
30
+ yield {
31
+ Events: states.map((state, index) => ({
32
+ Context: EventContext.fromPartial({
33
+ EventType: EventType.fromPartial({ Id: 'reactor-replay-event', Generation: 1 }),
34
+ SequenceNumber: BigInt(index + 1), ObservationState: state
35
+ }),
36
+ Content: JSON.stringify({ value: 'hello' })
37
+ })),
38
+ Partition: 'source', ReplayState: 0, InitialState: ''
39
+ };
40
+ result = (await messages.next()).value!;
41
+ await lifecycle.disconnected(error => { throw error; });
42
+ finish();
43
+ }
44
+ const connection = { reactors: { observe: stream } } as unknown as ChronicleConnection;
45
+ const artifacts = { reactors: [type], eventTypes: [SomethingHappened] } as unknown as IClientArtifactsProvider;
46
+ await new Reactors(artifacts, connection, 'store', 'tenant', lifecycle, {} as IEventLog).register();
47
+ await finished;
48
+ return { registration: registration.Content?.Value0?.Reactor, result: result.Content?.Value1 };
49
+ }
50
+
51
+ // The client constructs reactor instances; share a sink for assertions across that boundary.
52
+ let invoked: string[] = [];
53
+
54
+ @reactor('default-replay-policy')
55
+ class DefaultReactor {
56
+ somethingHappened(event: SomethingHappened) { invoked.push(`live:${event.value}`); }
57
+ }
58
+
59
+ @reactor('once-only-replay-policy')
60
+ @onceOnly()
61
+ class OnceOnlyReactor {
62
+ somethingHappened() { invoked.push('live'); }
63
+ }
64
+
65
+ @reactor('inherited-once-only-policy')
66
+ class InheritedOnceOnlyReactor extends OnceOnlyReactor {}
67
+
68
+ @reactor('method-once-only-policy')
69
+ class MethodOnceOnlyReactor {
70
+ @onceOnly()
71
+ somethingHappened() { invoked.push('live'); }
72
+ }
73
+
74
+ @reactor('replay-alternative-policy')
75
+ class AlternativeReactor {
76
+ @onceOnly()
77
+ somethingHappened() { invoked.push('live'); }
78
+
79
+ @replay()
80
+ replaySomethingHappened(event: SomethingHappened) { invoked.push(`replay:${event.value}`); }
81
+ }
82
+
83
+ @reactor('plain-replay-alternative-policy')
84
+ class PlainAlternativeReactor {
85
+ somethingHappened() { invoked.push('live'); }
86
+
87
+ @replay()
88
+ replaySomethingHappened(event: SomethingHappened) { invoked.push(`replay:${event.value}`); }
89
+ }
90
+
91
+ @reactor('inherited-replay-policy')
92
+ class InheritedReplayReactor extends PlainAlternativeReactor {}
93
+
94
+ @reactor('overridden-replay-policy')
95
+ class OverriddenReplayReactor extends PlainAlternativeReactor {
96
+ @replay()
97
+ replaySomethingHappened(event: SomethingHappened) { invoked.push(`derived:${event.value}`); }
98
+ }
99
+
100
+ @reactor('replay-marked-live-handler-policy')
101
+ class ReplayMarkedLiveHandlerReactor {
102
+ @replay(SomethingHappened)
103
+ somethingHappened() { invoked.push('replay'); }
104
+ }
105
+
106
+ @reactor('unknown-replay-policy')
107
+ class UnknownReplayReactor {
108
+ @replay()
109
+ replayWrongName() {}
110
+ }
111
+
112
+ class UnknownEvent {}
113
+
114
+ @reactor('unregistered-replay-policy')
115
+ class UnregisteredReplayReactor {
116
+ @replay(UnknownEvent)
117
+ rebuild() {}
118
+ }
119
+
120
+ @reactor('duplicate-replay-policy')
121
+ class DuplicateReplayReactor {
122
+ @replay()
123
+ replaySomethingHappened() {}
124
+
125
+ @replay(SomethingHappened)
126
+ rebuild() {}
127
+ }
128
+
129
+ @reactor('once-only-replay-handler-policy')
130
+ class OnceOnlyReplayHandlerReactor {
131
+ somethingHappened() { invoked.push('live'); }
132
+
133
+ @onceOnly()
134
+ @replay()
135
+ replaySomethingHappened() { invoked.push('replay'); }
136
+ }
137
+
138
+ @reactor('replay-only-policy')
139
+ class ReplayOnlyReactor {
140
+ @replay(SomethingHappened)
141
+ rebuild(event: SomethingHappened) { invoked.push(`replay:${event.value}`); }
142
+ }
143
+
144
+ describe('reactor replay policy', () => {
145
+ it('registers reactors as replayable by default and dispatches ordinary handlers for both deliveries', async () => {
146
+ invoked = [];
147
+ const delivery = await observe(DefaultReactor, [EventObservationState.Initial, EventObservationState.Replay]);
148
+ expect(delivery.registration?.IsReplayable).toBe(true);
149
+ expect(invoked).toEqual(['live:hello', 'live:hello']);
150
+ });
151
+
152
+ it('registers a class marked onceOnly as non-replayable', async () => {
153
+ invoked = [];
154
+ const delivery = await observe(OnceOnlyReactor, [EventObservationState.Initial]);
155
+ expect(delivery.registration?.IsReplayable).toBe(false);
156
+ expect(invoked).toEqual(['live']);
157
+ });
158
+
159
+ it('does not inherit a class-level onceOnly marker on registration', async () => {
160
+ invoked = [];
161
+ const delivery = await observe(InheritedOnceOnlyReactor, [EventObservationState.Initial, EventObservationState.Replay]);
162
+ expect(delivery.registration?.IsReplayable).toBe(true);
163
+ expect(invoked).toEqual(['live', 'live']);
164
+ });
165
+
166
+ it('skips a method-level onceOnly handler only for replayed events and acknowledges both', async () => {
167
+ invoked = [];
168
+ const delivery = await observe(MethodOnceOnlyReactor, [EventObservationState.Initial, EventObservationState.Replay]);
169
+ expect(delivery.registration?.IsReplayable).toBe(true);
170
+ expect(invoked).toEqual(['live']);
171
+ expect(delivery.result?.LastSuccessfulObservation).toBe(2n);
172
+ });
173
+
174
+ it('runs the replay-specific handler instead of the ordinary handler during replay', async () => {
175
+ invoked = [];
176
+ const delivery = await observe(AlternativeReactor, [EventObservationState.Initial, EventObservationState.Replay]);
177
+ expect(invoked).toEqual(['live', 'replay:hello']);
178
+ expect(delivery.result?.LastSuccessfulObservation).toBe(2n);
179
+ });
180
+
181
+ it('runs only the alternative replay handler when both handlers are plain', async () => {
182
+ invoked = [];
183
+ await observe(PlainAlternativeReactor, [EventObservationState.Initial, EventObservationState.Replay]);
184
+ expect(invoked).toEqual(['live', 'replay:hello']);
185
+ });
186
+
187
+ it('discovers an inherited replay handler', async () => {
188
+ invoked = [];
189
+ await observe(InheritedReplayReactor, [EventObservationState.Initial, EventObservationState.Replay]);
190
+ expect(invoked).toEqual(['live', 'replay:hello']);
191
+ });
192
+
193
+ it('prefers a derived replay handler to the inherited one', async () => {
194
+ invoked = [];
195
+ await observe(OverriddenReplayReactor, [EventObservationState.Initial, EventObservationState.Replay]);
196
+ expect(invoked).toEqual(['live', 'derived:hello']);
197
+ });
198
+
199
+ it('does not invoke a replay-marked live-named handler on live delivery', async () => {
200
+ invoked = [];
201
+ await observe(ReplayMarkedLiveHandlerReactor, [EventObservationState.Initial, EventObservationState.Replay]);
202
+ expect(invoked).toEqual(['replay']);
203
+ });
204
+
205
+ it('rejects a convention replay handler with no registered event type', async () => {
206
+ await expect(observe(UnknownReplayReactor, [])).rejects.toThrow(/replayWrongName.*no registered event type/);
207
+ });
208
+
209
+ it('rejects an explicit replay handler for an unregistered event type', async () => {
210
+ await expect(observe(UnregisteredReplayReactor, [])).rejects.toThrow(/rebuild.*no registered event type/);
211
+ });
212
+
213
+ it('rejects two replay handlers for the same event type', async () => {
214
+ await expect(observe(DuplicateReplayReactor, [])).rejects.toThrow(/multiple replay handlers.*reactor-replay-event/);
215
+ });
216
+
217
+ it('rejects a static legacy replay method', () => {
218
+ expect(() => {
219
+ class StaticReplayReactor {
220
+ @replay(SomethingHappened)
221
+ static rebuild() {}
222
+ }
223
+ return StaticReplayReactor;
224
+ }).toThrow('Replay requires a public instance method.');
225
+ });
226
+
227
+ it('does not fall back to the ordinary handler when the replay handler is onceOnly', async () => {
228
+ invoked = [];
229
+ const delivery = await observe(OnceOnlyReplayHandlerReactor, [EventObservationState.Initial, EventObservationState.Replay]);
230
+ expect(invoked).toEqual(['live']);
231
+ expect(delivery.result?.LastSuccessfulObservation).toBe(2n);
232
+ });
233
+
234
+ it('subscribes to an event handled only during replay and acknowledges live deliveries', async () => {
235
+ invoked = [];
236
+ const delivery = await observe(ReplayOnlyReactor, [EventObservationState.Initial, EventObservationState.Replay]);
237
+ expect(delivery.registration?.EventTypes).toHaveLength(1);
238
+ expect(invoked).toEqual(['replay:hello']);
239
+ expect(delivery.result?.LastSuccessfulObservation).toBe(2n);
240
+ });
241
+ });
@@ -4,7 +4,7 @@
4
4
  import 'reflect-metadata';
5
5
  import { diag } from '@opentelemetry/api';
6
6
  import { Constructor } from '@cratis/fundamentals';
7
- import { ObservationState, ReactorMessage } from '@cratis/chronicle.contracts';
7
+ import { EventObservationState, ObservationState, ReactorMessage } from '@cratis/chronicle.contracts';
8
8
  import { IClientArtifactsProvider } from '../artifacts/index.js';
9
9
  import { ChronicleConnection } from '../connection/index.js';
10
10
  import { ConnectionLifecycle } from '../connection/ConnectionLifecycle.js';
@@ -18,6 +18,8 @@ import { notifyReplayLifecycle } from '../observation/notifyReplayLifecycle.js';
18
18
  import { IReactors } from './IReactors.js';
19
19
  import { dispatchReactorSideEffects } from './ReactorSideEffects.js';
20
20
  import { getReactorMetadata } from './reactor.js';
21
+ import { isOnceOnly } from './onceOnly.js';
22
+ import { getReplayEventType } from './replay.js';
21
23
  import type { ReactorResultHandler } from './ReactorResultHandler.js';
22
24
 
23
25
  /** Expression used to partition reactor observations by event source ID. */
@@ -29,7 +31,8 @@ const SEQUENCE_NUMBER_UNAVAILABLE = 4294967295n;
29
31
  interface EventTypeEntry {
30
32
  readonly id: string;
31
33
  readonly generation: number;
32
- readonly methodName: string;
34
+ readonly methodName?: string;
35
+ readonly replayMethodName?: string;
33
36
  }
34
37
 
35
38
  /**
@@ -240,7 +243,7 @@ export class Reactors implements IReactors {
240
243
  EventType: { Id: et.id, Generation: et.generation, Tombstone: false },
241
244
  Key: EVENT_SOURCE_ID_KEY
242
245
  })),
243
- IsReplayable: false,
246
+ IsReplayable: !isOnceOnly(reactorType),
244
247
  Tags: getTagsFor(reactorType).map(t => t.value),
245
248
  Filters: {
246
249
  FilterTags: getFilterTagsFor(reactorType).map(t => t.value),
@@ -288,7 +291,19 @@ export class Reactors implements IReactors {
288
291
 
289
292
  const entry = eventTypes.find(et => et.id === eventTypeId);
290
293
  if (!entry) {
291
- this._logger.debug('No handler registered for event type — skipping', { reactorId: id, eventTypeId });
294
+ this._logger.debug('No reactor handler found', { reactorId: id, eventTypeId });
295
+ lastSuccessfullyObservedEvent = event.Context!.SequenceNumber;
296
+ continue;
297
+ }
298
+
299
+ const isReplay = (event.Context!.ObservationState & EventObservationState.Replay) !== 0;
300
+ const methodName = isReplay ? (entry.replayMethodName ?? entry.methodName) : entry.methodName;
301
+ if (!methodName || (isReplay && isOnceOnly(reactorInstance[methodName]))) {
302
+ if (isReplay && methodName && isOnceOnly(reactorInstance[methodName])) {
303
+ this._logger.debug('Reactor handler skipped for replay', { reactorId: id, eventTypeId, method: methodName });
304
+ } else {
305
+ this._logger.debug('No reactor handler found', { reactorId: id, eventTypeId, isReplay });
306
+ }
292
307
  lastSuccessfullyObservedEvent = event.Context!.SequenceNumber;
293
308
  continue;
294
309
  }
@@ -299,12 +314,12 @@ export class Reactors implements IReactors {
299
314
 
300
315
  this._logger.info('Invoking reactor handler', {
301
316
  reactorId: id,
302
- method: entry.methodName,
317
+ method: methodName,
303
318
  sequenceNumber: event.Context!.SequenceNumber.toString(),
304
319
  eventTypeId
305
320
  });
306
321
 
307
- const handlerResult = await reactorInstance[entry.methodName](content, context);
322
+ const handlerResult = await reactorInstance[methodName](content, context);
308
323
  await dispatchReactorSideEffects(this._eventLog, handlerResult, context, reactorType as Function,
309
324
  this._eventStoreName, this._namespace, this._resultHandler);
310
325
 
@@ -350,19 +365,55 @@ export class Reactors implements IReactors {
350
365
  private getEventTypesFor(reactorType: Constructor): EventTypeEntry[] {
351
366
  const proto = reactorType.prototype as Record<string, unknown>;
352
367
  const entries: EventTypeEntry[] = [];
368
+ const replayHandlers = new Map<string, string>();
369
+ const eventTypes = new Map<string, { eventTypeClass: Function; id: string; generation: number }>();
353
370
 
354
371
  for (const eventTypeClass of this._clientArtifacts.eventTypes) {
355
- const eventTypeMeta = getEventTypeMetadata(eventTypeClass);
356
- if (!eventTypeMeta) continue;
372
+ const metadata = getEventTypeMetadata(eventTypeClass);
373
+ if (metadata) {
374
+ eventTypes.set((eventTypeClass as Function).name, {
375
+ eventTypeClass: eventTypeClass as Function,
376
+ id: metadata.eventType.id.value,
377
+ generation: metadata.eventType.generation.value
378
+ });
379
+ }
380
+ }
357
381
 
358
- const className = (eventTypeClass as Function).name;
359
- const methodName = className.charAt(0).toLowerCase() + className.slice(1);
382
+ // A derived method shadows a base method of the same name, even if it is not marked for replay.
383
+ const seenMethods = new Set<string>();
384
+ for (let current = proto; current && current !== Object.prototype; current = Object.getPrototypeOf(current) as Record<string, unknown>) {
385
+ for (const name of Object.getOwnPropertyNames(current)) {
386
+ if (seenMethods.has(name)) continue;
387
+ seenMethods.add(name);
388
+ const method = current[name];
389
+ if (typeof method !== 'function') continue;
390
+ const replayEventType = getReplayEventType(method);
391
+ if (replayEventType === undefined) continue;
392
+
393
+ const eventType = replayEventType === true
394
+ ? eventTypes.get(name.startsWith('replay') ? name.slice('replay'.length) : '')
395
+ : [...eventTypes.values()].find(candidate => candidate.eventTypeClass === replayEventType);
396
+ if (!eventType) {
397
+ throw new Error(`Replay handler '${name}' on reactor '${(reactorType as Function).name}' has no registered event type.`);
398
+ }
399
+ if (replayHandlers.has(eventType.id)) {
400
+ throw new Error(`Reactor '${(reactorType as Function).name}' has multiple replay handlers for event type '${eventType.id}': '${replayHandlers.get(eventType.id)}' and '${name}'.`);
401
+ }
402
+ replayHandlers.set(eventType.id, name);
403
+ }
404
+ }
360
405
 
361
- if (typeof proto[methodName] === 'function') {
406
+ for (const [className, eventType] of eventTypes) {
407
+ const methodName = className.charAt(0).toLowerCase() + className.slice(1);
408
+ const liveMethod = proto[methodName];
409
+ const liveMethodName = typeof liveMethod === 'function' && getReplayEventType(liveMethod) === undefined ? methodName : undefined;
410
+ const replayMethodName = replayHandlers.get(eventType.id);
411
+ if (liveMethodName || replayMethodName) {
362
412
  entries.push({
363
- id: eventTypeMeta.eventType.id.value,
364
- generation: eventTypeMeta.eventType.generation.value,
365
- methodName
413
+ id: eventType.id,
414
+ generation: eventType.generation,
415
+ methodName: liveMethodName,
416
+ replayMethodName
366
417
  });
367
418
  }
368
419
  }
@@ -0,0 +1,39 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ import { describe, expect, it } from 'vitest';
5
+ import { onceOnly, isOnceOnly } from './onceOnly.js';
6
+ import { replay, getReplayEventType } from './replay.js';
7
+
8
+ class EventForReplay {}
9
+
10
+ @onceOnly()
11
+ class StandardReactor {
12
+ @onceOnly()
13
+ eventForReplay() {}
14
+
15
+ @replay()
16
+ replayEventForReplay() {}
17
+
18
+ @replay(EventForReplay)
19
+ rebuild() {}
20
+ }
21
+
22
+ class OrdinaryReactor {}
23
+
24
+ class InheritedReactor extends StandardReactor {}
25
+
26
+ describe('standard reactor policy decorators', () => {
27
+ it('marks the class independently of its handlers', () => {
28
+ expect(isOnceOnly(StandardReactor)).toBe(true);
29
+ expect(isOnceOnly(OrdinaryReactor)).toBe(false);
30
+ expect(isOnceOnly(InheritedReactor)).toBe(false);
31
+ });
32
+
33
+ it('marks methods without modifying the class or other methods', () => {
34
+ expect(isOnceOnly(StandardReactor.prototype.eventForReplay)).toBe(true);
35
+ expect(isOnceOnly(StandardReactor.prototype.replayEventForReplay)).toBe(false);
36
+ expect(getReplayEventType(StandardReactor.prototype.replayEventForReplay)).toBe(true);
37
+ expect(getReplayEventType(StandardReactor.prototype.rebuild)).toBe(EventForReplay);
38
+ });
39
+ });
package/reactors/index.ts CHANGED
@@ -3,6 +3,8 @@
3
3
 
4
4
  export { ReactorId } from './ReactorId.js';
5
5
  export { reactor, getReactorMetadata, isReactor } from './reactor.js';
6
+ export { onceOnly } from './onceOnly.js';
7
+ export { replay } from './replay.js';
6
8
  export type { ReactorMetadata } from './reactor.js';
7
9
  export type { IReactors } from './IReactors.js';
8
10
  export { Reactors } from './Reactors.js';
@@ -0,0 +1,34 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ import 'reflect-metadata';
5
+
6
+ const METADATA_KEY = 'chronicle:reactor:onceOnly';
7
+
8
+ /**
9
+ * Reactors replay by default. Excludes a whole reactor from replay, or skips one
10
+ * handler for replayed events. A class-level marker is not inherited by subclasses.
11
+ * This does not prevent ordinary redelivery after a failed partition is retried.
12
+ * @returns A class or method decorator for legacy and standard TypeScript decorators.
13
+ */
14
+ export function onceOnly(): ClassDecorator & MethodDecorator & ((value: Function, context: ClassDecoratorContext | ClassMethodDecoratorContext) => void) {
15
+ return (target: object, propertyOrContext?: string | symbol | ClassDecoratorContext | ClassMethodDecoratorContext, descriptor?: PropertyDescriptor) => {
16
+ if (typeof propertyOrContext === 'object') {
17
+ if (propertyOrContext.kind !== 'class' && propertyOrContext.kind !== 'method') {
18
+ throw new TypeError('Once-only can only decorate a reactor class or method.');
19
+ }
20
+ Reflect.defineMetadata(METADATA_KEY, true, target);
21
+ } else if (propertyOrContext === undefined) {
22
+ Reflect.defineMetadata(METADATA_KEY, true, target);
23
+ } else if (descriptor?.value) {
24
+ Reflect.defineMetadata(METADATA_KEY, true, descriptor.value);
25
+ } else {
26
+ throw new TypeError('Once-only can only decorate a reactor class or method.');
27
+ }
28
+ };
29
+ }
30
+
31
+ /** Whether this class or handler is marked as once-only (without inheriting the marker). */
32
+ export function isOnceOnly(target: Function): boolean {
33
+ return Reflect.getOwnMetadata(METADATA_KEY, target) === true;
34
+ }
@@ -0,0 +1,36 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ import 'reflect-metadata';
5
+
6
+ const METADATA_KEY = 'chronicle:reactor:replay';
7
+
8
+ /**
9
+ * Marks a method as the alternative handler for an event during replay.
10
+ * Without an explicit event type, name the method `replay<EventClassName>`.
11
+ * The regular camelCase handler continues to handle live events, but this method replaces
12
+ * it during replay. Marking this replay handler with @onceOnly() means neither handler
13
+ * runs for replayed events.
14
+ * @param eventType - Optional event constructor for a differently named replay handler.
15
+ * @returns A method decorator for legacy and standard TypeScript decorators.
16
+ */
17
+ export function replay(eventType?: Function): MethodDecorator & ((value: Function, context: ClassMethodDecoratorContext) => void) {
18
+ return (target: object, propertyOrContext: string | symbol | ClassMethodDecoratorContext, descriptor?: PropertyDescriptor) => {
19
+ const method = typeof propertyOrContext === 'object' ? target : descriptor?.value;
20
+ if (typeof propertyOrContext === 'object' && (propertyOrContext.kind !== 'method' || propertyOrContext.static || propertyOrContext.private)) {
21
+ throw new TypeError('Replay requires a public instance method.');
22
+ }
23
+ if (typeof propertyOrContext !== 'object' && typeof target === 'function') {
24
+ throw new TypeError('Replay requires a public instance method.');
25
+ }
26
+ if (typeof method !== 'function') {
27
+ throw new TypeError('Replay requires a method.');
28
+ }
29
+ Reflect.defineMetadata(METADATA_KEY, eventType ?? true, method);
30
+ };
31
+ }
32
+
33
+ /** Gets the explicit event type, or the convention marker, for a replay handler. */
34
+ export function getReplayEventType(method: Function): Function | true | undefined {
35
+ return Reflect.getOwnMetadata(METADATA_KEY, method) as Function | true | undefined;
36
+ }
@@ -115,6 +115,34 @@ describe('ReadModels', () => {
115
115
  });
116
116
  });
117
117
 
118
+ describe('when watching a projection', () => {
119
+ class ProjectedModel { id = ''; }
120
+ field(String)(ProjectedModel.prototype, 'id');
121
+ fromEvent(SomeEvent)(ProjectedModel);
122
+
123
+ it('should skip the subscription marker and yield changes and removals', async () => {
124
+ const connection = {
125
+ readModels: { watch: async function* () {
126
+ yield { Subscribed: true, Namespace: '', ModelKey: '', ReadModel: '', Removed: false };
127
+ yield { Subscribed: false, Namespace: 'tenant', ModelKey: 'a', ReadModel: '{"id":"a"}', Removed: false };
128
+ yield { Subscribed: false, Namespace: 'tenant', ModelKey: '', ReadModel: '{"id":"empty-key"}', Removed: false };
129
+ yield { Subscribed: false, Namespace: 'tenant', ModelKey: 'a', ReadModel: '', Removed: true };
130
+ } }
131
+ } as unknown as ChronicleConnection;
132
+ const provider = { reducers: [], projections: [], readModels: [ProjectedModel] } as unknown as IClientArtifactsProvider;
133
+ const readModels = new ReadModels('store', 'tenant', connection, provider, 'sink');
134
+ const changesets = [];
135
+ for await (const changeset of readModels.watch(ProjectedModel)) {
136
+ changesets.push(changeset);
137
+ }
138
+
139
+ expect(changesets).toHaveLength(3);
140
+ expect(changesets[0]).toMatchObject({ namespace: 'tenant', key: 'a', removed: false, readModel: { id: 'a' } });
141
+ expect(changesets[1]).toMatchObject({ namespace: 'tenant', key: '', removed: false, readModel: { id: 'empty-key' } });
142
+ expect(changesets[2]).toMatchObject({ namespace: 'tenant', key: 'a', removed: true });
143
+ });
144
+ });
145
+
118
146
  describe('when watching a compliance-bearing reducer', () => {
119
147
  class PrivateModel { id = ''; ssn = ''; }
120
148
  field(String)(PrivateModel.prototype, 'id');
@@ -123,6 +151,29 @@ describe('ReadModels', () => {
123
151
  class PrivateReducer {}
124
152
  reducer('PrivateReducer', undefined, PrivateModel)(PrivateReducer);
125
153
 
154
+ it('should skip the subscription marker while releasing changes and retaining removals', async () => {
155
+ const release = vi.fn().mockResolvedValue({ HasError: false, Payload: '{"id":"a","ssn":"cleartext"}' });
156
+ const connection = {
157
+ readModels: { watch: async function* () {
158
+ yield { Subscribed: true, Namespace: '', ModelKey: '', ReadModel: '', Removed: false };
159
+ yield { Subscribed: false, Namespace: 'tenant', ModelKey: 'a', ReadModel: '{"id":"a","ssn":"ciphertext"}', Removed: false };
160
+ yield { Subscribed: false, Namespace: 'tenant', ModelKey: 'a', ReadModel: '', Removed: true };
161
+ } },
162
+ compliance: { release }
163
+ } as unknown as ChronicleConnection;
164
+ const provider = { reducers: [PrivateReducer], projections: [], readModels: [] } as unknown as IClientArtifactsProvider;
165
+ const readModels = new ReadModels('store', 'tenant', connection, provider, 'sink');
166
+ const changesets = [];
167
+ for await (const changeset of readModels.watch(PrivateModel)) {
168
+ changesets.push(changeset);
169
+ }
170
+
171
+ expect(changesets).toHaveLength(2);
172
+ expect(changesets[0]).toMatchObject({ namespace: 'tenant', key: 'a', removed: false, readModel: { id: 'a', ssn: 'cleartext' } });
173
+ expect(changesets[1]).toMatchObject({ namespace: 'tenant', key: 'a', removed: true });
174
+ expect(release).toHaveBeenCalledTimes(1);
175
+ });
176
+
126
177
  it('should reject rather than expose an unreleased changeset', async () => {
127
178
  const release = vi.fn().mockResolvedValue({ HasError: true, Error: 'denied' });
128
179
  const connection = {
@@ -178,6 +178,10 @@ export class ReadModels implements IReadModels {
178
178
  ReadModelIdentifier: readModel.identifier,
179
179
  EventSequenceId: readModel.eventSequenceId
180
180
  })) {
181
+ if (changeset.Subscribed) {
182
+ continue;
183
+ }
184
+
181
185
  const instance = this.deserializeReadModel(readModelType, changeset.ReadModel);
182
186
  const requiresRelease = !changeset.Removed && readModel.observerType === ContractReadModelObserverType.Reducer &&
183
187
  this.schemaHasComplianceMetadata(readModel.schema);