harperdb 4.7.0-alpha.1 → 4.7.0-alpha.3
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/README.md +1 -1
- package/bin/harperdb.js +56 -59
- package/bin/lite.js +56 -59
- package/components/status/ComponentStatus.d.ts +1 -1
- package/components/status/ComponentStatusRegistry.d.ts +1 -1
- package/components/status/crossThread.d.ts +1 -1
- package/components/status/index.d.ts +3 -3
- package/json/systemSchema.json +4 -2
- package/launchServiceScripts/launchNatsIngestService.js +56 -59
- package/launchServiceScripts/launchNatsReplyService.js +56 -59
- package/launchServiceScripts/launchUpdateNodes4-0-0.js +56 -59
- package/npm-shrinkwrap.json +318 -87
- package/package.json +2 -2
- package/resources/RequestTarget.d.ts +1 -1
- package/resources/Resource.d.ts +1 -1
- package/resources/ResourceInterface.d.ts +7 -7
- package/resources/usageLicensing.d.ts +17 -18
- package/server/jobs/jobProcess.js +56 -59
- package/server/replication/replicator.d.ts +2 -2
- package/server/status/index.d.ts +2 -2
- package/server/threads/threadServer.js +56 -59
- package/studio/build-local/asset-manifest.json +2 -2
- package/studio/build-local/index.html +1 -1
- package/studio/build-local/static/js/{main.ee040ffb.js → main.eedb02ca.js} +2 -2
- package/utility/hdbTerms.d.ts +3 -0
- package/utility/scripts/restartHdb.js +56 -59
- package/validation/usageLicensing.d.ts +8 -3
- /package/studio/build-local/static/js/{main.ee040ffb.js.LICENSE.txt → main.eedb02ca.js.LICENSE.txt} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DatabaseTransaction } from './DatabaseTransaction.ts';
|
|
2
|
-
import { OperationFunctionName } from '../server/serverHelpers/serverUtilities.ts';
|
|
2
|
+
import type { OperationFunctionName } from '../server/serverHelpers/serverUtilities.ts';
|
|
3
3
|
import { RequestTarget } from './RequestTarget.ts';
|
|
4
|
-
import { Entry } from './RecordEncoder.ts';
|
|
4
|
+
import type { Entry } from './RecordEncoder.ts';
|
|
5
5
|
export interface ResourceInterface<Key = any, Record = any> {
|
|
6
6
|
get?(id: Id): Promise<Record>;
|
|
7
7
|
get?(query: RequestTargetOrId): Promise<AsyncIterable<Record>>;
|
|
@@ -76,20 +76,20 @@ export interface SourceContext<TRequestContext = Context> {
|
|
|
76
76
|
lastModified?: number;
|
|
77
77
|
}
|
|
78
78
|
export type Operator = 'and' | 'or';
|
|
79
|
-
type
|
|
79
|
+
type Comparator = 'equals' | 'contains' | 'starts_with' | 'ends_with' | 'greater_than' | 'greater_than_equal' | 'less_than' | 'less_than_equal' | 'between';
|
|
80
80
|
export interface DirectCondition {
|
|
81
81
|
attribute?: string;
|
|
82
82
|
search_attribute?: string;
|
|
83
|
-
comparator?:
|
|
84
|
-
search_type?:
|
|
83
|
+
comparator?: Comparator;
|
|
84
|
+
search_type?: Comparator;
|
|
85
85
|
value?: any;
|
|
86
86
|
search_value?: any;
|
|
87
87
|
}
|
|
88
88
|
interface ConditionGroup {
|
|
89
|
-
conditions
|
|
89
|
+
conditions?: Conditions;
|
|
90
90
|
operator?: Operator;
|
|
91
91
|
}
|
|
92
|
-
export type Condition = DirectCondition
|
|
92
|
+
export type Condition = DirectCondition & ConditionGroup;
|
|
93
93
|
export type Conditions = Condition[];
|
|
94
94
|
export interface Sort {
|
|
95
95
|
attribute: string;
|
|
@@ -1,29 +1,28 @@
|
|
|
1
|
+
import { type ValidatedLicense } from '../validation/usageLicensing.ts';
|
|
1
2
|
interface InstallLicenseRequest {
|
|
2
3
|
operation: 'install_usage_license';
|
|
3
4
|
license: string;
|
|
4
5
|
}
|
|
5
6
|
export declare function installUsageLicenseOp(req: InstallLicenseRequest): Promise<string>;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
usedWrites: number;
|
|
19
|
-
usedWriteBytes: number;
|
|
20
|
-
usedRealTimeMessages: number;
|
|
21
|
-
usedRealTimeBytes: number;
|
|
22
|
-
usedCpuTime: number;
|
|
7
|
+
export declare function installUsageLicense(license: string): Promise<void>;
|
|
8
|
+
interface UsageLicense extends ValidatedLicense {
|
|
9
|
+
usedReads?: number;
|
|
10
|
+
usedReadBytes?: number;
|
|
11
|
+
usedWrites?: number;
|
|
12
|
+
usedWriteBytes?: number;
|
|
13
|
+
usedRealTimeMessages?: number;
|
|
14
|
+
usedRealTimeBytes?: number;
|
|
15
|
+
usedCpuTime?: number;
|
|
16
|
+
usedStorage?: number;
|
|
17
|
+
}
|
|
18
|
+
interface UsageLicenseRecord extends UsageLicense {
|
|
23
19
|
addTo: (field: string, value: number) => void;
|
|
24
20
|
}
|
|
21
|
+
export declare function isActiveLicense(license: UsageLicense): boolean;
|
|
22
|
+
export declare function recordUsage(analytics: any): Promise<void>;
|
|
25
23
|
interface GetUsageLicensesReq {
|
|
26
24
|
operation: 'get_usage_licenses';
|
|
27
25
|
}
|
|
28
|
-
export declare function getUsageLicensesOp(req: GetUsageLicensesReq):
|
|
26
|
+
export declare function getUsageLicensesOp(req: GetUsageLicensesReq): AsyncIterable<UsageLicenseRecord>;
|
|
27
|
+
export declare function getUsageLicenses(): AsyncIterable<UsageLicenseRecord>;
|
|
29
28
|
export {};
|