harperdb 4.5.9 → 4.6.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/README.md +1 -1
- package/bin/harperdb.js +79 -80
- package/bin/lite.js +68 -69
- package/config/yaml/defaultConfig.yaml +1 -0
- package/index.d.ts +8 -8
- package/index.js +5 -5
- package/json/systemSchema.json +13 -1
- package/launchServiceScripts/launchInstallNATSServer.js +3 -3
- package/launchServiceScripts/launchNatsIngestService.js +68 -69
- package/launchServiceScripts/launchNatsReplyService.js +68 -69
- package/launchServiceScripts/launchUpdateNodes4-0-0.js +68 -69
- package/npm-shrinkwrap.json +7 -7
- package/package.json +2 -2
- package/resources/DatabaseTransaction.d.ts +8 -8
- package/resources/ErrorResource.d.ts +2 -2
- package/resources/IterableEventQueue.d.ts +1 -1
- package/resources/RecordEncoder.d.ts +6 -6
- package/resources/Resource.d.ts +17 -17
- package/resources/ResourceInterface.d.ts +27 -12
- package/resources/Resources.d.ts +7 -5
- package/resources/Table.d.ts +73 -73
- package/resources/analytics/hostnames.d.ts +483 -0
- package/resources/analytics/metadata.d.ts +9 -0
- package/resources/analytics/read.d.ts +26 -0
- package/resources/{analytics.d.ts → analytics/write.d.ts} +33 -27
- package/resources/auditStore.d.ts +15 -15
- package/resources/crdt.d.ts +4 -4
- package/resources/databases.d.ts +102 -102
- package/resources/indexes/HierarchicalNavigableSmallWorld.d.ts +84 -0
- package/resources/indexes/customIndexes.d.ts +4 -0
- package/resources/indexes/vector.d.ts +2 -0
- package/resources/search.d.ts +8 -8
- package/resources/tracked.d.ts +6 -6
- package/resources/transaction.d.ts +3 -3
- package/resources/transactionBroadcast.d.ts +5 -5
- package/security/auth.d.ts +9 -0
- package/security/tokenAuthentication.d.ts +35 -0
- package/server/Server.d.ts +5 -2
- package/server/jobs/jobProcess.js +68 -69
- package/server/operationsServer.d.ts +30 -0
- package/server/replication/knownNodes.d.ts +35 -0
- package/server/replication/nodeIdMapping.d.ts +6 -0
- package/server/replication/replicationConnection.d.ts +58 -0
- package/server/replication/replicator.d.ts +65 -0
- package/server/replication/setNode.d.ts +15 -0
- package/server/replication/subscriptionManager.d.ts +13 -0
- package/server/serverHelpers/Headers.d.ts +2 -2
- package/server/serverHelpers/OperationFunctionObject.d.ts +8 -0
- package/server/serverHelpers/contentTypes.d.ts +7 -7
- package/server/serverHelpers/serverUtilities.d.ts +23 -0
- package/server/status.d.ts +12 -0
- package/server/threads/threadServer.js +45 -46
- package/studio/build-local/asset-manifest.json +2 -2
- package/studio/build-local/index.html +1 -1
- package/studio/build-local/static/js/main.5dea46bb.js +2 -0
- package/utility/hdbTerms.d.ts +7 -0
- package/utility/password.d.ts +20 -0
- package/utility/scripts/restartHdb.js +68 -69
- package/studio/build-local/static/js/main.491129ee.js +0 -2
- /package/studio/build-local/static/js/{main.491129ee.js.LICENSE.txt → main.5dea46bb.js.LICENSE.txt} +0 -0
package/resources/Table.d.ts
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* tables through the interface defined by the Resource class. This module is responsible for handling these
|
|
4
4
|
* table-level interactions, loading records, updating records, querying, and more.
|
|
5
5
|
*/
|
|
6
|
-
import { Database } from 'lmdb';
|
|
7
|
-
import type { Query, ResourceInterface, SubscriptionRequest, Id, Context, Sort, SubSelect } from './ResourceInterface';
|
|
8
|
-
import { Resource } from './Resource';
|
|
6
|
+
import { type Database } from 'lmdb';
|
|
7
|
+
import type { Query, ResourceInterface, SubscriptionRequest, Id, Context, Sort, SubSelect } from './ResourceInterface.ts';
|
|
8
|
+
import { Resource } from './Resource.ts';
|
|
9
9
|
type Attribute = {
|
|
10
10
|
name: string;
|
|
11
11
|
type: string;
|
|
@@ -75,16 +75,16 @@ export declare function makeTable(options: any): {
|
|
|
75
75
|
/**
|
|
76
76
|
* Determine if the user is allowed to update data from the current resource
|
|
77
77
|
* @param user The current, authenticated user
|
|
78
|
-
* @param
|
|
79
|
-
* @param
|
|
78
|
+
* @param updatedData
|
|
79
|
+
* @param fullUpdate
|
|
80
80
|
*/
|
|
81
|
-
allowUpdate(user: any,
|
|
81
|
+
allowUpdate(user: any, updatedData: any): boolean;
|
|
82
82
|
/**
|
|
83
83
|
* Determine if the user is allowed to create new data in the current resource
|
|
84
84
|
* @param user The current, authenticated user
|
|
85
|
-
* @param
|
|
85
|
+
* @param newData
|
|
86
86
|
*/
|
|
87
|
-
allowCreate(user: any,
|
|
87
|
+
allowCreate(user: any, newData: {}): boolean;
|
|
88
88
|
/**
|
|
89
89
|
* Determine if the user is allowed to delete from the current resource
|
|
90
90
|
* @param user The current, authenticated user
|
|
@@ -94,9 +94,9 @@ export declare function makeTable(options: any): {
|
|
|
94
94
|
* Start updating a record. The returned resource will record changes which are written
|
|
95
95
|
* once the corresponding transaction is committed. These changes can (eventually) include CRDT type operations.
|
|
96
96
|
* @param updates This can be a record to update the current resource with.
|
|
97
|
-
* @param
|
|
97
|
+
* @param fullUpdate The provided data in updates is the full intended record; any properties in the existing record that are not in the updates, should be removed
|
|
98
98
|
*/
|
|
99
|
-
update(updates?: any,
|
|
99
|
+
update(updates?: any, fullUpdate?: boolean): /*elided*/ any;
|
|
100
100
|
addTo(property: any, value: any): void;
|
|
101
101
|
subtractFrom(property: any, value: any): void;
|
|
102
102
|
getMetadata(): Entry;
|
|
@@ -105,7 +105,7 @@ export declare function makeTable(options: any): {
|
|
|
105
105
|
_setChanges(changes: any): void;
|
|
106
106
|
setRecord(record: any): void;
|
|
107
107
|
invalidate(): void;
|
|
108
|
-
_writeInvalidate(
|
|
108
|
+
_writeInvalidate(partialRecord?: any, options?: any): void;
|
|
109
109
|
_writeRelocate(options: any): void;
|
|
110
110
|
/**
|
|
111
111
|
* This is intended to acquire a lock on a record from the whole cluster.
|
|
@@ -120,8 +120,8 @@ export declare function makeTable(options: any): {
|
|
|
120
120
|
* @param options
|
|
121
121
|
*/
|
|
122
122
|
put(record: any): void;
|
|
123
|
-
patch(
|
|
124
|
-
_writeUpdate(
|
|
123
|
+
patch(recordUpdate: any): void;
|
|
124
|
+
_writeUpdate(recordUpdate: any, fullUpdate: boolean, options?: any): void;
|
|
125
125
|
delete(request?: Query | string): Promise<boolean>;
|
|
126
126
|
_writeDelete(options?: any): boolean;
|
|
127
127
|
search(request: Query): AsyncIterable<any>;
|
|
@@ -142,9 +142,9 @@ export declare function makeTable(options: any): {
|
|
|
142
142
|
send(message: any): void;
|
|
143
143
|
getNextMessage(): any;
|
|
144
144
|
waitForDrain(): Promise<boolean>;
|
|
145
|
-
on(
|
|
145
|
+
on(eventName: any, listener: any): /*elided*/ any;
|
|
146
146
|
[Symbol.asyncIterator](): {
|
|
147
|
-
queue: import("./IterableEventQueue").IterableEventQueue;
|
|
147
|
+
queue: import("./IterableEventQueue.js").IterableEventQueue;
|
|
148
148
|
push(message: any): void;
|
|
149
149
|
next(): Promise<unknown> | {
|
|
150
150
|
value: any;
|
|
@@ -189,9 +189,9 @@ export declare function makeTable(options: any): {
|
|
|
189
189
|
readonly "__#6@#id": Id;
|
|
190
190
|
readonly "__#6@#context": Context;
|
|
191
191
|
"__#6@#isCollection": boolean;
|
|
192
|
-
post(
|
|
192
|
+
post(newRecord: any): Promise<any>;
|
|
193
193
|
readonly isCollection: boolean;
|
|
194
|
-
connect(incomingMessages: import("./IterableEventQueue").IterableEventQueue, query?: {}): AsyncIterable<any>;
|
|
194
|
+
connect(incomingMessages: import("./IterableEventQueue.js").IterableEventQueue, query?: {}): AsyncIterable<any>;
|
|
195
195
|
getId(): Id;
|
|
196
196
|
getContext(): Context;
|
|
197
197
|
};
|
|
@@ -239,7 +239,7 @@ export declare function makeTable(options: any): {
|
|
|
239
239
|
* @param options An important option is ensureLoaded, which can be used to indicate that it is necessary for a caching table to load data from the source if there is not a local copy of the data in the table (usually not necessary for a delete, for example).
|
|
240
240
|
* @returns
|
|
241
241
|
*/
|
|
242
|
-
getResource(id: Id, request: Context,
|
|
242
|
+
getResource(id: Id, request: Context, resourceOptions?: any): Promise<{
|
|
243
243
|
"__#5@#record": any;
|
|
244
244
|
"__#5@#changes": any;
|
|
245
245
|
"__#5@#version": number;
|
|
@@ -266,16 +266,16 @@ export declare function makeTable(options: any): {
|
|
|
266
266
|
/**
|
|
267
267
|
* Determine if the user is allowed to update data from the current resource
|
|
268
268
|
* @param user The current, authenticated user
|
|
269
|
-
* @param
|
|
270
|
-
* @param
|
|
269
|
+
* @param updatedData
|
|
270
|
+
* @param fullUpdate
|
|
271
271
|
*/
|
|
272
|
-
allowUpdate(user: any,
|
|
272
|
+
allowUpdate(user: any, updatedData: any): boolean;
|
|
273
273
|
/**
|
|
274
274
|
* Determine if the user is allowed to create new data in the current resource
|
|
275
275
|
* @param user The current, authenticated user
|
|
276
|
-
* @param
|
|
276
|
+
* @param newData
|
|
277
277
|
*/
|
|
278
|
-
allowCreate(user: any,
|
|
278
|
+
allowCreate(user: any, newData: {}): boolean;
|
|
279
279
|
/**
|
|
280
280
|
* Determine if the user is allowed to delete from the current resource
|
|
281
281
|
* @param user The current, authenticated user
|
|
@@ -285,9 +285,9 @@ export declare function makeTable(options: any): {
|
|
|
285
285
|
* Start updating a record. The returned resource will record changes which are written
|
|
286
286
|
* once the corresponding transaction is committed. These changes can (eventually) include CRDT type operations.
|
|
287
287
|
* @param updates This can be a record to update the current resource with.
|
|
288
|
-
* @param
|
|
288
|
+
* @param fullUpdate The provided data in updates is the full intended record; any properties in the existing record that are not in the updates, should be removed
|
|
289
289
|
*/
|
|
290
|
-
update(updates?: any,
|
|
290
|
+
update(updates?: any, fullUpdate?: boolean): /*elided*/ any;
|
|
291
291
|
addTo(property: any, value: any): void;
|
|
292
292
|
subtractFrom(property: any, value: any): void;
|
|
293
293
|
getMetadata(): Entry;
|
|
@@ -296,7 +296,7 @@ export declare function makeTable(options: any): {
|
|
|
296
296
|
_setChanges(changes: any): void;
|
|
297
297
|
setRecord(record: any): void;
|
|
298
298
|
invalidate(): void;
|
|
299
|
-
_writeInvalidate(
|
|
299
|
+
_writeInvalidate(partialRecord?: any, options?: any): void;
|
|
300
300
|
_writeRelocate(options: any): void;
|
|
301
301
|
/**
|
|
302
302
|
* This is intended to acquire a lock on a record from the whole cluster.
|
|
@@ -311,8 +311,8 @@ export declare function makeTable(options: any): {
|
|
|
311
311
|
* @param options
|
|
312
312
|
*/
|
|
313
313
|
put(record: any): void;
|
|
314
|
-
patch(
|
|
315
|
-
_writeUpdate(
|
|
314
|
+
patch(recordUpdate: any): void;
|
|
315
|
+
_writeUpdate(recordUpdate: any, fullUpdate: boolean, options?: any): void;
|
|
316
316
|
delete(request?: Query | string): Promise<boolean>;
|
|
317
317
|
_writeDelete(options?: any): boolean;
|
|
318
318
|
search(request: Query): AsyncIterable<any>;
|
|
@@ -333,9 +333,9 @@ export declare function makeTable(options: any): {
|
|
|
333
333
|
send(message: any): void;
|
|
334
334
|
getNextMessage(): any;
|
|
335
335
|
waitForDrain(): Promise<boolean>;
|
|
336
|
-
on(
|
|
336
|
+
on(eventName: any, listener: any): /*elided*/ any;
|
|
337
337
|
[Symbol.asyncIterator](): {
|
|
338
|
-
queue: import("./IterableEventQueue").IterableEventQueue;
|
|
338
|
+
queue: import("./IterableEventQueue.js").IterableEventQueue;
|
|
339
339
|
push(message: any): void;
|
|
340
340
|
next(): Promise<unknown> | {
|
|
341
341
|
value: any;
|
|
@@ -380,9 +380,9 @@ export declare function makeTable(options: any): {
|
|
|
380
380
|
readonly "__#6@#id": Id;
|
|
381
381
|
readonly "__#6@#context": Context;
|
|
382
382
|
"__#6@#isCollection": boolean;
|
|
383
|
-
post(
|
|
383
|
+
post(newRecord: any): Promise<any>;
|
|
384
384
|
readonly isCollection: boolean;
|
|
385
|
-
connect(incomingMessages: import("./IterableEventQueue").IterableEventQueue, query?: {}): AsyncIterable<any>;
|
|
385
|
+
connect(incomingMessages: import("./IterableEventQueue.js").IterableEventQueue, query?: {}): AsyncIterable<any>;
|
|
386
386
|
getId(): Id;
|
|
387
387
|
getContext(): Context;
|
|
388
388
|
}> | {
|
|
@@ -412,16 +412,16 @@ export declare function makeTable(options: any): {
|
|
|
412
412
|
/**
|
|
413
413
|
* Determine if the user is allowed to update data from the current resource
|
|
414
414
|
* @param user The current, authenticated user
|
|
415
|
-
* @param
|
|
416
|
-
* @param
|
|
415
|
+
* @param updatedData
|
|
416
|
+
* @param fullUpdate
|
|
417
417
|
*/
|
|
418
|
-
allowUpdate(user: any,
|
|
418
|
+
allowUpdate(user: any, updatedData: any): boolean;
|
|
419
419
|
/**
|
|
420
420
|
* Determine if the user is allowed to create new data in the current resource
|
|
421
421
|
* @param user The current, authenticated user
|
|
422
|
-
* @param
|
|
422
|
+
* @param newData
|
|
423
423
|
*/
|
|
424
|
-
allowCreate(user: any,
|
|
424
|
+
allowCreate(user: any, newData: {}): boolean;
|
|
425
425
|
/**
|
|
426
426
|
* Determine if the user is allowed to delete from the current resource
|
|
427
427
|
* @param user The current, authenticated user
|
|
@@ -431,9 +431,9 @@ export declare function makeTable(options: any): {
|
|
|
431
431
|
* Start updating a record. The returned resource will record changes which are written
|
|
432
432
|
* once the corresponding transaction is committed. These changes can (eventually) include CRDT type operations.
|
|
433
433
|
* @param updates This can be a record to update the current resource with.
|
|
434
|
-
* @param
|
|
434
|
+
* @param fullUpdate The provided data in updates is the full intended record; any properties in the existing record that are not in the updates, should be removed
|
|
435
435
|
*/
|
|
436
|
-
update(updates?: any,
|
|
436
|
+
update(updates?: any, fullUpdate?: boolean): /*elided*/ any;
|
|
437
437
|
addTo(property: any, value: any): void;
|
|
438
438
|
subtractFrom(property: any, value: any): void;
|
|
439
439
|
getMetadata(): Entry;
|
|
@@ -442,7 +442,7 @@ export declare function makeTable(options: any): {
|
|
|
442
442
|
_setChanges(changes: any): void;
|
|
443
443
|
setRecord(record: any): void;
|
|
444
444
|
invalidate(): void;
|
|
445
|
-
_writeInvalidate(
|
|
445
|
+
_writeInvalidate(partialRecord?: any, options?: any): void;
|
|
446
446
|
_writeRelocate(options: any): void;
|
|
447
447
|
/**
|
|
448
448
|
* This is intended to acquire a lock on a record from the whole cluster.
|
|
@@ -457,8 +457,8 @@ export declare function makeTable(options: any): {
|
|
|
457
457
|
* @param options
|
|
458
458
|
*/
|
|
459
459
|
put(record: any): void;
|
|
460
|
-
patch(
|
|
461
|
-
_writeUpdate(
|
|
460
|
+
patch(recordUpdate: any): void;
|
|
461
|
+
_writeUpdate(recordUpdate: any, fullUpdate: boolean, options?: any): void;
|
|
462
462
|
delete(request?: Query | string): Promise<boolean>;
|
|
463
463
|
_writeDelete(options?: any): boolean;
|
|
464
464
|
search(request: Query): AsyncIterable<any>;
|
|
@@ -479,9 +479,9 @@ export declare function makeTable(options: any): {
|
|
|
479
479
|
send(message: any): void;
|
|
480
480
|
getNextMessage(): any;
|
|
481
481
|
waitForDrain(): Promise<boolean>;
|
|
482
|
-
on(
|
|
482
|
+
on(eventName: any, listener: any): /*elided*/ any;
|
|
483
483
|
[Symbol.asyncIterator](): {
|
|
484
|
-
queue: import("./IterableEventQueue").IterableEventQueue;
|
|
484
|
+
queue: import("./IterableEventQueue.js").IterableEventQueue;
|
|
485
485
|
push(message: any): void;
|
|
486
486
|
next(): Promise<unknown> | {
|
|
487
487
|
value: any;
|
|
@@ -526,9 +526,9 @@ export declare function makeTable(options: any): {
|
|
|
526
526
|
readonly "__#6@#id": Id;
|
|
527
527
|
readonly "__#6@#context": Context;
|
|
528
528
|
"__#6@#isCollection": boolean;
|
|
529
|
-
post(
|
|
529
|
+
post(newRecord: any): Promise<any>;
|
|
530
530
|
readonly isCollection: boolean;
|
|
531
|
-
connect(incomingMessages: import("./IterableEventQueue").IterableEventQueue, query?: {}): AsyncIterable<any>;
|
|
531
|
+
connect(incomingMessages: import("./IterableEventQueue.js").IterableEventQueue, query?: {}): AsyncIterable<any>;
|
|
532
532
|
getId(): Id;
|
|
533
533
|
getContext(): Context;
|
|
534
534
|
};
|
|
@@ -537,8 +537,8 @@ export declare function makeTable(options: any): {
|
|
|
537
537
|
/**
|
|
538
538
|
* Set TTL expiration for records in this table. On retrieval, record timestamps are checked for expiration.
|
|
539
539
|
* This also informs the scheduling for record eviction.
|
|
540
|
-
* @param
|
|
541
|
-
* @param
|
|
540
|
+
* @param expirationTime Time in seconds until records expire (are stale)
|
|
541
|
+
* @param evictionTime Time in seconds until records are evicted (removed)
|
|
542
542
|
*/
|
|
543
543
|
setTTLExpiration(expiration: number | {
|
|
544
544
|
expiration: number;
|
|
@@ -552,7 +552,7 @@ export declare function makeTable(options: any): {
|
|
|
552
552
|
/**
|
|
553
553
|
* Turn on auditing at runtime
|
|
554
554
|
*/
|
|
555
|
-
enableAuditing(
|
|
555
|
+
enableAuditing(auditEnabled?: boolean): void;
|
|
556
556
|
/**
|
|
557
557
|
* Coerce the id as a string to the correct type for the primary key
|
|
558
558
|
* @param id
|
|
@@ -562,14 +562,14 @@ export declare function makeTable(options: any): {
|
|
|
562
562
|
dropTable(): Promise<void>;
|
|
563
563
|
/**
|
|
564
564
|
* Record the relocation of an entry (when a record is moved to a different node)
|
|
565
|
-
* @param
|
|
565
|
+
* @param existingEntry
|
|
566
566
|
* @param entry
|
|
567
567
|
*/
|
|
568
|
-
_recordRelocate(
|
|
568
|
+
_recordRelocate(existingEntry: any, entry: any): void;
|
|
569
569
|
/**
|
|
570
570
|
* Evicting a record will remove it from a caching table. This is not considered a canonical data change, and it is assumed that retrieving this record from the source will still yield the same record, this is only removing the local copy of the record.
|
|
571
571
|
*/
|
|
572
|
-
evict(id: any,
|
|
572
|
+
evict(id: any, existingRecord: any, existingVersion: any): Promise<void>;
|
|
573
573
|
operation(operation: any, context: any): any;
|
|
574
574
|
/**
|
|
575
575
|
* This is responsible for ordering and select()ing the attributes/properties from returned entries
|
|
@@ -577,27 +577,27 @@ export declare function makeTable(options: any): {
|
|
|
577
577
|
* @param context
|
|
578
578
|
* @param filtered
|
|
579
579
|
* @param ensure_loaded
|
|
580
|
-
* @param
|
|
580
|
+
* @param canSkip
|
|
581
581
|
* @returns
|
|
582
582
|
*/
|
|
583
|
-
transformToOrderedSelect(entries: any[], select: (string | SubSelect)[], sort: Sort, context: Context,
|
|
583
|
+
transformToOrderedSelect(entries: any[], select: (string | SubSelect)[], sort: Sort, context: Context, readTxn: any, transformToRecord: Function): any;
|
|
584
584
|
/**
|
|
585
585
|
* This is responsible for select()ing the attributes/properties from returned entries
|
|
586
586
|
* @param select
|
|
587
587
|
* @param context
|
|
588
588
|
* @param filtered
|
|
589
589
|
* @param ensure_loaded
|
|
590
|
-
* @param
|
|
590
|
+
* @param canSkip
|
|
591
591
|
* @returns
|
|
592
592
|
*/
|
|
593
|
-
transformEntryForSelect(select: any, context: any,
|
|
593
|
+
transformEntryForSelect(select: any, context: any, readTxn: any, filtered: any, ensure_loaded?: any, canSkip?: any): (entry: any) => any;
|
|
594
594
|
/**
|
|
595
595
|
* Subscribe on one thread unless this is a per-thread subscription
|
|
596
|
-
* @param
|
|
596
|
+
* @param workerIndex
|
|
597
597
|
* @param options
|
|
598
598
|
*/
|
|
599
|
-
subscribeOnThisThread(
|
|
600
|
-
addAttributes(
|
|
599
|
+
subscribeOnThisThread(workerIndex: any, options: any): boolean;
|
|
600
|
+
addAttributes(attributesToAdd: any): Promise<any>;
|
|
601
601
|
removeAttributes(names: string[]): Promise<any>;
|
|
602
602
|
/**
|
|
603
603
|
* Get the size of the table in bytes (based on amount of pages stored in the database)
|
|
@@ -622,8 +622,8 @@ export declare function makeTable(options: any): {
|
|
|
622
622
|
*/
|
|
623
623
|
updatedAttributes(): void;
|
|
624
624
|
setComputedAttribute(attribute_name: any, resolver: any): void;
|
|
625
|
-
deleteHistory(
|
|
626
|
-
getHistory(
|
|
625
|
+
deleteHistory(endTime?: number, cleanupDeletedRecords?: boolean): Promise<void>;
|
|
626
|
+
getHistory(startTime?: number, endTime?: number): AsyncGenerator<{
|
|
627
627
|
id: import("ordered-binary").Key;
|
|
628
628
|
localTime: any;
|
|
629
629
|
version: any;
|
|
@@ -634,34 +634,34 @@ export declare function makeTable(options: any): {
|
|
|
634
634
|
}, void, unknown>;
|
|
635
635
|
getHistoryOfRecord(id: any): Promise<any[]>;
|
|
636
636
|
cleanup(): void;
|
|
637
|
-
transactions: import("./DatabaseTransaction").Transaction[] & {
|
|
637
|
+
transactions: import("./DatabaseTransaction.ts").Transaction[] & {
|
|
638
638
|
timestamp: number;
|
|
639
639
|
};
|
|
640
640
|
directURLMapping: boolean;
|
|
641
641
|
get(identifier: Id, context?: Context): Promise<Resource>;
|
|
642
642
|
get(query: Query, context?: Context): Promise<AsyncIterable<object>>;
|
|
643
643
|
put: {
|
|
644
|
-
(
|
|
644
|
+
(idOrQuery: string | Id, dataOrContext?: any, context?: Context): any;
|
|
645
645
|
reliesOnPrototype: boolean;
|
|
646
646
|
};
|
|
647
647
|
patch: {
|
|
648
|
-
(
|
|
648
|
+
(idOrQuery: string | Id, dataOrContext?: any, context?: Context): any;
|
|
649
649
|
reliesOnPrototype: boolean;
|
|
650
650
|
};
|
|
651
651
|
delete(identifier: Id, context?: Context): Promise<boolean>;
|
|
652
652
|
delete(request: Context, context?: Context): Promise<object>;
|
|
653
|
-
create(
|
|
653
|
+
create(idPrefix: Id, record: any, context: Context): Promise<Id>;
|
|
654
654
|
create(record: any, context: Context): Promise<Id>;
|
|
655
655
|
invalidate: {
|
|
656
|
-
(
|
|
656
|
+
(idOrQuery: string | Id, dataOrContext?: any, context?: Context): any;
|
|
657
657
|
reliesOnPrototype: boolean;
|
|
658
658
|
};
|
|
659
659
|
post: {
|
|
660
|
-
(
|
|
660
|
+
(idOrQuery: string | Id, dataOrContext?: any, context?: Context): any;
|
|
661
661
|
reliesOnPrototype: boolean;
|
|
662
662
|
};
|
|
663
663
|
connect: {
|
|
664
|
-
(
|
|
664
|
+
(idOrQuery: string | Id, dataOrContext?: any, context?: Context): any;
|
|
665
665
|
reliesOnPrototype: boolean;
|
|
666
666
|
};
|
|
667
667
|
subscribe(request: SubscriptionRequest): Promise<AsyncIterable<{
|
|
@@ -670,23 +670,23 @@ export declare function makeTable(options: any): {
|
|
|
670
670
|
value: object;
|
|
671
671
|
}>>;
|
|
672
672
|
publish: {
|
|
673
|
-
(
|
|
673
|
+
(idOrQuery: string | Id, dataOrContext?: any, context?: Context): any;
|
|
674
674
|
reliesOnPrototype: boolean;
|
|
675
675
|
};
|
|
676
676
|
search: {
|
|
677
|
-
(
|
|
677
|
+
(idOrQuery: string | Id, dataOrContext?: any, context?: Context): any;
|
|
678
678
|
reliesOnPrototype: boolean;
|
|
679
679
|
};
|
|
680
680
|
query: {
|
|
681
|
-
(
|
|
681
|
+
(idOrQuery: string | Id, dataOrContext?: any, context?: Context): any;
|
|
682
682
|
reliesOnPrototype: boolean;
|
|
683
683
|
};
|
|
684
684
|
copy: {
|
|
685
|
-
(
|
|
685
|
+
(idOrQuery: string | Id, dataOrContext?: any, context?: Context): any;
|
|
686
686
|
reliesOnPrototype: boolean;
|
|
687
687
|
};
|
|
688
688
|
move: {
|
|
689
|
-
(
|
|
689
|
+
(idOrQuery: string | Id, dataOrContext?: any, context?: Context): any;
|
|
690
690
|
reliesOnPrototype: boolean;
|
|
691
691
|
};
|
|
692
692
|
isCollection(resource: any): any;
|