harperdb 4.3.17 → 4.3.19
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 +45 -45
- package/bin/lite.js +15 -15
- package/launchServiceScripts/launchInstallNATSServer.js +1 -1
- package/launchServiceScripts/launchNatsIngestService.js +15 -15
- package/launchServiceScripts/launchNatsReplyService.js +15 -15
- package/launchServiceScripts/launchUpdateNodes4-0-0.js +15 -15
- package/npm-shrinkwrap.json +41 -38
- package/package.json +1 -1
- package/resources/IterableEventQueue.d.ts +0 -1
- package/resources/Resource.d.ts +10 -10
- package/resources/Table.d.ts +46 -47
- package/resources/auditStore.d.ts +0 -1
- package/resources/databases.d.ts +50 -51
- package/resources/transaction.d.ts +7 -0
- package/server/Server.d.ts +0 -2
- package/server/jobs/jobProcess.js +15 -15
- package/server/threads/threadServer.js +15 -15
- package/studio/build-local/asset-manifest.json +2 -2
- package/studio/build-local/index.html +1 -1
- package/studio/build-local/static/js/{main.9da3b364.js → main.05c1913d.js} +2 -2
- package/utility/scripts/restartHdb.js +15 -15
- /package/studio/build-local/static/js/{main.9da3b364.js.LICENSE.txt → main.05c1913d.js.LICENSE.txt} +0 -0
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "harperdb",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.19",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "harperdb",
|
|
9
|
-
"version": "4.3.
|
|
9
|
+
"version": "4.3.19",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "SEE LICENSE IN LICENSE",
|
|
12
12
|
"dependencies": {
|
|
@@ -1266,9 +1266,9 @@
|
|
|
1266
1266
|
}
|
|
1267
1267
|
},
|
|
1268
1268
|
"node_modules/@fastify/ajv-compiler": {
|
|
1269
|
-
"version": "3.
|
|
1270
|
-
"resolved": "https://registry.npmjs.org/@fastify/ajv-compiler/-/ajv-compiler-3.
|
|
1271
|
-
"integrity": "sha512-
|
|
1269
|
+
"version": "3.6.0",
|
|
1270
|
+
"resolved": "https://registry.npmjs.org/@fastify/ajv-compiler/-/ajv-compiler-3.6.0.tgz",
|
|
1271
|
+
"integrity": "sha512-LwdXQJjmMD+GwLOkP7TVC68qa+pSSogeWWmznRJ/coyTcfe9qA05AHFSe1eZFwK6q+xVRpChnvFUkf1iYaSZsQ==",
|
|
1272
1272
|
"dependencies": {
|
|
1273
1273
|
"ajv": "^8.11.0",
|
|
1274
1274
|
"ajv-formats": "^2.1.1",
|
|
@@ -1670,9 +1670,9 @@
|
|
|
1670
1670
|
}
|
|
1671
1671
|
},
|
|
1672
1672
|
"node_modules/@pm2/agent": {
|
|
1673
|
-
"version": "2.0.
|
|
1674
|
-
"resolved": "https://registry.npmjs.org/@pm2/agent/-/agent-2.0.
|
|
1675
|
-
"integrity": "sha512-
|
|
1673
|
+
"version": "2.0.4",
|
|
1674
|
+
"resolved": "https://registry.npmjs.org/@pm2/agent/-/agent-2.0.4.tgz",
|
|
1675
|
+
"integrity": "sha512-n7WYvvTJhHLS2oBb1PjOtgLpMhgImOq8sXkPBw6smeg9LJBWZjiEgPKOpR8mn9UJZsB5P3W4V/MyvNnp31LKeA==",
|
|
1676
1676
|
"dependencies": {
|
|
1677
1677
|
"async": "~3.2.0",
|
|
1678
1678
|
"chalk": "~3.0.0",
|
|
@@ -1686,7 +1686,7 @@
|
|
|
1686
1686
|
"pm2-axon-rpc": "~0.7.0",
|
|
1687
1687
|
"proxy-agent": "~6.3.0",
|
|
1688
1688
|
"semver": "~7.5.0",
|
|
1689
|
-
"ws": "~7.
|
|
1689
|
+
"ws": "~7.5.10"
|
|
1690
1690
|
}
|
|
1691
1691
|
},
|
|
1692
1692
|
"node_modules/@pm2/agent/node_modules/chalk": {
|
|
@@ -1707,9 +1707,9 @@
|
|
|
1707
1707
|
"integrity": "sha512-3VmRXEtw7RZKAf+4Tv1Ym9AGeo8r8+CjDi26x+7SYQil1UqtqdaokhzoEJohqlzt0m5kacJSDhJQkG/LWhpRBw=="
|
|
1708
1708
|
},
|
|
1709
1709
|
"node_modules/@pm2/agent/node_modules/ws": {
|
|
1710
|
-
"version": "7.
|
|
1711
|
-
"resolved": "https://registry.npmjs.org/ws/-/ws-7.
|
|
1712
|
-
"integrity": "sha512
|
|
1710
|
+
"version": "7.5.10",
|
|
1711
|
+
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz",
|
|
1712
|
+
"integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==",
|
|
1713
1713
|
"engines": {
|
|
1714
1714
|
"node": ">=8.3.0"
|
|
1715
1715
|
},
|
|
@@ -1793,9 +1793,9 @@
|
|
|
1793
1793
|
"integrity": "sha512-JEPTiaOt9f04oa6NOkc4aH+nVp5I3wEjpHbIPqfgCdD5v5bUzy7xQqwcVO2aDQgOWhI28da57HksMrzK9HlRxg=="
|
|
1794
1794
|
},
|
|
1795
1795
|
"node_modules/@pm2/js-api/node_modules/ws": {
|
|
1796
|
-
"version": "7.5.
|
|
1797
|
-
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.
|
|
1798
|
-
"integrity": "sha512
|
|
1796
|
+
"version": "7.5.10",
|
|
1797
|
+
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz",
|
|
1798
|
+
"integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==",
|
|
1799
1799
|
"engines": {
|
|
1800
1800
|
"node": ">=8.3.0"
|
|
1801
1801
|
},
|
|
@@ -3806,9 +3806,9 @@
|
|
|
3806
3806
|
"integrity": "sha512-vf6IHUX2SBcA+5/+4883dsIjpBTqmfBjmYiWK1savxQmFk4JfBMLa7ynTYOs1Rolp/T1betJxHiGD3g1Mn8lUQ=="
|
|
3807
3807
|
},
|
|
3808
3808
|
"node_modules/fast-json-stringify": {
|
|
3809
|
-
"version": "5.16.
|
|
3810
|
-
"resolved": "https://registry.npmjs.org/fast-json-stringify/-/fast-json-stringify-5.16.
|
|
3811
|
-
"integrity": "sha512-
|
|
3809
|
+
"version": "5.16.1",
|
|
3810
|
+
"resolved": "https://registry.npmjs.org/fast-json-stringify/-/fast-json-stringify-5.16.1.tgz",
|
|
3811
|
+
"integrity": "sha512-KAdnLvy1yu/XrRtP+LJnxbBGrhN+xXu+gt3EUvZhYGKCr3lFHq/7UFJHHFgmJKoqlh6B40bZLEv7w46B0mqn1g==",
|
|
3812
3812
|
"dependencies": {
|
|
3813
3813
|
"@fastify/merge-json-schemas": "^0.1.0",
|
|
3814
3814
|
"ajv": "^8.10.0",
|
|
@@ -4286,9 +4286,9 @@
|
|
|
4286
4286
|
"integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="
|
|
4287
4287
|
},
|
|
4288
4288
|
"node_modules/graphql": {
|
|
4289
|
-
"version": "16.
|
|
4290
|
-
"resolved": "https://registry.npmjs.org/graphql/-/graphql-16.
|
|
4291
|
-
"integrity": "sha512-
|
|
4289
|
+
"version": "16.9.0",
|
|
4290
|
+
"resolved": "https://registry.npmjs.org/graphql/-/graphql-16.9.0.tgz",
|
|
4291
|
+
"integrity": "sha512-GGTKBX4SD7Wdb8mqeDLni2oaRGYQWjWHGKPQ24ZMnUtKfcsVoiv4uX8+LJr1K6U5VW2Lu1BwJnj7uiori0YtRw==",
|
|
4292
4292
|
"engines": {
|
|
4293
4293
|
"node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0"
|
|
4294
4294
|
}
|
|
@@ -4387,9 +4387,9 @@
|
|
|
4387
4387
|
}
|
|
4388
4388
|
},
|
|
4389
4389
|
"node_modules/https-proxy-agent": {
|
|
4390
|
-
"version": "7.0.
|
|
4391
|
-
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.
|
|
4392
|
-
"integrity": "sha512-
|
|
4390
|
+
"version": "7.0.5",
|
|
4391
|
+
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.5.tgz",
|
|
4392
|
+
"integrity": "sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==",
|
|
4393
4393
|
"dependencies": {
|
|
4394
4394
|
"agent-base": "^7.0.2",
|
|
4395
4395
|
"debug": "4"
|
|
@@ -4556,11 +4556,14 @@
|
|
|
4556
4556
|
}
|
|
4557
4557
|
},
|
|
4558
4558
|
"node_modules/is-core-module": {
|
|
4559
|
-
"version": "2.
|
|
4560
|
-
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.
|
|
4561
|
-
"integrity": "sha512-
|
|
4559
|
+
"version": "2.14.0",
|
|
4560
|
+
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.14.0.tgz",
|
|
4561
|
+
"integrity": "sha512-a5dFJih5ZLYlRtDc0dZWP7RiKr6xIKzmn/oAYCDvdLThadVgyJwlaoQPmRtMSpz+rk0OGAgIu+TcM9HUF0fk1A==",
|
|
4562
4562
|
"dependencies": {
|
|
4563
|
-
"hasown": "^2.0.
|
|
4563
|
+
"hasown": "^2.0.2"
|
|
4564
|
+
},
|
|
4565
|
+
"engines": {
|
|
4566
|
+
"node": ">= 0.4"
|
|
4564
4567
|
},
|
|
4565
4568
|
"funding": {
|
|
4566
4569
|
"url": "https://github.com/sponsors/ljharb"
|
|
@@ -5656,18 +5659,18 @@
|
|
|
5656
5659
|
}
|
|
5657
5660
|
},
|
|
5658
5661
|
"node_modules/pac-proxy-agent": {
|
|
5659
|
-
"version": "7.0.
|
|
5660
|
-
"resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.0.
|
|
5661
|
-
"integrity": "sha512-
|
|
5662
|
+
"version": "7.0.2",
|
|
5663
|
+
"resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.0.2.tgz",
|
|
5664
|
+
"integrity": "sha512-BFi3vZnO9X5Qt6NRz7ZOaPja3ic0PhlsmCRYLOpN11+mWBCR6XJDqW5RF3j8jm4WGGQZtBA+bTfxYzeKW73eHg==",
|
|
5662
5665
|
"dependencies": {
|
|
5663
5666
|
"@tootallnate/quickjs-emscripten": "^0.23.0",
|
|
5664
5667
|
"agent-base": "^7.0.2",
|
|
5665
5668
|
"debug": "^4.3.4",
|
|
5666
5669
|
"get-uri": "^6.0.1",
|
|
5667
5670
|
"http-proxy-agent": "^7.0.0",
|
|
5668
|
-
"https-proxy-agent": "^7.0.
|
|
5669
|
-
"pac-resolver": "^7.0.
|
|
5670
|
-
"socks-proxy-agent": "^8.0.
|
|
5671
|
+
"https-proxy-agent": "^7.0.5",
|
|
5672
|
+
"pac-resolver": "^7.0.1",
|
|
5673
|
+
"socks-proxy-agent": "^8.0.4"
|
|
5671
5674
|
},
|
|
5672
5675
|
"engines": {
|
|
5673
5676
|
"node": ">= 14"
|
|
@@ -6736,13 +6739,13 @@
|
|
|
6736
6739
|
}
|
|
6737
6740
|
},
|
|
6738
6741
|
"node_modules/socks-proxy-agent": {
|
|
6739
|
-
"version": "8.0.
|
|
6740
|
-
"resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.
|
|
6741
|
-
"integrity": "sha512-
|
|
6742
|
+
"version": "8.0.4",
|
|
6743
|
+
"resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.4.tgz",
|
|
6744
|
+
"integrity": "sha512-GNAq/eg8Udq2x0eNiFkr9gRg5bA7PXEWagQdeRX4cPSG+X/8V38v637gim9bjFptMk1QWsCTr0ttrJEiXbNnRw==",
|
|
6742
6745
|
"dependencies": {
|
|
6743
6746
|
"agent-base": "^7.1.1",
|
|
6744
6747
|
"debug": "^4.3.4",
|
|
6745
|
-
"socks": "^2.
|
|
6748
|
+
"socks": "^2.8.3"
|
|
6746
6749
|
},
|
|
6747
6750
|
"engines": {
|
|
6748
6751
|
"node": ">= 14"
|
package/package.json
CHANGED
package/resources/Resource.d.ts
CHANGED
|
@@ -33,11 +33,11 @@ export declare class Resource implements ResourceInterface {
|
|
|
33
33
|
* Store the provided record by the provided id. If no id is provided, it is auto-generated.
|
|
34
34
|
*/
|
|
35
35
|
static put: {
|
|
36
|
-
(id_or_query: Id, data_or_context?: any, context?: Context): any;
|
|
36
|
+
(id_or_query: string | Id, data_or_context?: any, context?: Context): any;
|
|
37
37
|
reliesOnPrototype: boolean;
|
|
38
38
|
};
|
|
39
39
|
static patch: {
|
|
40
|
-
(id_or_query: Id, data_or_context?: any, context?: Context): any;
|
|
40
|
+
(id_or_query: string | Id, data_or_context?: any, context?: Context): any;
|
|
41
41
|
reliesOnPrototype: boolean;
|
|
42
42
|
};
|
|
43
43
|
static delete(identifier: Id, context?: Context): Promise<boolean>;
|
|
@@ -50,15 +50,15 @@ export declare class Resource implements ResourceInterface {
|
|
|
50
50
|
static create(id_prefix: Id, record: any, context: Context): Promise<Id>;
|
|
51
51
|
static create(record: any, context: Context): Promise<Id>;
|
|
52
52
|
static invalidate: {
|
|
53
|
-
(id_or_query: Id, data_or_context?: any, context?: Context): any;
|
|
53
|
+
(id_or_query: string | Id, data_or_context?: any, context?: Context): any;
|
|
54
54
|
reliesOnPrototype: boolean;
|
|
55
55
|
};
|
|
56
56
|
static post: {
|
|
57
|
-
(id_or_query: Id, data_or_context?: any, context?: Context): any;
|
|
57
|
+
(id_or_query: string | Id, data_or_context?: any, context?: Context): any;
|
|
58
58
|
reliesOnPrototype: boolean;
|
|
59
59
|
};
|
|
60
60
|
static connect: {
|
|
61
|
-
(id_or_query: Id, data_or_context?: any, context?: Context): any;
|
|
61
|
+
(id_or_query: string | Id, data_or_context?: any, context?: Context): any;
|
|
62
62
|
reliesOnPrototype: boolean;
|
|
63
63
|
};
|
|
64
64
|
static subscribe(request: SubscriptionRequest): Promise<AsyncIterable<{
|
|
@@ -68,23 +68,23 @@ export declare class Resource implements ResourceInterface {
|
|
|
68
68
|
}>>;
|
|
69
69
|
static subscribe: typeof Resource.subscribe;
|
|
70
70
|
static publish: {
|
|
71
|
-
(id_or_query: Id, data_or_context?: any, context?: Context): any;
|
|
71
|
+
(id_or_query: string | Id, data_or_context?: any, context?: Context): any;
|
|
72
72
|
reliesOnPrototype: boolean;
|
|
73
73
|
};
|
|
74
74
|
static search: {
|
|
75
|
-
(id_or_query: Id, data_or_context?: any, context?: Context): any;
|
|
75
|
+
(id_or_query: string | Id, data_or_context?: any, context?: Context): any;
|
|
76
76
|
reliesOnPrototype: boolean;
|
|
77
77
|
};
|
|
78
78
|
static query: {
|
|
79
|
-
(id_or_query: Id, data_or_context?: any, context?: Context): any;
|
|
79
|
+
(id_or_query: string | Id, data_or_context?: any, context?: Context): any;
|
|
80
80
|
reliesOnPrototype: boolean;
|
|
81
81
|
};
|
|
82
82
|
static copy: {
|
|
83
|
-
(id_or_query: Id, data_or_context?: any, context?: Context): any;
|
|
83
|
+
(id_or_query: string | Id, data_or_context?: any, context?: Context): any;
|
|
84
84
|
reliesOnPrototype: boolean;
|
|
85
85
|
};
|
|
86
86
|
static move: {
|
|
87
|
-
(id_or_query: Id, data_or_context?: any, context?: Context): any;
|
|
87
|
+
(id_or_query: string | Id, data_or_context?: any, context?: Context): any;
|
|
88
88
|
reliesOnPrototype: boolean;
|
|
89
89
|
};
|
|
90
90
|
post(new_record: any): any;
|
package/resources/Table.d.ts
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
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
|
-
/// <reference types="node" />
|
|
7
6
|
import { Database } from 'lmdb';
|
|
8
7
|
import { Query, ResourceInterface, Request, SubscriptionRequest, Id, Context } from './ResourceInterface';
|
|
9
8
|
export interface Table {
|
|
@@ -124,20 +123,20 @@ export declare function makeTable(options: any): {
|
|
|
124
123
|
};
|
|
125
124
|
};
|
|
126
125
|
[EventEmitter.captureRejectionSymbol]?<K>(error: Error, event: string | symbol, ...args: any[]): void;
|
|
127
|
-
addListener<
|
|
128
|
-
once<
|
|
129
|
-
removeListener<
|
|
130
|
-
off<
|
|
126
|
+
addListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): any;
|
|
127
|
+
once<K>(eventName: string | symbol, listener: (...args: any[]) => void): any;
|
|
128
|
+
removeListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): any;
|
|
129
|
+
off<K>(eventName: string | symbol, listener: (...args: any[]) => void): any;
|
|
131
130
|
removeAllListeners(eventName?: string | symbol): any;
|
|
132
131
|
setMaxListeners(n: number): any;
|
|
133
132
|
getMaxListeners(): number;
|
|
134
|
-
listeners<
|
|
135
|
-
rawListeners<
|
|
136
|
-
emit<
|
|
137
|
-
listenerCount<
|
|
138
|
-
prependListener<
|
|
139
|
-
prependOnceListener<
|
|
140
|
-
eventNames(): (string | symbol)
|
|
133
|
+
listeners<K>(eventName: string | symbol): Array<Function>;
|
|
134
|
+
rawListeners<K>(eventName: string | symbol): Array<Function>;
|
|
135
|
+
emit<K>(eventName: string | symbol, ...args: any[]): boolean;
|
|
136
|
+
listenerCount<K>(eventName: string | symbol, listener?: Function): number;
|
|
137
|
+
prependListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): any;
|
|
138
|
+
prependOnceListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): any;
|
|
139
|
+
eventNames(): Array<(string | symbol) & (string | symbol)>;
|
|
141
140
|
}>;
|
|
142
141
|
doesExist(): boolean;
|
|
143
142
|
/**
|
|
@@ -192,7 +191,7 @@ export declare function makeTable(options: any): {
|
|
|
192
191
|
* @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).
|
|
193
192
|
* @returns
|
|
194
193
|
*/
|
|
195
|
-
getResource(id: Id, request: any, resource_options?: any): {
|
|
194
|
+
getResource(id: Id, request: any, resource_options?: any): Promise<{
|
|
196
195
|
/**
|
|
197
196
|
* This is a request to explicitly ensure that the record is loaded from source, rather than only using the local record.
|
|
198
197
|
* This will load from source if the current record is expired, missing, or invalidated.
|
|
@@ -287,20 +286,20 @@ export declare function makeTable(options: any): {
|
|
|
287
286
|
};
|
|
288
287
|
};
|
|
289
288
|
[EventEmitter.captureRejectionSymbol]?<K>(error: Error, event: string | symbol, ...args: any[]): void;
|
|
290
|
-
addListener<
|
|
291
|
-
once<
|
|
292
|
-
removeListener<
|
|
293
|
-
off<
|
|
289
|
+
addListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): any;
|
|
290
|
+
once<K>(eventName: string | symbol, listener: (...args: any[]) => void): any;
|
|
291
|
+
removeListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): any;
|
|
292
|
+
off<K>(eventName: string | symbol, listener: (...args: any[]) => void): any;
|
|
294
293
|
removeAllListeners(eventName?: string | symbol): any;
|
|
295
294
|
setMaxListeners(n: number): any;
|
|
296
295
|
getMaxListeners(): number;
|
|
297
|
-
listeners<
|
|
298
|
-
rawListeners<
|
|
299
|
-
emit<
|
|
300
|
-
listenerCount<
|
|
301
|
-
prependListener<
|
|
302
|
-
prependOnceListener<
|
|
303
|
-
eventNames(): (string | symbol)
|
|
296
|
+
listeners<K>(eventName: string | symbol): Array<Function>;
|
|
297
|
+
rawListeners<K>(eventName: string | symbol): Array<Function>;
|
|
298
|
+
emit<K>(eventName: string | symbol, ...args: any[]): boolean;
|
|
299
|
+
listenerCount<K>(eventName: string | symbol, listener?: Function): number;
|
|
300
|
+
prependListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): any;
|
|
301
|
+
prependOnceListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): any;
|
|
302
|
+
eventNames(): Array<(string | symbol) & (string | symbol)>;
|
|
304
303
|
}>;
|
|
305
304
|
doesExist(): boolean;
|
|
306
305
|
/**
|
|
@@ -319,7 +318,7 @@ export declare function makeTable(options: any): {
|
|
|
319
318
|
connect(query?: {}): AsyncIterable<any>;
|
|
320
319
|
getId(): any;
|
|
321
320
|
getContext(): any;
|
|
322
|
-
} |
|
|
321
|
+
}> | {
|
|
323
322
|
/**
|
|
324
323
|
* This is a request to explicitly ensure that the record is loaded from source, rather than only using the local record.
|
|
325
324
|
* This will load from source if the current record is expired, missing, or invalidated.
|
|
@@ -414,20 +413,20 @@ export declare function makeTable(options: any): {
|
|
|
414
413
|
};
|
|
415
414
|
};
|
|
416
415
|
[EventEmitter.captureRejectionSymbol]?<K>(error: Error, event: string | symbol, ...args: any[]): void;
|
|
417
|
-
addListener<
|
|
418
|
-
once<
|
|
419
|
-
removeListener<
|
|
420
|
-
off<
|
|
416
|
+
addListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): any;
|
|
417
|
+
once<K>(eventName: string | symbol, listener: (...args: any[]) => void): any;
|
|
418
|
+
removeListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): any;
|
|
419
|
+
off<K>(eventName: string | symbol, listener: (...args: any[]) => void): any;
|
|
421
420
|
removeAllListeners(eventName?: string | symbol): any;
|
|
422
421
|
setMaxListeners(n: number): any;
|
|
423
422
|
getMaxListeners(): number;
|
|
424
|
-
listeners<
|
|
425
|
-
rawListeners<
|
|
426
|
-
emit<
|
|
427
|
-
listenerCount<
|
|
428
|
-
prependListener<
|
|
429
|
-
prependOnceListener<
|
|
430
|
-
eventNames(): (string | symbol)
|
|
423
|
+
listeners<K>(eventName: string | symbol): Array<Function>;
|
|
424
|
+
rawListeners<K>(eventName: string | symbol): Array<Function>;
|
|
425
|
+
emit<K>(eventName: string | symbol, ...args: any[]): boolean;
|
|
426
|
+
listenerCount<K>(eventName: string | symbol, listener?: Function): number;
|
|
427
|
+
prependListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): any;
|
|
428
|
+
prependOnceListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): any;
|
|
429
|
+
eventNames(): Array<(string | symbol) & (string | symbol)>;
|
|
431
430
|
}>;
|
|
432
431
|
doesExist(): boolean;
|
|
433
432
|
/**
|
|
@@ -446,7 +445,7 @@ export declare function makeTable(options: any): {
|
|
|
446
445
|
connect(query?: {}): AsyncIterable<any>;
|
|
447
446
|
getId(): any;
|
|
448
447
|
getContext(): any;
|
|
449
|
-
}
|
|
448
|
+
};
|
|
450
449
|
/**
|
|
451
450
|
* Set TTL expiration for records in this table. On retrieval, record timestamps are checked for expiration.
|
|
452
451
|
* This also informs the scheduling for record eviction.
|
|
@@ -525,11 +524,11 @@ export declare function makeTable(options: any): {
|
|
|
525
524
|
get(request: Request, context?: Context): Promise<object>;
|
|
526
525
|
get(query: Query, context?: Context): Promise<AsyncIterable<object>>;
|
|
527
526
|
put: {
|
|
528
|
-
(id_or_query: Id, data_or_context?: any, context?: Context): any;
|
|
527
|
+
(id_or_query: string | Id, data_or_context?: any, context?: Context): any;
|
|
529
528
|
reliesOnPrototype: boolean;
|
|
530
529
|
};
|
|
531
530
|
patch: {
|
|
532
|
-
(id_or_query: Id, data_or_context?: any, context?: Context): any;
|
|
531
|
+
(id_or_query: string | Id, data_or_context?: any, context?: Context): any;
|
|
533
532
|
reliesOnPrototype: boolean;
|
|
534
533
|
};
|
|
535
534
|
delete(identifier: Id, context?: Context): Promise<boolean>;
|
|
@@ -538,15 +537,15 @@ export declare function makeTable(options: any): {
|
|
|
538
537
|
create(id_prefix: Id, record: any, context: Context): Promise<Id>;
|
|
539
538
|
create(record: any, context: Context): Promise<Id>;
|
|
540
539
|
invalidate: {
|
|
541
|
-
(id_or_query: Id, data_or_context?: any, context?: Context): any;
|
|
540
|
+
(id_or_query: string | Id, data_or_context?: any, context?: Context): any;
|
|
542
541
|
reliesOnPrototype: boolean;
|
|
543
542
|
};
|
|
544
543
|
post: {
|
|
545
|
-
(id_or_query: Id, data_or_context?: any, context?: Context): any;
|
|
544
|
+
(id_or_query: string | Id, data_or_context?: any, context?: Context): any;
|
|
546
545
|
reliesOnPrototype: boolean;
|
|
547
546
|
};
|
|
548
547
|
connect: {
|
|
549
|
-
(id_or_query: Id, data_or_context?: any, context?: Context): any;
|
|
548
|
+
(id_or_query: string | Id, data_or_context?: any, context?: Context): any;
|
|
550
549
|
reliesOnPrototype: boolean;
|
|
551
550
|
};
|
|
552
551
|
subscribe(request: SubscriptionRequest): Promise<AsyncIterable<{
|
|
@@ -555,23 +554,23 @@ export declare function makeTable(options: any): {
|
|
|
555
554
|
value: object;
|
|
556
555
|
}>>;
|
|
557
556
|
publish: {
|
|
558
|
-
(id_or_query: Id, data_or_context?: any, context?: Context): any;
|
|
557
|
+
(id_or_query: string | Id, data_or_context?: any, context?: Context): any;
|
|
559
558
|
reliesOnPrototype: boolean;
|
|
560
559
|
};
|
|
561
560
|
search: {
|
|
562
|
-
(id_or_query: Id, data_or_context?: any, context?: Context): any;
|
|
561
|
+
(id_or_query: string | Id, data_or_context?: any, context?: Context): any;
|
|
563
562
|
reliesOnPrototype: boolean;
|
|
564
563
|
};
|
|
565
564
|
query: {
|
|
566
|
-
(id_or_query: Id, data_or_context?: any, context?: Context): any;
|
|
565
|
+
(id_or_query: string | Id, data_or_context?: any, context?: Context): any;
|
|
567
566
|
reliesOnPrototype: boolean;
|
|
568
567
|
};
|
|
569
568
|
copy: {
|
|
570
|
-
(id_or_query: Id, data_or_context?: any, context?: Context): any;
|
|
569
|
+
(id_or_query: string | Id, data_or_context?: any, context?: Context): any;
|
|
571
570
|
reliesOnPrototype: boolean;
|
|
572
571
|
};
|
|
573
572
|
move: {
|
|
574
|
-
(id_or_query: Id, data_or_context?: any, context?: Context): any;
|
|
573
|
+
(id_or_query: string | Id, data_or_context?: any, context?: Context): any;
|
|
575
574
|
reliesOnPrototype: boolean;
|
|
576
575
|
};
|
|
577
576
|
isCollection(resource: any): any;
|