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
package/server/status.d.ts
CHANGED
|
@@ -7,6 +7,442 @@ type StatusOperationRequestBody = OperationRequestBody & {
|
|
|
7
7
|
type StatusOperationWriteRequestBody = StatusOperationRequestBody & {
|
|
8
8
|
status: string;
|
|
9
9
|
};
|
|
10
|
+
export declare const Status: {
|
|
11
|
+
new (identifier: Id, source: any): {
|
|
12
|
+
"__#5@#record": any;
|
|
13
|
+
"__#5@#changes": any;
|
|
14
|
+
"__#5@#version"?: number;
|
|
15
|
+
"__#5@#entry"?: import("../resources/RecordEncoder.js").Entry;
|
|
16
|
+
"__#5@#saveMode"?: boolean;
|
|
17
|
+
"__#5@#loadedFromSource"?: boolean;
|
|
18
|
+
getProperty: (name: string) => any;
|
|
19
|
+
ensureLoaded(): any;
|
|
20
|
+
get(target?: import("../resources/RequestTarget.js").RequestTarget): Promise<object | void> | object | void;
|
|
21
|
+
allowRead(user: any, query: any): any;
|
|
22
|
+
allowUpdate(user: any, updatedData: any): boolean;
|
|
23
|
+
allowCreate(user: any, newData: {}): boolean;
|
|
24
|
+
allowDelete(user: any): boolean;
|
|
25
|
+
update(target: import("../resources/RequestTarget.js").RequestTarget, updates?: any): any;
|
|
26
|
+
addTo(property: any, value: any): void;
|
|
27
|
+
subtractFrom(property: any, value: any): void;
|
|
28
|
+
getMetadata(): import("../resources/RecordEncoder.js").Entry;
|
|
29
|
+
getRecord(): any;
|
|
30
|
+
getChanges(): any;
|
|
31
|
+
_setChanges(changes: any): void;
|
|
32
|
+
setRecord(record: any): void;
|
|
33
|
+
invalidate(target: import("../resources/ResourceInterface.js").RequestTargetOrId): void;
|
|
34
|
+
_writeInvalidate(id: Id, partialRecord?: any, options?: any): void;
|
|
35
|
+
_writeRelocate(id: Id, options: any): void;
|
|
36
|
+
lock(): void;
|
|
37
|
+
put(target: import("../resources/RequestTarget.js").RequestTarget, record: any): void;
|
|
38
|
+
patch(target: import("../resources/RequestTarget.js").RequestTarget, recordUpdate: any): void | Promise<void>;
|
|
39
|
+
_writeUpdate(id: Id, recordUpdate: any, fullUpdate: boolean, options?: any): void;
|
|
40
|
+
delete(target: import("../resources/RequestTarget.js").RequestTarget): Promise<boolean>;
|
|
41
|
+
_writeDelete(id: Id, options?: any): boolean;
|
|
42
|
+
search(request: import("../resources/RequestTarget.js").RequestTarget): AsyncIterable<any>;
|
|
43
|
+
subscribe(request: import("../resources/ResourceInterface.js").SubscriptionRequest): Promise<{
|
|
44
|
+
listener: (recordId: Id, auditEntry: any, localTime: number, beginTxn: boolean) => void;
|
|
45
|
+
subscriptions: [];
|
|
46
|
+
startTime?: number;
|
|
47
|
+
includeDescendants?: boolean;
|
|
48
|
+
supportsTransactions?: boolean;
|
|
49
|
+
onlyChildren?: boolean;
|
|
50
|
+
end(): void;
|
|
51
|
+
toJSON(): {
|
|
52
|
+
name: string;
|
|
53
|
+
};
|
|
54
|
+
resolveNext: Function;
|
|
55
|
+
queue: any[];
|
|
56
|
+
hasDataListeners: boolean;
|
|
57
|
+
drainCloseListener: boolean;
|
|
58
|
+
currentDrainResolver: Function;
|
|
59
|
+
push(message: any): void;
|
|
60
|
+
send(message: any): void;
|
|
61
|
+
getNextMessage(): any;
|
|
62
|
+
waitForDrain(): Promise<boolean>;
|
|
63
|
+
on(eventName: any, listener: any): /*elided*/ any;
|
|
64
|
+
[Symbol.asyncIterator](): {
|
|
65
|
+
queue: import("../resources/IterableEventQueue.js").IterableEventQueue;
|
|
66
|
+
push(message: any): void;
|
|
67
|
+
next(): Promise<unknown> | {
|
|
68
|
+
value: any;
|
|
69
|
+
};
|
|
70
|
+
return(value: any): {
|
|
71
|
+
value: any;
|
|
72
|
+
done: boolean;
|
|
73
|
+
};
|
|
74
|
+
throw(error: any): {
|
|
75
|
+
done: boolean;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
[EventEmitter.captureRejectionSymbol]?<K>(error: Error, event: string | symbol, ...args: any[]): void;
|
|
79
|
+
addListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
80
|
+
once<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
81
|
+
removeListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
82
|
+
off<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
83
|
+
removeAllListeners(eventName?: string | symbol): /*elided*/ any;
|
|
84
|
+
setMaxListeners(n: number): /*elided*/ any;
|
|
85
|
+
getMaxListeners(): number;
|
|
86
|
+
listeners<K>(eventName: string | symbol): Function[];
|
|
87
|
+
rawListeners<K>(eventName: string | symbol): Function[];
|
|
88
|
+
emit<K>(eventName: string | symbol, ...args: any[]): boolean;
|
|
89
|
+
listenerCount<K>(eventName: string | symbol, listener?: Function): number;
|
|
90
|
+
prependListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
91
|
+
prependOnceListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
92
|
+
eventNames(): (string | symbol)[];
|
|
93
|
+
}>;
|
|
94
|
+
doesExist(): boolean;
|
|
95
|
+
publish(target: import("../resources/RequestTarget.js").RequestTarget, message: any, options?: any): void;
|
|
96
|
+
_writePublish(id: Id, message: any, options?: any): void;
|
|
97
|
+
validate(record: any, patch?: any): void;
|
|
98
|
+
getUpdatedTime(): number;
|
|
99
|
+
wasLoadedFromSource(): boolean | void;
|
|
100
|
+
readonly "__#6@#id": Id;
|
|
101
|
+
readonly "__#6@#context": import("../resources/ResourceInterface.js").Context;
|
|
102
|
+
"__#6@#isCollection": boolean;
|
|
103
|
+
post(newRecord: any): Promise<any>;
|
|
104
|
+
readonly isCollection: boolean;
|
|
105
|
+
connect(incomingMessages: import("../resources/IterableEventQueue.js").IterableEventQueue, query?: {}): AsyncIterable<any>;
|
|
106
|
+
getId(): Id;
|
|
107
|
+
getContext(): import("../resources/ResourceInterface.js").Context;
|
|
108
|
+
};
|
|
109
|
+
name: any;
|
|
110
|
+
primaryStore: any;
|
|
111
|
+
auditStore: any;
|
|
112
|
+
primaryKey: any;
|
|
113
|
+
tableName: any;
|
|
114
|
+
tableId: any;
|
|
115
|
+
indices: any;
|
|
116
|
+
audit: any;
|
|
117
|
+
databasePath: any;
|
|
118
|
+
databaseName: any;
|
|
119
|
+
attributes: any;
|
|
120
|
+
replicate: any;
|
|
121
|
+
sealed: any;
|
|
122
|
+
splitSegments: any;
|
|
123
|
+
createdTimeProperty: import("../resources/Table.js").Attribute;
|
|
124
|
+
updatedTimeProperty: import("../resources/Table.js").Attribute;
|
|
125
|
+
propertyResolvers: any;
|
|
126
|
+
userResolvers: {};
|
|
127
|
+
sources: (/*elided*/ any)[];
|
|
128
|
+
sourceOptions: any;
|
|
129
|
+
intermediateSource: boolean;
|
|
130
|
+
getResidencyById: (id: Id) => number | void;
|
|
131
|
+
readonly expirationMS: any;
|
|
132
|
+
dbisDB: any;
|
|
133
|
+
schemaDefined: any;
|
|
134
|
+
sourcedFrom(source: any, options: any): /*elided*/ any;
|
|
135
|
+
readonly isCaching: any;
|
|
136
|
+
readonly shouldRevalidateEvents: boolean;
|
|
137
|
+
getResource(id: Id, request: import("../resources/ResourceInterface.js").Context, resourceOptions?: any): Promise<{
|
|
138
|
+
"__#5@#record": any;
|
|
139
|
+
"__#5@#changes": any;
|
|
140
|
+
"__#5@#version"?: number;
|
|
141
|
+
"__#5@#entry"?: import("../resources/RecordEncoder.js").Entry;
|
|
142
|
+
"__#5@#saveMode"?: boolean;
|
|
143
|
+
"__#5@#loadedFromSource"?: boolean;
|
|
144
|
+
getProperty: (name: string) => any;
|
|
145
|
+
ensureLoaded(): any;
|
|
146
|
+
get(target?: import("../resources/RequestTarget.js").RequestTarget): Promise<object | void> | object | void;
|
|
147
|
+
allowRead(user: any, query: any): any;
|
|
148
|
+
allowUpdate(user: any, updatedData: any): boolean;
|
|
149
|
+
allowCreate(user: any, newData: {}): boolean;
|
|
150
|
+
allowDelete(user: any): boolean;
|
|
151
|
+
update(target: import("../resources/RequestTarget.js").RequestTarget, updates?: any): any;
|
|
152
|
+
addTo(property: any, value: any): void;
|
|
153
|
+
subtractFrom(property: any, value: any): void;
|
|
154
|
+
getMetadata(): import("../resources/RecordEncoder.js").Entry;
|
|
155
|
+
getRecord(): any;
|
|
156
|
+
getChanges(): any;
|
|
157
|
+
_setChanges(changes: any): void;
|
|
158
|
+
setRecord(record: any): void;
|
|
159
|
+
invalidate(target: import("../resources/ResourceInterface.js").RequestTargetOrId): void;
|
|
160
|
+
_writeInvalidate(id: Id, partialRecord?: any, options?: any): void;
|
|
161
|
+
_writeRelocate(id: Id, options: any): void;
|
|
162
|
+
lock(): void;
|
|
163
|
+
put(target: import("../resources/RequestTarget.js").RequestTarget, record: any): void;
|
|
164
|
+
patch(target: import("../resources/RequestTarget.js").RequestTarget, recordUpdate: any): void | Promise<void>;
|
|
165
|
+
_writeUpdate(id: Id, recordUpdate: any, fullUpdate: boolean, options?: any): void;
|
|
166
|
+
delete(target: import("../resources/RequestTarget.js").RequestTarget): Promise<boolean>;
|
|
167
|
+
_writeDelete(id: Id, options?: any): boolean;
|
|
168
|
+
search(request: import("../resources/RequestTarget.js").RequestTarget): AsyncIterable<any>;
|
|
169
|
+
subscribe(request: import("../resources/ResourceInterface.js").SubscriptionRequest): Promise<{
|
|
170
|
+
listener: (recordId: Id, auditEntry: any, localTime: number, beginTxn: boolean) => void;
|
|
171
|
+
subscriptions: [];
|
|
172
|
+
startTime?: number;
|
|
173
|
+
includeDescendants?: boolean;
|
|
174
|
+
supportsTransactions?: boolean;
|
|
175
|
+
onlyChildren?: boolean;
|
|
176
|
+
end(): void;
|
|
177
|
+
toJSON(): {
|
|
178
|
+
name: string;
|
|
179
|
+
};
|
|
180
|
+
resolveNext: Function;
|
|
181
|
+
queue: any[];
|
|
182
|
+
hasDataListeners: boolean;
|
|
183
|
+
drainCloseListener: boolean;
|
|
184
|
+
currentDrainResolver: Function;
|
|
185
|
+
push(message: any): void;
|
|
186
|
+
send(message: any): void;
|
|
187
|
+
getNextMessage(): any;
|
|
188
|
+
waitForDrain(): Promise<boolean>;
|
|
189
|
+
on(eventName: any, listener: any): /*elided*/ any;
|
|
190
|
+
[Symbol.asyncIterator](): {
|
|
191
|
+
queue: import("../resources/IterableEventQueue.js").IterableEventQueue;
|
|
192
|
+
push(message: any): void;
|
|
193
|
+
next(): Promise<unknown> | {
|
|
194
|
+
value: any;
|
|
195
|
+
};
|
|
196
|
+
return(value: any): {
|
|
197
|
+
value: any;
|
|
198
|
+
done: boolean;
|
|
199
|
+
};
|
|
200
|
+
throw(error: any): {
|
|
201
|
+
done: boolean;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
[EventEmitter.captureRejectionSymbol]?<K>(error: Error, event: string | symbol, ...args: any[]): void;
|
|
205
|
+
addListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
206
|
+
once<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
207
|
+
removeListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
208
|
+
off<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
209
|
+
removeAllListeners(eventName?: string | symbol): /*elided*/ any;
|
|
210
|
+
setMaxListeners(n: number): /*elided*/ any;
|
|
211
|
+
getMaxListeners(): number;
|
|
212
|
+
listeners<K>(eventName: string | symbol): Function[];
|
|
213
|
+
rawListeners<K>(eventName: string | symbol): Function[];
|
|
214
|
+
emit<K>(eventName: string | symbol, ...args: any[]): boolean;
|
|
215
|
+
listenerCount<K>(eventName: string | symbol, listener?: Function): number;
|
|
216
|
+
prependListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
217
|
+
prependOnceListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
218
|
+
eventNames(): (string | symbol)[];
|
|
219
|
+
}>;
|
|
220
|
+
doesExist(): boolean;
|
|
221
|
+
publish(target: import("../resources/RequestTarget.js").RequestTarget, message: any, options?: any): void;
|
|
222
|
+
_writePublish(id: Id, message: any, options?: any): void;
|
|
223
|
+
validate(record: any, patch?: any): void;
|
|
224
|
+
getUpdatedTime(): number;
|
|
225
|
+
wasLoadedFromSource(): boolean | void;
|
|
226
|
+
readonly "__#6@#id": Id;
|
|
227
|
+
readonly "__#6@#context": import("../resources/ResourceInterface.js").Context;
|
|
228
|
+
"__#6@#isCollection": boolean;
|
|
229
|
+
post(newRecord: any): Promise<any>;
|
|
230
|
+
readonly isCollection: boolean;
|
|
231
|
+
connect(incomingMessages: import("../resources/IterableEventQueue.js").IterableEventQueue, query?: {}): AsyncIterable<any>;
|
|
232
|
+
getId(): Id;
|
|
233
|
+
getContext(): import("../resources/ResourceInterface.js").Context;
|
|
234
|
+
}> | {
|
|
235
|
+
"__#5@#record": any;
|
|
236
|
+
"__#5@#changes": any;
|
|
237
|
+
"__#5@#version"?: number;
|
|
238
|
+
"__#5@#entry"?: import("../resources/RecordEncoder.js").Entry;
|
|
239
|
+
"__#5@#saveMode"?: boolean;
|
|
240
|
+
"__#5@#loadedFromSource"?: boolean;
|
|
241
|
+
getProperty: (name: string) => any;
|
|
242
|
+
ensureLoaded(): any;
|
|
243
|
+
get(target?: import("../resources/RequestTarget.js").RequestTarget): Promise<object | void> | object | void;
|
|
244
|
+
allowRead(user: any, query: any): any;
|
|
245
|
+
allowUpdate(user: any, updatedData: any): boolean;
|
|
246
|
+
allowCreate(user: any, newData: {}): boolean;
|
|
247
|
+
allowDelete(user: any): boolean;
|
|
248
|
+
update(target: import("../resources/RequestTarget.js").RequestTarget, updates?: any): any;
|
|
249
|
+
addTo(property: any, value: any): void;
|
|
250
|
+
subtractFrom(property: any, value: any): void;
|
|
251
|
+
getMetadata(): import("../resources/RecordEncoder.js").Entry;
|
|
252
|
+
getRecord(): any;
|
|
253
|
+
getChanges(): any;
|
|
254
|
+
_setChanges(changes: any): void;
|
|
255
|
+
setRecord(record: any): void;
|
|
256
|
+
invalidate(target: import("../resources/ResourceInterface.js").RequestTargetOrId): void;
|
|
257
|
+
_writeInvalidate(id: Id, partialRecord?: any, options?: any): void;
|
|
258
|
+
_writeRelocate(id: Id, options: any): void;
|
|
259
|
+
lock(): void;
|
|
260
|
+
put(target: import("../resources/RequestTarget.js").RequestTarget, record: any): void;
|
|
261
|
+
patch(target: import("../resources/RequestTarget.js").RequestTarget, recordUpdate: any): void | Promise<void>;
|
|
262
|
+
_writeUpdate(id: Id, recordUpdate: any, fullUpdate: boolean, options?: any): void;
|
|
263
|
+
delete(target: import("../resources/RequestTarget.js").RequestTarget): Promise<boolean>;
|
|
264
|
+
_writeDelete(id: Id, options?: any): boolean;
|
|
265
|
+
search(request: import("../resources/RequestTarget.js").RequestTarget): AsyncIterable<any>;
|
|
266
|
+
subscribe(request: import("../resources/ResourceInterface.js").SubscriptionRequest): Promise<{
|
|
267
|
+
listener: (recordId: Id, auditEntry: any, localTime: number, beginTxn: boolean) => void;
|
|
268
|
+
subscriptions: [];
|
|
269
|
+
startTime?: number;
|
|
270
|
+
includeDescendants?: boolean;
|
|
271
|
+
supportsTransactions?: boolean;
|
|
272
|
+
onlyChildren?: boolean;
|
|
273
|
+
end(): void;
|
|
274
|
+
toJSON(): {
|
|
275
|
+
name: string;
|
|
276
|
+
};
|
|
277
|
+
resolveNext: Function;
|
|
278
|
+
queue: any[];
|
|
279
|
+
hasDataListeners: boolean;
|
|
280
|
+
drainCloseListener: boolean;
|
|
281
|
+
currentDrainResolver: Function;
|
|
282
|
+
push(message: any): void;
|
|
283
|
+
send(message: any): void;
|
|
284
|
+
getNextMessage(): any;
|
|
285
|
+
waitForDrain(): Promise<boolean>;
|
|
286
|
+
on(eventName: any, listener: any): /*elided*/ any;
|
|
287
|
+
[Symbol.asyncIterator](): {
|
|
288
|
+
queue: import("../resources/IterableEventQueue.js").IterableEventQueue;
|
|
289
|
+
push(message: any): void;
|
|
290
|
+
next(): Promise<unknown> | {
|
|
291
|
+
value: any;
|
|
292
|
+
};
|
|
293
|
+
return(value: any): {
|
|
294
|
+
value: any;
|
|
295
|
+
done: boolean;
|
|
296
|
+
};
|
|
297
|
+
throw(error: any): {
|
|
298
|
+
done: boolean;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
[EventEmitter.captureRejectionSymbol]?<K>(error: Error, event: string | symbol, ...args: any[]): void;
|
|
302
|
+
addListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
303
|
+
once<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
304
|
+
removeListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
305
|
+
off<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
306
|
+
removeAllListeners(eventName?: string | symbol): /*elided*/ any;
|
|
307
|
+
setMaxListeners(n: number): /*elided*/ any;
|
|
308
|
+
getMaxListeners(): number;
|
|
309
|
+
listeners<K>(eventName: string | symbol): Function[];
|
|
310
|
+
rawListeners<K>(eventName: string | symbol): Function[];
|
|
311
|
+
emit<K>(eventName: string | symbol, ...args: any[]): boolean;
|
|
312
|
+
listenerCount<K>(eventName: string | symbol, listener?: Function): number;
|
|
313
|
+
prependListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
314
|
+
prependOnceListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
315
|
+
eventNames(): (string | symbol)[];
|
|
316
|
+
}>;
|
|
317
|
+
doesExist(): boolean;
|
|
318
|
+
publish(target: import("../resources/RequestTarget.js").RequestTarget, message: any, options?: any): void;
|
|
319
|
+
_writePublish(id: Id, message: any, options?: any): void;
|
|
320
|
+
validate(record: any, patch?: any): void;
|
|
321
|
+
getUpdatedTime(): number;
|
|
322
|
+
wasLoadedFromSource(): boolean | void;
|
|
323
|
+
readonly "__#6@#id": Id;
|
|
324
|
+
readonly "__#6@#context": import("../resources/ResourceInterface.js").Context;
|
|
325
|
+
"__#6@#isCollection": boolean;
|
|
326
|
+
post(newRecord: any): Promise<any>;
|
|
327
|
+
readonly isCollection: boolean;
|
|
328
|
+
connect(incomingMessages: import("../resources/IterableEventQueue.js").IterableEventQueue, query?: {}): AsyncIterable<any>;
|
|
329
|
+
getId(): Id;
|
|
330
|
+
getContext(): import("../resources/ResourceInterface.js").Context;
|
|
331
|
+
};
|
|
332
|
+
_updateResource(resource: any, entry: any): void;
|
|
333
|
+
getNewId(): any;
|
|
334
|
+
setTTLExpiration(expiration: number | {
|
|
335
|
+
expiration: number;
|
|
336
|
+
eviction?: number;
|
|
337
|
+
scanInterval?: number;
|
|
338
|
+
}): void;
|
|
339
|
+
getResidencyRecord(id: Id): any;
|
|
340
|
+
setResidency(getResidency?: (record: object, context: import("../resources/ResourceInterface.js").Context) => number | void | string[]): void;
|
|
341
|
+
setResidencyById(getResidencyById?: (id: Id) => number | void): void;
|
|
342
|
+
getResidency(record: object, context: import("../resources/ResourceInterface.js").Context): number | void | string[];
|
|
343
|
+
enableAuditing(auditEnabled?: boolean): void;
|
|
344
|
+
coerceId(id: string): number | string;
|
|
345
|
+
dropTable(): Promise<void>;
|
|
346
|
+
_recordRelocate(existingEntry: any, entry: any): void;
|
|
347
|
+
evict(id: any, existingRecord: any, existingVersion: any): Promise<void>;
|
|
348
|
+
operation(operation: any, context: any): any;
|
|
349
|
+
transformToOrderedSelect(entries: any[], select: (string | import("../resources/ResourceInterface.js").SubSelect)[], sort: import("../resources/ResourceInterface.js").Sort, context: import("../resources/ResourceInterface.js").Context, readTxn: any, transformToRecord: Function): any;
|
|
350
|
+
transformEntryForSelect(select: any, context: any, readTxn: any, filtered: any, ensure_loaded?: any, canSkip?: any): (entry: import("../resources/RecordEncoder.js").Entry) => any;
|
|
351
|
+
subscribeOnThisThread(workerIndex: any, options: any): boolean;
|
|
352
|
+
addAttributes(attributesToAdd: any): Promise<any>;
|
|
353
|
+
removeAttributes(names: string[]): Promise<any>;
|
|
354
|
+
getSize(): number;
|
|
355
|
+
getAuditSize(): number;
|
|
356
|
+
getStorageStats(): {
|
|
357
|
+
available: number;
|
|
358
|
+
free: number;
|
|
359
|
+
size: number;
|
|
360
|
+
};
|
|
361
|
+
getRecordCount(options?: any): Promise<{
|
|
362
|
+
recordCount: number;
|
|
363
|
+
estimatedRange: number[];
|
|
364
|
+
} | {
|
|
365
|
+
recordCount: number;
|
|
366
|
+
estimatedRange?: undefined;
|
|
367
|
+
}>;
|
|
368
|
+
updatedAttributes(): void;
|
|
369
|
+
setComputedAttribute(attribute_name: any, resolver: any): void;
|
|
370
|
+
deleteHistory(endTime?: number, cleanupDeletedRecords?: boolean): Promise<void>;
|
|
371
|
+
getHistory(startTime?: number, endTime?: number): AsyncGenerator<{
|
|
372
|
+
id: import("ordered-binary").Key;
|
|
373
|
+
localTime: any;
|
|
374
|
+
version: any;
|
|
375
|
+
type: any;
|
|
376
|
+
value: any;
|
|
377
|
+
user: import("ordered-binary").Key;
|
|
378
|
+
operation: any;
|
|
379
|
+
}, void, unknown>;
|
|
380
|
+
getHistoryOfRecord(id: any): Promise<any[]>;
|
|
381
|
+
cleanup(): void;
|
|
382
|
+
transactions: import("../resources/DatabaseTransaction.js").Transaction[] & {
|
|
383
|
+
timestamp: number;
|
|
384
|
+
};
|
|
385
|
+
directURLMapping: boolean;
|
|
386
|
+
loadAsInstance: boolean;
|
|
387
|
+
get(identifier: Id, context?: import("../resources/ResourceInterface.js").Context): Promise<import("../entry.js").Resource>;
|
|
388
|
+
get(target: import("../resources/RequestTarget.js").RequestTarget, context?: import("../resources/ResourceInterface.js").Context): Promise<AsyncIterable<object>>;
|
|
389
|
+
put: {
|
|
390
|
+
(idOrQuery: string | Id | import("../resources/ResourceInterface.js").Query, dataOrContext?: any, context?: import("../resources/ResourceInterface.js").Context): any;
|
|
391
|
+
reliesOnPrototype: boolean;
|
|
392
|
+
};
|
|
393
|
+
patch: {
|
|
394
|
+
(idOrQuery: string | Id | import("../resources/ResourceInterface.js").Query, dataOrContext?: any, context?: import("../resources/ResourceInterface.js").Context): any;
|
|
395
|
+
reliesOnPrototype: boolean;
|
|
396
|
+
};
|
|
397
|
+
delete(identifier: Id, context?: import("../resources/ResourceInterface.js").Context): Promise<boolean>;
|
|
398
|
+
delete(request: import("../resources/ResourceInterface.js").Context, context?: import("../resources/ResourceInterface.js").Context): Promise<object>;
|
|
399
|
+
create(idPrefix: Id, record: any, context: import("../resources/ResourceInterface.js").Context): Promise<Id>;
|
|
400
|
+
create(record: any, context: import("../resources/ResourceInterface.js").Context): Promise<Id>;
|
|
401
|
+
invalidate: {
|
|
402
|
+
(idOrQuery: string | Id | import("../resources/ResourceInterface.js").Query, dataOrContext?: any, context?: import("../resources/ResourceInterface.js").Context): any;
|
|
403
|
+
reliesOnPrototype: boolean;
|
|
404
|
+
};
|
|
405
|
+
post: {
|
|
406
|
+
(idOrQuery: string | Id | import("../resources/ResourceInterface.js").Query, dataOrContext?: any, context?: import("../resources/ResourceInterface.js").Context): any;
|
|
407
|
+
reliesOnPrototype: boolean;
|
|
408
|
+
};
|
|
409
|
+
update: {
|
|
410
|
+
(idOrQuery: string | Id | import("../resources/ResourceInterface.js").Query, dataOrContext?: any, context?: import("../resources/ResourceInterface.js").Context): any;
|
|
411
|
+
reliesOnPrototype: boolean;
|
|
412
|
+
};
|
|
413
|
+
connect: {
|
|
414
|
+
(idOrQuery: string | Id | import("../resources/ResourceInterface.js").Query, dataOrContext?: any, context?: import("../resources/ResourceInterface.js").Context): any;
|
|
415
|
+
reliesOnPrototype: boolean;
|
|
416
|
+
};
|
|
417
|
+
subscribe(request: import("../resources/ResourceInterface.js").SubscriptionRequest): Promise<AsyncIterable<{
|
|
418
|
+
id: any;
|
|
419
|
+
operation: string;
|
|
420
|
+
value: object;
|
|
421
|
+
}>>;
|
|
422
|
+
publish: {
|
|
423
|
+
(idOrQuery: string | Id | import("../resources/ResourceInterface.js").Query, dataOrContext?: any, context?: import("../resources/ResourceInterface.js").Context): any;
|
|
424
|
+
reliesOnPrototype: boolean;
|
|
425
|
+
};
|
|
426
|
+
search: {
|
|
427
|
+
(idOrQuery: string | Id | import("../resources/ResourceInterface.js").Query, dataOrContext?: any, context?: import("../resources/ResourceInterface.js").Context): any;
|
|
428
|
+
reliesOnPrototype: boolean;
|
|
429
|
+
};
|
|
430
|
+
query: {
|
|
431
|
+
(idOrQuery: string | Id | import("../resources/ResourceInterface.js").Query, dataOrContext?: any, context?: import("../resources/ResourceInterface.js").Context): any;
|
|
432
|
+
reliesOnPrototype: boolean;
|
|
433
|
+
};
|
|
434
|
+
copy: {
|
|
435
|
+
(idOrQuery: string | Id | import("../resources/ResourceInterface.js").Query, dataOrContext?: any, context?: import("../resources/ResourceInterface.js").Context): any;
|
|
436
|
+
reliesOnPrototype: boolean;
|
|
437
|
+
};
|
|
438
|
+
move: {
|
|
439
|
+
(idOrQuery: string | Id | import("../resources/ResourceInterface.js").Query, dataOrContext?: any, context?: import("../resources/ResourceInterface.js").Context): any;
|
|
440
|
+
reliesOnPrototype: boolean;
|
|
441
|
+
};
|
|
442
|
+
isCollection(resource: any): any;
|
|
443
|
+
parseQuery(search: any, query: any): URLSearchParams | import("../resources/RequestTarget.js").RequestTarget;
|
|
444
|
+
parsePath(path: any, context: any, query: any): any;
|
|
445
|
+
};
|
|
10
446
|
declare function clearStatus({ id }: StatusOperationRequestBody): Promise<boolean>;
|
|
11
|
-
declare function getStatus({ id }: StatusOperationRequestBody): Promise<import("../entry.js").Resource
|
|
447
|
+
declare function getStatus({ id }: StatusOperationRequestBody): Promise<import("../entry.js").Resource>;
|
|
12
448
|
declare function setStatus({ status, id }: StatusOperationWriteRequestBody): any;
|