harperdb 4.6.6 → 4.7.0-alpha.2
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/LICENSE +0 -0
- package/README.md +1 -1
- package/bin/harperdb.js +89 -78
- package/bin/lite.js +85 -74
- package/components/requestRestart.d.ts +3 -0
- package/components/status/ComponentStatus.d.ts +61 -0
- package/components/status/ComponentStatusRegistry.d.ts +80 -0
- package/components/status/api.d.ts +104 -0
- package/components/status/crossThread.d.ts +62 -0
- package/components/status/errors.d.ts +68 -0
- package/components/status/index.d.ts +35 -0
- package/components/status/internal.d.ts +40 -0
- package/components/status/registry.d.ts +10 -0
- package/components/status/types.d.ts +75 -0
- package/json/systemSchema.json +68 -7
- package/launchServiceScripts/launchNatsIngestService.js +85 -74
- package/launchServiceScripts/launchNatsReplyService.js +85 -74
- package/launchServiceScripts/launchUpdateNodes4-0-0.js +85 -74
- package/npm-shrinkwrap.json +361 -71
- package/package.json +6 -6
- package/resources/RequestTarget.d.ts +1 -1
- package/resources/Resource.d.ts +3 -3
- package/resources/ResourceInterface.d.ts +33 -10
- package/resources/Resources.d.ts +1 -0
- package/resources/Table.d.ts +3 -3
- package/resources/analytics/hostnames.d.ts +3 -3
- package/resources/analytics/write.d.ts +2 -0
- package/resources/auditStore.d.ts +2 -0
- package/resources/databases.d.ts +3 -3
- package/resources/usageLicensing.d.ts +23 -0
- package/security/certificateVerification.d.ts +80 -0
- package/security/pkijs-ed25519-patch.d.ts +14 -0
- package/server/jobs/jobProcess.js +85 -74
- package/server/replication/knownNodes.d.ts +13 -1
- package/server/replication/replicationConnection.d.ts +2 -1
- package/server/status/index.d.ts +14 -5
- package/server/threads/threadServer.js +85 -74
- package/studio/build-local/asset-manifest.json +2 -2
- package/studio/build-local/index.html +1 -1
- package/studio/build-local/static/js/main.b93998e3.js +2 -0
- package/utility/hdbTerms.d.ts +8 -0
- package/utility/scripts/restartHdb.js +85 -74
- package/validation/usageLicensing.d.ts +34 -0
- package/studio/build-local/static/js/main.f9919fa0.js +0 -2
- /package/studio/build-local/static/js/{main.f9919fa0.js.LICENSE.txt → main.b93998e3.js.LICENSE.txt} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare function getHDBNodeTable(): any;
|
|
2
2
|
export declare function getReplicationSharedStatus(auditStore: any, databaseName: string, node_name: string, callback?: () => void): Float64Array<any>;
|
|
3
3
|
export declare function subscribeToNodeUpdates(listener: (node: any, id: string) => void): void;
|
|
4
|
-
export declare function shouldReplicateToNode(node:
|
|
4
|
+
export declare function shouldReplicateToNode(node: Node, databaseName: string): any;
|
|
5
5
|
/** Ensure that the shared user buffers are instantiated so we can communicate through them
|
|
6
6
|
*/
|
|
7
7
|
type AwaitingReplication = {
|
|
@@ -21,6 +21,18 @@ type Route = {
|
|
|
21
21
|
port?: any;
|
|
22
22
|
routes?: any[];
|
|
23
23
|
};
|
|
24
|
+
export type Node = {
|
|
25
|
+
name: string;
|
|
26
|
+
subscriptions: {
|
|
27
|
+
database: string;
|
|
28
|
+
schema: string;
|
|
29
|
+
subscribe: boolean;
|
|
30
|
+
}[];
|
|
31
|
+
replicates: boolean;
|
|
32
|
+
url: string;
|
|
33
|
+
startTime: number;
|
|
34
|
+
revoked_certificates: string[];
|
|
35
|
+
};
|
|
24
36
|
export declare function iterateRoutes(options: {
|
|
25
37
|
routes: (Route | any)[];
|
|
26
38
|
}): Generator<{
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { WebSocket } from 'ws';
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
|
+
import { type Node } from './knownNodes.ts';
|
|
3
4
|
export declare const OPERATION_REQUEST = 136;
|
|
4
5
|
export declare const CONFIRMATION_STATUS_POSITION = 0;
|
|
5
6
|
export declare const RECEIVED_VERSION_POSITION = 1;
|
|
@@ -58,7 +59,7 @@ export declare class NodeReplicationConnection extends EventEmitter {
|
|
|
58
59
|
/**
|
|
59
60
|
* This handles both incoming and outgoing WS allowing either one to issue a subscription and get replication and/or handle subscription requests
|
|
60
61
|
*/
|
|
61
|
-
export declare function replicateOverWS(ws:
|
|
62
|
+
export declare function replicateOverWS(ws: WebSocket, options: any, authorization: Promise<Node | undefined>): {
|
|
62
63
|
end(): void;
|
|
63
64
|
getRecord(request: any): Promise<unknown>;
|
|
64
65
|
/**
|
package/server/status/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { StatusId, StatusValueMap, StatusRecord } from './definitions.
|
|
1
|
+
import { StatusId, StatusValueMap, StatusRecord } from './definitions.ts';
|
|
2
|
+
import type { AggregatedComponentStatus } from '../../components/status';
|
|
2
3
|
export { clearStatus as clear, getStatus as get, setStatus as set };
|
|
3
|
-
export type { StatusId, StatusRecord, StatusValueMap } from './definitions.
|
|
4
|
-
export { STATUS_IDS, DEFAULT_STATUS_ID } from './definitions.
|
|
4
|
+
export type { StatusId, StatusRecord, StatusValueMap } from './definitions.ts';
|
|
5
|
+
export { STATUS_IDS, DEFAULT_STATUS_ID } from './definitions.ts';
|
|
5
6
|
type StatusRequestBody = {
|
|
6
7
|
id: StatusId;
|
|
7
8
|
};
|
|
@@ -13,5 +14,13 @@ export declare const Status: {
|
|
|
13
14
|
readonly primaryStore: any;
|
|
14
15
|
};
|
|
15
16
|
declare function clearStatus({ id }: StatusRequestBody): Promise<boolean>;
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
interface AggregatedComponentStatusWithName extends AggregatedComponentStatus {
|
|
18
|
+
name: string;
|
|
19
|
+
}
|
|
20
|
+
interface AllStatusSummary {
|
|
21
|
+
systemStatus: Promise<AsyncIterable<StatusRecord>>;
|
|
22
|
+
componentStatus: AggregatedComponentStatusWithName[];
|
|
23
|
+
restartRequired: boolean;
|
|
24
|
+
}
|
|
25
|
+
declare function getStatus({ id }: Partial<StatusRequestBody>): Promise<StatusRecord | AllStatusSummary>;
|
|
26
|
+
declare function setStatus<T extends StatusId = StatusId>({ status, id, }: StatusWriteRequestBody<T>): Promise<StatusRecord<T>>;
|