@delta-base/core 1.3.5 → 1.3.6
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.ts +31 -7
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -871,7 +871,7 @@ declare namespace EventStoreAPI {
|
|
|
871
871
|
transactionId: z.ZodOptional<z.ZodString>;
|
|
872
872
|
fromPosition: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>, z.ZodNumber>>;
|
|
873
873
|
toPosition: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>, z.ZodNumber>>;
|
|
874
|
-
fromDate: z.ZodOptional<z.
|
|
874
|
+
fromDate: z.ZodOptional<z.ZodISODateTime>;
|
|
875
875
|
toDate: z.ZodOptional<z.ZodString>;
|
|
876
876
|
phase: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>, z.ZodNumber>>;
|
|
877
877
|
includeArchived: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<boolean, string>>, z.ZodBoolean>>;
|
|
@@ -894,8 +894,8 @@ declare namespace EventStoreAPI {
|
|
|
894
894
|
streamIdPattern: z.ZodOptional<z.ZodString>;
|
|
895
895
|
minPosition: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>, z.ZodNumber>>;
|
|
896
896
|
maxPosition: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>, z.ZodNumber>>;
|
|
897
|
-
fromDate: z.ZodOptional<z.
|
|
898
|
-
toDate: z.ZodOptional<z.
|
|
897
|
+
fromDate: z.ZodOptional<z.ZodISODateTime>;
|
|
898
|
+
toDate: z.ZodOptional<z.ZodISODateTime>;
|
|
899
899
|
includeArchived: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<boolean, string>>, z.ZodBoolean>>;
|
|
900
900
|
includeMetadata: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<boolean, string>>, z.ZodBoolean>>;
|
|
901
901
|
limit: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>, z.ZodNumber>>;
|
|
@@ -2477,9 +2477,23 @@ declare class EventBusDurableObject extends DurableObject<Env$1> {
|
|
|
2477
2477
|
* @private
|
|
2478
2478
|
*/
|
|
2479
2479
|
private formatDateToISO;
|
|
2480
|
+
/**
|
|
2481
|
+
* Converts ISO 8601 date string to SQLite DATETIME format for query comparisons
|
|
2482
|
+
* This ensures backward compatibility with existing data stored in SQLite format
|
|
2483
|
+
* @param isoDate - ISO 8601 date string like "2025-12-02T05:00:00.000Z"
|
|
2484
|
+
* @returns SQLite DATETIME format string like "2025-12-02 05:00:00"
|
|
2485
|
+
* @private
|
|
2486
|
+
*/
|
|
2487
|
+
private formatDateToSQLite;
|
|
2480
2488
|
constructor(state: DurableObjectState, env: Env$1);
|
|
2481
2489
|
private initializeTables;
|
|
2482
2490
|
initialize(eventStoreID: string): void;
|
|
2491
|
+
/**
|
|
2492
|
+
* Ensures the event bus has been initialized
|
|
2493
|
+
* @throws NotFoundError if not initialized
|
|
2494
|
+
* @private
|
|
2495
|
+
*/
|
|
2496
|
+
private ensureInitialized;
|
|
2483
2497
|
/**
|
|
2484
2498
|
* Check if a webhook subscription with the same configuration already exists
|
|
2485
2499
|
* @param eventFilter - The event filter pattern to match
|
|
@@ -2652,10 +2666,6 @@ declare class EventStoreDurableObject extends DurableObject<Env> {
|
|
|
2652
2666
|
private readonly SIZE_EMERGENCY_MB;
|
|
2653
2667
|
/** Conversion factor from MB to bytes */
|
|
2654
2668
|
private readonly MB_TO_BYTES;
|
|
2655
|
-
/** Number of events to store in each archive chunk */
|
|
2656
|
-
private readonly EVENTS_PER_ARCHIVE_CHUNK;
|
|
2657
|
-
/** Maximum batch size for emergency operations */
|
|
2658
|
-
private readonly MAX_EMERGENCY_BATCH_SIZE;
|
|
2659
2669
|
/** Tracks if alarm handler is currently active to prevent concurrency violations */
|
|
2660
2670
|
private isAlarmActive;
|
|
2661
2671
|
/** Tracks if we're in the process of scheduling an alarm to prevent race conditions */
|
|
@@ -2678,6 +2688,12 @@ declare class EventStoreDurableObject extends DurableObject<Env> {
|
|
|
2678
2688
|
* @param eventStoreID - The ID to assign to this event store
|
|
2679
2689
|
*/
|
|
2680
2690
|
initialize(eventStoreID: string): void;
|
|
2691
|
+
/**
|
|
2692
|
+
* Ensures the event store has been initialized
|
|
2693
|
+
* @throws NotFoundError if not initialized
|
|
2694
|
+
* @private
|
|
2695
|
+
*/
|
|
2696
|
+
private ensureInitialized;
|
|
2681
2697
|
/**
|
|
2682
2698
|
* Appends events to a stream with optimistic concurrency control
|
|
2683
2699
|
* @param streamId - The unique identifier for the stream
|
|
@@ -2744,6 +2760,14 @@ declare class EventStoreDurableObject extends DurableObject<Env> {
|
|
|
2744
2760
|
* @private
|
|
2745
2761
|
*/
|
|
2746
2762
|
private formatDateToISO;
|
|
2763
|
+
/**
|
|
2764
|
+
* Converts ISO 8601 date string to SQLite DATETIME format for query comparisons
|
|
2765
|
+
* This ensures backward compatibility with existing data stored in SQLite format
|
|
2766
|
+
* @param isoDate - ISO 8601 date string like "2025-12-02T05:00:00.000Z"
|
|
2767
|
+
* @returns SQLite DATETIME format string like "2025-12-02 05:00:00"
|
|
2768
|
+
* @private
|
|
2769
|
+
*/
|
|
2770
|
+
private formatDateToSQLite;
|
|
2747
2771
|
/**
|
|
2748
2772
|
* Maps a database row to an event object
|
|
2749
2773
|
* @param row - The database row containing event data
|