harperdb 4.6.0-alpha.1 → 4.6.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/application-template/README.md +26 -8
- package/application-template/config.yaml +18 -15
- package/application-template/web/index.html +29 -0
- package/application-template/web/index.js +18 -0
- package/application-template/web/styles.css +57 -0
- package/bin/harperdb.js +76 -76
- package/bin/lite.js +75 -75
- package/launchServiceScripts/launchInstallNATSServer.js +3 -3
- package/launchServiceScripts/launchNatsIngestService.js +75 -75
- package/launchServiceScripts/launchNatsReplyService.js +76 -76
- package/launchServiceScripts/launchUpdateNodes4-0-0.js +75 -75
- package/npm-shrinkwrap.json +283 -298
- package/package.json +2 -7
- package/resources/RecordEncoder.d.ts +15 -0
- package/resources/RequestTarget.d.ts +30 -0
- package/resources/Resource.d.ts +23 -14
- package/resources/ResourceInterface.d.ts +22 -29
- package/resources/Resources.d.ts +3 -1
- package/resources/Table.d.ts +99 -86
- package/resources/analytics/hostnames.d.ts +96 -133
- package/resources/analytics/read.d.ts +3 -1
- package/resources/databases.d.ts +96 -133
- package/resources/indexes/HierarchicalNavigableSmallWorld.d.ts +87 -0
- package/resources/indexes/customIndexes.d.ts +4 -0
- package/resources/indexes/vector.d.ts +2 -0
- package/resources/search.d.ts +4 -10
- package/resources/tracked.d.ts +1 -1
- package/resources/transactionBroadcast.d.ts +5 -1
- package/server/Server.d.ts +3 -1
- package/server/jobs/jobProcess.js +75 -75
- package/server/status.d.ts +437 -1
- package/server/threads/threadServer.js +76 -76
- package/studio/build-local/asset-manifest.json +34 -34
- package/studio/build-local/index.html +1 -1
- package/studio/build-local/static/js/164.a89f3fc2.chunk.js +1 -0
- package/studio/build-local/static/js/{101.de926db6.chunk.js → 504.6e6ee908.chunk.js} +2 -2
- package/studio/build-local/static/js/833.e460eaf4.chunk.js +1 -0
- package/studio/build-local/static/js/browse-csvupload.84fd1ae9.chunk.js +1 -0
- package/studio/build-local/static/js/browse-datatable.3d9e9ccf.chunk.js +1 -0
- package/studio/build-local/static/js/browse-entitymanager.4547c0d8.chunk.js +1 -0
- package/studio/build-local/static/js/browse-jsonviewer.71355c20.chunk.js +1 -0
- package/studio/build-local/static/js/custom-functions.31d65bca.chunk.js +1 -0
- package/studio/build-local/static/js/instance-cluster.031dcced.chunk.js +1 -0
- package/studio/build-local/static/js/instance-config.9a23d6ae.chunk.js +1 -0
- package/studio/build-local/static/js/instance-logs.fdaf96ec.chunk.js +1 -0
- package/studio/build-local/static/js/instance-roles.984ced56.chunk.js +1 -0
- package/studio/build-local/static/js/{instance-status.2f3aaaf7.chunk.js → instance-status.192a5e2f.chunk.js} +1 -1
- package/studio/build-local/static/js/instance-users-datatable.40846e47.chunk.js +1 -0
- package/studio/build-local/static/js/instance-users-edit.f10344c8.chunk.js +1 -0
- package/studio/build-local/static/js/instance-users.adc43a74.chunk.js +1 -0
- package/studio/build-local/static/js/instance.9de0a105.chunk.js +1 -0
- package/studio/build-local/static/js/instances.299d83e9.chunk.js +1 -0
- package/studio/build-local/static/js/{main.24eae3d8.js → main.5a7cabb6.js} +2 -2
- package/studio/build-local/static/js/offline-app.5bc1159b.chunk.js +1 -0
- package/studio/build-local/static/js/online-app.22102869.chunk.js +1 -0
- package/studio/build-local/static/js/organization-billing.56e7e051.chunk.js +1 -0
- package/studio/build-local/static/js/organization-users.b46b9e8f.chunk.js +1 -0
- package/studio/build-local/static/js/organization.eab64d57.chunk.js +1 -0
- package/studio/build-local/static/js/organizations.4567ae59.chunk.js +1 -0
- package/studio/build-local/static/js/profile.d45cd6b3.chunk.js +1 -0
- package/studio/build-local/static/js/resetPassword.812fc880.chunk.js +1 -0
- package/studio/build-local/static/js/roles-jsonviewer.73c8bb9d.chunk.js +1 -0
- package/studio/build-local/static/js/signIn.32766fa9.chunk.js +1 -0
- package/studio/build-local/static/js/signUp.07fd6662.chunk.js +1 -0
- package/studio/build-local/static/js/structure-reloader.ce2b39d2.chunk.js +1 -0
- package/studio/build-local/static/js/topnav.e661156c.chunk.js +1 -0
- package/studio/build-local/static/js/updatePassword.dcac970c.chunk.js +1 -0
- package/utility/scripts/restartHdb.js +75 -75
- package/validation/statusValidator.d.ts +22 -0
- package/studio/build-local/static/js/164.13a1ca36.chunk.js +0 -1
- package/studio/build-local/static/js/833.475ee615.chunk.js +0 -1
- package/studio/build-local/static/js/browse-csvupload.cfcf1c79.chunk.js +0 -1
- package/studio/build-local/static/js/browse-datatable.85de5169.chunk.js +0 -1
- package/studio/build-local/static/js/browse-entitymanager.dddb5da8.chunk.js +0 -1
- package/studio/build-local/static/js/browse-jsonviewer.059b4189.chunk.js +0 -1
- package/studio/build-local/static/js/custom-functions.2c2e634c.chunk.js +0 -1
- package/studio/build-local/static/js/instance-cluster.daef89d8.chunk.js +0 -1
- package/studio/build-local/static/js/instance-config.ba645bea.chunk.js +0 -1
- package/studio/build-local/static/js/instance-logs.33ace406.chunk.js +0 -1
- package/studio/build-local/static/js/instance-roles.0276d83f.chunk.js +0 -1
- package/studio/build-local/static/js/instance-users-datatable.f75cf637.chunk.js +0 -1
- package/studio/build-local/static/js/instance-users-edit.3a3bc76f.chunk.js +0 -1
- package/studio/build-local/static/js/instance-users.70ee5db2.chunk.js +0 -1
- package/studio/build-local/static/js/instance.0bbb9d0e.chunk.js +0 -1
- package/studio/build-local/static/js/instances.e86d288b.chunk.js +0 -1
- package/studio/build-local/static/js/offline-app.edb4be85.chunk.js +0 -1
- package/studio/build-local/static/js/online-app.45440c0e.chunk.js +0 -1
- package/studio/build-local/static/js/organization-billing.3ff0b995.chunk.js +0 -1
- package/studio/build-local/static/js/organization-users.710f96e7.chunk.js +0 -1
- package/studio/build-local/static/js/organization.1aa3da8e.chunk.js +0 -1
- package/studio/build-local/static/js/organizations.259e09d3.chunk.js +0 -1
- package/studio/build-local/static/js/profile.c1840496.chunk.js +0 -1
- package/studio/build-local/static/js/resetPassword.37769fbe.chunk.js +0 -1
- package/studio/build-local/static/js/roles-jsonviewer.b8cc0628.chunk.js +0 -1
- package/studio/build-local/static/js/signIn.061b438e.chunk.js +0 -1
- package/studio/build-local/static/js/signUp.cabe1d80.chunk.js +0 -1
- package/studio/build-local/static/js/structure-reloader.fd360bad.chunk.js +0 -1
- package/studio/build-local/static/js/topnav.1fce7836.chunk.js +0 -1
- package/studio/build-local/static/js/updatePassword.dc41627a.chunk.js +0 -1
- /package/studio/build-local/static/js/{101.de926db6.chunk.js.LICENSE.txt → 504.6e6ee908.chunk.js.LICENSE.txt} +0 -0
- /package/studio/build-local/static/js/{main.24eae3d8.js.LICENSE.txt → main.5a7cabb6.js.LICENSE.txt} +0 -0
|
@@ -3,52 +3,42 @@ export declare function getAnalyticsHostnameTable(): {
|
|
|
3
3
|
new (identifier: import("../ResourceInterface.js").Id, source: any): {
|
|
4
4
|
"__#5@#record": any;
|
|
5
5
|
"__#5@#changes": any;
|
|
6
|
-
"__#5@#version"
|
|
7
|
-
"__#5@#entry"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
localTime: number;
|
|
12
|
-
expiresAt: number;
|
|
13
|
-
deref?: () => any;
|
|
14
|
-
};
|
|
15
|
-
"__#5@#saveMode": boolean;
|
|
16
|
-
"__#5@#loadedFromSource": boolean;
|
|
6
|
+
"__#5@#version"?: number;
|
|
7
|
+
"__#5@#entry"?: import("../RecordEncoder.js").Entry;
|
|
8
|
+
"__#5@#saveMode"?: boolean;
|
|
9
|
+
"__#5@#loadedFromSource"?: boolean;
|
|
10
|
+
getProperty: (name: string) => any;
|
|
17
11
|
ensureLoaded(): any;
|
|
18
|
-
get(
|
|
12
|
+
get(target?: import("../RequestTarget.js").RequestTarget): Promise<object | void> | object | void;
|
|
19
13
|
allowRead(user: any, query: any): any;
|
|
20
14
|
allowUpdate(user: any, updatedData: any): boolean;
|
|
21
15
|
allowCreate(user: any, newData: {}): boolean;
|
|
22
16
|
allowDelete(user: any): boolean;
|
|
23
|
-
update(
|
|
17
|
+
update(target: import("../RequestTarget.js").RequestTarget, updates?: any): any;
|
|
24
18
|
addTo(property: any, value: any): void;
|
|
25
19
|
subtractFrom(property: any, value: any): void;
|
|
26
|
-
getMetadata():
|
|
27
|
-
key: any;
|
|
28
|
-
value: any;
|
|
29
|
-
version: number;
|
|
30
|
-
localTime: number;
|
|
31
|
-
expiresAt: number;
|
|
32
|
-
deref?: () => any;
|
|
33
|
-
};
|
|
20
|
+
getMetadata(): import("../RecordEncoder.js").Entry;
|
|
34
21
|
getRecord(): any;
|
|
35
22
|
getChanges(): any;
|
|
36
23
|
_setChanges(changes: any): void;
|
|
37
24
|
setRecord(record: any): void;
|
|
38
|
-
invalidate(): void;
|
|
39
|
-
_writeInvalidate(partialRecord?: any, options?: any): void;
|
|
40
|
-
_writeRelocate(options: any): void;
|
|
25
|
+
invalidate(target: import("../ResourceInterface.js").RequestTargetOrId): void;
|
|
26
|
+
_writeInvalidate(id: import("../ResourceInterface.js").Id, partialRecord?: any, options?: any): void;
|
|
27
|
+
_writeRelocate(id: import("../ResourceInterface.js").Id, options: any): void;
|
|
41
28
|
lock(): void;
|
|
42
|
-
put(record: any): void;
|
|
43
|
-
patch(recordUpdate: any): void
|
|
44
|
-
_writeUpdate(recordUpdate: any, fullUpdate: boolean, options?: any): void;
|
|
45
|
-
delete(
|
|
46
|
-
_writeDelete(options?: any): boolean;
|
|
47
|
-
search(request: import("../
|
|
29
|
+
put(target: import("../RequestTarget.js").RequestTarget, record: any): void;
|
|
30
|
+
patch(target: import("../RequestTarget.js").RequestTarget, recordUpdate: any): void | Promise<void>;
|
|
31
|
+
_writeUpdate(id: import("../ResourceInterface.js").Id, recordUpdate: any, fullUpdate: boolean, options?: any): void;
|
|
32
|
+
delete(target: import("../RequestTarget.js").RequestTarget): Promise<boolean>;
|
|
33
|
+
_writeDelete(id: import("../ResourceInterface.js").Id, options?: any): boolean;
|
|
34
|
+
search(request: import("../RequestTarget.js").RequestTarget): AsyncIterable<any>;
|
|
48
35
|
subscribe(request: import("../ResourceInterface.js").SubscriptionRequest): Promise<{
|
|
49
|
-
listener: (
|
|
36
|
+
listener: (recordId: import("../ResourceInterface.js").Id, auditEntry: any, localTime: number, beginTxn: boolean) => void;
|
|
50
37
|
subscriptions: [];
|
|
51
38
|
startTime?: number;
|
|
39
|
+
includeDescendants?: boolean;
|
|
40
|
+
supportsTransactions?: boolean;
|
|
41
|
+
onlyChildren?: boolean;
|
|
52
42
|
end(): void;
|
|
53
43
|
toJSON(): {
|
|
54
44
|
name: string;
|
|
@@ -94,8 +84,8 @@ export declare function getAnalyticsHostnameTable(): {
|
|
|
94
84
|
eventNames(): (string | symbol)[];
|
|
95
85
|
}>;
|
|
96
86
|
doesExist(): boolean;
|
|
97
|
-
publish(message: any, options?: any): void;
|
|
98
|
-
_writePublish(message: any, options?: any): void;
|
|
87
|
+
publish(target: import("../RequestTarget.js").RequestTarget, message: any, options?: any): void;
|
|
88
|
+
_writePublish(id: import("../ResourceInterface.js").Id, message: any, options?: any): void;
|
|
99
89
|
validate(record: any, patch?: any): void;
|
|
100
90
|
getUpdatedTime(): number;
|
|
101
91
|
wasLoadedFromSource(): boolean | void;
|
|
@@ -104,7 +94,7 @@ export declare function getAnalyticsHostnameTable(): {
|
|
|
104
94
|
"__#6@#isCollection": boolean;
|
|
105
95
|
post(newRecord: any): Promise<any>;
|
|
106
96
|
readonly isCollection: boolean;
|
|
107
|
-
connect(query?: {}): AsyncIterable<any>;
|
|
97
|
+
connect(incomingMessages: import("../IterableEventQueue.js").IterableEventQueue, query?: {}): AsyncIterable<any>;
|
|
108
98
|
getId(): import("../ResourceInterface.js").Id;
|
|
109
99
|
getContext(): import("../ResourceInterface.js").Context;
|
|
110
100
|
};
|
|
@@ -122,25 +112,13 @@ export declare function getAnalyticsHostnameTable(): {
|
|
|
122
112
|
replicate: any;
|
|
123
113
|
sealed: any;
|
|
124
114
|
splitSegments: any;
|
|
125
|
-
createdTimeProperty:
|
|
126
|
-
|
|
127
|
-
type: string;
|
|
128
|
-
assignCreatedTime?: boolean;
|
|
129
|
-
assignUpdatedTime?: boolean;
|
|
130
|
-
expiresAt?: boolean;
|
|
131
|
-
isPrimaryKey?: boolean;
|
|
132
|
-
};
|
|
133
|
-
updatedTimeProperty: {
|
|
134
|
-
name: string;
|
|
135
|
-
type: string;
|
|
136
|
-
assignCreatedTime?: boolean;
|
|
137
|
-
assignUpdatedTime?: boolean;
|
|
138
|
-
expiresAt?: boolean;
|
|
139
|
-
isPrimaryKey?: boolean;
|
|
140
|
-
};
|
|
115
|
+
createdTimeProperty: import("../Table.js").Attribute;
|
|
116
|
+
updatedTimeProperty: import("../Table.js").Attribute;
|
|
141
117
|
propertyResolvers: any;
|
|
142
118
|
userResolvers: {};
|
|
143
|
-
sources: any[];
|
|
119
|
+
sources: (/*elided*/ any)[];
|
|
120
|
+
sourceOptions: any;
|
|
121
|
+
intermediateSource: boolean;
|
|
144
122
|
getResidencyById: (id: import("../ResourceInterface.js").Id) => number | void;
|
|
145
123
|
readonly expirationMS: any;
|
|
146
124
|
dbisDB: any;
|
|
@@ -151,52 +129,42 @@ export declare function getAnalyticsHostnameTable(): {
|
|
|
151
129
|
getResource(id: import("../ResourceInterface.js").Id, request: import("../ResourceInterface.js").Context, resourceOptions?: any): Promise<{
|
|
152
130
|
"__#5@#record": any;
|
|
153
131
|
"__#5@#changes": any;
|
|
154
|
-
"__#5@#version"
|
|
155
|
-
"__#5@#entry"
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
localTime: number;
|
|
160
|
-
expiresAt: number;
|
|
161
|
-
deref?: () => any;
|
|
162
|
-
};
|
|
163
|
-
"__#5@#saveMode": boolean;
|
|
164
|
-
"__#5@#loadedFromSource": boolean;
|
|
132
|
+
"__#5@#version"?: number;
|
|
133
|
+
"__#5@#entry"?: import("../RecordEncoder.js").Entry;
|
|
134
|
+
"__#5@#saveMode"?: boolean;
|
|
135
|
+
"__#5@#loadedFromSource"?: boolean;
|
|
136
|
+
getProperty: (name: string) => any;
|
|
165
137
|
ensureLoaded(): any;
|
|
166
|
-
get(
|
|
138
|
+
get(target?: import("../RequestTarget.js").RequestTarget): Promise<object | void> | object | void;
|
|
167
139
|
allowRead(user: any, query: any): any;
|
|
168
140
|
allowUpdate(user: any, updatedData: any): boolean;
|
|
169
141
|
allowCreate(user: any, newData: {}): boolean;
|
|
170
142
|
allowDelete(user: any): boolean;
|
|
171
|
-
update(
|
|
143
|
+
update(target: import("../RequestTarget.js").RequestTarget, updates?: any): any;
|
|
172
144
|
addTo(property: any, value: any): void;
|
|
173
145
|
subtractFrom(property: any, value: any): void;
|
|
174
|
-
getMetadata():
|
|
175
|
-
key: any;
|
|
176
|
-
value: any;
|
|
177
|
-
version: number;
|
|
178
|
-
localTime: number;
|
|
179
|
-
expiresAt: number;
|
|
180
|
-
deref?: () => any;
|
|
181
|
-
};
|
|
146
|
+
getMetadata(): import("../RecordEncoder.js").Entry;
|
|
182
147
|
getRecord(): any;
|
|
183
148
|
getChanges(): any;
|
|
184
149
|
_setChanges(changes: any): void;
|
|
185
150
|
setRecord(record: any): void;
|
|
186
|
-
invalidate(): void;
|
|
187
|
-
_writeInvalidate(partialRecord?: any, options?: any): void;
|
|
188
|
-
_writeRelocate(options: any): void;
|
|
151
|
+
invalidate(target: import("../ResourceInterface.js").RequestTargetOrId): void;
|
|
152
|
+
_writeInvalidate(id: import("../ResourceInterface.js").Id, partialRecord?: any, options?: any): void;
|
|
153
|
+
_writeRelocate(id: import("../ResourceInterface.js").Id, options: any): void;
|
|
189
154
|
lock(): void;
|
|
190
|
-
put(record: any): void;
|
|
191
|
-
patch(recordUpdate: any): void
|
|
192
|
-
_writeUpdate(recordUpdate: any, fullUpdate: boolean, options?: any): void;
|
|
193
|
-
delete(
|
|
194
|
-
_writeDelete(options?: any): boolean;
|
|
195
|
-
search(request: import("../
|
|
155
|
+
put(target: import("../RequestTarget.js").RequestTarget, record: any): void;
|
|
156
|
+
patch(target: import("../RequestTarget.js").RequestTarget, recordUpdate: any): void | Promise<void>;
|
|
157
|
+
_writeUpdate(id: import("../ResourceInterface.js").Id, recordUpdate: any, fullUpdate: boolean, options?: any): void;
|
|
158
|
+
delete(target: import("../RequestTarget.js").RequestTarget): Promise<boolean>;
|
|
159
|
+
_writeDelete(id: import("../ResourceInterface.js").Id, options?: any): boolean;
|
|
160
|
+
search(request: import("../RequestTarget.js").RequestTarget): AsyncIterable<any>;
|
|
196
161
|
subscribe(request: import("../ResourceInterface.js").SubscriptionRequest): Promise<{
|
|
197
|
-
listener: (
|
|
162
|
+
listener: (recordId: import("../ResourceInterface.js").Id, auditEntry: any, localTime: number, beginTxn: boolean) => void;
|
|
198
163
|
subscriptions: [];
|
|
199
164
|
startTime?: number;
|
|
165
|
+
includeDescendants?: boolean;
|
|
166
|
+
supportsTransactions?: boolean;
|
|
167
|
+
onlyChildren?: boolean;
|
|
200
168
|
end(): void;
|
|
201
169
|
toJSON(): {
|
|
202
170
|
name: string;
|
|
@@ -242,8 +210,8 @@ export declare function getAnalyticsHostnameTable(): {
|
|
|
242
210
|
eventNames(): (string | symbol)[];
|
|
243
211
|
}>;
|
|
244
212
|
doesExist(): boolean;
|
|
245
|
-
publish(message: any, options?: any): void;
|
|
246
|
-
_writePublish(message: any, options?: any): void;
|
|
213
|
+
publish(target: import("../RequestTarget.js").RequestTarget, message: any, options?: any): void;
|
|
214
|
+
_writePublish(id: import("../ResourceInterface.js").Id, message: any, options?: any): void;
|
|
247
215
|
validate(record: any, patch?: any): void;
|
|
248
216
|
getUpdatedTime(): number;
|
|
249
217
|
wasLoadedFromSource(): boolean | void;
|
|
@@ -252,58 +220,48 @@ export declare function getAnalyticsHostnameTable(): {
|
|
|
252
220
|
"__#6@#isCollection": boolean;
|
|
253
221
|
post(newRecord: any): Promise<any>;
|
|
254
222
|
readonly isCollection: boolean;
|
|
255
|
-
connect(query?: {}): AsyncIterable<any>;
|
|
223
|
+
connect(incomingMessages: import("../IterableEventQueue.js").IterableEventQueue, query?: {}): AsyncIterable<any>;
|
|
256
224
|
getId(): import("../ResourceInterface.js").Id;
|
|
257
225
|
getContext(): import("../ResourceInterface.js").Context;
|
|
258
226
|
}> | {
|
|
259
227
|
"__#5@#record": any;
|
|
260
228
|
"__#5@#changes": any;
|
|
261
|
-
"__#5@#version"
|
|
262
|
-
"__#5@#entry"
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
localTime: number;
|
|
267
|
-
expiresAt: number;
|
|
268
|
-
deref?: () => any;
|
|
269
|
-
};
|
|
270
|
-
"__#5@#saveMode": boolean;
|
|
271
|
-
"__#5@#loadedFromSource": boolean;
|
|
229
|
+
"__#5@#version"?: number;
|
|
230
|
+
"__#5@#entry"?: import("../RecordEncoder.js").Entry;
|
|
231
|
+
"__#5@#saveMode"?: boolean;
|
|
232
|
+
"__#5@#loadedFromSource"?: boolean;
|
|
233
|
+
getProperty: (name: string) => any;
|
|
272
234
|
ensureLoaded(): any;
|
|
273
|
-
get(
|
|
235
|
+
get(target?: import("../RequestTarget.js").RequestTarget): Promise<object | void> | object | void;
|
|
274
236
|
allowRead(user: any, query: any): any;
|
|
275
237
|
allowUpdate(user: any, updatedData: any): boolean;
|
|
276
238
|
allowCreate(user: any, newData: {}): boolean;
|
|
277
239
|
allowDelete(user: any): boolean;
|
|
278
|
-
update(
|
|
240
|
+
update(target: import("../RequestTarget.js").RequestTarget, updates?: any): any;
|
|
279
241
|
addTo(property: any, value: any): void;
|
|
280
242
|
subtractFrom(property: any, value: any): void;
|
|
281
|
-
getMetadata():
|
|
282
|
-
key: any;
|
|
283
|
-
value: any;
|
|
284
|
-
version: number;
|
|
285
|
-
localTime: number;
|
|
286
|
-
expiresAt: number;
|
|
287
|
-
deref?: () => any;
|
|
288
|
-
};
|
|
243
|
+
getMetadata(): import("../RecordEncoder.js").Entry;
|
|
289
244
|
getRecord(): any;
|
|
290
245
|
getChanges(): any;
|
|
291
246
|
_setChanges(changes: any): void;
|
|
292
247
|
setRecord(record: any): void;
|
|
293
|
-
invalidate(): void;
|
|
294
|
-
_writeInvalidate(partialRecord?: any, options?: any): void;
|
|
295
|
-
_writeRelocate(options: any): void;
|
|
248
|
+
invalidate(target: import("../ResourceInterface.js").RequestTargetOrId): void;
|
|
249
|
+
_writeInvalidate(id: import("../ResourceInterface.js").Id, partialRecord?: any, options?: any): void;
|
|
250
|
+
_writeRelocate(id: import("../ResourceInterface.js").Id, options: any): void;
|
|
296
251
|
lock(): void;
|
|
297
|
-
put(record: any): void;
|
|
298
|
-
patch(recordUpdate: any): void
|
|
299
|
-
_writeUpdate(recordUpdate: any, fullUpdate: boolean, options?: any): void;
|
|
300
|
-
delete(
|
|
301
|
-
_writeDelete(options?: any): boolean;
|
|
302
|
-
search(request: import("../
|
|
252
|
+
put(target: import("../RequestTarget.js").RequestTarget, record: any): void;
|
|
253
|
+
patch(target: import("../RequestTarget.js").RequestTarget, recordUpdate: any): void | Promise<void>;
|
|
254
|
+
_writeUpdate(id: import("../ResourceInterface.js").Id, recordUpdate: any, fullUpdate: boolean, options?: any): void;
|
|
255
|
+
delete(target: import("../RequestTarget.js").RequestTarget): Promise<boolean>;
|
|
256
|
+
_writeDelete(id: import("../ResourceInterface.js").Id, options?: any): boolean;
|
|
257
|
+
search(request: import("../RequestTarget.js").RequestTarget): AsyncIterable<any>;
|
|
303
258
|
subscribe(request: import("../ResourceInterface.js").SubscriptionRequest): Promise<{
|
|
304
|
-
listener: (
|
|
259
|
+
listener: (recordId: import("../ResourceInterface.js").Id, auditEntry: any, localTime: number, beginTxn: boolean) => void;
|
|
305
260
|
subscriptions: [];
|
|
306
261
|
startTime?: number;
|
|
262
|
+
includeDescendants?: boolean;
|
|
263
|
+
supportsTransactions?: boolean;
|
|
264
|
+
onlyChildren?: boolean;
|
|
307
265
|
end(): void;
|
|
308
266
|
toJSON(): {
|
|
309
267
|
name: string;
|
|
@@ -349,8 +307,8 @@ export declare function getAnalyticsHostnameTable(): {
|
|
|
349
307
|
eventNames(): (string | symbol)[];
|
|
350
308
|
}>;
|
|
351
309
|
doesExist(): boolean;
|
|
352
|
-
publish(message: any, options?: any): void;
|
|
353
|
-
_writePublish(message: any, options?: any): void;
|
|
310
|
+
publish(target: import("../RequestTarget.js").RequestTarget, message: any, options?: any): void;
|
|
311
|
+
_writePublish(id: import("../ResourceInterface.js").Id, message: any, options?: any): void;
|
|
354
312
|
validate(record: any, patch?: any): void;
|
|
355
313
|
getUpdatedTime(): number;
|
|
356
314
|
wasLoadedFromSource(): boolean | void;
|
|
@@ -359,7 +317,7 @@ export declare function getAnalyticsHostnameTable(): {
|
|
|
359
317
|
"__#6@#isCollection": boolean;
|
|
360
318
|
post(newRecord: any): Promise<any>;
|
|
361
319
|
readonly isCollection: boolean;
|
|
362
|
-
connect(query?: {}): AsyncIterable<any>;
|
|
320
|
+
connect(incomingMessages: import("../IterableEventQueue.js").IterableEventQueue, query?: {}): AsyncIterable<any>;
|
|
363
321
|
getId(): import("../ResourceInterface.js").Id;
|
|
364
322
|
getContext(): import("../ResourceInterface.js").Context;
|
|
365
323
|
};
|
|
@@ -370,7 +328,7 @@ export declare function getAnalyticsHostnameTable(): {
|
|
|
370
328
|
eviction?: number;
|
|
371
329
|
scanInterval?: number;
|
|
372
330
|
}): void;
|
|
373
|
-
getResidencyRecord(id:
|
|
331
|
+
getResidencyRecord(id: import("../ResourceInterface.js").Id): any;
|
|
374
332
|
setResidency(getResidency?: (record: object, context: import("../ResourceInterface.js").Context) => number | void | string[]): void;
|
|
375
333
|
setResidencyById(getResidencyById?: (id: import("../ResourceInterface.js").Id) => number | void): void;
|
|
376
334
|
getResidency(record: object, context: import("../ResourceInterface.js").Context): number | void | string[];
|
|
@@ -381,7 +339,7 @@ export declare function getAnalyticsHostnameTable(): {
|
|
|
381
339
|
evict(id: any, existingRecord: any, existingVersion: any): Promise<void>;
|
|
382
340
|
operation(operation: any, context: any): any;
|
|
383
341
|
transformToOrderedSelect(entries: any[], select: (string | import("../ResourceInterface.js").SubSelect)[], sort: import("../ResourceInterface.js").Sort, context: import("../ResourceInterface.js").Context, readTxn: any, transformToRecord: Function): any;
|
|
384
|
-
transformEntryForSelect(select: any, context: any, readTxn: any, filtered: any, ensure_loaded?: any, canSkip?: any): (entry:
|
|
342
|
+
transformEntryForSelect(select: any, context: any, readTxn: any, filtered: any, ensure_loaded?: any, canSkip?: any): (entry: import("../RecordEncoder.js").Entry) => any;
|
|
385
343
|
subscribeOnThisThread(workerIndex: any, options: any): boolean;
|
|
386
344
|
addAttributes(attributesToAdd: any): Promise<any>;
|
|
387
345
|
removeAttributes(names: string[]): Promise<any>;
|
|
@@ -417,14 +375,15 @@ export declare function getAnalyticsHostnameTable(): {
|
|
|
417
375
|
timestamp: number;
|
|
418
376
|
};
|
|
419
377
|
directURLMapping: boolean;
|
|
378
|
+
loadAsInstance: boolean;
|
|
420
379
|
get(identifier: import("../ResourceInterface.js").Id, context?: import("../ResourceInterface.js").Context): Promise<import("../Resource.js").Resource>;
|
|
421
|
-
get(
|
|
380
|
+
get(target: import("../RequestTarget.js").RequestTarget, context?: import("../ResourceInterface.js").Context): Promise<AsyncIterable<object>>;
|
|
422
381
|
put: {
|
|
423
|
-
(idOrQuery: string | import("../ResourceInterface.js").Id, dataOrContext?: any, context?: import("../ResourceInterface.js").Context): any;
|
|
382
|
+
(idOrQuery: string | import("../ResourceInterface.js").Id | import("../ResourceInterface.js").Query, dataOrContext?: any, context?: import("../ResourceInterface.js").Context): any;
|
|
424
383
|
reliesOnPrototype: boolean;
|
|
425
384
|
};
|
|
426
385
|
patch: {
|
|
427
|
-
(idOrQuery: string | import("../ResourceInterface.js").Id, dataOrContext?: any, context?: import("../ResourceInterface.js").Context): any;
|
|
386
|
+
(idOrQuery: string | import("../ResourceInterface.js").Id | import("../ResourceInterface.js").Query, dataOrContext?: any, context?: import("../ResourceInterface.js").Context): any;
|
|
428
387
|
reliesOnPrototype: boolean;
|
|
429
388
|
};
|
|
430
389
|
delete(identifier: import("../ResourceInterface.js").Id, context?: import("../ResourceInterface.js").Context): Promise<boolean>;
|
|
@@ -432,15 +391,19 @@ export declare function getAnalyticsHostnameTable(): {
|
|
|
432
391
|
create(idPrefix: import("../ResourceInterface.js").Id, record: any, context: import("../ResourceInterface.js").Context): Promise<import("../ResourceInterface.js").Id>;
|
|
433
392
|
create(record: any, context: import("../ResourceInterface.js").Context): Promise<import("../ResourceInterface.js").Id>;
|
|
434
393
|
invalidate: {
|
|
435
|
-
(idOrQuery: string | import("../ResourceInterface.js").Id, dataOrContext?: any, context?: import("../ResourceInterface.js").Context): any;
|
|
394
|
+
(idOrQuery: string | import("../ResourceInterface.js").Id | import("../ResourceInterface.js").Query, dataOrContext?: any, context?: import("../ResourceInterface.js").Context): any;
|
|
436
395
|
reliesOnPrototype: boolean;
|
|
437
396
|
};
|
|
438
397
|
post: {
|
|
439
|
-
(idOrQuery: string | import("../ResourceInterface.js").Id, dataOrContext?: any, context?: import("../ResourceInterface.js").Context): any;
|
|
398
|
+
(idOrQuery: string | import("../ResourceInterface.js").Id | import("../ResourceInterface.js").Query, dataOrContext?: any, context?: import("../ResourceInterface.js").Context): any;
|
|
399
|
+
reliesOnPrototype: boolean;
|
|
400
|
+
};
|
|
401
|
+
update: {
|
|
402
|
+
(idOrQuery: string | import("../ResourceInterface.js").Id | import("../ResourceInterface.js").Query, dataOrContext?: any, context?: import("../ResourceInterface.js").Context): any;
|
|
440
403
|
reliesOnPrototype: boolean;
|
|
441
404
|
};
|
|
442
405
|
connect: {
|
|
443
|
-
(idOrQuery: string | import("../ResourceInterface.js").Id, dataOrContext?: any, context?: import("../ResourceInterface.js").Context): any;
|
|
406
|
+
(idOrQuery: string | import("../ResourceInterface.js").Id | import("../ResourceInterface.js").Query, dataOrContext?: any, context?: import("../ResourceInterface.js").Context): any;
|
|
444
407
|
reliesOnPrototype: boolean;
|
|
445
408
|
};
|
|
446
409
|
subscribe(request: import("../ResourceInterface.js").SubscriptionRequest): Promise<AsyncIterable<{
|
|
@@ -449,27 +412,27 @@ export declare function getAnalyticsHostnameTable(): {
|
|
|
449
412
|
value: object;
|
|
450
413
|
}>>;
|
|
451
414
|
publish: {
|
|
452
|
-
(idOrQuery: string | import("../ResourceInterface.js").Id, dataOrContext?: any, context?: import("../ResourceInterface.js").Context): any;
|
|
415
|
+
(idOrQuery: string | import("../ResourceInterface.js").Id | import("../ResourceInterface.js").Query, dataOrContext?: any, context?: import("../ResourceInterface.js").Context): any;
|
|
453
416
|
reliesOnPrototype: boolean;
|
|
454
417
|
};
|
|
455
418
|
search: {
|
|
456
|
-
(idOrQuery: string | import("../ResourceInterface.js").Id, dataOrContext?: any, context?: import("../ResourceInterface.js").Context): any;
|
|
419
|
+
(idOrQuery: string | import("../ResourceInterface.js").Id | import("../ResourceInterface.js").Query, dataOrContext?: any, context?: import("../ResourceInterface.js").Context): any;
|
|
457
420
|
reliesOnPrototype: boolean;
|
|
458
421
|
};
|
|
459
422
|
query: {
|
|
460
|
-
(idOrQuery: string | import("../ResourceInterface.js").Id, dataOrContext?: any, context?: import("../ResourceInterface.js").Context): any;
|
|
423
|
+
(idOrQuery: string | import("../ResourceInterface.js").Id | import("../ResourceInterface.js").Query, dataOrContext?: any, context?: import("../ResourceInterface.js").Context): any;
|
|
461
424
|
reliesOnPrototype: boolean;
|
|
462
425
|
};
|
|
463
426
|
copy: {
|
|
464
|
-
(idOrQuery: string | import("../ResourceInterface.js").Id, dataOrContext?: any, context?: import("../ResourceInterface.js").Context): any;
|
|
427
|
+
(idOrQuery: string | import("../ResourceInterface.js").Id | import("../ResourceInterface.js").Query, dataOrContext?: any, context?: import("../ResourceInterface.js").Context): any;
|
|
465
428
|
reliesOnPrototype: boolean;
|
|
466
429
|
};
|
|
467
430
|
move: {
|
|
468
|
-
(idOrQuery: string | import("../ResourceInterface.js").Id, dataOrContext?: any, context?: import("../ResourceInterface.js").Context): any;
|
|
431
|
+
(idOrQuery: string | import("../ResourceInterface.js").Id | import("../ResourceInterface.js").Query, dataOrContext?: any, context?: import("../ResourceInterface.js").Context): any;
|
|
469
432
|
reliesOnPrototype: boolean;
|
|
470
433
|
};
|
|
471
434
|
isCollection(resource: any): any;
|
|
472
|
-
parseQuery(search: any):
|
|
435
|
+
parseQuery(search: any, query: any): URLSearchParams | import("../RequestTarget.js").RequestTarget;
|
|
473
436
|
parsePath(path: any, context: any, query: any): any;
|
|
474
437
|
};
|
|
475
438
|
export declare function normalizeIPv6(ipv6: string): string;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import type { Metric } from './write.ts';
|
|
2
|
+
import type { Conditions } from '../ResourceInterface.ts';
|
|
2
3
|
interface GetAnalyticsRequest {
|
|
3
4
|
metric: string;
|
|
4
5
|
start_time?: number;
|
|
5
6
|
end_time?: number;
|
|
6
7
|
get_attributes?: string[];
|
|
8
|
+
conditions?: Conditions;
|
|
7
9
|
}
|
|
8
10
|
type GetAnalyticsResponse = Metric[];
|
|
9
11
|
export declare function getOp(req: GetAnalyticsRequest): Promise<GetAnalyticsResponse>;
|
|
10
|
-
export declare function get(metric: string, getAttributes?: string[], startTime?: number, endTime?: number): Promise<Metric[]>;
|
|
12
|
+
export declare function get(metric: string, getAttributes?: string[], startTime?: number, endTime?: number, additionalConditions?: Conditions): Promise<Metric[]>;
|
|
11
13
|
type MetricType = 'builtin' | 'custom';
|
|
12
14
|
interface ListMetricsRequest {
|
|
13
15
|
metric_types: MetricType[];
|