@event-driven-io/emmett 0.43.0-beta.23 → 0.43.0-beta.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +347 -312
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +145 -117
- package/dist/index.d.ts +145 -117
- package/dist/index.js +340 -307
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -52,7 +52,15 @@ type DefaultCommandMetadata = {
|
|
|
52
52
|
//#endregion
|
|
53
53
|
//#region src/processors/checkpoints.d.ts
|
|
54
54
|
type ProcessorCheckpoint = Brand<string, 'ProcessorCheckpoint'>;
|
|
55
|
-
|
|
55
|
+
type BEGINNING = 'BEGINNING' & ProcessorCheckpoint;
|
|
56
|
+
type END = 'BEGINNING' & ProcessorCheckpoint;
|
|
57
|
+
declare const ProcessorCheckpoint: ((checkpoint: string) => ProcessorCheckpoint) & {
|
|
58
|
+
readonly END: "END";
|
|
59
|
+
readonly BEGINNING: "BEGINNING";
|
|
60
|
+
readonly isBeginning: (checkpoint: ProcessorCheckpoint | undefined) => checkpoint is BEGINNING;
|
|
61
|
+
readonly isEnd: (checkpoint: ProcessorCheckpoint | undefined) => checkpoint is END;
|
|
62
|
+
readonly compare: (a: ProcessorCheckpoint, b: ProcessorCheckpoint) => 1 | -1;
|
|
63
|
+
};
|
|
56
64
|
declare const bigIntProcessorCheckpoint: (value: bigint) => ProcessorCheckpoint;
|
|
57
65
|
declare const parseBigIntProcessorCheckpoint: (value: ProcessorCheckpoint) => bigint;
|
|
58
66
|
type GetCheckpoint<MessageType extends AnyMessage = AnyMessage, MessageMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata> = (message: RecordedMessage<MessageType, MessageMetadataType>) => ProcessorCheckpoint | null;
|
|
@@ -304,91 +312,9 @@ type EmmettObservabilityConfig = ObservabilityConfig<'emmett'> & {
|
|
|
304
312
|
type EmmettObservabilityOptions = {
|
|
305
313
|
observability?: EmmettObservabilityConfig;
|
|
306
314
|
};
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
tracer: Tracer;
|
|
311
|
-
meter: Meter;
|
|
312
|
-
pollTracing: PollTracing;
|
|
313
|
-
attributeTarget: AttributeTarget;
|
|
314
|
-
};
|
|
315
|
-
type ResolvedWorkflowObservability = {
|
|
316
|
-
tracer: Tracer;
|
|
317
|
-
meter: Meter;
|
|
318
|
-
propagation: TracePropagation;
|
|
319
|
-
attributeTarget: AttributeTarget;
|
|
320
|
-
includeMessagePayloads: boolean;
|
|
321
|
-
};
|
|
322
|
-
declare const resolveConsumerObservability: (options: {
|
|
323
|
-
observability?: ConsumerObservabilityConfig;
|
|
324
|
-
} | undefined, parent?: EmmettObservabilityOptions) => ResolvedConsumerObservability;
|
|
325
|
-
declare const resolveWorkflowObservability: (options: {
|
|
326
|
-
observability?: WorkflowObservabilityConfig;
|
|
327
|
-
} | undefined, parent?: EmmettObservabilityOptions) => ResolvedWorkflowObservability;
|
|
328
|
-
//#endregion
|
|
329
|
-
//#region src/observability/tracer.d.ts
|
|
330
|
-
declare const tracer: {
|
|
331
|
-
(): void;
|
|
332
|
-
info(eventName: string, attributes?: Record<string, any>): void;
|
|
333
|
-
warn(eventName: string, attributes?: Record<string, any>): void;
|
|
334
|
-
log(eventName: string, attributes?: Record<string, any>): void;
|
|
335
|
-
error(eventName: string, attributes?: Record<string, any>): void;
|
|
336
|
-
};
|
|
337
|
-
type LogLevel = 'DISABLED' | 'INFO' | 'LOG' | 'WARN' | 'ERROR';
|
|
338
|
-
declare const LogLevel: {
|
|
339
|
-
DISABLED: LogLevel;
|
|
340
|
-
INFO: LogLevel;
|
|
341
|
-
LOG: LogLevel;
|
|
342
|
-
WARN: LogLevel;
|
|
343
|
-
ERROR: LogLevel;
|
|
344
|
-
};
|
|
345
|
-
type LogType = 'CONSOLE';
|
|
346
|
-
type LogStyle = 'RAW' | 'PRETTY';
|
|
347
|
-
declare const LogStyle: {
|
|
348
|
-
RAW: LogStyle;
|
|
349
|
-
PRETTY: LogStyle;
|
|
350
|
-
};
|
|
351
|
-
//#endregion
|
|
352
|
-
//#region src/eventStore/observability/eventStoreCollector.d.ts
|
|
353
|
-
type EventStoreObservabilityConfig = Pick<EmmettObservabilityConfig, 'tracer' | 'meter' | 'attributeTarget'>;
|
|
354
|
-
type ResolvedEventStoreObservability = {
|
|
355
|
-
tracer: Tracer;
|
|
356
|
-
meter: Meter;
|
|
357
|
-
attributeTarget: AttributeTarget;
|
|
358
|
-
};
|
|
359
|
-
declare const resolveEventStoreObservability: (options: {
|
|
360
|
-
observability?: EventStoreObservabilityConfig;
|
|
361
|
-
} | undefined, parent?: EmmettObservabilityOptions) => ResolvedEventStoreObservability;
|
|
362
|
-
declare const eventStoreCollector: (observability: ResolvedEventStoreObservability) => {
|
|
363
|
-
instrumentRead: <EventType extends Event, ReadEventMetadataType extends AnyReadEventMetadata = AnyRecordedMessageMetadata>(streamName: string, fn: () => Promise<ReadStreamResult<EventType, ReadEventMetadataType>>) => Promise<ReadStreamResult<EventType, ReadEventMetadataType>>;
|
|
364
|
-
instrumentAppend: <Result extends AppendToStreamResult, EventType extends Event = Event>(streamName: string, events: EventType[], fn: () => Promise<Result>) => Promise<Result>;
|
|
365
|
-
};
|
|
366
|
-
//#endregion
|
|
367
|
-
//#region src/observability/collectors/consumerCollector.d.ts
|
|
368
|
-
declare const consumerCollector: (observability: ResolvedConsumerObservability) => {
|
|
369
|
-
tracePoll: <T>(context: {
|
|
370
|
-
processorCount: number;
|
|
371
|
-
batchSize: number;
|
|
372
|
-
empty: boolean;
|
|
373
|
-
waitMs?: number;
|
|
374
|
-
}, fn: (scope: ObservabilityScope) => Promise<T>) => Promise<T>;
|
|
375
|
-
recordPollMetrics: (durationMs: number, attrs?: Record<string, unknown>) => void;
|
|
376
|
-
traceDelivery: <T>(scope: ObservabilityScope, processorId: string, fn: () => Promise<T>) => Promise<T>;
|
|
377
|
-
};
|
|
378
|
-
//#endregion
|
|
379
|
-
//#region src/observability/collectors/workflowCollector.d.ts
|
|
380
|
-
type WorkflowCollectorContext = {
|
|
381
|
-
workflowId: string;
|
|
382
|
-
workflowType: string;
|
|
383
|
-
inputType: string;
|
|
384
|
-
};
|
|
385
|
-
declare const workflowCollector: (observability: ResolvedWorkflowObservability) => {
|
|
386
|
-
startScope: <T>(context: WorkflowCollectorContext, fn: (scope: ObservabilityScope) => Promise<T>) => Promise<T>;
|
|
387
|
-
recordOutputs: (scope: ObservabilityScope, outputs: {
|
|
388
|
-
type: string;
|
|
389
|
-
}[]) => void;
|
|
390
|
-
recordStateRebuild: (scope: ObservabilityScope, eventCount: number) => void;
|
|
391
|
-
};
|
|
315
|
+
declare const mergeObservabilityOptions: <Config extends Partial<EmmettObservabilityConfig>, Options extends {
|
|
316
|
+
observability?: Config;
|
|
317
|
+
}>(options: Options, defaults: Partial<EmmettObservabilityConfig> | undefined) => Options;
|
|
392
318
|
//#endregion
|
|
393
319
|
//#region src/serialization/json/serializer.d.ts
|
|
394
320
|
interface Serializer<Payload, SerializeOptions extends Record<string, unknown> = Record<string, unknown>, DeserializeOptions extends Record<string, unknown> = SerializeOptions> {
|
|
@@ -413,6 +339,9 @@ type JSONSerializerOptions = {
|
|
|
413
339
|
};
|
|
414
340
|
type JSONSerializeOptions = {
|
|
415
341
|
replacer?: JSONReplacer;
|
|
342
|
+
format?: 'compact' | 'pretty';
|
|
343
|
+
safe?: boolean;
|
|
344
|
+
skipErrorSerialization?: boolean;
|
|
416
345
|
} & JSONSerializerOptions;
|
|
417
346
|
type JSONDeserializeOptions = {
|
|
418
347
|
reviver?: JSONReviver;
|
|
@@ -443,6 +372,7 @@ type JSONReviver = (this: any, key: string, value: any, context: JSONReviverCont
|
|
|
443
372
|
type JSONReviverContext = {
|
|
444
373
|
source: string;
|
|
445
374
|
};
|
|
375
|
+
declare const errorReplacer: JSONReplacer;
|
|
446
376
|
declare const composeJSONReplacers: (...replacers: (JSONReplacer | undefined)[]) => JSONReplacer | undefined;
|
|
447
377
|
declare const composeJSONRevivers: (...revivers: (JSONReviver | undefined)[]) => JSONReviver | undefined;
|
|
448
378
|
declare const JSONReplacer: (opts?: JSONSerializeOptions) => JSONReplacer | undefined;
|
|
@@ -450,6 +380,7 @@ declare const JSONReviver: (opts?: JSONDeserializeOptions) => JSONReviver | unde
|
|
|
450
380
|
declare const JSONReplacers: {
|
|
451
381
|
bigInt: JSONReplacer;
|
|
452
382
|
date: JSONReplacer;
|
|
383
|
+
error: JSONReplacer;
|
|
453
384
|
};
|
|
454
385
|
declare const JSONRevivers: {
|
|
455
386
|
bigInt: JSONReviver;
|
|
@@ -497,37 +428,16 @@ declare const projections: {
|
|
|
497
428
|
async: <ReadEventMetadataType extends AnyReadEventMetadata = AnyRecordedMessageMetadata, HandlerContext extends ProjectionHandlerContext = ProjectionHandlerContext<DefaultRecord>>(definitions: ProjectionDefinition<AnyEvent, ReadEventMetadataType, HandlerContext>[]) => ProjectionRegistration<"inline", ReadEventMetadataType, HandlerContext>[];
|
|
498
429
|
};
|
|
499
430
|
//#endregion
|
|
500
|
-
//#region src/processors/observability/processorCollector.d.ts
|
|
501
|
-
type ProcessorObservabilityConfig = Pick<EmmettObservabilityConfig, 'tracer' | 'meter' | 'propagation' | 'attributeTarget' | 'includeMessagePayloads'>;
|
|
502
|
-
type ResolvedProcessorObservability = {
|
|
503
|
-
tracer: Tracer;
|
|
504
|
-
meter: Meter;
|
|
505
|
-
propagation: TracePropagation;
|
|
506
|
-
attributeTarget: AttributeTarget;
|
|
507
|
-
includeMessagePayloads: boolean;
|
|
508
|
-
};
|
|
509
|
-
declare const resolveProcessorObservability: (options: {
|
|
510
|
-
observability?: ProcessorObservabilityConfig;
|
|
511
|
-
} | undefined, parent?: EmmettObservabilityOptions) => ResolvedProcessorObservability;
|
|
512
|
-
type ProcessorCollectorContext = {
|
|
513
|
-
processorId: string;
|
|
514
|
-
type: string;
|
|
515
|
-
checkpoint: ProcessorCheckpoint | null;
|
|
516
|
-
};
|
|
517
|
-
declare const processorCollector: (observability: ResolvedProcessorObservability) => {
|
|
518
|
-
startScope: <MessageType extends Message = Message, MessageMetadataType extends AnyReadEventMetadata = AnyRecordedMessageMetadata, T = void>(context: ProcessorCollectorContext, messages: RecordedMessage<MessageType, MessageMetadataType>[], fn: (scope: ObservabilityScope) => Promise<T>) => Promise<T>;
|
|
519
|
-
startMessageScope: <MessageType extends Message = Message, MessageMetadataType extends AnyReadEventMetadata = AnyRecordedMessageMetadata, T = void>(context: ProcessorCollectorContext & {
|
|
520
|
-
archetypeType: string;
|
|
521
|
-
}, message: RecordedMessage<MessageType, MessageMetadataType>, batchCtx: SpanContext, fn: (scope: ObservabilityScope) => Promise<T>) => Promise<T>;
|
|
522
|
-
recordLag: (processorId: string, lag: number) => void;
|
|
523
|
-
};
|
|
524
|
-
//#endregion
|
|
525
431
|
//#region src/processors/processors.d.ts
|
|
526
432
|
type CurrentMessageProcessorPosition = {
|
|
527
433
|
lastCheckpoint: ProcessorCheckpoint;
|
|
528
434
|
} | 'BEGINNING' | 'END';
|
|
435
|
+
declare const CurrentMessageProcessorPosition: {
|
|
436
|
+
compare: (a: CurrentMessageProcessorPosition, b: CurrentMessageProcessorPosition, compareCheckpoints?: (a: ProcessorCheckpoint, b: ProcessorCheckpoint) => number) => number;
|
|
437
|
+
zip: (checkpoints: (CurrentMessageProcessorPosition | undefined)[], compareCheckpoints?: (a: ProcessorCheckpoint, b: ProcessorCheckpoint) => number) => CurrentMessageProcessorPosition;
|
|
438
|
+
};
|
|
529
439
|
declare const wasMessageHandled: <MessageType extends AnyMessage = AnyMessage, MessageMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata>(message: RecordedMessage<MessageType, MessageMetadataType>, checkpoint: ProcessorCheckpoint | null) => boolean;
|
|
530
|
-
type MessageProcessorStartFrom = CurrentMessageProcessorPosition | 'CURRENT';
|
|
440
|
+
type MessageProcessorStartFrom = CurrentMessageProcessorPosition /** @deprecated omit `startFrom` instead */ | 'CURRENT';
|
|
531
441
|
type MessageProcessorType = 'projector' | 'reactor';
|
|
532
442
|
declare const MessageProcessorType: {
|
|
533
443
|
PROJECTOR: MessageProcessorType;
|
|
@@ -570,7 +480,7 @@ type BaseMessageProcessorOptions<MessageType extends AnyMessage = AnyMessage, Me
|
|
|
570
480
|
startFrom?: MessageProcessorStartFrom;
|
|
571
481
|
stopAfter?: (message: RecordedMessage<MessageType, MessageMetadataType>) => boolean;
|
|
572
482
|
processingScope?: MessageProcessingScope<HandlerContext>;
|
|
573
|
-
checkpoints?: Checkpointer<MessageType, MessageMetadataType, HandlerContext
|
|
483
|
+
checkpoints?: Checkpointer<MessageType, MessageMetadataType, HandlerContext> | 'DISABLED';
|
|
574
484
|
canHandle?: CanHandle<MessageType>;
|
|
575
485
|
hooks?: ProcessorHooks<HandlerContext>;
|
|
576
486
|
} & JSONSerializationOptions & {
|
|
@@ -623,8 +533,8 @@ type InMemoryProcessorEachBatchHandler<MessageType extends AnyMessage = AnyMessa
|
|
|
623
533
|
type InMemoryProcessorConnectionOptions = {
|
|
624
534
|
database?: InMemoryDatabase;
|
|
625
535
|
};
|
|
626
|
-
type InMemoryCheckpointer<MessageType extends AnyMessage = AnyMessage> = Checkpointer<MessageType,
|
|
627
|
-
declare const inMemoryCheckpointer: <MessageType extends AnyMessage = AnyMessage>() => InMemoryCheckpointer<MessageType>;
|
|
536
|
+
type InMemoryCheckpointer<MessageType extends AnyMessage = AnyMessage, MessageMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata, HandlerContext extends DefaultRecord = DefaultRecord> = Checkpointer<MessageType, MessageMetadataType, HandlerContext>;
|
|
537
|
+
declare const inMemoryCheckpointer: <MessageType extends AnyMessage = AnyMessage, MessageMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata, HandlerContext extends DefaultRecord = DefaultRecord>() => InMemoryCheckpointer<MessageType, MessageMetadataType, HandlerContext>;
|
|
628
538
|
type InMemoryConnectionOptions = {
|
|
629
539
|
connectionOptions?: InMemoryProcessorConnectionOptions;
|
|
630
540
|
};
|
|
@@ -634,6 +544,61 @@ type InMemoryProcessorOptions<MessageType extends AnyMessage = AnyMessage> = InM
|
|
|
634
544
|
declare const inMemoryProjector: <EventType extends AnyEvent = AnyEvent>(options: InMemoryProjectorOptions<EventType>) => InMemoryProcessor<EventType>;
|
|
635
545
|
declare const inMemoryReactor: <MessageType extends AnyMessage = AnyMessage>(options: InMemoryReactorOptions<MessageType>) => InMemoryProcessor<MessageType>;
|
|
636
546
|
//#endregion
|
|
547
|
+
//#region src/processors/observability/processorCollector.d.ts
|
|
548
|
+
type ProcessorObservabilityConfig = Pick<EmmettObservabilityConfig, 'tracer' | 'meter' | 'propagation' | 'attributeTarget' | 'includeMessagePayloads'>;
|
|
549
|
+
type ResolvedProcessorObservability = {
|
|
550
|
+
tracer: Tracer;
|
|
551
|
+
meter: Meter;
|
|
552
|
+
propagation: TracePropagation;
|
|
553
|
+
attributeTarget: AttributeTarget;
|
|
554
|
+
includeMessagePayloads: boolean;
|
|
555
|
+
};
|
|
556
|
+
declare const processorObservability: (options: {
|
|
557
|
+
observability?: Partial<EmmettObservabilityConfig>;
|
|
558
|
+
} | undefined, parent?: EmmettObservabilityOptions) => ResolvedProcessorObservability;
|
|
559
|
+
type ProcessorCollectorContext = {
|
|
560
|
+
processorId: string;
|
|
561
|
+
type: string;
|
|
562
|
+
checkpoint: ProcessorCheckpoint | null;
|
|
563
|
+
};
|
|
564
|
+
declare const processorCollector: (observability: ResolvedProcessorObservability) => {
|
|
565
|
+
startScope: <MessageType extends Message = Message, MessageMetadataType extends AnyReadEventMetadata = AnyRecordedMessageMetadata, T = void>(context: ProcessorCollectorContext, messages: RecordedMessage<MessageType, MessageMetadataType>[], fn: (scope: ObservabilityScope) => Promise<T>) => Promise<T>;
|
|
566
|
+
startMessageScope: <MessageType extends Message = Message, MessageMetadataType extends AnyReadEventMetadata = AnyRecordedMessageMetadata, T = void>(context: ProcessorCollectorContext & {
|
|
567
|
+
archetypeType: string;
|
|
568
|
+
}, message: RecordedMessage<MessageType, MessageMetadataType>, batchCtx: SpanContext, fn: (scope: ObservabilityScope) => Promise<T>) => Promise<T>;
|
|
569
|
+
recordLag: (processorId: string, lag: number) => void;
|
|
570
|
+
};
|
|
571
|
+
//#endregion
|
|
572
|
+
//#region src/processors/processorStartPositions.d.ts
|
|
573
|
+
type ConsumerStartPositions = {
|
|
574
|
+
earliestPosition: CurrentMessageProcessorPosition;
|
|
575
|
+
afterStartPosition: <MessageType extends AnyMessage = AnyMessage, MessageMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata>(processorId: string, messages: RecordedMessage<MessageType, MessageMetadataType>[]) => RecordedMessage<MessageType, MessageMetadataType>[];
|
|
576
|
+
};
|
|
577
|
+
type ProcessorStartPositionsOptions = {
|
|
578
|
+
compareCheckpoints?: (a: ProcessorCheckpoint, b: ProcessorCheckpoint) => number;
|
|
579
|
+
};
|
|
580
|
+
type ProcessorStartPositions = {
|
|
581
|
+
set: (processorId: string, position: CurrentMessageProcessorPosition | undefined) => void;
|
|
582
|
+
zip: () => CurrentMessageProcessorPosition;
|
|
583
|
+
with: (expected: 'START' | 'END') => string[];
|
|
584
|
+
afterStartPosition: <MessageType extends AnyMessage = AnyMessage, MessageMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata>(processorId: string, messages: RecordedMessage<MessageType, MessageMetadataType>[]) => RecordedMessage<MessageType, MessageMetadataType>[];
|
|
585
|
+
};
|
|
586
|
+
declare const ProcessorStartPositions: (options?: ProcessorStartPositionsOptions) => ProcessorStartPositions;
|
|
587
|
+
type ResolveConsumerStartPositionsOptions<ConsumerMessageType extends Message = any, HandlerContext extends MessageHandlerContext | undefined = undefined> = {
|
|
588
|
+
processors: Array<MessageProcessor<ConsumerMessageType, any, HandlerContext>>;
|
|
589
|
+
readLastMessageCheckpoint: (context: Partial<HandlerContext>) => Promise<ProcessorCheckpoint | null>;
|
|
590
|
+
handlerContext: Partial<HandlerContext>;
|
|
591
|
+
compareCheckpoints?: (a: ProcessorCheckpoint, b: ProcessorCheckpoint) => number;
|
|
592
|
+
};
|
|
593
|
+
declare const ConsumerStartPositions: {
|
|
594
|
+
resolve: <ConsumerMessageType extends Message = any, HandlerContext extends MessageHandlerContext | undefined = undefined>({
|
|
595
|
+
processors,
|
|
596
|
+
handlerContext: handlerOptions,
|
|
597
|
+
readLastMessageCheckpoint,
|
|
598
|
+
compareCheckpoints
|
|
599
|
+
}: ResolveConsumerStartPositionsOptions<ConsumerMessageType, HandlerContext>) => Promise<ConsumerStartPositions>;
|
|
600
|
+
};
|
|
601
|
+
//#endregion
|
|
637
602
|
//#region src/typing/message.d.ts
|
|
638
603
|
type Message<Type extends string = string, Data extends DefaultRecord = DefaultRecord, MetaData extends DefaultRecord | undefined = undefined> = Command<Type, Data, MetaData> | Event<Type, Data, MetaData>;
|
|
639
604
|
type AnyMessage = AnyEvent | AnyCommand;
|
|
@@ -947,6 +912,21 @@ declare const isSubscriptionEvent: (event: Event) => event is GlobalSubscription
|
|
|
947
912
|
declare const isNotInternalEvent: (event: Event) => boolean;
|
|
948
913
|
type GlobalSubscriptionEvent = GlobalStreamCaughtUp;
|
|
949
914
|
//#endregion
|
|
915
|
+
//#region src/eventStore/observability/eventStoreCollector.d.ts
|
|
916
|
+
type EventStoreObservabilityConfig = Pick<EmmettObservabilityConfig, 'tracer' | 'meter' | 'attributeTarget'>;
|
|
917
|
+
type ResolvedEventStoreObservability = {
|
|
918
|
+
tracer: Tracer;
|
|
919
|
+
meter: Meter;
|
|
920
|
+
attributeTarget: AttributeTarget;
|
|
921
|
+
};
|
|
922
|
+
declare const eventStoreObservability: (options: {
|
|
923
|
+
observability?: EventStoreObservabilityConfig;
|
|
924
|
+
} | undefined, parent?: EmmettObservabilityOptions) => ResolvedEventStoreObservability;
|
|
925
|
+
declare const eventStoreCollector: (observability: ResolvedEventStoreObservability) => {
|
|
926
|
+
instrumentRead: <EventType extends Event, ReadEventMetadataType extends AnyReadEventMetadata = AnyRecordedMessageMetadata>(streamName: string, fn: () => Promise<ReadStreamResult<EventType, ReadEventMetadataType>>) => Promise<ReadStreamResult<EventType, ReadEventMetadataType>>;
|
|
927
|
+
instrumentAppend: <Result extends AppendToStreamResult, EventType extends Event = Event>(streamName: string, events: EventType[], fn: () => Promise<Result>) => Promise<Result>;
|
|
928
|
+
};
|
|
929
|
+
//#endregion
|
|
950
930
|
//#region src/eventStore/inMemoryEventStore.d.ts
|
|
951
931
|
declare const InMemoryEventStoreDefaultStreamVersion = 0n;
|
|
952
932
|
type InMemoryEventStore = EventStore<ReadEventMetadataWithGlobalPosition> & {
|
|
@@ -1383,9 +1363,32 @@ declare const CommandHandler: <State, StreamEvent extends Event, EventPayloadTyp
|
|
|
1383
1363
|
type DeciderCommandHandlerOptions<State, CommandType extends Command, StreamEvent extends Event> = CommandHandlerOptions<State, StreamEvent> & Decider<State, CommandType, StreamEvent>;
|
|
1384
1364
|
declare const DeciderCommandHandler: <State, CommandType extends Command, StreamEvent extends Event>(options: DeciderCommandHandlerOptions<State, CommandType, StreamEvent>) => <Store extends EventStore>(eventStore: Store, id: string, commands: CommandType | CommandType[], handleOptions?: HandleOptions<Store>) => Promise<CommandHandlerResult<State, StreamEvent, Store>>;
|
|
1385
1365
|
//#endregion
|
|
1366
|
+
//#region src/consumers/observability/consumerCollector.d.ts
|
|
1367
|
+
type ConsumerObservabilityConfig = Pick<EmmettObservabilityConfig, 'tracer' | 'meter' | 'pollTracing' | 'attributeTarget'>;
|
|
1368
|
+
type ResolvedConsumerObservability = {
|
|
1369
|
+
tracer: Tracer;
|
|
1370
|
+
meter: Meter;
|
|
1371
|
+
pollTracing: PollTracing;
|
|
1372
|
+
attributeTarget: AttributeTarget;
|
|
1373
|
+
};
|
|
1374
|
+
declare const consumerObservability: (options: {
|
|
1375
|
+
observability?: ConsumerObservabilityConfig;
|
|
1376
|
+
} | undefined, parent?: EmmettObservabilityOptions) => ResolvedConsumerObservability;
|
|
1377
|
+
declare const consumerCollector: (observability: ResolvedConsumerObservability) => {
|
|
1378
|
+
tracePoll: <T>(context: {
|
|
1379
|
+
processorCount: number;
|
|
1380
|
+
batchSize: number;
|
|
1381
|
+
empty: boolean;
|
|
1382
|
+
waitMs?: number;
|
|
1383
|
+
}, fn: (scope: ObservabilityScope) => Promise<T>) => Promise<T>;
|
|
1384
|
+
recordPollMetrics: (durationMs: number, attrs?: Record<string, unknown>) => void;
|
|
1385
|
+
traceDelivery: <T>(scope: ObservabilityScope, processorId: string, fn: () => Promise<T>) => Promise<T>;
|
|
1386
|
+
};
|
|
1387
|
+
//#endregion
|
|
1386
1388
|
//#region src/consumers/consumers.d.ts
|
|
1387
1389
|
type MessageConsumerOptions<ConsumerMessageType extends Message = any> = {
|
|
1388
1390
|
consumerId?: string;
|
|
1391
|
+
observability?: ConsumerObservabilityConfig;
|
|
1389
1392
|
processors?: Array<MessageProcessor<ConsumerMessageType, any, any>>;
|
|
1390
1393
|
};
|
|
1391
1394
|
type MessageConsumer<ConsumerMessageType extends Message = any> = Readonly<{
|
|
@@ -1493,6 +1496,31 @@ declare const assertNotEmptyString: (value: unknown) => string;
|
|
|
1493
1496
|
declare const assertPositiveNumber: (value: unknown) => number;
|
|
1494
1497
|
declare const assertUnsignedBigInt: (value: string) => bigint;
|
|
1495
1498
|
//#endregion
|
|
1499
|
+
//#region src/workflows/observability/workflowCollector.d.ts
|
|
1500
|
+
type WorkflowObservabilityConfig = Pick<EmmettObservabilityConfig, 'tracer' | 'meter' | 'propagation' | 'attributeTarget' | 'includeMessagePayloads'>;
|
|
1501
|
+
type ResolvedWorkflowObservability = {
|
|
1502
|
+
tracer: Tracer;
|
|
1503
|
+
meter: Meter;
|
|
1504
|
+
propagation: TracePropagation;
|
|
1505
|
+
attributeTarget: AttributeTarget;
|
|
1506
|
+
includeMessagePayloads: boolean;
|
|
1507
|
+
};
|
|
1508
|
+
declare const workflowObservability: (options: {
|
|
1509
|
+
observability?: WorkflowObservabilityConfig;
|
|
1510
|
+
} | undefined, parent?: EmmettObservabilityOptions) => ResolvedWorkflowObservability;
|
|
1511
|
+
type WorkflowCollectorContext = {
|
|
1512
|
+
workflowId: string;
|
|
1513
|
+
workflowType: string;
|
|
1514
|
+
inputType: string;
|
|
1515
|
+
};
|
|
1516
|
+
declare const workflowCollector: (observability: ResolvedWorkflowObservability) => {
|
|
1517
|
+
startScope: <T>(context: WorkflowCollectorContext, fn: (scope: ObservabilityScope) => Promise<T>) => Promise<T>;
|
|
1518
|
+
recordOutputs: (scope: ObservabilityScope, outputs: {
|
|
1519
|
+
type: string;
|
|
1520
|
+
}[]) => void;
|
|
1521
|
+
recordStateRebuild: (scope: ObservabilityScope, eventCount: number) => void;
|
|
1522
|
+
};
|
|
1523
|
+
//#endregion
|
|
1496
1524
|
//#region src/workflows/workflowProcessor.d.ts
|
|
1497
1525
|
type WorkflowOptions<Input extends AnyEvent | AnyCommand, State, Output extends AnyEvent | AnyCommand, MessageMetadataType extends AnyReadEventMetadata = AnyReadEventMetadata, StoredMessage extends AnyEvent | AnyCommand = Output> = {
|
|
1498
1526
|
workflow: Workflow<Input, State, Output>;
|
|
@@ -1569,8 +1597,8 @@ type WorkflowHandlerOptions<Input extends AnyEvent | AnyCommand, State, Output e
|
|
|
1569
1597
|
};
|
|
1570
1598
|
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>>;
|
|
1571
1599
|
declare namespace index_d_exports {
|
|
1572
|
-
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, DeciderAssert, 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,
|
|
1600
|
+
export { AcquireLockOptions, AfterEventStoreCommitHandler, AggregateStreamOptions, AggregateStreamResult, AggregateStreamResultOfEventStore, AggregateStreamResultWithGlobalPosition, AnyCommand, AnyEvent, AnyMessage, AnyReadEvent, AnyReadEventMetadata, AnyRecord, AnyRecordedMessage, AnyRecordedMessageMetadata, AppendStreamResultOfEventStore, AppendToStreamOptions, AppendToStreamResult, AppendToStreamResultWithGlobalPosition, ArgumentMatcher, AssertionError, AsyncAwaiter, AsyncDeciderSpecification, AsyncRetryOptions, BEGINNING, 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, ConsumerStartPositions, CreateCommandType, CreateEventType, CurrentMessageProcessorPosition, DATABASE_REQUIRED_ERROR_MESSAGE, DatabaseHandleOptionErrors, DatabaseHandleOptions, DatabaseHandleResult, Decider, DeciderAssert, DeciderCommandHandler, DeciderCommandHandlerOptions, DeciderSpecification, DeepReadonly, DefaultCommandMetadata, DefaultEventStoreOptions, DefaultRecord, DeleteManyOptions, DeleteManyResult, DeleteOneOptions, DeleteResult, Document, DocumentHandler, END, 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, 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, ProcessorStartPositions, ProcessorStartPositionsOptions, ProjectionDefinition, ProjectionHandler, ProjectionHandlerContext, ProjectionHandlingType, ProjectionInitOptions, ProjectionRegistration, ProjectorOptions, ReactorOptions, ReadEvent, ReadEventMetadata, ReadEventMetadataWithGlobalPosition, ReadEventMetadataWithoutGlobalPosition, ReadProcessorCheckpoint, ReadProcessorCheckpointResult, ReadStreamOptions, ReadStreamResult, RecordedMessage, RecordedMessageMetadata, RecordedMessageMetadataWithGlobalPosition, RecordedMessageMetadataWithoutGlobalPosition, ReleaseLockOptions, ReplaceOneOptions, ResolveConsumerStartPositionsOptions, 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, consumerObservability, deepEquals, defaultProcessingMessageProcessingScope, defaultProcessorPartition, defaultProcessorVersion, defaultTag, delay, documentExists, downcastRecordedMessage, downcastRecordedMessages, emmettPrefix, errorReplacer, event, eventInStream, eventStoreCollector, eventStoreObservability, 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, mergeObservabilityOptions, message, newEventsInStream, nulloSessionFactory, onShutdown, parseBigIntProcessorCheckpoint, parseDateFromUtcYYYYMMDD, processorCollector, processorObservability, projection, projections, projector, reactor, reduceAsync, sum, toNormalizedString, tryPublishMessagesAfterCommit, unknownTag, upcastRecordedMessage, upcastRecordedMessages, verifyThat, wasMessageHandled, workflowCollector, workflowObservability, workflowOutputHandler, workflowProcessor, workflowStreamName };
|
|
1573
1601
|
}
|
|
1574
1602
|
//#endregion
|
|
1575
|
-
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, DeciderAssert, 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,
|
|
1603
|
+
export { AcquireLockOptions, AfterEventStoreCommitHandler, AggregateStreamOptions, AggregateStreamResult, AggregateStreamResultOfEventStore, AggregateStreamResultWithGlobalPosition, AnyCommand, AnyEvent, AnyMessage, AnyReadEvent, AnyReadEventMetadata, AnyRecord, AnyRecordedMessage, AnyRecordedMessageMetadata, AppendStreamResultOfEventStore, AppendToStreamOptions, AppendToStreamResult, AppendToStreamResultWithGlobalPosition, ArgumentMatcher, AssertionError, AsyncAwaiter, AsyncDeciderSpecification, AsyncRetryOptions, BEGINNING, 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, ConsumerStartPositions, CreateCommandType, CreateEventType, CurrentMessageProcessorPosition, DATABASE_REQUIRED_ERROR_MESSAGE, DatabaseHandleOptionErrors, DatabaseHandleOptions, DatabaseHandleResult, Decider, DeciderAssert, DeciderCommandHandler, DeciderCommandHandlerOptions, DeciderSpecification, DeepReadonly, DefaultCommandMetadata, DefaultEventStoreOptions, DefaultRecord, DeleteManyOptions, DeleteManyResult, DeleteOneOptions, DeleteResult, Document, DocumentHandler, END, 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, 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, ProcessorStartPositions, ProcessorStartPositionsOptions, ProjectionDefinition, ProjectionHandler, ProjectionHandlerContext, ProjectionHandlingType, ProjectionInitOptions, ProjectionRegistration, ProjectorOptions, ReactorOptions, ReadEvent, ReadEventMetadata, ReadEventMetadataWithGlobalPosition, ReadEventMetadataWithoutGlobalPosition, ReadProcessorCheckpoint, ReadProcessorCheckpointResult, ReadStreamOptions, ReadStreamResult, RecordedMessage, RecordedMessageMetadata, RecordedMessageMetadataWithGlobalPosition, RecordedMessageMetadataWithoutGlobalPosition, ReleaseLockOptions, ReplaceOneOptions, ResolveConsumerStartPositionsOptions, 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, consumerObservability, deepEquals, defaultProcessingMessageProcessingScope, defaultProcessorPartition, defaultProcessorVersion, defaultTag, delay, documentExists, downcastRecordedMessage, downcastRecordedMessages, emmettPrefix, errorReplacer, event, eventInStream, eventStoreCollector, eventStoreObservability, 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, mergeObservabilityOptions, message, newEventsInStream, nulloSessionFactory, onShutdown, parseBigIntProcessorCheckpoint, parseDateFromUtcYYYYMMDD, processorCollector, processorObservability, projection, projections, projector, reactor, reduceAsync, sum, toNormalizedString, tryPublishMessagesAfterCommit, unknownTag, upcastRecordedMessage, upcastRecordedMessages, verifyThat, wasMessageHandled, workflowCollector, workflowObservability, workflowOutputHandler, workflowProcessor, workflowStreamName };
|
|
1576
1604
|
//# sourceMappingURL=index.d.cts.map
|