@event-driven-io/emmett 0.43.0-beta.19 → 0.43.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-zc3tnsvq.js +36 -0
- package/dist/cli.cjs +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +1 -1
- package/dist/{index-C0agmFA7.d.ts → index-B6YAVHH1.d.ts} +1 -1
- package/dist/index.cjs +844 -309
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +277 -51
- package/dist/index.d.ts +276 -52
- package/dist/index.js +827 -311
- package/dist/index.js.map +1 -1
- package/dist/{plugins-CUbnGFPp.js → plugins-DgfqJ5af.js} +1 -1
- package/dist/{plugins-CUbnGFPp.js.map → plugins-DgfqJ5af.js.map} +1 -1
- package/dist/{plugins-DB9xe8AV.cjs → plugins-iXublZYn.cjs} +27 -1
- package/dist/{plugins-DB9xe8AV.cjs.map → plugins-iXublZYn.cjs.map} +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { _ as isPluginConfig, a as IllegalStateError, c as isErrorConstructor, d as EmmettCliPlugin, f as EmmettCliPluginRegistration, g as EmmettPluginType, h as EmmettPluginRegistration, i as ErrorConstructor, l as EmmettPluginsConfig, m as EmmettPluginConfig, n as ConcurrencyInMemoryDatabaseError, o as NotFoundError, p as EmmettPlugin, r as EmmettError, s as ValidationError, t as ConcurrencyError, u as EmmettCliCommand } from "./index-
|
|
1
|
+
import { _ as isPluginConfig, a as IllegalStateError, c as isErrorConstructor, d as EmmettCliPlugin, f as EmmettCliPluginRegistration, g as EmmettPluginType, h as EmmettPluginRegistration, i as ErrorConstructor, l as EmmettPluginsConfig, m as EmmettPluginConfig, n as ConcurrencyInMemoryDatabaseError, o as NotFoundError, p as EmmettPlugin, r as EmmettError, s as ValidationError, t as ConcurrencyError, u as EmmettCliCommand } from "./index-B6YAVHH1.js";
|
|
2
2
|
import retry from "async-retry";
|
|
3
|
-
import { ObservabilityConfig, ObservabilityScope } from "@event-driven-io/almanac";
|
|
3
|
+
import { AttributeTarget, Meter, ObservabilityConfig, ObservabilityScope, SpanContext, TracePropagation, Tracer } from "@event-driven-io/almanac";
|
|
4
|
+
export * from "@event-driven-io/almanac";
|
|
4
5
|
|
|
5
6
|
//#region src/typing/deepReadonly.d.ts
|
|
6
7
|
type Primitive = undefined | null | boolean | string | number | bigint | symbol | Function;
|
|
@@ -195,6 +196,198 @@ interface InMemoryDatabase {
|
|
|
195
196
|
type Predicate<T> = (item: T) => boolean;
|
|
196
197
|
declare const getInMemoryDatabase: () => InMemoryDatabase;
|
|
197
198
|
//#endregion
|
|
199
|
+
//#region src/observability/attributes.d.ts
|
|
200
|
+
declare const EmmettAttributes: {
|
|
201
|
+
readonly scope: {
|
|
202
|
+
readonly type: "emmett.scope.type";
|
|
203
|
+
};
|
|
204
|
+
readonly command: {
|
|
205
|
+
readonly type: "emmett.command.type";
|
|
206
|
+
readonly status: "emmett.command.status";
|
|
207
|
+
readonly eventCount: "emmett.command.event_count";
|
|
208
|
+
readonly eventTypes: "emmett.command.event_types";
|
|
209
|
+
};
|
|
210
|
+
readonly stream: {
|
|
211
|
+
readonly name: "emmett.stream.name";
|
|
212
|
+
readonly versionBefore: "emmett.stream.version.before";
|
|
213
|
+
readonly versionAfter: "emmett.stream.version.after";
|
|
214
|
+
};
|
|
215
|
+
readonly eventStore: {
|
|
216
|
+
readonly operation: "emmett.eventstore.operation";
|
|
217
|
+
readonly read: {
|
|
218
|
+
readonly eventCount: "emmett.eventstore.read.event_count";
|
|
219
|
+
readonly eventTypes: "emmett.eventstore.read.event_types";
|
|
220
|
+
readonly status: "emmett.eventstore.read.status";
|
|
221
|
+
};
|
|
222
|
+
readonly append: {
|
|
223
|
+
readonly batchSize: "emmett.eventstore.append.batch_size";
|
|
224
|
+
readonly status: "emmett.eventstore.append.status";
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
readonly event: {
|
|
228
|
+
readonly type: "emmett.event.type";
|
|
229
|
+
};
|
|
230
|
+
readonly processor: {
|
|
231
|
+
readonly id: "emmett.processor.id";
|
|
232
|
+
readonly type: "emmett.processor.type";
|
|
233
|
+
readonly status: "emmett.processor.status";
|
|
234
|
+
readonly batchSize: "emmett.processor.batch_size";
|
|
235
|
+
readonly eventTypes: "emmett.processor.event_types";
|
|
236
|
+
readonly checkpointBefore: "emmett.processor.checkpoint.before";
|
|
237
|
+
readonly checkpointAfter: "emmett.processor.checkpoint.after";
|
|
238
|
+
readonly lagEvents: "emmett.processor.lag_events";
|
|
239
|
+
};
|
|
240
|
+
readonly workflow: {
|
|
241
|
+
readonly id: "emmett.workflow.id";
|
|
242
|
+
readonly type: "emmett.workflow.type";
|
|
243
|
+
readonly inputType: "emmett.workflow.input.type";
|
|
244
|
+
readonly outputs: "emmett.workflow.outputs";
|
|
245
|
+
readonly outputsCount: "emmett.workflow.outputs.count";
|
|
246
|
+
readonly streamPosition: "emmett.workflow.stream_position";
|
|
247
|
+
readonly stateRebuildEventCount: "emmett.workflow.state_rebuild.event_count";
|
|
248
|
+
};
|
|
249
|
+
readonly consumer: {
|
|
250
|
+
readonly batchSize: "emmett.consumer.batch_size";
|
|
251
|
+
readonly processorCount: "emmett.consumer.processor_count";
|
|
252
|
+
readonly delivery: {
|
|
253
|
+
readonly processorId: "emmett.consumer.delivery.processor_id";
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
declare const EmmettMetrics: {
|
|
258
|
+
readonly command: {
|
|
259
|
+
readonly handlingDuration: "emmett.command.handling.duration";
|
|
260
|
+
};
|
|
261
|
+
readonly event: {
|
|
262
|
+
readonly appendingCount: "emmett.event.appending.count";
|
|
263
|
+
readonly readingCount: "emmett.event.reading.count";
|
|
264
|
+
};
|
|
265
|
+
readonly stream: {
|
|
266
|
+
readonly readingDuration: "emmett.stream.reading.duration";
|
|
267
|
+
readonly readingSize: "emmett.stream.reading.size";
|
|
268
|
+
readonly appendingDuration: "emmett.stream.appending.duration";
|
|
269
|
+
readonly appendingSize: "emmett.stream.appending.size";
|
|
270
|
+
};
|
|
271
|
+
readonly processor: {
|
|
272
|
+
readonly processingDuration: "emmett.processor.processing.duration";
|
|
273
|
+
readonly lagEvents: "emmett.processor.lag_events";
|
|
274
|
+
};
|
|
275
|
+
readonly workflow: {
|
|
276
|
+
readonly processingDuration: "emmett.workflow.processing.duration";
|
|
277
|
+
};
|
|
278
|
+
readonly consumer: {
|
|
279
|
+
readonly pollDuration: "emmett.consumer.poll.duration";
|
|
280
|
+
readonly deliveryDuration: "emmett.consumer.delivery.duration";
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
declare const ScopeTypes: {
|
|
284
|
+
readonly command: "command";
|
|
285
|
+
readonly processor: "processor";
|
|
286
|
+
readonly reactor: "reactor";
|
|
287
|
+
readonly projector: "projector";
|
|
288
|
+
readonly workflow: "workflow";
|
|
289
|
+
readonly consumer: "consumer";
|
|
290
|
+
};
|
|
291
|
+
declare const MessagingSystemName: "emmett";
|
|
292
|
+
//#endregion
|
|
293
|
+
//#region src/observability/options.d.ts
|
|
294
|
+
type WithObservabilityScope<Context> = Context & {
|
|
295
|
+
observabilityScope: ObservabilityScope;
|
|
296
|
+
};
|
|
297
|
+
type PollTracing = 'off' | 'active' | 'verbose';
|
|
298
|
+
type EmmettObservabilityConfig = ObservabilityConfig<'emmett'> & {
|
|
299
|
+
pollTracing?: PollTracing;
|
|
300
|
+
includeMessagePayloads?: boolean;
|
|
301
|
+
};
|
|
302
|
+
type EmmettObservabilityOptions = {
|
|
303
|
+
observability?: EmmettObservabilityConfig;
|
|
304
|
+
};
|
|
305
|
+
type ConsumerObservabilityConfig = Pick<EmmettObservabilityConfig, 'tracer' | 'meter' | 'pollTracing' | 'attributeTarget'>;
|
|
306
|
+
type WorkflowObservabilityConfig = Pick<EmmettObservabilityConfig, 'tracer' | 'meter' | 'propagation' | 'attributeTarget' | 'includeMessagePayloads'>;
|
|
307
|
+
type ResolvedConsumerObservability = {
|
|
308
|
+
tracer: Tracer;
|
|
309
|
+
meter: Meter;
|
|
310
|
+
pollTracing: PollTracing;
|
|
311
|
+
attributeTarget: AttributeTarget;
|
|
312
|
+
};
|
|
313
|
+
type ResolvedWorkflowObservability = {
|
|
314
|
+
tracer: Tracer;
|
|
315
|
+
meter: Meter;
|
|
316
|
+
propagation: TracePropagation;
|
|
317
|
+
attributeTarget: AttributeTarget;
|
|
318
|
+
includeMessagePayloads: boolean;
|
|
319
|
+
};
|
|
320
|
+
declare const resolveConsumerObservability: (options: {
|
|
321
|
+
observability?: ConsumerObservabilityConfig;
|
|
322
|
+
} | undefined, parent?: EmmettObservabilityOptions) => ResolvedConsumerObservability;
|
|
323
|
+
declare const resolveWorkflowObservability: (options: {
|
|
324
|
+
observability?: WorkflowObservabilityConfig;
|
|
325
|
+
} | undefined, parent?: EmmettObservabilityOptions) => ResolvedWorkflowObservability;
|
|
326
|
+
//#endregion
|
|
327
|
+
//#region src/observability/tracer.d.ts
|
|
328
|
+
declare const tracer: {
|
|
329
|
+
(): void;
|
|
330
|
+
info(eventName: string, attributes?: Record<string, any>): void;
|
|
331
|
+
warn(eventName: string, attributes?: Record<string, any>): void;
|
|
332
|
+
log(eventName: string, attributes?: Record<string, any>): void;
|
|
333
|
+
error(eventName: string, attributes?: Record<string, any>): void;
|
|
334
|
+
};
|
|
335
|
+
type LogLevel = 'DISABLED' | 'INFO' | 'LOG' | 'WARN' | 'ERROR';
|
|
336
|
+
declare const LogLevel: {
|
|
337
|
+
DISABLED: LogLevel;
|
|
338
|
+
INFO: LogLevel;
|
|
339
|
+
LOG: LogLevel;
|
|
340
|
+
WARN: LogLevel;
|
|
341
|
+
ERROR: LogLevel;
|
|
342
|
+
};
|
|
343
|
+
type LogType = 'CONSOLE';
|
|
344
|
+
type LogStyle = 'RAW' | 'PRETTY';
|
|
345
|
+
declare const LogStyle: {
|
|
346
|
+
RAW: LogStyle;
|
|
347
|
+
PRETTY: LogStyle;
|
|
348
|
+
};
|
|
349
|
+
//#endregion
|
|
350
|
+
//#region src/eventStore/observability/eventStoreCollector.d.ts
|
|
351
|
+
type EventStoreObservabilityConfig = Pick<EmmettObservabilityConfig, 'tracer' | 'meter' | 'attributeTarget'>;
|
|
352
|
+
type ResolvedEventStoreObservability = {
|
|
353
|
+
tracer: Tracer;
|
|
354
|
+
meter: Meter;
|
|
355
|
+
attributeTarget: AttributeTarget;
|
|
356
|
+
};
|
|
357
|
+
declare const resolveEventStoreObservability: (options: {
|
|
358
|
+
observability?: EventStoreObservabilityConfig;
|
|
359
|
+
} | undefined, parent?: EmmettObservabilityOptions) => ResolvedEventStoreObservability;
|
|
360
|
+
declare const eventStoreCollector: (observability: ResolvedEventStoreObservability) => {
|
|
361
|
+
instrumentRead: <EventType extends Event, ReadEventMetadataType extends AnyReadEventMetadata = AnyRecordedMessageMetadata>(streamName: string, fn: () => Promise<ReadStreamResult<EventType, ReadEventMetadataType>>) => Promise<ReadStreamResult<EventType, ReadEventMetadataType>>;
|
|
362
|
+
instrumentAppend: <Result extends AppendToStreamResult, EventType extends Event = Event>(streamName: string, events: EventType[], fn: () => Promise<Result>) => Promise<Result>;
|
|
363
|
+
};
|
|
364
|
+
//#endregion
|
|
365
|
+
//#region src/observability/collectors/consumerCollector.d.ts
|
|
366
|
+
declare const consumerCollector: (observability: ResolvedConsumerObservability) => {
|
|
367
|
+
tracePoll: <T>(context: {
|
|
368
|
+
processorCount: number;
|
|
369
|
+
batchSize: number;
|
|
370
|
+
empty: boolean;
|
|
371
|
+
waitMs?: number;
|
|
372
|
+
}, fn: (scope: ObservabilityScope) => Promise<T>) => Promise<T>;
|
|
373
|
+
recordPollMetrics: (durationMs: number, attrs?: Record<string, unknown>) => void;
|
|
374
|
+
traceDelivery: <T>(scope: ObservabilityScope, processorId: string, fn: () => Promise<T>) => Promise<T>;
|
|
375
|
+
};
|
|
376
|
+
//#endregion
|
|
377
|
+
//#region src/observability/collectors/workflowCollector.d.ts
|
|
378
|
+
type WorkflowCollectorContext = {
|
|
379
|
+
workflowId: string;
|
|
380
|
+
workflowType: string;
|
|
381
|
+
inputType: string;
|
|
382
|
+
};
|
|
383
|
+
declare const workflowCollector: (observability: ResolvedWorkflowObservability) => {
|
|
384
|
+
startScope: <T>(context: WorkflowCollectorContext, fn: (scope: ObservabilityScope) => Promise<T>) => Promise<T>;
|
|
385
|
+
recordOutputs: (scope: ObservabilityScope, outputs: {
|
|
386
|
+
type: string;
|
|
387
|
+
}[]) => void;
|
|
388
|
+
recordStateRebuild: (scope: ObservabilityScope, eventCount: number) => void;
|
|
389
|
+
};
|
|
390
|
+
//#endregion
|
|
198
391
|
//#region src/serialization/json/serializer.d.ts
|
|
199
392
|
interface Serializer<Payload, SerializeOptions extends Record<string, unknown> = Record<string, unknown>, DeserializeOptions extends Record<string, unknown> = SerializeOptions> {
|
|
200
393
|
serialize<T>(object: T, options?: SerializeOptions): Payload;
|
|
@@ -268,37 +461,63 @@ declare const JSONCodec: <T, Payload = T, SerializeOptions extends JSONSerialize
|
|
|
268
461
|
//#endregion
|
|
269
462
|
//#region src/projections/index.d.ts
|
|
270
463
|
type ProjectionHandlingType = 'inline' | 'async';
|
|
271
|
-
type
|
|
272
|
-
type
|
|
273
|
-
type
|
|
464
|
+
type ProjectionHandlerContext<HandlerContext extends DefaultRecord = DefaultRecord> = MessageHandlerContext<HandlerContext>;
|
|
465
|
+
type ProjectionHandler<EventType extends Event = AnyEvent, EventMetaDataType extends AnyReadEventMetadata = AnyReadEventMetadata, HandlerContext extends ProjectionHandlerContext = ProjectionHandlerContext> = BatchRecordedMessageHandlerWithContext<EventType, EventMetaDataType, HandlerContext>;
|
|
466
|
+
type TruncateProjection<HandlerContext extends ProjectionHandlerContext = ProjectionHandlerContext> = (context: HandlerContext) => Promise<void>;
|
|
467
|
+
type ProjectionInitOptions<HandlerContext extends ProjectionHandlerContext = ProjectionHandlerContext> = {
|
|
274
468
|
version: number;
|
|
275
469
|
status?: 'active' | 'inactive';
|
|
276
470
|
registrationType: ProjectionHandlingType;
|
|
277
|
-
context:
|
|
471
|
+
context: HandlerContext;
|
|
278
472
|
};
|
|
279
|
-
type ProjectionDefinition<EventType extends Event = AnyEvent, EventMetaDataType extends AnyReadEventMetadata = AnyReadEventMetadata,
|
|
473
|
+
type ProjectionDefinition<EventType extends Event = AnyEvent, EventMetaDataType extends AnyReadEventMetadata = AnyReadEventMetadata, HandlerContext extends ProjectionHandlerContext = ProjectionHandlerContext, EventPayloadType extends Event = EventType> = {
|
|
280
474
|
name?: string;
|
|
281
475
|
version?: number;
|
|
282
476
|
kind?: string;
|
|
283
477
|
canHandle: CanHandle<EventType>;
|
|
284
|
-
handle: ProjectionHandler<EventType, EventMetaDataType,
|
|
285
|
-
truncate?: TruncateProjection<
|
|
286
|
-
init?: (options: ProjectionInitOptions<
|
|
478
|
+
handle: ProjectionHandler<EventType, EventMetaDataType, HandlerContext>;
|
|
479
|
+
truncate?: TruncateProjection<HandlerContext>;
|
|
480
|
+
init?: (options: ProjectionInitOptions<HandlerContext>) => void | Promise<void>;
|
|
287
481
|
eventsOptions?: {
|
|
288
482
|
schema?: EventStoreReadSchemaOptions<EventType, EventPayloadType>;
|
|
289
483
|
};
|
|
290
484
|
} & JSONSerializationOptions;
|
|
291
|
-
type ProjectionRegistration<HandlingType extends ProjectionHandlingType, ReadEventMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata,
|
|
485
|
+
type ProjectionRegistration<HandlingType extends ProjectionHandlingType, ReadEventMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata, HandlerContext extends ProjectionHandlerContext = ProjectionHandlerContext> = {
|
|
292
486
|
type: HandlingType;
|
|
293
|
-
projection: ProjectionDefinition<AnyEvent, ReadEventMetadataType,
|
|
487
|
+
projection: ProjectionDefinition<AnyEvent, ReadEventMetadataType, HandlerContext, AnyEvent>;
|
|
294
488
|
};
|
|
295
|
-
declare const filterProjections: <ReadEventMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata,
|
|
296
|
-
declare const projection: <EventType extends Event = Event, EventMetaDataType extends AnyReadEventMetadata = AnyReadEventMetadata,
|
|
297
|
-
declare const inlineProjections: <ReadEventMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata,
|
|
298
|
-
declare const asyncProjections: <ReadEventMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata,
|
|
489
|
+
declare const filterProjections: <ReadEventMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata, HandlerContext extends ProjectionHandlerContext = ProjectionHandlerContext>(type: ProjectionHandlingType, projections: ProjectionRegistration<ProjectionHandlingType, ReadEventMetadataType, HandlerContext>[]) => ProjectionDefinition<AnyEvent, ReadEventMetadataType, HandlerContext, AnyEvent>[];
|
|
490
|
+
declare const projection: <EventType extends Event = Event, EventMetaDataType extends AnyReadEventMetadata = AnyReadEventMetadata, HandlerContext extends ProjectionHandlerContext = ProjectionHandlerContext, EventPayloadType extends Event = EventType>(definition: ProjectionDefinition<EventType, EventMetaDataType, HandlerContext, EventPayloadType>) => ProjectionDefinition<EventType, EventMetaDataType, HandlerContext, EventPayloadType>;
|
|
491
|
+
declare const inlineProjections: <ReadEventMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata, HandlerContext extends ProjectionHandlerContext = ProjectionHandlerContext>(definitions: ProjectionDefinition<any, ReadEventMetadataType, HandlerContext>[]) => ProjectionRegistration<"inline", ReadEventMetadataType, HandlerContext>[];
|
|
492
|
+
declare const asyncProjections: <ReadEventMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata, HandlerContext extends ProjectionHandlerContext = ProjectionHandlerContext>(definitions: ProjectionDefinition<AnyEvent, ReadEventMetadataType, HandlerContext>[]) => ProjectionRegistration<"inline", ReadEventMetadataType, HandlerContext>[];
|
|
299
493
|
declare const projections: {
|
|
300
|
-
inline: <ReadEventMetadataType extends AnyReadEventMetadata = AnyRecordedMessageMetadata,
|
|
301
|
-
async: <ReadEventMetadataType extends AnyReadEventMetadata = AnyRecordedMessageMetadata,
|
|
494
|
+
inline: <ReadEventMetadataType extends AnyReadEventMetadata = AnyRecordedMessageMetadata, HandlerContext extends ProjectionHandlerContext = ProjectionHandlerContext<DefaultRecord>>(definitions: ProjectionDefinition<any, ReadEventMetadataType, HandlerContext>[]) => ProjectionRegistration<"inline", ReadEventMetadataType, HandlerContext>[];
|
|
495
|
+
async: <ReadEventMetadataType extends AnyReadEventMetadata = AnyRecordedMessageMetadata, HandlerContext extends ProjectionHandlerContext = ProjectionHandlerContext<DefaultRecord>>(definitions: ProjectionDefinition<AnyEvent, ReadEventMetadataType, HandlerContext>[]) => ProjectionRegistration<"inline", ReadEventMetadataType, HandlerContext>[];
|
|
496
|
+
};
|
|
497
|
+
//#endregion
|
|
498
|
+
//#region src/processors/observability/processorCollector.d.ts
|
|
499
|
+
type ProcessorObservabilityConfig = Pick<EmmettObservabilityConfig, 'tracer' | 'meter' | 'propagation' | 'attributeTarget' | 'includeMessagePayloads'>;
|
|
500
|
+
type ResolvedProcessorObservability = {
|
|
501
|
+
tracer: Tracer;
|
|
502
|
+
meter: Meter;
|
|
503
|
+
propagation: TracePropagation;
|
|
504
|
+
attributeTarget: AttributeTarget;
|
|
505
|
+
includeMessagePayloads: boolean;
|
|
506
|
+
};
|
|
507
|
+
declare const resolveProcessorObservability: (options: {
|
|
508
|
+
observability?: ProcessorObservabilityConfig;
|
|
509
|
+
} | undefined, parent?: EmmettObservabilityOptions) => ResolvedProcessorObservability;
|
|
510
|
+
type ProcessorCollectorContext = {
|
|
511
|
+
processorId: string;
|
|
512
|
+
type: string;
|
|
513
|
+
checkpoint: ProcessorCheckpoint | null;
|
|
514
|
+
};
|
|
515
|
+
declare const processorCollector: (observability: ResolvedProcessorObservability) => {
|
|
516
|
+
startScope: <MessageType extends Message = Message, MessageMetadataType extends AnyReadEventMetadata = AnyRecordedMessageMetadata, T = void>(context: ProcessorCollectorContext, messages: RecordedMessage<MessageType, MessageMetadataType>[], fn: (scope: ObservabilityScope) => Promise<T>) => Promise<T>;
|
|
517
|
+
startMessageScope: <MessageType extends Message = Message, MessageMetadataType extends AnyReadEventMetadata = AnyRecordedMessageMetadata, T = void>(context: ProcessorCollectorContext & {
|
|
518
|
+
archetypeType: string;
|
|
519
|
+
}, message: RecordedMessage<MessageType, MessageMetadataType>, batchCtx: SpanContext, fn: (scope: ObservabilityScope) => Promise<T>) => Promise<T>;
|
|
520
|
+
recordLag: (processorId: string, lag: number) => void;
|
|
302
521
|
};
|
|
303
522
|
//#endregion
|
|
304
523
|
//#region src/processors/processors.d.ts
|
|
@@ -312,14 +531,14 @@ declare const MessageProcessorType: {
|
|
|
312
531
|
PROJECTOR: MessageProcessorType;
|
|
313
532
|
REACTOR: MessageProcessorType;
|
|
314
533
|
};
|
|
315
|
-
type MessageProcessor<MessageType extends AnyMessage = AnyMessage, MessageMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata, HandlerContext extends
|
|
534
|
+
type MessageProcessor<MessageType extends AnyMessage = AnyMessage, MessageMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata, HandlerContext extends MessageHandlerContext | undefined = undefined> = {
|
|
316
535
|
id: string;
|
|
317
536
|
instanceId: string;
|
|
318
537
|
type: string;
|
|
319
538
|
canHandle?: string[];
|
|
320
|
-
init: (options
|
|
321
|
-
start: (options
|
|
322
|
-
close: (closeOptions
|
|
539
|
+
init: (options?: Partial<HandlerContext>) => Promise<void>;
|
|
540
|
+
start: (options?: Partial<HandlerContext>) => Promise<CurrentMessageProcessorPosition | undefined>;
|
|
541
|
+
close: (closeOptions?: Partial<HandlerContext>) => Promise<void>;
|
|
323
542
|
isActive: boolean;
|
|
324
543
|
handle: BatchRecordedMessageHandlerWithContext<MessageType, MessageMetadataType, Partial<HandlerContext>>;
|
|
325
544
|
};
|
|
@@ -334,13 +553,13 @@ declare const MessageProcessor: {
|
|
|
334
553
|
}) => SingleMessageHandlerResult;
|
|
335
554
|
};
|
|
336
555
|
};
|
|
337
|
-
type MessageProcessingScope<HandlerContext extends
|
|
338
|
-
type ProcessorHooks<HandlerContext extends
|
|
556
|
+
type MessageProcessingScope<HandlerContext extends MessageHandlerContext | undefined = undefined> = <Result = SingleMessageHandlerResult>(handler: (context: HandlerContext) => Result | Promise<Result>, partialContext: WithObservabilityScope<Partial<HandlerContext>>) => Result | Promise<Result>;
|
|
557
|
+
type ProcessorHooks<HandlerContext extends MessageHandlerContext = MessageHandlerContext> = {
|
|
339
558
|
onInit?: OnReactorInitHook<HandlerContext>;
|
|
340
559
|
onStart?: OnReactorStartHook<HandlerContext>;
|
|
341
560
|
onClose?: OnReactorCloseHook<HandlerContext>;
|
|
342
561
|
};
|
|
343
|
-
type BaseMessageProcessorOptions<MessageType extends AnyMessage = AnyMessage, MessageMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata, HandlerContext extends
|
|
562
|
+
type BaseMessageProcessorOptions<MessageType extends AnyMessage = AnyMessage, MessageMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata, HandlerContext extends MessageHandlerContext = MessageHandlerContext> = {
|
|
344
563
|
type?: string;
|
|
345
564
|
processorId: string;
|
|
346
565
|
processorInstanceId?: string;
|
|
@@ -352,18 +571,20 @@ type BaseMessageProcessorOptions<MessageType extends AnyMessage = AnyMessage, Me
|
|
|
352
571
|
checkpoints?: Checkpointer<MessageType, MessageMetadataType, HandlerContext>;
|
|
353
572
|
canHandle?: CanHandle<MessageType>;
|
|
354
573
|
hooks?: ProcessorHooks<HandlerContext>;
|
|
355
|
-
} & JSONSerializationOptions
|
|
356
|
-
|
|
574
|
+
} & JSONSerializationOptions & {
|
|
575
|
+
observability?: ProcessorObservabilityConfig;
|
|
576
|
+
};
|
|
577
|
+
type HandlerOptions<MessageType extends AnyMessage = AnyMessage, MessageMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata, HandlerContext extends MessageHandlerContext = MessageHandlerContext> = {
|
|
357
578
|
eachMessage: SingleRecordedMessageHandlerWithContext<MessageType, MessageMetadataType, HandlerContext>;
|
|
358
579
|
eachBatch?: never;
|
|
359
580
|
} | {
|
|
360
581
|
eachMessage?: never;
|
|
361
582
|
eachBatch: BatchRecordedMessageHandlerWithContext<MessageType, MessageMetadataType, HandlerContext>;
|
|
362
583
|
};
|
|
363
|
-
type OnReactorInitHook<HandlerContext extends
|
|
364
|
-
type OnReactorStartHook<HandlerContext extends
|
|
365
|
-
type OnReactorCloseHook<HandlerContext extends
|
|
366
|
-
type ReactorOptions<MessageType extends AnyMessage = AnyMessage, MessageMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata, HandlerContext extends
|
|
584
|
+
type OnReactorInitHook<HandlerContext extends MessageHandlerContext = MessageHandlerContext> = (context: HandlerContext) => Promise<void>;
|
|
585
|
+
type OnReactorStartHook<HandlerContext extends MessageHandlerContext = MessageHandlerContext> = (context: HandlerContext) => Promise<void>;
|
|
586
|
+
type OnReactorCloseHook<HandlerContext extends MessageHandlerContext = MessageHandlerContext> = (context: HandlerContext) => Promise<void>;
|
|
587
|
+
type ReactorOptions<MessageType extends AnyMessage = AnyMessage, MessageMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata, HandlerContext extends MessageHandlerContext = MessageHandlerContext, MessagePayloadType extends AnyMessage = MessageType> = BaseMessageProcessorOptions<MessageType, MessageMetadataType, HandlerContext> & HandlerOptions<MessageType, MessageMetadataType, HandlerContext> & {
|
|
367
588
|
messageOptions?: {
|
|
368
589
|
schema?: {
|
|
369
590
|
versioning?: {
|
|
@@ -372,26 +593,26 @@ type ReactorOptions<MessageType extends AnyMessage = AnyMessage, MessageMetadata
|
|
|
372
593
|
};
|
|
373
594
|
};
|
|
374
595
|
};
|
|
375
|
-
type ProjectorOptions<EventType extends AnyEvent = AnyEvent, MessageMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata, HandlerContext extends
|
|
596
|
+
type ProjectorOptions<EventType extends AnyEvent = AnyEvent, MessageMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata, HandlerContext extends MessageHandlerContext = MessageHandlerContext, EventPayloadType extends Event = EventType> = Omit<BaseMessageProcessorOptions<EventType, MessageMetadataType, HandlerContext>, 'type' | 'processorId'> & {
|
|
376
597
|
processorId?: string;
|
|
377
598
|
} & {
|
|
378
599
|
truncateOnStart?: boolean;
|
|
379
600
|
projection: ProjectionDefinition<EventType, MessageMetadataType, HandlerContext, EventPayloadType>;
|
|
380
601
|
};
|
|
381
|
-
declare const defaultProcessingMessageProcessingScope: <HandlerContext = never, Result = SingleMessageHandlerResult>(handler: (context: HandlerContext) => Result | Promise<Result>, partialContext: Partial<HandlerContext
|
|
602
|
+
declare const defaultProcessingMessageProcessingScope: <HandlerContext = never, Result = SingleMessageHandlerResult>(handler: (context: WithObservabilityScope<HandlerContext>) => Result | Promise<Result>, partialContext: WithObservabilityScope<Partial<HandlerContext>>) => Result | Promise<Result>;
|
|
382
603
|
declare const defaultProcessorVersion = 1;
|
|
383
604
|
declare const defaultProcessorPartition = "emt:default";
|
|
384
605
|
declare const getProcessorInstanceId: (processorId: string) => string;
|
|
385
606
|
declare const getProjectorId: (options: {
|
|
386
607
|
projectionName: string;
|
|
387
608
|
}) => string;
|
|
388
|
-
declare const reactor: <MessageType extends Message = AnyMessage, MessageMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata, HandlerContext extends
|
|
389
|
-
declare const projector: <EventType extends Event = Event, EventMetaDataType extends AnyRecordedMessageMetadata = AnyRecordedMessageMetadata, HandlerContext extends
|
|
609
|
+
declare const reactor: <MessageType extends Message = AnyMessage, MessageMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata, HandlerContext extends MessageHandlerContext = MessageHandlerContext, MessagePayloadType extends Message = MessageType>(options: ReactorOptions<MessageType, MessageMetadataType, HandlerContext, MessagePayloadType>) => MessageProcessor<MessageType, MessageMetadataType, HandlerContext>;
|
|
610
|
+
declare const projector: <EventType extends Event = Event, EventMetaDataType extends AnyRecordedMessageMetadata = AnyRecordedMessageMetadata, HandlerContext extends MessageHandlerContext = MessageHandlerContext, EventPayloadType extends Event = EventType>(options: ProjectorOptions<EventType, EventMetaDataType, HandlerContext, EventPayloadType>) => MessageProcessor<EventType, EventMetaDataType, HandlerContext>;
|
|
390
611
|
//#endregion
|
|
391
612
|
//#region src/processors/inMemoryProcessors.d.ts
|
|
392
|
-
type InMemoryProcessorHandlerContext = {
|
|
613
|
+
type InMemoryProcessorHandlerContext = MessageHandlerContext<{
|
|
393
614
|
database: InMemoryDatabase;
|
|
394
|
-
}
|
|
615
|
+
}>;
|
|
395
616
|
type InMemoryProcessor<MessageType extends AnyMessage = AnyMessage> = MessageProcessor<MessageType, ReadEventMetadataWithGlobalPosition, InMemoryProcessorHandlerContext> & {
|
|
396
617
|
database: InMemoryDatabase;
|
|
397
618
|
};
|
|
@@ -488,6 +709,7 @@ type ReadEventMetadataWithGlobalPosition = RecordedMessageMetadataWithGlobalPosi
|
|
|
488
709
|
type ReadEventMetadataWithoutGlobalPosition = RecordedMessageMetadataWithoutGlobalPosition;
|
|
489
710
|
//#endregion
|
|
490
711
|
//#region src/typing/messageHandling.d.ts
|
|
712
|
+
type MessageHandlerContext<HandlerContext extends DefaultRecord = DefaultRecord> = WithObservabilityScope<HandlerContext>;
|
|
491
713
|
type SingleRawMessageHandlerWithoutContext<MessageType extends Message = AnyMessage> = (message: MessageType) => Promise<SingleMessageHandlerResult> | SingleMessageHandlerResult;
|
|
492
714
|
type SingleRecordedMessageHandlerWithoutContext<MessageType extends Message = AnyMessage, MessageMetaDataType extends AnyRecordedMessageMetadata = AnyRecordedMessageMetadata> = (message: RecordedMessage<MessageType, MessageMetaDataType>) => Promise<SingleMessageHandlerResult> | SingleMessageHandlerResult;
|
|
493
715
|
type SingleMessageHandlerWithoutContext<MessageType extends AnyMessage = AnyMessage, MessageMetaDataType extends AnyRecordedMessageMetadata = never> = SingleRawMessageHandlerWithoutContext<MessageType> | SingleRecordedMessageHandlerWithoutContext<MessageType, MessageMetaDataType>;
|
|
@@ -729,13 +951,14 @@ type InMemoryEventStore = EventStore<ReadEventMetadataWithGlobalPosition> & {
|
|
|
729
951
|
database: InMemoryDatabase;
|
|
730
952
|
};
|
|
731
953
|
type InMemoryReadEventMetadata = ReadEventMetadataWithGlobalPosition;
|
|
732
|
-
type InMemoryProjectionHandlerContext = {
|
|
954
|
+
type InMemoryProjectionHandlerContext = MessageHandlerContext<{
|
|
733
955
|
eventStore?: InMemoryEventStore;
|
|
734
956
|
database?: InMemoryDatabase;
|
|
735
|
-
}
|
|
957
|
+
}>;
|
|
736
958
|
type InMemoryEventStoreOptions = DefaultEventStoreOptions<InMemoryEventStore> & {
|
|
737
959
|
projections?: ProjectionRegistration<'inline', InMemoryReadEventMetadata, InMemoryProjectionHandlerContext>[];
|
|
738
960
|
database?: InMemoryDatabase;
|
|
961
|
+
observability?: EventStoreObservabilityConfig;
|
|
739
962
|
};
|
|
740
963
|
type InMemoryReadEvent<EventType extends Event = Event> = ReadEvent<EventType, ReadEventMetadataWithGlobalPosition>;
|
|
741
964
|
declare const getInMemoryEventStore: (eventStoreOptions?: InMemoryEventStoreOptions) => InMemoryEventStore;
|
|
@@ -748,6 +971,7 @@ type InMemoryProjectionHandlerOptions<EventType extends Event = Event> = {
|
|
|
748
971
|
events: ReadEvent<EventType, InMemoryReadEventMetadata>[];
|
|
749
972
|
database: InMemoryDatabase;
|
|
750
973
|
eventStore?: InMemoryProjectionHandlerContext['eventStore'];
|
|
974
|
+
observability: ResolvedEventStoreObservability;
|
|
751
975
|
};
|
|
752
976
|
/**
|
|
753
977
|
* Handles projections for the InMemoryEventStore
|
|
@@ -1011,14 +1235,6 @@ declare const upcastRecordedMessages: <MessageType extends AnyMessage, MessagePa
|
|
|
1011
1235
|
upcast?: MessageUpcast<MessageType, MessagePayloadType, RecordedMessageMetadataType>;
|
|
1012
1236
|
}) => RecordedMessage<MessageType, RecordedMessageMetadataType>[];
|
|
1013
1237
|
//#endregion
|
|
1014
|
-
//#region src/observability/options.d.ts
|
|
1015
|
-
type PollTracing = 'off' | 'active' | 'verbose';
|
|
1016
|
-
type EmmettObservabilityConfig = ObservabilityConfig<'emmett'> & {
|
|
1017
|
-
pollTracing?: PollTracing;
|
|
1018
|
-
includeMessagePayloads?: boolean;
|
|
1019
|
-
};
|
|
1020
|
-
type CommandObservabilityConfig = Pick<EmmettObservabilityConfig, 'tracer' | 'meter' | 'attributeTarget' | 'includeMessagePayloads'>;
|
|
1021
|
-
//#endregion
|
|
1022
1238
|
//#region src/utils/async/mapAsync.d.ts
|
|
1023
1239
|
declare function reduceAsync<T, R>(items: T[], fn: (accumulator: R, item: T, index: number) => Promise<R>, initial: R): Promise<R>;
|
|
1024
1240
|
//#endregion
|
|
@@ -1109,6 +1325,9 @@ declare const onShutdown: (handler: ShutdownHandler) => (() => void);
|
|
|
1109
1325
|
//#region src/utils/strings/hashText.d.ts
|
|
1110
1326
|
declare const hashText: (text: string) => Promise<bigint>;
|
|
1111
1327
|
//#endregion
|
|
1328
|
+
//#region src/commandHandling/observability/commandHandlerCollector.d.ts
|
|
1329
|
+
type CommandObservabilityConfig = Pick<EmmettObservabilityConfig, 'tracer' | 'meter' | 'attributeTarget' | 'includeMessagePayloads'>;
|
|
1330
|
+
//#endregion
|
|
1112
1331
|
//#region src/commandHandling/handleCommand.d.ts
|
|
1113
1332
|
declare const CommandHandlerStreamVersionConflictRetryOptions: AsyncRetryOptions;
|
|
1114
1333
|
type CommandHandlerRetryOptions = AsyncRetryOptions | {
|
|
@@ -1285,11 +1504,11 @@ type WorkflowOptions<Input extends AnyEvent | AnyCommand, State, Output extends
|
|
|
1285
1504
|
};
|
|
1286
1505
|
};
|
|
1287
1506
|
};
|
|
1288
|
-
type WorkflowProcessorContext = {
|
|
1507
|
+
type WorkflowProcessorContext = MessageHandlerContext<{
|
|
1289
1508
|
connection: {
|
|
1290
1509
|
messageStore: EventStore;
|
|
1291
1510
|
};
|
|
1292
|
-
}
|
|
1511
|
+
}>;
|
|
1293
1512
|
type WorkflowOutputHandlerResult<Input extends AnyEvent | AnyCommand> = Promise<Input | Input[] | EmmettError | [] | void> | Input | Input[] | EmmettError | [] | void;
|
|
1294
1513
|
type SingleWorkflowOutputHandler<Input extends AnyEvent | AnyCommand, Output extends AnyEvent | AnyCommand, MessageMetaDataType extends AnyReadEventMetadata = AnyReadEventMetadata, HandlerContext extends WorkflowProcessorContext = WorkflowProcessorContext> = (message: Output | RecordedMessage<Output, MessageMetaDataType>, context: HandlerContext) => WorkflowOutputHandlerResult<Input>;
|
|
1295
1514
|
type BatchWorkflowOutputHandler<Input extends AnyEvent | AnyCommand, Output extends AnyEvent | AnyCommand, MessageMetaDataType extends AnyReadEventMetadata = AnyReadEventMetadata, HandlerContext extends WorkflowProcessorContext = WorkflowProcessorContext> = (messages: RecordedMessage<Output, MessageMetaDataType>[], context: HandlerContext) => WorkflowOutputHandlerResult<Input>;
|
|
@@ -1334,9 +1553,14 @@ declare const workflowStreamName: ({
|
|
|
1334
1553
|
workflowName: string;
|
|
1335
1554
|
workflowId: string;
|
|
1336
1555
|
}) => string;
|
|
1337
|
-
|
|
1556
|
+
type WorkflowHandlerOptions<Input extends AnyEvent | AnyCommand, State, Output extends AnyEvent | AnyCommand, MessageMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata, StoredMessage extends AnyEvent | AnyCommand = Output> = WorkflowOptions<Input, State, Output, MessageMetadataType, StoredMessage> & {
|
|
1338
1557
|
retry?: WorkflowHandlerRetryOptions;
|
|
1339
|
-
|
|
1558
|
+
observability?: WorkflowObservabilityConfig;
|
|
1559
|
+
};
|
|
1560
|
+
declare const WorkflowHandler: <Input extends AnyEvent | AnyCommand, State, Output extends AnyEvent | AnyCommand, MessageMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata, StoredMessage extends AnyEvent | AnyCommand = Output>(options: WorkflowHandlerOptions<Input, State, Output, MessageMetadataType, StoredMessage>) => <Store extends EventStore>(store: Store, message: Input | RecordedMessage<Input, MessageMetadataType>, handleOptions?: WorkflowHandleOptions<Store>) => Promise<WorkflowHandlerResult<Output, Store>>;
|
|
1561
|
+
declare namespace index_d_exports {
|
|
1562
|
+
export { AcquireLockOptions, AfterEventStoreCommitHandler, AggregateStreamOptions, AggregateStreamResult, AggregateStreamResultOfEventStore, AggregateStreamResultWithGlobalPosition, AnyCommand, AnyEvent, AnyMessage, AnyReadEvent, AnyReadEventMetadata, AnyRecord, AnyRecordedMessage, AnyRecordedMessageMetadata, AppendStreamResultOfEventStore, AppendToStreamOptions, AppendToStreamResult, AppendToStreamResultWithGlobalPosition, ArgumentMatcher, AssertionError, AsyncAwaiter, AsyncDeciderSpecification, AsyncRetryOptions, BaseMessageProcessorOptions, BatchMessageHandler, BatchMessageHandlerResult, BatchMessageHandlerWithContext, BatchMessageHandlerWithoutContext, BatchRawMessageHandlerWithContext, BatchRawMessageHandlerWithoutContext, BatchRecordedMessageHandlerWithContext, BatchRecordedMessageHandlerWithoutContext, BatchWorkflowOutputHandler, BeforeEventStoreCommitHandler, BoundedAccessGuard, Brand, CanHandle, Checkpointer, Closeable, CombineMetadata, CombinedMessageMetadata, CombinedReadEventMetadata, Command, CommandBus, CommandDataOf, CommandHandler, CommandHandlerOptions, CommandHandlerResult, CommandHandlerRetryOptions, CommandHandlerStreamVersionConflictRetryOptions, CommandMetaDataOf, CommandProcessor, CommandSender, CommandTypeOf, CommonReadEventMetadata, CommonRecordedMessageMetadata, ConcurrencyError, ConcurrencyInMemoryDatabaseError, ConsumerObservabilityConfig, CreateCommandType, CreateEventType, CurrentMessageProcessorPosition, DATABASE_REQUIRED_ERROR_MESSAGE, DatabaseHandleOptionErrors, DatabaseHandleOptions, DatabaseHandleResult, Decider, DeciderCommandHandler, DeciderCommandHandlerOptions, DeciderSpecification, DeepReadonly, DefaultCommandMetadata, DefaultEventStoreOptions, DefaultRecord, DeleteManyOptions, DeleteManyResult, DeleteOneOptions, DeleteResult, Document, DocumentHandler, EmmettAttributes, EmmettCliCommand, EmmettCliPlugin, EmmettCliPluginRegistration, EmmettError, EmmettMetrics, EmmettObservabilityConfig, EmmettObservabilityOptions, EmmettPlugin, EmmettPluginConfig, EmmettPluginRegistration, EmmettPluginType, EmmettPluginsConfig, EnhancedOmit, EnqueueTaskOptions, Equatable, ErrorConstructor, Event, EventBus, EventDataOf, EventMetaDataOf, EventStore, EventStoreAppendSchemaOptions, EventStoreObservabilityConfig, EventStoreReadEventMetadata, EventStoreReadSchemaOptions, EventStoreSchemaOptions, EventStoreSession, EventStoreSessionFactory, EventStoreWrapper, EventSubscription, EventTypeOf, EventsPublisher, ExclusiveAccessGuard, ExpectedDocumentVersion, ExpectedDocumentVersionGeneral, ExpectedDocumentVersionValue, ExpectedStreamVersion, ExpectedStreamVersionGeneral, ExpectedStreamVersionWithValue, ExpectedVersionConflictError, Flavour, FullId, GetCheckpoint, GlobalPosition, GlobalStreamCaughtUp, GlobalStreamCaughtUpType, GlobalSubscriptionEvent, HandleOptions, HandlerOptions, IllegalStateError, InMemoryCheckpointer, InMemoryDatabase, InMemoryDocumentEvolve, InMemoryDocumentsCollection, InMemoryEventStore, InMemoryEventStoreDefaultStreamVersion, InMemoryEventStoreOptions, InMemoryMultiStreamProjectionOptions, InMemoryProcessor, InMemoryProcessorConnectionOptions, InMemoryProcessorEachBatchHandler, InMemoryProcessorEachMessageHandler, InMemoryProcessorHandlerContext, InMemoryProcessorOptions, InMemoryProjectionAssert, InMemoryProjectionDefinition, InMemoryProjectionHandlerContext, InMemoryProjectionHandlerOptions, InMemoryProjectionOptions, InMemoryProjectionSpec, InMemoryProjectionSpecEvent, InMemoryProjectionSpecOptions, InMemoryProjectionSpecWhenOptions, InMemoryProjectorOptions, InMemoryReactorOptions, InMemoryReadEvent, InMemoryReadEventMetadata, InMemorySingleStreamProjectionOptions, InMemoryWithNotNullDocumentEvolve, InMemoryWithNullableDocumentEvolve, InProcessLock, InitializedOnceGuard, InsertManyOptions, InsertManyResult, InsertOneOptions, InsertOneResult, JSONCodec, JSONCodecOptions, JSONDeserializeOptions, JSONReplacer, JSONReplacers, JSONReviver, JSONReviverContext, JSONRevivers, JSONSerializationOptions, JSONSerializeOptions, JSONSerializer, JSONSerializerOptions, Lock, LockOptions, LogLevel, LogStyle, LogType, Message, MessageBus, MessageConsumer, MessageConsumerOptions, MessageDataOf, MessageDowncast, MessageHandler, MessageHandlerContext, MessageKindOf, MessageMetaDataOf, MessageProcessingScope, MessageProcessor, MessageProcessorStartFrom, MessageProcessorType, MessageScheduler, MessageSubscription, MessageTypeOf, MessageUpcast, MessagingSystemName, MockedFunction, Mutable, NO_CONCURRENCY_CHECK, NoRetries, NonNullable$1 as NonNullable, NotFoundError, OnReactorCloseHook, OnReactorInitHook, OnReactorStartHook, OperationResult, OptionalId, OptionalUnlessRequiredId, OptionalUnlessRequiredIdAndVersion, OptionalUnlessRequiredVersion, OptionalVersion, PollTracing, ProcessorCheckpoint, ProcessorCollectorContext, ProcessorHooks, ProcessorObservabilityConfig, ProjectionDefinition, ProjectionHandler, ProjectionHandlerContext, ProjectionHandlingType, ProjectionInitOptions, ProjectionRegistration, ProjectorOptions, ReactorOptions, ReadEvent, ReadEventMetadata, ReadEventMetadataWithGlobalPosition, ReadEventMetadataWithoutGlobalPosition, ReadProcessorCheckpoint, ReadProcessorCheckpointResult, ReadStreamOptions, ReadStreamResult, RecordedMessage, RecordedMessageMetadata, RecordedMessageMetadataWithGlobalPosition, RecordedMessageMetadataWithoutGlobalPosition, ReleaseLockOptions, ReplaceOneOptions, ResolvedConsumerObservability, ResolvedEventStoreObservability, ResolvedProcessorObservability, ResolvedWorkflowObservability, STREAM_DOES_NOT_EXIST, STREAM_EXISTS, ScheduleOptions, ScheduledMessage, ScheduledMessageProcessor, ScopeTypes, SerializationCodec, Serializer, ShutdownHandler, SingleMessageHandler, SingleMessageHandlerResult, SingleMessageHandlerWithContext, SingleMessageHandlerWithoutContext, SingleRawMessageHandlerWithContext, SingleRawMessageHandlerWithoutContext, SingleRecordedMessageHandlerWithContext, SingleRecordedMessageHandlerWithoutContext, SingleWorkflowOutputHandler, StoreProcessorCheckpoint, StoreProcessorCheckpointResult, StreamExistsResult, StreamPosition, Task, TaskContext, TaskProcessor, TaskProcessorOptions, TaskQueue, TaskQueueItem, TestEventStream, ThenThrows, TruncateProjection, UpdateManyOptions, UpdateManyResult, UpdateOneOptions, UpdateResult, ValidationError, ValidationErrors, WithGlobalPosition, WithId, WithIdAndVersion, WithObservabilityScope, WithVersion, WithoutId, WithoutVersion, Workflow, WorkflowCollectorContext, WorkflowCommand, WorkflowEvent, WorkflowHandleOptions, WorkflowHandler, WorkflowHandlerOptions, WorkflowHandlerResult, WorkflowHandlerRetryOptions, WorkflowHandlerStreamVersionConflictRetryOptions, WorkflowInputMessageMetadata, WorkflowMessageAction, WorkflowObservabilityConfig, WorkflowOptions, WorkflowOutput, WorkflowOutputHandlerDefinition, WorkflowOutputHandlerOptions, WorkflowOutputHandlerResult, WorkflowOutputMessageMetadata, WorkflowProcessorContext, WorkflowProcessorOptions, WorkflowSpecification, WrapEventStore, argMatches, argValue, arrayUtils, assertDeepEqual, assertDefined, assertDoesNotThrow, assertEqual, assertExpectedVersionMatchesCurrent, assertFails, assertFalse, assertIsNotNull, assertIsNull, assertMatches, assertNotDeepEqual, assertNotEmptyString, assertNotEqual, assertOk, assertPositiveNumber, assertRejects, assertThat, assertThatArray, assertThrows, assertThrowsAsync, assertTrue, assertUndefined, assertUnsignedBigInt, asyncAwaiter, asyncProjections, asyncRetry, bigInt, bigIntProcessorCheckpoint, canCreateEventStoreSession, caughtUpEventFrom, command, composeJSONReplacers, composeJSONRevivers, consumerCollector, deepEquals, defaultProcessingMessageProcessingScope, defaultProcessorPartition, defaultProcessorVersion, defaultTag, delay, documentExists, downcastRecordedMessage, downcastRecordedMessages, emmettPrefix, event, eventInStream, eventStoreCollector, eventsInStream, expectInMemoryDocuments, filterProjections, formatDateToUtcYYYYMMDD, forwardToMessageBus, getCheckpoint, getInMemoryDatabase, getInMemoryEventStore, getInMemoryMessageBus, getProcessorInstanceId, getProjectorId, getWorkflowId, globalStreamCaughtUp, globalTag, guardBoundedAccess, guardExclusiveAccess, guardInitializedOnce, handleInMemoryProjections, hashText, inMemoryCheckpointer, inMemoryMultiStreamProjection, inMemoryProjection, inMemoryProjector, inMemoryReactor, inMemorySingleStreamProjection, inlineProjections, isBigint, isEquatable, isErrorConstructor, isExpectedVersionConflictError, isGlobalStreamCaughtUp, isNotInternalEvent, isNumber, isPluginConfig, isString, isSubscriptionEvent, isSubset, isValidYYYYMMDD, jsonSerializer, matchesExpectedVersion, merge, message, newEventsInStream, nulloSessionFactory, onShutdown, parseBigIntProcessorCheckpoint, parseDateFromUtcYYYYMMDD, processorCollector, projection, projections, projector, reactor, reduceAsync, resolveConsumerObservability, resolveEventStoreObservability, resolveProcessorObservability, resolveWorkflowObservability, sum, toNormalizedString, tracer, tryPublishMessagesAfterCommit, unknownTag, upcastRecordedMessage, upcastRecordedMessages, verifyThat, wasMessageHandled, workflowCollector, workflowOutputHandler, workflowProcessor, workflowStreamName };
|
|
1563
|
+
}
|
|
1340
1564
|
//#endregion
|
|
1341
|
-
export { AcquireLockOptions, AfterEventStoreCommitHandler, AggregateStreamOptions, AggregateStreamResult, AggregateStreamResultOfEventStore, AggregateStreamResultWithGlobalPosition, AnyCommand, AnyEvent, AnyMessage, AnyReadEvent, AnyReadEventMetadata, AnyRecord, AnyRecordedMessage, AnyRecordedMessageMetadata, AppendStreamResultOfEventStore, AppendToStreamOptions, AppendToStreamResult, AppendToStreamResultWithGlobalPosition, ArgumentMatcher, AssertionError, AsyncAwaiter, AsyncDeciderSpecification, AsyncRetryOptions, BaseMessageProcessorOptions, BatchMessageHandler, BatchMessageHandlerResult, BatchMessageHandlerWithContext, BatchMessageHandlerWithoutContext, BatchRawMessageHandlerWithContext, BatchRawMessageHandlerWithoutContext, BatchRecordedMessageHandlerWithContext, BatchRecordedMessageHandlerWithoutContext, BatchWorkflowOutputHandler, BeforeEventStoreCommitHandler, BoundedAccessGuard, Brand, CanHandle, Checkpointer, Closeable, CombineMetadata, CombinedMessageMetadata, CombinedReadEventMetadata, Command, CommandBus, CommandDataOf, CommandHandler, CommandHandlerOptions, CommandHandlerResult, CommandHandlerRetryOptions, CommandHandlerStreamVersionConflictRetryOptions, CommandMetaDataOf, CommandProcessor, CommandSender, CommandTypeOf, CommonReadEventMetadata, CommonRecordedMessageMetadata, ConcurrencyError, ConcurrencyInMemoryDatabaseError, CreateCommandType, CreateEventType, CurrentMessageProcessorPosition, DATABASE_REQUIRED_ERROR_MESSAGE, DatabaseHandleOptionErrors, DatabaseHandleOptions, DatabaseHandleResult, Decider, DeciderCommandHandler, DeciderCommandHandlerOptions, DeciderSpecification, DeepReadonly, DefaultCommandMetadata, DefaultEventStoreOptions, DefaultRecord, DeleteManyOptions, DeleteManyResult, DeleteOneOptions, DeleteResult, Document, DocumentHandler, EmmettCliCommand, EmmettCliPlugin, EmmettCliPluginRegistration, EmmettError, EmmettPlugin, EmmettPluginConfig, EmmettPluginRegistration, EmmettPluginType, EmmettPluginsConfig, EnhancedOmit, EnqueueTaskOptions, Equatable, ErrorConstructor, Event, EventBus, EventDataOf, EventMetaDataOf, EventStore, EventStoreAppendSchemaOptions, EventStoreReadEventMetadata, EventStoreReadSchemaOptions, EventStoreSchemaOptions, EventStoreSession, EventStoreSessionFactory, EventStoreWrapper, EventSubscription, EventTypeOf, EventsPublisher, ExclusiveAccessGuard, ExpectedDocumentVersion, ExpectedDocumentVersionGeneral, ExpectedDocumentVersionValue, ExpectedStreamVersion, ExpectedStreamVersionGeneral, ExpectedStreamVersionWithValue, ExpectedVersionConflictError, Flavour, FullId, GetCheckpoint, GlobalPosition, GlobalStreamCaughtUp, GlobalStreamCaughtUpType, GlobalSubscriptionEvent, HandleOptions, HandlerOptions, IllegalStateError, InMemoryCheckpointer, InMemoryDatabase, InMemoryDocumentEvolve, InMemoryDocumentsCollection, InMemoryEventStore, InMemoryEventStoreDefaultStreamVersion, InMemoryEventStoreOptions, InMemoryMultiStreamProjectionOptions, InMemoryProcessor, InMemoryProcessorConnectionOptions, InMemoryProcessorEachBatchHandler, InMemoryProcessorEachMessageHandler, InMemoryProcessorHandlerContext, InMemoryProcessorOptions, InMemoryProjectionAssert, InMemoryProjectionDefinition, InMemoryProjectionHandlerContext, InMemoryProjectionHandlerOptions, InMemoryProjectionOptions, InMemoryProjectionSpec, InMemoryProjectionSpecEvent, InMemoryProjectionSpecOptions, InMemoryProjectionSpecWhenOptions, InMemoryProjectorOptions, InMemoryReactorOptions, InMemoryReadEvent, InMemoryReadEventMetadata, InMemorySingleStreamProjectionOptions, InMemoryWithNotNullDocumentEvolve, InMemoryWithNullableDocumentEvolve, InProcessLock, InitializedOnceGuard, InsertManyOptions, InsertManyResult, InsertOneOptions, InsertOneResult, JSONCodec, type JSONCodecOptions, type JSONDeserializeOptions, JSONReplacer, JSONReplacers, JSONReviver, JSONReviverContext, JSONRevivers, type JSONSerializationOptions, type JSONSerializeOptions, JSONSerializer, type JSONSerializerOptions, Lock, LockOptions, Message, MessageBus, MessageConsumer, MessageConsumerOptions, MessageDataOf, MessageDowncast, MessageHandler, MessageKindOf, MessageMetaDataOf, MessageProcessingScope, MessageProcessor, MessageProcessorStartFrom, MessageProcessorType, MessageScheduler, MessageSubscription, MessageTypeOf, MessageUpcast, MockedFunction, Mutable, NO_CONCURRENCY_CHECK, NoRetries, NonNullable$1 as NonNullable, NotFoundError, OnReactorCloseHook, OnReactorInitHook, OnReactorStartHook, OperationResult, OptionalId, OptionalUnlessRequiredId, OptionalUnlessRequiredIdAndVersion, OptionalUnlessRequiredVersion, OptionalVersion, ProcessorCheckpoint, ProcessorHooks, ProjectionDefinition, ProjectionHandler, ProjectionHandlingType, ProjectionInitOptions, ProjectionRegistration, ProjectorOptions, ReactorOptions, ReadEvent, ReadEventMetadata, ReadEventMetadataWithGlobalPosition, ReadEventMetadataWithoutGlobalPosition, ReadProcessorCheckpoint, ReadProcessorCheckpointResult, ReadStreamOptions, ReadStreamResult, RecordedMessage, RecordedMessageMetadata, RecordedMessageMetadataWithGlobalPosition, RecordedMessageMetadataWithoutGlobalPosition, ReleaseLockOptions, ReplaceOneOptions, STREAM_DOES_NOT_EXIST, STREAM_EXISTS, ScheduleOptions, ScheduledMessage, ScheduledMessageProcessor, SerializationCodec, Serializer, ShutdownHandler, SingleMessageHandler, SingleMessageHandlerResult, SingleMessageHandlerWithContext, SingleMessageHandlerWithoutContext, SingleRawMessageHandlerWithContext, SingleRawMessageHandlerWithoutContext, SingleRecordedMessageHandlerWithContext, SingleRecordedMessageHandlerWithoutContext, SingleWorkflowOutputHandler, StoreProcessorCheckpoint, StoreProcessorCheckpointResult, StreamExistsResult, StreamPosition, Task, TaskContext, TaskProcessor, TaskProcessorOptions, TaskQueue, TaskQueueItem, TestEventStream, ThenThrows, TruncateProjection, UpdateManyOptions, UpdateManyResult, UpdateOneOptions, UpdateResult, ValidationError, ValidationErrors, WithGlobalPosition, WithId, WithIdAndVersion, WithVersion, WithoutId, WithoutVersion, Workflow, WorkflowCommand, WorkflowEvent, WorkflowHandleOptions, WorkflowHandler, WorkflowHandlerResult, WorkflowHandlerRetryOptions, WorkflowHandlerStreamVersionConflictRetryOptions, WorkflowInputMessageMetadata, WorkflowMessageAction, WorkflowOptions, WorkflowOutput, WorkflowOutputHandlerDefinition, WorkflowOutputHandlerOptions, WorkflowOutputHandlerResult, WorkflowOutputMessageMetadata, WorkflowProcessorContext, WorkflowProcessorOptions, WorkflowSpecification, WrapEventStore, argMatches, argValue, arrayUtils, assertDeepEqual, assertDefined, assertDoesNotThrow, assertEqual, assertExpectedVersionMatchesCurrent, assertFails, assertFalse, assertIsNotNull, assertIsNull, assertMatches, assertNotDeepEqual, assertNotEmptyString, assertNotEqual, assertOk, assertPositiveNumber, assertRejects, assertThat, assertThatArray, assertThrows, assertThrowsAsync, assertTrue, assertUndefined, assertUnsignedBigInt, asyncAwaiter, asyncProjections, asyncRetry, bigInt, bigIntProcessorCheckpoint, canCreateEventStoreSession, caughtUpEventFrom, command, composeJSONReplacers, composeJSONRevivers, deepEquals, defaultProcessingMessageProcessingScope, defaultProcessorPartition, defaultProcessorVersion, defaultTag, delay, documentExists, downcastRecordedMessage, downcastRecordedMessages, emmettPrefix, event, eventInStream, eventsInStream, expectInMemoryDocuments, filterProjections, formatDateToUtcYYYYMMDD, forwardToMessageBus, getCheckpoint, getInMemoryDatabase, getInMemoryEventStore, getInMemoryMessageBus, getProcessorInstanceId, getProjectorId, getWorkflowId, globalStreamCaughtUp, globalTag, guardBoundedAccess, guardExclusiveAccess, guardInitializedOnce, handleInMemoryProjections, hashText, inMemoryCheckpointer, inMemoryMultiStreamProjection, inMemoryProjection, inMemoryProjector, inMemoryReactor, inMemorySingleStreamProjection, inlineProjections, isBigint, isEquatable, isErrorConstructor, isExpectedVersionConflictError, isGlobalStreamCaughtUp, isNotInternalEvent, isNumber, isPluginConfig, isString, isSubscriptionEvent, isSubset, isValidYYYYMMDD, jsonSerializer, matchesExpectedVersion, merge, message, newEventsInStream, nulloSessionFactory, onShutdown, parseBigIntProcessorCheckpoint, parseDateFromUtcYYYYMMDD, projection, projections, projector, reactor, reduceAsync, sum, toNormalizedString, tryPublishMessagesAfterCommit, unknownTag, upcastRecordedMessage, upcastRecordedMessages, verifyThat, wasMessageHandled, workflowOutputHandler, workflowProcessor, workflowStreamName };
|
|
1565
|
+
export { AcquireLockOptions, AfterEventStoreCommitHandler, AggregateStreamOptions, AggregateStreamResult, AggregateStreamResultOfEventStore, AggregateStreamResultWithGlobalPosition, AnyCommand, AnyEvent, AnyMessage, AnyReadEvent, AnyReadEventMetadata, AnyRecord, AnyRecordedMessage, AnyRecordedMessageMetadata, AppendStreamResultOfEventStore, AppendToStreamOptions, AppendToStreamResult, AppendToStreamResultWithGlobalPosition, ArgumentMatcher, AssertionError, AsyncAwaiter, AsyncDeciderSpecification, AsyncRetryOptions, BaseMessageProcessorOptions, BatchMessageHandler, BatchMessageHandlerResult, BatchMessageHandlerWithContext, BatchMessageHandlerWithoutContext, BatchRawMessageHandlerWithContext, BatchRawMessageHandlerWithoutContext, BatchRecordedMessageHandlerWithContext, BatchRecordedMessageHandlerWithoutContext, BatchWorkflowOutputHandler, BeforeEventStoreCommitHandler, BoundedAccessGuard, Brand, CanHandle, Checkpointer, Closeable, CombineMetadata, CombinedMessageMetadata, CombinedReadEventMetadata, Command, CommandBus, CommandDataOf, CommandHandler, CommandHandlerOptions, CommandHandlerResult, CommandHandlerRetryOptions, CommandHandlerStreamVersionConflictRetryOptions, CommandMetaDataOf, CommandProcessor, CommandSender, CommandTypeOf, CommonReadEventMetadata, CommonRecordedMessageMetadata, ConcurrencyError, ConcurrencyInMemoryDatabaseError, ConsumerObservabilityConfig, CreateCommandType, CreateEventType, CurrentMessageProcessorPosition, DATABASE_REQUIRED_ERROR_MESSAGE, DatabaseHandleOptionErrors, DatabaseHandleOptions, DatabaseHandleResult, Decider, DeciderCommandHandler, DeciderCommandHandlerOptions, DeciderSpecification, DeepReadonly, DefaultCommandMetadata, DefaultEventStoreOptions, DefaultRecord, DeleteManyOptions, DeleteManyResult, DeleteOneOptions, DeleteResult, Document, DocumentHandler, EmmettAttributes, EmmettCliCommand, EmmettCliPlugin, EmmettCliPluginRegistration, EmmettError, EmmettMetrics, EmmettObservabilityConfig, EmmettObservabilityOptions, EmmettPlugin, EmmettPluginConfig, EmmettPluginRegistration, EmmettPluginType, EmmettPluginsConfig, EnhancedOmit, EnqueueTaskOptions, Equatable, ErrorConstructor, Event, EventBus, EventDataOf, EventMetaDataOf, EventStore, EventStoreAppendSchemaOptions, EventStoreObservabilityConfig, EventStoreReadEventMetadata, EventStoreReadSchemaOptions, EventStoreSchemaOptions, EventStoreSession, EventStoreSessionFactory, EventStoreWrapper, EventSubscription, EventTypeOf, EventsPublisher, ExclusiveAccessGuard, ExpectedDocumentVersion, ExpectedDocumentVersionGeneral, ExpectedDocumentVersionValue, ExpectedStreamVersion, ExpectedStreamVersionGeneral, ExpectedStreamVersionWithValue, ExpectedVersionConflictError, Flavour, FullId, GetCheckpoint, GlobalPosition, GlobalStreamCaughtUp, GlobalStreamCaughtUpType, GlobalSubscriptionEvent, HandleOptions, HandlerOptions, IllegalStateError, InMemoryCheckpointer, InMemoryDatabase, InMemoryDocumentEvolve, InMemoryDocumentsCollection, InMemoryEventStore, InMemoryEventStoreDefaultStreamVersion, InMemoryEventStoreOptions, InMemoryMultiStreamProjectionOptions, InMemoryProcessor, InMemoryProcessorConnectionOptions, InMemoryProcessorEachBatchHandler, InMemoryProcessorEachMessageHandler, InMemoryProcessorHandlerContext, InMemoryProcessorOptions, InMemoryProjectionAssert, InMemoryProjectionDefinition, InMemoryProjectionHandlerContext, InMemoryProjectionHandlerOptions, InMemoryProjectionOptions, InMemoryProjectionSpec, InMemoryProjectionSpecEvent, InMemoryProjectionSpecOptions, InMemoryProjectionSpecWhenOptions, InMemoryProjectorOptions, InMemoryReactorOptions, InMemoryReadEvent, InMemoryReadEventMetadata, InMemorySingleStreamProjectionOptions, InMemoryWithNotNullDocumentEvolve, InMemoryWithNullableDocumentEvolve, InProcessLock, InitializedOnceGuard, InsertManyOptions, InsertManyResult, InsertOneOptions, InsertOneResult, JSONCodec, type JSONCodecOptions, type JSONDeserializeOptions, JSONReplacer, JSONReplacers, JSONReviver, JSONReviverContext, JSONRevivers, type JSONSerializationOptions, type JSONSerializeOptions, JSONSerializer, type JSONSerializerOptions, Lock, LockOptions, LogLevel, LogStyle, LogType, Message, MessageBus, MessageConsumer, MessageConsumerOptions, MessageDataOf, MessageDowncast, MessageHandler, MessageHandlerContext, MessageKindOf, MessageMetaDataOf, MessageProcessingScope, MessageProcessor, MessageProcessorStartFrom, MessageProcessorType, MessageScheduler, MessageSubscription, MessageTypeOf, MessageUpcast, MessagingSystemName, MockedFunction, Mutable, NO_CONCURRENCY_CHECK, NoRetries, NonNullable$1 as NonNullable, NotFoundError, OnReactorCloseHook, OnReactorInitHook, OnReactorStartHook, OperationResult, OptionalId, OptionalUnlessRequiredId, OptionalUnlessRequiredIdAndVersion, OptionalUnlessRequiredVersion, OptionalVersion, PollTracing, ProcessorCheckpoint, ProcessorCollectorContext, ProcessorHooks, ProcessorObservabilityConfig, ProjectionDefinition, ProjectionHandler, ProjectionHandlerContext, ProjectionHandlingType, ProjectionInitOptions, ProjectionRegistration, ProjectorOptions, ReactorOptions, ReadEvent, ReadEventMetadata, ReadEventMetadataWithGlobalPosition, ReadEventMetadataWithoutGlobalPosition, ReadProcessorCheckpoint, ReadProcessorCheckpointResult, ReadStreamOptions, ReadStreamResult, RecordedMessage, RecordedMessageMetadata, RecordedMessageMetadataWithGlobalPosition, RecordedMessageMetadataWithoutGlobalPosition, ReleaseLockOptions, ReplaceOneOptions, ResolvedConsumerObservability, ResolvedEventStoreObservability, ResolvedProcessorObservability, ResolvedWorkflowObservability, STREAM_DOES_NOT_EXIST, STREAM_EXISTS, ScheduleOptions, ScheduledMessage, ScheduledMessageProcessor, ScopeTypes, SerializationCodec, Serializer, ShutdownHandler, SingleMessageHandler, SingleMessageHandlerResult, SingleMessageHandlerWithContext, SingleMessageHandlerWithoutContext, SingleRawMessageHandlerWithContext, SingleRawMessageHandlerWithoutContext, SingleRecordedMessageHandlerWithContext, SingleRecordedMessageHandlerWithoutContext, SingleWorkflowOutputHandler, StoreProcessorCheckpoint, StoreProcessorCheckpointResult, StreamExistsResult, StreamPosition, Task, TaskContext, TaskProcessor, TaskProcessorOptions, TaskQueue, TaskQueueItem, TestEventStream, ThenThrows, TruncateProjection, UpdateManyOptions, UpdateManyResult, UpdateOneOptions, UpdateResult, ValidationError, ValidationErrors, WithGlobalPosition, WithId, WithIdAndVersion, WithObservabilityScope, WithVersion, WithoutId, WithoutVersion, Workflow, WorkflowCollectorContext, WorkflowCommand, WorkflowEvent, WorkflowHandleOptions, WorkflowHandler, WorkflowHandlerOptions, WorkflowHandlerResult, WorkflowHandlerRetryOptions, WorkflowHandlerStreamVersionConflictRetryOptions, WorkflowInputMessageMetadata, WorkflowMessageAction, WorkflowObservabilityConfig, WorkflowOptions, WorkflowOutput, WorkflowOutputHandlerDefinition, WorkflowOutputHandlerOptions, WorkflowOutputHandlerResult, WorkflowOutputMessageMetadata, WorkflowProcessorContext, WorkflowProcessorOptions, WorkflowSpecification, WrapEventStore, argMatches, argValue, arrayUtils, assertDeepEqual, assertDefined, assertDoesNotThrow, assertEqual, assertExpectedVersionMatchesCurrent, assertFails, assertFalse, assertIsNotNull, assertIsNull, assertMatches, assertNotDeepEqual, assertNotEmptyString, assertNotEqual, assertOk, assertPositiveNumber, assertRejects, assertThat, assertThatArray, assertThrows, assertThrowsAsync, assertTrue, assertUndefined, assertUnsignedBigInt, asyncAwaiter, asyncProjections, asyncRetry, bigInt, bigIntProcessorCheckpoint, canCreateEventStoreSession, caughtUpEventFrom, command, composeJSONReplacers, composeJSONRevivers, consumerCollector, deepEquals, defaultProcessingMessageProcessingScope, defaultProcessorPartition, defaultProcessorVersion, defaultTag, delay, documentExists, downcastRecordedMessage, downcastRecordedMessages, emmettPrefix, event, eventInStream, eventStoreCollector, eventsInStream, expectInMemoryDocuments, filterProjections, formatDateToUtcYYYYMMDD, forwardToMessageBus, getCheckpoint, getInMemoryDatabase, getInMemoryEventStore, getInMemoryMessageBus, getProcessorInstanceId, getProjectorId, getWorkflowId, globalStreamCaughtUp, globalTag, guardBoundedAccess, guardExclusiveAccess, guardInitializedOnce, handleInMemoryProjections, hashText, inMemoryCheckpointer, inMemoryMultiStreamProjection, inMemoryProjection, inMemoryProjector, inMemoryReactor, inMemorySingleStreamProjection, inlineProjections, isBigint, isEquatable, isErrorConstructor, isExpectedVersionConflictError, isGlobalStreamCaughtUp, isNotInternalEvent, isNumber, isPluginConfig, isString, isSubscriptionEvent, isSubset, isValidYYYYMMDD, jsonSerializer, matchesExpectedVersion, merge, message, newEventsInStream, nulloSessionFactory, onShutdown, parseBigIntProcessorCheckpoint, parseDateFromUtcYYYYMMDD, processorCollector, projection, projections, projector, reactor, reduceAsync, resolveConsumerObservability, resolveEventStoreObservability, resolveProcessorObservability, resolveWorkflowObservability, sum, toNormalizedString, tracer, tryPublishMessagesAfterCommit, unknownTag, upcastRecordedMessage, upcastRecordedMessages, verifyThat, wasMessageHandled, workflowCollector, workflowOutputHandler, workflowProcessor, workflowStreamName };
|
|
1342
1566
|
//# sourceMappingURL=index.d.ts.map
|