@cratis/chronicle 6.15.0 → 6.16.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.
Files changed (132) hide show
  1. package/ChronicleClient.ts +1 -1
  2. package/ChronicleOptions.ts +9 -1
  3. package/EventStore.ts +5 -3
  4. package/artifacts/ActivatedArtifact.ts +12 -0
  5. package/artifacts/ArtifactActivationContext.ts +37 -0
  6. package/artifacts/ArtifactDelivery.ts +8 -0
  7. package/artifacts/ArtifactKind.ts +8 -0
  8. package/artifacts/ClientArtifactsActivator.ts +10 -0
  9. package/artifacts/for_ChronicleOptions/when_configuring/with_an_artifact_activator.spec.ts +21 -0
  10. package/artifacts/index.ts +6 -0
  11. package/artifacts/withActivatedArtifact.ts +32 -0
  12. package/dist/ChronicleClient.js +1 -1
  13. package/dist/ChronicleClient.js.map +1 -1
  14. package/dist/ChronicleOptions.d.ts +4 -0
  15. package/dist/ChronicleOptions.d.ts.map +1 -1
  16. package/dist/ChronicleOptions.js +5 -1
  17. package/dist/ChronicleOptions.js.map +1 -1
  18. package/dist/EventStore.d.ts +2 -1
  19. package/dist/EventStore.d.ts.map +1 -1
  20. package/dist/EventStore.js +3 -3
  21. package/dist/EventStore.js.map +1 -1
  22. package/dist/artifacts/ActivatedArtifact.d.ts +10 -0
  23. package/dist/artifacts/ActivatedArtifact.d.ts.map +1 -0
  24. package/dist/artifacts/ActivatedArtifact.js +4 -0
  25. package/dist/artifacts/ActivatedArtifact.js.map +1 -0
  26. package/dist/artifacts/ArtifactActivationContext.d.ts +34 -0
  27. package/dist/artifacts/ArtifactActivationContext.d.ts.map +1 -0
  28. package/dist/artifacts/ArtifactActivationContext.js +4 -0
  29. package/dist/artifacts/ArtifactActivationContext.js.map +1 -0
  30. package/dist/artifacts/ArtifactDelivery.d.ts +6 -0
  31. package/dist/artifacts/ArtifactDelivery.d.ts.map +1 -0
  32. package/dist/artifacts/ArtifactDelivery.js +9 -0
  33. package/dist/artifacts/ArtifactDelivery.js.map +1 -0
  34. package/dist/artifacts/ArtifactKind.d.ts +6 -0
  35. package/dist/artifacts/ArtifactKind.d.ts.map +1 -0
  36. package/dist/artifacts/ArtifactKind.js +9 -0
  37. package/dist/artifacts/ArtifactKind.js.map +1 -0
  38. package/dist/artifacts/ClientArtifactsActivator.d.ts +6 -0
  39. package/dist/artifacts/ClientArtifactsActivator.d.ts.map +1 -0
  40. package/dist/artifacts/ClientArtifactsActivator.js +4 -0
  41. package/dist/artifacts/ClientArtifactsActivator.js.map +1 -0
  42. package/dist/artifacts/index.d.ts +5 -0
  43. package/dist/artifacts/index.d.ts.map +1 -1
  44. package/dist/artifacts/index.js +2 -0
  45. package/dist/artifacts/index.js.map +1 -1
  46. package/dist/artifacts/withActivatedArtifact.d.ts +9 -0
  47. package/dist/artifacts/withActivatedArtifact.d.ts.map +1 -0
  48. package/dist/artifacts/withActivatedArtifact.js +24 -0
  49. package/dist/artifacts/withActivatedArtifact.js.map +1 -0
  50. package/dist/index.d.ts +1 -0
  51. package/dist/index.d.ts.map +1 -1
  52. package/dist/index.js +1 -0
  53. package/dist/index.js.map +1 -1
  54. package/dist/projections/InvalidEventContextPropertyError.d.ts +10 -0
  55. package/dist/projections/InvalidEventContextPropertyError.d.ts.map +1 -0
  56. package/dist/projections/InvalidEventContextPropertyError.js +16 -0
  57. package/dist/projections/InvalidEventContextPropertyError.js.map +1 -0
  58. package/dist/projections/ProjectionDefinitionCompiler.d.ts +1 -0
  59. package/dist/projections/ProjectionDefinitionCompiler.d.ts.map +1 -1
  60. package/dist/projections/ProjectionDefinitionCompiler.js +18 -3
  61. package/dist/projections/ProjectionDefinitionCompiler.js.map +1 -1
  62. package/dist/projections/declarative/AllSetBuilder.d.ts.map +1 -1
  63. package/dist/projections/declarative/AllSetBuilder.js +2 -1
  64. package/dist/projections/declarative/AllSetBuilder.js.map +1 -1
  65. package/dist/projections/declarative/FromBuilder.d.ts.map +1 -1
  66. package/dist/projections/declarative/FromBuilder.js +3 -2
  67. package/dist/projections/declarative/FromBuilder.js.map +1 -1
  68. package/dist/projections/declarative/JoinBuilder.d.ts.map +1 -1
  69. package/dist/projections/declarative/JoinBuilder.js +2 -1
  70. package/dist/projections/declarative/JoinBuilder.js.map +1 -1
  71. package/dist/projections/declarative/RemovedWithBuilder.d.ts.map +1 -1
  72. package/dist/projections/declarative/RemovedWithBuilder.js +2 -1
  73. package/dist/projections/declarative/RemovedWithBuilder.js.map +1 -1
  74. package/dist/projections/declarative/SetBuilder.d.ts.map +1 -1
  75. package/dist/projections/declarative/SetBuilder.js +2 -1
  76. package/dist/projections/declarative/SetBuilder.js.map +1 -1
  77. package/dist/projections/eventContextPropertyExpression.d.ts +3 -0
  78. package/dist/projections/eventContextPropertyExpression.d.ts.map +1 -0
  79. package/dist/projections/eventContextPropertyExpression.js +69 -0
  80. package/dist/projections/eventContextPropertyExpression.js.map +1 -0
  81. package/dist/projections/index.d.ts +1 -0
  82. package/dist/projections/index.d.ts.map +1 -1
  83. package/dist/projections/index.js +1 -0
  84. package/dist/projections/index.js.map +1 -1
  85. package/dist/projections/invalidEventContextPropertyInProjection.d.ts +4 -0
  86. package/dist/projections/invalidEventContextPropertyInProjection.d.ts.map +1 -0
  87. package/dist/projections/invalidEventContextPropertyInProjection.js +7 -0
  88. package/dist/projections/invalidEventContextPropertyInProjection.js.map +1 -0
  89. package/dist/projections/modelBound/childrenAndNestedBuilder.d.ts.map +1 -1
  90. package/dist/projections/modelBound/childrenAndNestedBuilder.js +2 -1
  91. package/dist/projections/modelBound/childrenAndNestedBuilder.js.map +1 -1
  92. package/dist/reactors/ReactorServices.d.ts +12 -0
  93. package/dist/reactors/ReactorServices.d.ts.map +1 -0
  94. package/dist/reactors/ReactorServices.js +4 -0
  95. package/dist/reactors/ReactorServices.js.map +1 -0
  96. package/dist/reactors/Reactors.d.ts +5 -1
  97. package/dist/reactors/Reactors.d.ts.map +1 -1
  98. package/dist/reactors/Reactors.js +99 -39
  99. package/dist/reactors/Reactors.js.map +1 -1
  100. package/dist/reactors/index.d.ts +1 -0
  101. package/dist/reactors/index.d.ts.map +1 -1
  102. package/dist/readModels/rootReadModelTypes.d.ts.map +1 -1
  103. package/dist/readModels/rootReadModelTypes.js +12 -1
  104. package/dist/readModels/rootReadModelTypes.js.map +1 -1
  105. package/dist/reducers/Reducers.d.ts +5 -1
  106. package/dist/reducers/Reducers.d.ts.map +1 -1
  107. package/dist/reducers/Reducers.js +73 -28
  108. package/dist/reducers/Reducers.js.map +1 -1
  109. package/dist/tsconfig.tsbuildinfo +1 -1
  110. package/index.ts +1 -0
  111. package/package.json +1 -1
  112. package/projections/InvalidEventContextPropertyError.ts +14 -0
  113. package/projections/ProjectionDefinitionCompiler.ts +19 -3
  114. package/projections/declarative/AllSetBuilder.ts +2 -1
  115. package/projections/declarative/CompositeKeyBuilder.spec.ts +1 -1
  116. package/projections/declarative/FromBuilder.ts +3 -2
  117. package/projections/declarative/JoinBuilder.ts +2 -1
  118. package/projections/declarative/ProjectionBuilderFor.spec.ts +4 -4
  119. package/projections/declarative/RemovedWithBuilder.ts +2 -1
  120. package/projections/declarative/SetBuilder.ts +2 -1
  121. package/projections/eventContextExpressions.spec.ts +273 -0
  122. package/projections/eventContextPropertyExpression.ts +72 -0
  123. package/projections/index.ts +1 -0
  124. package/projections/invalidEventContextPropertyInProjection.ts +13 -0
  125. package/projections/modelBound/childrenAndNestedBuilder.ts +2 -1
  126. package/reactors/ReactorServices.ts +15 -0
  127. package/reactors/Reactors.ts +101 -42
  128. package/reactors/for_Reactors/when_delivering/with_activation.spec.ts +386 -0
  129. package/reactors/index.ts +1 -0
  130. package/readModels/rootReadModelTypes.ts +11 -1
  131. package/reducers/Reducers.ts +75 -31
  132. package/reducers/for_Reducers/when_delivering/with_activation.spec.ts +177 -0
@@ -1,6 +1,9 @@
1
1
  // Copyright (c) Cratis. All rights reserved.
2
2
  // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
3
  import { getProjectionMetadata } from '../projections/declarative/projection.js';
4
+ import { InvalidEventContextPropertyError } from '../projections/InvalidEventContextPropertyError.js';
5
+ import { invalidEventContextPropertyInProjection } from '../projections/invalidEventContextPropertyInProjection.js';
6
+ import { getReadModelId } from './readModel.js';
4
7
  import { ProjectionBuilderFor } from '../projections/declarative/ProjectionBuilderFor.js';
5
8
  import { getChildrenFromMetadata } from '../projections/modelBound/childrenFrom.js';
6
9
  import { resolveChildElementType, resolveNestedType } from '../projections/modelBound/childrenAndNestedBuilder.js';
@@ -55,7 +58,15 @@ function inspectReadModelTypes(artifacts) {
55
58
  continue;
56
59
  inspect(model);
57
60
  const builder = new ProjectionBuilderFor();
58
- new type().define(builder);
61
+ try {
62
+ new type().define(builder);
63
+ }
64
+ catch (error) {
65
+ if (error instanceof InvalidEventContextPropertyError) {
66
+ throw invalidEventContextPropertyInProjection(error, type.name, getReadModelId(model));
67
+ }
68
+ throw error;
69
+ }
59
70
  inspectDeclarative(model, builder.getSubobjectDefinitions());
60
71
  }
61
72
  for (const type of artifacts.reducers) {
@@ -1 +1 @@
1
- {"version":3,"file":"rootReadModelTypes.js","sourceRoot":"","sources":["../../readModels/rootReadModelTypes.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAIrG,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAG1F,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AACnH,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,SAAS,qBAAqB,CAAC,SAAmC;IAC9D,MAAM,MAAM,GAAG,SAAS,CAAC,UAAU,CAAC;IAC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,OAAO,GAAG,IAAI,oBAAoB,EAAW,CAAC;QACpD,IAAI,CAAC;YACA,IAAI,IAAI,EAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC5D,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,KAAK,YAAY,gCAAgC,EAAE,CAAC;gBACpD,MAAM,uCAAuC,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;YAC3F,CAAC;YACD,MAAM,KAAK,CAAC;QAChB,CAAC;QACD,kBAAkB,CAAC,KAAK,EAAE,OAAO,CAAC,uBAAuB,EAAE,CAAC,CAAC;IACjE,CAAC;IACD,KAAK,MAAM,IAAI,IAAI,SAAS,CAAC,QAAQ,EAAE,CAAC;QACpC,MAAM,KAAK,GAAG,kBAAkB,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;QAClD,IAAI,KAAK;YAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;IACD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,CAAC;AAC/C,CAAC;AAED,4FAA4F;AAC5F,MAAM,UAAU,kBAAkB,CAAC,SAAmC;IAClE,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,GAAG,qBAAqB,CAAC,SAAS,CAAC,CAAC;IACpE,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;AAC5D,CAAC;AAED,yGAAyG;AACzG,MAAM,UAAU,uBAAuB,CAAC,SAAmC;IACvE,OAAO,CAAC,GAAG,qBAAqB,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC;AACzD,CAAC"}
@@ -3,6 +3,8 @@ import { IClientArtifactsProvider } from '../artifacts/index.js';
3
3
  import { ChronicleConnection } from '../connection/index.js';
4
4
  import { ConnectionLifecycle } from '../connection/ConnectionLifecycle.js';
5
5
  import { IReducers } from './IReducers.js';
6
+ import type { IEventStore } from '../IEventStore.js';
7
+ import type { ClientArtifactsActivator } from '../artifacts/ClientArtifactsActivator.js';
6
8
  /**
7
9
  * Implements {@link IReducers}, managing discovery and registration of reducers
8
10
  * with the Chronicle Kernel via bidirectional gRPC streaming.
@@ -13,6 +15,8 @@ export declare class Reducers implements IReducers {
13
15
  private readonly _eventStoreName;
14
16
  private readonly _namespace;
15
17
  private readonly _defaultSinkTypeId;
18
+ private readonly _eventStore?;
19
+ private readonly _artifactActivator?;
16
20
  /** How long to wait before re-establishing an observation whose stream ended. */
17
21
  private static readonly _reobserveDelayMs;
18
22
  private readonly _logger;
@@ -31,7 +35,7 @@ export declare class Reducers implements IReducers {
31
35
  * @param lifecycle - The connection lifecycle used to react to disconnect events.
32
36
  * @param _defaultSinkTypeId - The default sink type identifier used when registering read models.
33
37
  */
34
- constructor(_clientArtifacts: IClientArtifactsProvider, _connection: ChronicleConnection, _eventStoreName: string, _namespace: string, lifecycle: ConnectionLifecycle, _defaultSinkTypeId: string);
38
+ constructor(_clientArtifacts: IClientArtifactsProvider, _connection: ChronicleConnection, _eventStoreName: string, _namespace: string, lifecycle: ConnectionLifecycle, _defaultSinkTypeId: string, _eventStore?: IEventStore | undefined, _artifactActivator?: ClientArtifactsActivator | undefined);
35
39
  /** Stops observations permanently when the owning client is disposed. */
36
40
  dispose(): void;
37
41
  /** @inheritdoc */
@@ -1 +1 @@
1
- {"version":3,"file":"Reducers.d.ts","sourceRoot":"","sources":["../../reducers/Reducers.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,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAyE3C;;;GAGG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AE,MAAM,EAC1B,WAAW,CAAC,EAAE,WAAW,YAAA,EACzB,kBAAkB,CAAC,EAAE,wBAAwB,YAAA,EAQjE;IAED,yEAAyE;IACzE,OAAO,IAAI,IAAI,CAId;IAED,kBAAkB;IACZ,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAS9B;IAED,kBAAkB;IACZ,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAmB9B;YAEa,kBAAkB;IAgChC,OAAO,CAAC,gBAAgB;IAmBxB,OAAO,CAAC,gBAAgB;YAkBV,cAAc;IAgB5B;;;;;;;;;OASG;IACH,OAAO,CAAC,iBAAiB;IAmBzB,OAAO,CAAC,6BAA6B;YASvB,cAAc;IAqL5B,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, ReadModelObserverType } from '@cratis/chronicle.contracts';
5
+ import { ObservationState, ReadModelObserverType, ReplayState } from '@cratis/chronicle.contracts';
6
6
  import { toClientEventContext } from '../events/toClientEventContext.js';
7
7
  import { getTagsFor } from '../events/tagDecorator.js';
8
8
  import { getFilterTagsFor } from '../events/filterEventsByTagDecorator.js';
@@ -15,6 +15,9 @@ import { getReadModelId } from '../readModels/readModel.js';
15
15
  import { buildReadModelDefinition } from '../readModels/buildReadModelDefinition.js';
16
16
  import { assertUniqueReadModelIds } from '../readModels/assertUniqueReadModelIds.js';
17
17
  import { JsonSchemaGenerator } from '../schemas/index.js';
18
+ import { ArtifactKind } from '../artifacts/ArtifactKind.js';
19
+ import { ArtifactDelivery } from '../artifacts/ArtifactDelivery.js';
20
+ import { withActivatedArtifact, runActivated } from '../artifacts/withActivatedArtifact.js';
18
21
  /** Expression used to partition reducer observations by event source ID. */
19
22
  const EVENT_SOURCE_ID_KEY = '$eventSourceId';
20
23
  /** Sentinel sequence number sent back when no event was successfully processed. */
@@ -85,6 +88,8 @@ export class Reducers {
85
88
  _eventStoreName;
86
89
  _namespace;
87
90
  _defaultSinkTypeId;
91
+ _eventStore;
92
+ _artifactActivator;
88
93
  /** How long to wait before re-establishing an observation whose stream ended. */
89
94
  static _reobserveDelayMs = 2000;
90
95
  _logger = diag.createComponentLogger({ namespace: '@cratis/chronicle/reducers' });
@@ -103,12 +108,14 @@ export class Reducers {
103
108
  * @param lifecycle - The connection lifecycle used to react to disconnect events.
104
109
  * @param _defaultSinkTypeId - The default sink type identifier used when registering read models.
105
110
  */
106
- constructor(_clientArtifacts, _connection, _eventStoreName, _namespace, lifecycle, _defaultSinkTypeId) {
111
+ constructor(_clientArtifacts, _connection, _eventStoreName, _namespace, lifecycle, _defaultSinkTypeId, _eventStore, _artifactActivator) {
107
112
  this._clientArtifacts = _clientArtifacts;
108
113
  this._connection = _connection;
109
114
  this._eventStoreName = _eventStoreName;
110
115
  this._namespace = _namespace;
111
116
  this._defaultSinkTypeId = _defaultSinkTypeId;
117
+ this._eventStore = _eventStore;
118
+ this._artifactActivator = _artifactActivator;
112
119
  this._lifecycle = lifecycle;
113
120
  lifecycle.onDisconnected(async () => {
114
121
  this._logger.info('Disconnected — stopping all reducer observations');
@@ -289,7 +296,7 @@ export class Reducers {
289
296
  }
290
297
  });
291
298
  try {
292
- const reducerInstance = new reducerType();
299
+ const reducerInstance = this._artifactActivator ? undefined : new reducerType();
293
300
  for await (const operation of this._connection.reducers.observe(queue, { signal: controller.signal })) {
294
301
  let lastSuccessfullyObservedEvent = SEQUENCE_NUMBER_UNAVAILABLE;
295
302
  let state = ObservationState.Success;
@@ -304,7 +311,19 @@ export class Reducers {
304
311
  replayState: operation.ReplayState
305
312
  });
306
313
  try {
307
- await notifyReplayLifecycle(reducerInstance, operation.ReplayState, operation.Partition);
314
+ if (this._artifactActivator && operation.ReplayState !== ReplayState.REPLAY_STATE_None) {
315
+ if (!this._eventStore)
316
+ throw new Error('Reducer activation requires the owning event store.');
317
+ await withActivatedArtifact(reducerType, {
318
+ kind: ArtifactKind.Reducer, artifactId: id, eventStore: this._eventStore,
319
+ readModels: this._eventStore.readModels, eventSequenceId, partition: operation.Partition,
320
+ signal: controller.signal, delivery: ArtifactDelivery.ReplayNotification,
321
+ replayState: operation.ReplayState
322
+ }, this._artifactActivator, artifact => runActivated(artifact, () => notifyReplayLifecycle(artifact.instance, operation.ReplayState, operation.Partition)));
323
+ }
324
+ else if (reducerInstance) {
325
+ await notifyReplayLifecycle(reducerInstance, operation.ReplayState, operation.Partition);
326
+ }
308
327
  }
309
328
  catch (err) {
310
329
  this._logger.error('Error notifying reducer of replay lifecycle transition', { reducerId: id, error: String(err) });
@@ -315,39 +334,65 @@ export class Reducers {
315
334
  let currentState = operation.InitialState
316
335
  ? JSON.parse(operation.InitialState)
317
336
  : undefined;
318
- for (const event of state === ObservationState.Failed ? [] : operation.Events) {
319
- try {
320
- const eventTypeId = event.Context?.EventType?.Id;
321
- if (!eventTypeId) {
322
- this._logger.warn('Event missing event type context', { reducerId: id });
323
- continue;
324
- }
325
- const entry = dispatcher.handlerFor(eventTypeId);
326
- if (!entry) {
327
- this._logger.debug('No handler registered for event type — skipping', { reducerId: id, eventTypeId });
337
+ const processEvents = async (artifact) => {
338
+ for (const event of state === ObservationState.Failed ? [] : operation.Events) {
339
+ try {
340
+ const eventTypeId = event.Context?.EventType?.Id;
341
+ if (!eventTypeId) {
342
+ this._logger.warn('Event missing event type context', { reducerId: id });
343
+ continue;
344
+ }
345
+ const entry = dispatcher.handlerFor(eventTypeId);
346
+ if (!entry) {
347
+ this._logger.debug('No handler registered for event type — skipping', { reducerId: id, eventTypeId });
348
+ lastSuccessfullyObservedEvent = event.Context.SequenceNumber;
349
+ continue;
350
+ }
351
+ const content = JSON.parse(event.Content);
352
+ const context = toClientEventContext(event.Context);
353
+ this._logger.info('Invoking reducer handler', {
354
+ reducerId: id,
355
+ method: entry.methodName,
356
+ sequenceNumber: event.Context.SequenceNumber.toString(),
357
+ eventTypeId,
358
+ hasState: currentState !== undefined
359
+ });
360
+ currentState = await runActivated(artifact, () => dispatcher.invoke(artifact.instance, entry, content, currentState, context));
328
361
  lastSuccessfullyObservedEvent = event.Context.SequenceNumber;
329
- continue;
330
362
  }
331
- const content = JSON.parse(event.Content);
332
- const context = toClientEventContext(event.Context);
333
- this._logger.info('Invoking reducer handler', {
334
- reducerId: id,
335
- method: entry.methodName,
336
- sequenceNumber: event.Context.SequenceNumber.toString(),
337
- eventTypeId,
338
- hasState: currentState !== undefined
339
- });
340
- currentState = await dispatcher.invoke(reducerInstance, entry, content, currentState, context);
341
- lastSuccessfullyObservedEvent = event.Context.SequenceNumber;
363
+ catch (err) {
364
+ this._logger.error('Error handling event in reducer', { reducerId: id, error: String(err) });
365
+ exceptionMessages.push(String(err));
366
+ exceptionStackTrace = err instanceof Error ? (err.stack ?? '') : '';
367
+ state = ObservationState.Failed;
368
+ break;
369
+ }
370
+ }
371
+ };
372
+ const firstInvocableEvent = this._artifactActivator && state === ObservationState.Success
373
+ ? operation.Events.find(event => !!event.Context?.EventType?.Id && !!dispatcher.handlerFor(event.Context.EventType.Id))
374
+ : undefined;
375
+ if (firstInvocableEvent && this._artifactActivator) {
376
+ try {
377
+ if (!this._eventStore)
378
+ throw new Error('Reducer activation requires the owning event store.');
379
+ await withActivatedArtifact(reducerType, {
380
+ kind: ArtifactKind.Reducer, artifactId: id, eventStore: this._eventStore,
381
+ readModels: this._eventStore.readModels, eventSequenceId, partition: operation.Partition,
382
+ signal: controller.signal, delivery: ArtifactDelivery.Events,
383
+ eventContext: toClientEventContext(firstInvocableEvent.Context)
384
+ }, this._artifactActivator, processEvents);
342
385
  }
343
386
  catch (err) {
344
- this._logger.error('Error handling event in reducer', { reducerId: id, error: String(err) });
387
+ this._logger.error('Error activating reducer', { reducerId: id, error: String(err) });
345
388
  exceptionMessages.push(String(err));
346
389
  exceptionStackTrace = err instanceof Error ? (err.stack ?? '') : '';
347
390
  state = ObservationState.Failed;
348
- break;
349
391
  }
350
392
  }
393
+ else {
394
+ await processEvents({ instance: reducerInstance ?? {} });
395
+ }
351
396
  if (state === ObservationState.Success && currentState !== undefined) {
352
397
  readModelState = JSON.stringify(currentState);
353
398
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Reducers.js","sourceRoot":"","sources":["../../reducers/Reducers.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAkB,MAAM,6BAA6B,CAAC;AAItG,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;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAEhF,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,4EAA4E;AAC5E,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;AAE7C,mFAAmF;AACnF,MAAM,2BAA2B,GAAG,WAAW,CAAC;AAEhD;;;;GAIG;AACH,MAAM,UAAU;IACK,MAAM,GAAQ,EAAE,CAAC;IAC1B,QAAQ,GAAiE,SAAS,CAAC;IACn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Q,EAAE,CAAC;QACrB,CAAC;IACL,CAAC;IAEO,aAAa;QACjB,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE;YAAE,UAAU,CAAC,KAAK,EAAE,CAAC;QACzE,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;YAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;QAC5D,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;QAC3B,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACzB,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/RejectedChronicleCredentials.ts","../connection/RoundRobinLoadBalancerStrategy.ts","../connection/TokenProvider.ts","../connection/callResults.ts","../connection/clientVersion.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/WaitForCompletionOptions.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/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/IObservers.ts","../observation/ObserverId.ts","../observation/ObserverInformation.ts","../observation/ObserverRemovalOutcome.ts","../observation/ObserverRemovalResult.ts","../observation/ObserverRunningState.ts","../observation/ObserverType.ts","../observation/Observers.ts","../observation/index.ts","../observation/notifyReplayLifecycle.ts","../observation/toClientFailedPartition.ts","../observation/toObserverInformation.ts","../observation/toObserverRemovalResult.ts","../observation/toObserverRunningState.ts","../projections/CompiledProjectionDefinitions.ts","../projections/GlobalHandlerPropertyNotOnVariant.ts","../projections/IProjections.ts","../projections/ProjectionDefinitionCompiler.ts","../projections/ProjectionId.ts","../projections/ProjectionQueryResult.ts","../projections/ProjectionState.ts","../projections/Projections.ts","../projections/ResolvedModelBoundMetadata.ts","../projections/UnableToQueryProjection.ts","../projections/VariantMustDeclareEntersOnEvent.ts","../projections/VariantReclassifier.ts","../projections/canonicalStringify.ts","../projections/constantValueExpression.ts","../projections/index.ts","../projections/notSetPropertyPath.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/isModelBoundProjection.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/buildReadModelDefinition.ts","../readModels/deserializeReadModel.ts","../readModels/index.ts","../readModels/indexDecorator.ts","../readModels/readModel.ts","../readModels/rootReadModelTypes.ts","../reducers/IReducers.ts","../reducers/ReducerEventDispatcher.ts","../reducers/ReducerEventHandler.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","../testing/ReadModelScenario.ts","../testing/ReadModelScenarioGiven.ts","../testing/ReadModelScenarioGivenBuilder.ts","../testing/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/conceptValueType.ts","../types/index.ts","../types/modelBoundProperty.ts","../types/modelBoundPropertyMetadata.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/ActivatedArtifact.ts","../artifacts/ArtifactActivationContext.ts","../artifacts/ArtifactDelivery.ts","../artifacts/ArtifactKind.ts","../artifacts/ClientArtifactsActivator.ts","../artifacts/DefaultClientArtifactsProvider.ts","../artifacts/IClientArtifactsProvider.ts","../artifacts/index.ts","../artifacts/validateArtifactSchemas.ts","../artifacts/withActivatedArtifact.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/RejectedChronicleCredentials.ts","../connection/RoundRobinLoadBalancerStrategy.ts","../connection/TokenProvider.ts","../connection/callResults.ts","../connection/clientVersion.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/WaitForCompletionOptions.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/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/IObservers.ts","../observation/ObserverId.ts","../observation/ObserverInformation.ts","../observation/ObserverRemovalOutcome.ts","../observation/ObserverRemovalResult.ts","../observation/ObserverRunningState.ts","../observation/ObserverType.ts","../observation/Observers.ts","../observation/index.ts","../observation/notifyReplayLifecycle.ts","../observation/toClientFailedPartition.ts","../observation/toObserverInformation.ts","../observation/toObserverRemovalResult.ts","../observation/toObserverRunningState.ts","../projections/CompiledProjectionDefinitions.ts","../projections/GlobalHandlerPropertyNotOnVariant.ts","../projections/IProjections.ts","../projections/InvalidEventContextPropertyError.ts","../projections/ProjectionDefinitionCompiler.ts","../projections/ProjectionId.ts","../projections/ProjectionQueryResult.ts","../projections/ProjectionState.ts","../projections/Projections.ts","../projections/ResolvedModelBoundMetadata.ts","../projections/UnableToQueryProjection.ts","../projections/VariantMustDeclareEntersOnEvent.ts","../projections/VariantReclassifier.ts","../projections/canonicalStringify.ts","../projections/constantValueExpression.ts","../projections/eventContextPropertyExpression.ts","../projections/index.ts","../projections/invalidEventContextPropertyInProjection.ts","../projections/notSetPropertyPath.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/isModelBoundProjection.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/ReactorServices.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/buildReadModelDefinition.ts","../readModels/deserializeReadModel.ts","../readModels/index.ts","../readModels/indexDecorator.ts","../readModels/readModel.ts","../readModels/rootReadModelTypes.ts","../reducers/IReducers.ts","../reducers/ReducerEventDispatcher.ts","../reducers/ReducerEventHandler.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","../testing/ReadModelScenario.ts","../testing/ReadModelScenarioGiven.ts","../testing/ReadModelScenarioGivenBuilder.ts","../testing/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/conceptValueType.ts","../types/index.ts","../types/modelBoundProperty.ts","../types/modelBoundPropertyMetadata.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/index.ts CHANGED
@@ -35,6 +35,7 @@ export type { IEventStore } from './IEventStore.js';
35
35
  export { EventStoreName } from './EventStoreName.js';
36
36
  export { EventStoreNamespaceName } from './EventStoreNamespaceName.js';
37
37
  export { Guid } from '@cratis/fundamentals';
38
+ export { ReplayState } from '@cratis/chronicle.contracts';
38
39
  export { ChronicleInstrumentationName, ChronicleTracer } from './Tracing.js';
39
40
  export { ChronicleMeter, ChronicleMeterName, ChronicleMetrics } from './Metrics.js';
40
41
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/chronicle",
3
- "version": "6.15.0",
3
+ "version": "6.16.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",
@@ -0,0 +1,14 @@
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
+ /** Error thrown when a projection maps a path that is not supported by the event-context resolver. */
5
+ export class InvalidEventContextPropertyError extends Error {
6
+ /**
7
+ * Creates an error for an unsupported event-context property path.
8
+ * @param propertyPath - The path supplied by the projection mapping.
9
+ */
10
+ constructor(readonly propertyPath: string) {
11
+ super(`Invalid event context property '${propertyPath}'.`);
12
+ this.name = 'InvalidEventContextPropertyError';
13
+ }
14
+ }
@@ -15,6 +15,9 @@ import { TypeIntrospector } from '../types/index.js';
15
15
  import { canonicalStringify } from './canonicalStringify.js';
16
16
  import { CompiledProjectionDefinitions } from './CompiledProjectionDefinitions.js';
17
17
  import { constantValueExpression } from './constantValueExpression.js';
18
+ import { eventContextPropertyExpression } from './eventContextPropertyExpression.js';
19
+ import { InvalidEventContextPropertyError } from './InvalidEventContextPropertyError.js';
20
+ import { invalidEventContextPropertyInProjection } from './invalidEventContextPropertyInProjection.js';
18
21
  import { getProjectionMetadata } from './declarative/projection.js';
19
22
  import { ProjectionBuilderFor } from './declarative/ProjectionBuilderFor.js';
20
23
  import type { IProjectionFor } from './declarative/IProjectionFor.js';
@@ -61,8 +64,9 @@ export class ProjectionDefinitionCompiler {
61
64
  */
62
65
  compile(declarative: Iterable<Constructor>, modelBound: Iterable<Constructor>): CompiledProjectionDefinitions {
63
66
  const builtProjections: BuiltProjection[] = [
64
- ...Array.from(declarative, type => this.buildDeclarativeDefinition(type)),
65
- ...Array.from(modelBound, type => this.buildModelBoundDefinition(type))
67
+ ...Array.from(declarative, type => this.buildWithContextValidation(type, () => this.buildDeclarativeDefinition(type),
68
+ getProjectionMetadata(type)?.readModelType)),
69
+ ...Array.from(modelBound, type => this.buildWithContextValidation(type, () => this.buildModelBoundDefinition(type), type))
66
70
  ];
67
71
  // A sibling's entering event adds RemovedWith to each variant. Hash only after
68
72
  // every variant has been cross-wired, so repeated registrations remain stable.
@@ -81,6 +85,18 @@ export class ProjectionDefinitionCompiler {
81
85
  };
82
86
  }
83
87
 
88
+ private buildWithContextValidation(type: Constructor, build: () => BuiltProjection, readModelType?: Constructor): BuiltProjection {
89
+ try {
90
+ return build();
91
+ } catch (error) {
92
+ if (error instanceof InvalidEventContextPropertyError) {
93
+ const readModel = readModelType ? getReadModelId(readModelType) : type.name;
94
+ throw invalidEventContextPropertyInProjection(error, type.name, readModel);
95
+ }
96
+ throw error;
97
+ }
98
+ }
99
+
84
100
  private buildReadModelDefinitions(projections: ProjectionDefinition[]): ReturnType<typeof buildReadModelDefinition>[] {
85
101
  const byReadModel = new Map<string, ReturnType<typeof buildReadModelDefinition>>();
86
102
  for (const projection of projections) {
@@ -271,7 +287,7 @@ export class ProjectionDefinitionCompiler {
271
287
  const fromEvery = getFromEveryMetadata(prototype, property) ?? getFromAllMetadata(prototype, property);
272
288
  if (fromEvery) {
273
289
  allProperties[property] = fromEvery.contextProperty
274
- ? fromEvery.contextProperty
290
+ ? eventContextPropertyExpression(fromEvery.contextProperty)
275
291
  : (fromEvery.property ?? property);
276
292
  }
277
293
  }
@@ -3,6 +3,7 @@
3
3
 
4
4
  import { PropertyAccessor, PropertyPathResolverProxyHandler } from '@cratis/fundamentals';
5
5
  import { IAllSetBuilder } from './IAllSetBuilder.js';
6
+ import { eventContextPropertyExpression } from '../eventContextPropertyExpression.js';
6
7
 
7
8
  /**
8
9
  * Concrete implementation of {@link IAllSetBuilder} for fromEvery mappings.
@@ -27,7 +28,7 @@ export class AllSetBuilder<TReadModel, TParentBuilder> implements IAllSetBuilder
27
28
 
28
29
  /** @inheritdoc */
29
30
  toEventContextProperty(contextPropertyName: string): TParentBuilder {
30
- this._setProperty(this._targetProperty, `$context.${contextPropertyName}`);
31
+ this._setProperty(this._targetProperty, eventContextPropertyExpression(contextPropertyName));
31
32
  return this._parent;
32
33
  }
33
34