harperdb 4.6.4 → 4.6.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.
@@ -6,11 +6,21 @@ export declare const RECEIVED_VERSION_POSITION = 1;
6
6
  export declare const RECEIVED_TIME_POSITION = 2;
7
7
  export declare const SENDING_TIME_POSITION = 3;
8
8
  export declare const LATENCY_POSITION = 4;
9
+ export declare const RECEIVING_STATUS_POSITION = 5;
10
+ export declare const RECEIVING_STATUS_WAITING = 0;
11
+ export declare const RECEIVING_STATUS_RECEIVING = 1;
9
12
  export declare const tableUpdateListeners: Map<any, any>;
10
13
  export declare const databaseSubscriptions: Map<any, any>;
11
14
  /**
12
15
  * Handles reconnection, and requesting catch-up
13
16
  */
17
+ type NodeSubscription = {
18
+ name: string;
19
+ replicateByDefault: boolean;
20
+ tables: string[];
21
+ startTime: number;
22
+ endTime: number;
23
+ };
14
24
  export declare function createWebSocket(url: string, options: {
15
25
  authorization?: string;
16
26
  rejectUnauthorized?: boolean;
@@ -27,7 +37,7 @@ export declare class NodeReplicationConnection extends EventEmitter {
27
37
  retries: number;
28
38
  isConnected: boolean;
29
39
  isFinished: boolean;
30
- nodeSubscriptions: any[];
40
+ nodeSubscriptions?: NodeSubscription[];
31
41
  latency: number;
32
42
  replicateTablesByDefault: boolean;
33
43
  session: any;
@@ -57,3 +67,4 @@ export declare function replicateOverWS(ws: any, options: any, authorization: an
57
67
  */
58
68
  sendOperation(operation: any): Promise<unknown>;
59
69
  };
70
+ export {};