@event-driven-io/emmett-postgresql 0.42.0-rc.2 → 0.42.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -74,7 +74,7 @@ type PostgreSQLProcessorLockOptions = {
74
74
  };
75
75
  lockKey?: string | bigint;
76
76
  lockTimeoutSeconds?: number;
77
- lockPolicy?: LockAcquisitionPolicy;
77
+ lockAcquisitionPolicy?: LockAcquisitionPolicy;
78
78
  };
79
79
  type PostgreSQLProcessorLockContext = {
80
80
  execute: SQLExecutor;
@@ -370,6 +370,7 @@ declare const eventStoreSchemaMigrations: SQLMigration[];
370
370
  type CreateEventStoreSchemaOptions = {
371
371
  dryRun?: boolean | undefined;
372
372
  ignoreMigrationHashMismatch?: boolean | undefined;
373
+ migrationTimeoutMs?: number | undefined;
373
374
  };
374
375
  type EventStoreSchemaMigrationOptions = {
375
376
  migrationOptions?: CreateEventStoreSchemaOptions;
@@ -697,8 +698,10 @@ type PostgreSQLConnectionOptions = {
697
698
  connectionOptions?: PostgreSQLProcessorConnectionOptions;
698
699
  };
699
700
  type PostgreSQLProcessorOptionsBase = PostgreSQLConnectionOptions & {
700
- lockPolicy?: LockAcquisitionPolicy;
701
- lockTimeoutSeconds?: number;
701
+ lock?: {
702
+ acquisitionPolicy?: LockAcquisitionPolicy;
703
+ timeoutSeconds?: number;
704
+ };
702
705
  partition?: string;
703
706
  };
704
707
  type PostgreSQLReactorOptions<MessageType extends Message = Message> = ReactorOptions<MessageType, ReadEventMetadataWithGlobalPosition, PostgreSQLProcessorHandlerContext> & PostgreSQLProcessorOptionsBase;
@@ -737,7 +740,11 @@ type PostgreSQLEventStoreConsumer<ConsumerMessageType extends AnyMessage = any>
737
740
  declare const postgreSQLEventStoreConsumer: <ConsumerMessageType extends Message = AnyMessage>(options: PostgreSQLEventStoreConsumerOptions<ConsumerMessageType>) => PostgreSQLEventStoreConsumer<ConsumerMessageType>;
738
741
 
739
742
  declare const rebuildPostgreSQLProjections: <EventType extends AnyEvent = AnyEvent>(options: Omit<PostgreSQLEventStoreConsumerOptions<EventType>, "stopWhen" | "processors"> & {
740
- lockPolicy?: LockAcquisitionPolicy;
743
+ lock?: {
744
+ lockAcquisitionPolicy?: LockAcquisitionPolicy;
745
+ acquisitionPolicy?: LockAcquisitionPolicy;
746
+ timeoutSeconds?: number;
747
+ };
741
748
  } & ({
742
749
  projections: (ProjectorOptions<EventType, ReadEventMetadataWithGlobalPosition, PostgreSQLProcessorHandlerContext> | PostgreSQLProjectionDefinition<EventType>)[];
743
750
  } | ProjectorOptions<EventType, ReadEventMetadataWithGlobalPosition, PostgreSQLProcessorHandlerContext>)) => PostgreSQLEventStoreConsumer<EventType>;
package/dist/index.d.ts CHANGED
@@ -74,7 +74,7 @@ type PostgreSQLProcessorLockOptions = {
74
74
  };
75
75
  lockKey?: string | bigint;
76
76
  lockTimeoutSeconds?: number;
77
- lockPolicy?: LockAcquisitionPolicy;
77
+ lockAcquisitionPolicy?: LockAcquisitionPolicy;
78
78
  };
79
79
  type PostgreSQLProcessorLockContext = {
80
80
  execute: SQLExecutor;
@@ -370,6 +370,7 @@ declare const eventStoreSchemaMigrations: SQLMigration[];
370
370
  type CreateEventStoreSchemaOptions = {
371
371
  dryRun?: boolean | undefined;
372
372
  ignoreMigrationHashMismatch?: boolean | undefined;
373
+ migrationTimeoutMs?: number | undefined;
373
374
  };
374
375
  type EventStoreSchemaMigrationOptions = {
375
376
  migrationOptions?: CreateEventStoreSchemaOptions;
@@ -697,8 +698,10 @@ type PostgreSQLConnectionOptions = {
697
698
  connectionOptions?: PostgreSQLProcessorConnectionOptions;
698
699
  };
699
700
  type PostgreSQLProcessorOptionsBase = PostgreSQLConnectionOptions & {
700
- lockPolicy?: LockAcquisitionPolicy;
701
- lockTimeoutSeconds?: number;
701
+ lock?: {
702
+ acquisitionPolicy?: LockAcquisitionPolicy;
703
+ timeoutSeconds?: number;
704
+ };
702
705
  partition?: string;
703
706
  };
704
707
  type PostgreSQLReactorOptions<MessageType extends Message = Message> = ReactorOptions<MessageType, ReadEventMetadataWithGlobalPosition, PostgreSQLProcessorHandlerContext> & PostgreSQLProcessorOptionsBase;
@@ -737,7 +740,11 @@ type PostgreSQLEventStoreConsumer<ConsumerMessageType extends AnyMessage = any>
737
740
  declare const postgreSQLEventStoreConsumer: <ConsumerMessageType extends Message = AnyMessage>(options: PostgreSQLEventStoreConsumerOptions<ConsumerMessageType>) => PostgreSQLEventStoreConsumer<ConsumerMessageType>;
738
741
 
739
742
  declare const rebuildPostgreSQLProjections: <EventType extends AnyEvent = AnyEvent>(options: Omit<PostgreSQLEventStoreConsumerOptions<EventType>, "stopWhen" | "processors"> & {
740
- lockPolicy?: LockAcquisitionPolicy;
743
+ lock?: {
744
+ lockAcquisitionPolicy?: LockAcquisitionPolicy;
745
+ acquisitionPolicy?: LockAcquisitionPolicy;
746
+ timeoutSeconds?: number;
747
+ };
741
748
  } & ({
742
749
  projections: (ProjectorOptions<EventType, ReadEventMetadataWithGlobalPosition, PostgreSQLProcessorHandlerContext> | PostgreSQLProjectionDefinition<EventType>)[];
743
750
  } | ProjectorOptions<EventType, ReadEventMetadataWithGlobalPosition, PostgreSQLProcessorHandlerContext>)) => PostgreSQLEventStoreConsumer<EventType>;