@firebase/database 1.0.9 → 1.0.10
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/dist/index.cjs.js +13834 -13834
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +13834 -13834
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.node.cjs.js +13849 -13849
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.standalone.js +13797 -13797
- package/dist/index.standalone.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +13849 -13849
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/src/api/Database.d.ts +137 -137
- package/dist/node-esm/src/api/OnDisconnect.d.ts +110 -110
- package/dist/node-esm/src/api/Reference.d.ts +122 -122
- package/dist/node-esm/src/api/Reference_impl.d.ts +1098 -1098
- package/dist/node-esm/src/api/ServerValue.d.ts +30 -30
- package/dist/node-esm/src/api/Transaction.d.ts +83 -83
- package/dist/node-esm/src/api/test_access.d.ts +31 -31
- package/dist/node-esm/src/api.d.ts +18 -18
- package/dist/node-esm/src/api.standalone.d.ts +30 -30
- package/dist/node-esm/src/core/AppCheckTokenProvider.d.ts +30 -30
- package/dist/node-esm/src/core/AuthTokenProvider.d.ts +49 -49
- package/dist/node-esm/src/core/CompoundWrite.d.ts +81 -81
- package/dist/node-esm/src/core/PersistentConnection.d.ts +135 -135
- package/dist/node-esm/src/core/ReadonlyRestClient.d.ts +60 -60
- package/dist/node-esm/src/core/Repo.d.ts +144 -144
- package/dist/node-esm/src/core/RepoInfo.d.ts +56 -56
- package/dist/node-esm/src/core/ServerActions.d.ts +52 -52
- package/dist/node-esm/src/core/SnapshotHolder.d.ts +26 -26
- package/dist/node-esm/src/core/SparseSnapshotTree.d.ts +64 -64
- package/dist/node-esm/src/core/SyncPoint.d.ts +91 -91
- package/dist/node-esm/src/core/SyncTree.d.ts +166 -166
- package/dist/node-esm/src/core/WriteTree.d.ts +205 -205
- package/dist/node-esm/src/core/operation/AckUserWrite.d.ts +36 -36
- package/dist/node-esm/src/core/operation/ListenComplete.d.ts +26 -26
- package/dist/node-esm/src/core/operation/Merge.d.ts +33 -33
- package/dist/node-esm/src/core/operation/Operation.d.ts +45 -45
- package/dist/node-esm/src/core/operation/Overwrite.d.ts +28 -28
- package/dist/node-esm/src/core/snap/ChildrenNode.d.ts +112 -112
- package/dist/node-esm/src/core/snap/IndexMap.d.ts +43 -43
- package/dist/node-esm/src/core/snap/LeafNode.d.ts +83 -83
- package/dist/node-esm/src/core/snap/Node.d.ts +126 -126
- package/dist/node-esm/src/core/snap/childSet.d.ts +32 -32
- package/dist/node-esm/src/core/snap/comparators.d.ts +19 -19
- package/dist/node-esm/src/core/snap/indexes/Index.d.ts +50 -50
- package/dist/node-esm/src/core/snap/indexes/KeyIndex.d.ts +34 -34
- package/dist/node-esm/src/core/snap/indexes/PathIndex.d.ts +29 -29
- package/dist/node-esm/src/core/snap/indexes/PriorityIndex.d.ts +33 -33
- package/dist/node-esm/src/core/snap/indexes/ValueIndex.d.ts +31 -31
- package/dist/node-esm/src/core/snap/nodeFromJSON.d.ts +24 -24
- package/dist/node-esm/src/core/snap/snap.d.ts +23 -23
- package/dist/node-esm/src/core/stats/StatsCollection.d.ts +26 -26
- package/dist/node-esm/src/core/stats/StatsListener.d.ts +30 -30
- package/dist/node-esm/src/core/stats/StatsManager.d.ts +20 -20
- package/dist/node-esm/src/core/stats/StatsReporter.d.ts +28 -28
- package/dist/node-esm/src/core/storage/DOMStorageWrapper.d.ts +46 -46
- package/dist/node-esm/src/core/storage/MemoryStorage.d.ts +27 -27
- package/dist/node-esm/src/core/storage/storage.d.ts +22 -22
- package/dist/node-esm/src/core/util/EventEmitter.d.ts +39 -39
- package/dist/node-esm/src/core/util/ImmutableTree.d.ts +117 -117
- package/dist/node-esm/src/core/util/NextPushId.d.ts +33 -33
- package/dist/node-esm/src/core/util/OnlineMonitor.d.ts +31 -31
- package/dist/node-esm/src/core/util/Path.d.ts +94 -94
- package/dist/node-esm/src/core/util/ServerValues.d.ts +56 -56
- package/dist/node-esm/src/core/util/SortedMap.d.ts +324 -324
- package/dist/node-esm/src/core/util/Tree.d.ts +105 -105
- package/dist/node-esm/src/core/util/VisibilityMonitor.d.ts +23 -23
- package/dist/node-esm/src/core/util/libs/parser.d.ts +32 -32
- package/dist/node-esm/src/core/util/misc.d.ts +19 -19
- package/dist/node-esm/src/core/util/util.d.ts +176 -176
- package/dist/node-esm/src/core/util/validation.d.ts +70 -70
- package/dist/node-esm/src/core/version.d.ts +23 -23
- package/dist/node-esm/src/core/view/CacheNode.d.ts +41 -41
- package/dist/node-esm/src/core/view/Change.d.ts +46 -46
- package/dist/node-esm/src/core/view/ChildChangeAccumulator.d.ts +22 -22
- package/dist/node-esm/src/core/view/CompleteChildSource.d.ts +55 -55
- package/dist/node-esm/src/core/view/Event.d.ts +64 -64
- package/dist/node-esm/src/core/view/EventGenerator.d.ts +42 -42
- package/dist/node-esm/src/core/view/EventQueue.d.ts +67 -67
- package/dist/node-esm/src/core/view/EventRegistration.d.ts +87 -87
- package/dist/node-esm/src/core/view/QueryParams.d.ts +95 -95
- package/dist/node-esm/src/core/view/View.d.ts +59 -59
- package/dist/node-esm/src/core/view/ViewCache.d.ts +32 -32
- package/dist/node-esm/src/core/view/ViewProcessor.d.ts +32 -32
- package/dist/node-esm/src/core/view/filter/IndexedFilter.d.ts +35 -35
- package/dist/node-esm/src/core/view/filter/LimitedFilter.d.ts +47 -47
- package/dist/node-esm/src/core/view/filter/NodeFilter.d.ts +54 -54
- package/dist/node-esm/src/core/view/filter/RangedFilter.d.ts +47 -47
- package/dist/node-esm/src/index.d.ts +28 -28
- package/dist/node-esm/src/index.node.d.ts +17 -17
- package/dist/node-esm/src/index.standalone.d.ts +17 -17
- package/dist/node-esm/src/internal/index.d.ts +38 -38
- package/dist/node-esm/src/realtime/BrowserPollConnection.d.ts +198 -198
- package/dist/node-esm/src/realtime/Connection.d.ts +102 -102
- package/dist/node-esm/src/realtime/Constants.d.ts +27 -27
- package/dist/node-esm/src/realtime/Transport.d.ts +58 -58
- package/dist/node-esm/src/realtime/TransportManager.d.ts +50 -50
- package/dist/node-esm/src/realtime/WebSocketConnection.d.ts +127 -127
- package/dist/node-esm/src/realtime/polling/PacketReceiver.d.ts +38 -38
- package/dist/node-esm/src/register.d.ts +1 -1
- package/dist/node-esm/test/compound_write.test.d.ts +17 -17
- package/dist/node-esm/test/connection.test.d.ts +17 -17
- package/dist/node-esm/test/deno.test.d.ts +17 -17
- package/dist/node-esm/test/exp/integration.test.d.ts +17 -17
- package/dist/node-esm/test/helpers/EventAccumulator.d.ts +35 -35
- package/dist/node-esm/test/helpers/syncpoint-util.d.ts +29 -29
- package/dist/node-esm/test/helpers/util.d.ts +34 -34
- package/dist/node-esm/test/node.test.d.ts +17 -17
- package/dist/node-esm/test/parser.test.d.ts +17 -17
- package/dist/node-esm/test/path.test.d.ts +17 -17
- package/dist/node-esm/test/pushid.test.d.ts +17 -17
- package/dist/node-esm/test/queryconstraint.test.d.ts +17 -17
- package/dist/node-esm/test/repoinfo.test.d.ts +17 -17
- package/dist/node-esm/test/sortedmap.test.d.ts +17 -17
- package/dist/node-esm/test/sparsesnapshottree.test.d.ts +17 -17
- package/dist/node-esm/test/syncpoint.test.d.ts +17 -17
- package/dist/node-esm/test/transport.test.d.ts +17 -17
- package/dist/node-esm/test/websocketconnection.test.d.ts +17 -17
- package/dist/src/api/Database.d.ts +137 -137
- package/dist/src/api/OnDisconnect.d.ts +110 -110
- package/dist/src/api/Reference.d.ts +122 -122
- package/dist/src/api/Reference_impl.d.ts +1098 -1098
- package/dist/src/api/ServerValue.d.ts +30 -30
- package/dist/src/api/Transaction.d.ts +83 -83
- package/dist/src/api/test_access.d.ts +31 -31
- package/dist/src/api.d.ts +18 -18
- package/dist/src/api.standalone.d.ts +30 -30
- package/dist/src/core/AppCheckTokenProvider.d.ts +30 -30
- package/dist/src/core/AuthTokenProvider.d.ts +49 -49
- package/dist/src/core/CompoundWrite.d.ts +81 -81
- package/dist/src/core/PersistentConnection.d.ts +135 -135
- package/dist/src/core/ReadonlyRestClient.d.ts +60 -60
- package/dist/src/core/Repo.d.ts +144 -144
- package/dist/src/core/RepoInfo.d.ts +56 -56
- package/dist/src/core/ServerActions.d.ts +52 -52
- package/dist/src/core/SnapshotHolder.d.ts +26 -26
- package/dist/src/core/SparseSnapshotTree.d.ts +64 -64
- package/dist/src/core/SyncPoint.d.ts +91 -91
- package/dist/src/core/SyncTree.d.ts +166 -166
- package/dist/src/core/WriteTree.d.ts +205 -205
- package/dist/src/core/operation/AckUserWrite.d.ts +36 -36
- package/dist/src/core/operation/ListenComplete.d.ts +26 -26
- package/dist/src/core/operation/Merge.d.ts +33 -33
- package/dist/src/core/operation/Operation.d.ts +45 -45
- package/dist/src/core/operation/Overwrite.d.ts +28 -28
- package/dist/src/core/snap/ChildrenNode.d.ts +112 -112
- package/dist/src/core/snap/IndexMap.d.ts +43 -43
- package/dist/src/core/snap/LeafNode.d.ts +83 -83
- package/dist/src/core/snap/Node.d.ts +126 -126
- package/dist/src/core/snap/childSet.d.ts +32 -32
- package/dist/src/core/snap/comparators.d.ts +19 -19
- package/dist/src/core/snap/indexes/Index.d.ts +50 -50
- package/dist/src/core/snap/indexes/KeyIndex.d.ts +34 -34
- package/dist/src/core/snap/indexes/PathIndex.d.ts +29 -29
- package/dist/src/core/snap/indexes/PriorityIndex.d.ts +33 -33
- package/dist/src/core/snap/indexes/ValueIndex.d.ts +31 -31
- package/dist/src/core/snap/nodeFromJSON.d.ts +24 -24
- package/dist/src/core/snap/snap.d.ts +23 -23
- package/dist/src/core/stats/StatsCollection.d.ts +26 -26
- package/dist/src/core/stats/StatsListener.d.ts +30 -30
- package/dist/src/core/stats/StatsManager.d.ts +20 -20
- package/dist/src/core/stats/StatsReporter.d.ts +28 -28
- package/dist/src/core/storage/DOMStorageWrapper.d.ts +46 -46
- package/dist/src/core/storage/MemoryStorage.d.ts +27 -27
- package/dist/src/core/storage/storage.d.ts +22 -22
- package/dist/src/core/util/EventEmitter.d.ts +39 -39
- package/dist/src/core/util/ImmutableTree.d.ts +117 -117
- package/dist/src/core/util/NextPushId.d.ts +33 -33
- package/dist/src/core/util/OnlineMonitor.d.ts +31 -31
- package/dist/src/core/util/Path.d.ts +94 -94
- package/dist/src/core/util/ServerValues.d.ts +56 -56
- package/dist/src/core/util/SortedMap.d.ts +324 -324
- package/dist/src/core/util/Tree.d.ts +105 -105
- package/dist/src/core/util/VisibilityMonitor.d.ts +23 -23
- package/dist/src/core/util/libs/parser.d.ts +32 -32
- package/dist/src/core/util/misc.d.ts +19 -19
- package/dist/src/core/util/util.d.ts +176 -176
- package/dist/src/core/util/validation.d.ts +70 -70
- package/dist/src/core/version.d.ts +23 -23
- package/dist/src/core/view/CacheNode.d.ts +41 -41
- package/dist/src/core/view/Change.d.ts +46 -46
- package/dist/src/core/view/ChildChangeAccumulator.d.ts +22 -22
- package/dist/src/core/view/CompleteChildSource.d.ts +55 -55
- package/dist/src/core/view/Event.d.ts +64 -64
- package/dist/src/core/view/EventGenerator.d.ts +42 -42
- package/dist/src/core/view/EventQueue.d.ts +67 -67
- package/dist/src/core/view/EventRegistration.d.ts +87 -87
- package/dist/src/core/view/QueryParams.d.ts +95 -95
- package/dist/src/core/view/View.d.ts +59 -59
- package/dist/src/core/view/ViewCache.d.ts +32 -32
- package/dist/src/core/view/ViewProcessor.d.ts +32 -32
- package/dist/src/core/view/filter/IndexedFilter.d.ts +35 -35
- package/dist/src/core/view/filter/LimitedFilter.d.ts +47 -47
- package/dist/src/core/view/filter/NodeFilter.d.ts +54 -54
- package/dist/src/core/view/filter/RangedFilter.d.ts +47 -47
- package/dist/src/index.d.ts +28 -28
- package/dist/src/index.node.d.ts +17 -17
- package/dist/src/index.standalone.d.ts +17 -17
- package/dist/src/internal/index.d.ts +38 -38
- package/dist/src/realtime/BrowserPollConnection.d.ts +198 -198
- package/dist/src/realtime/Connection.d.ts +102 -102
- package/dist/src/realtime/Constants.d.ts +27 -27
- package/dist/src/realtime/Transport.d.ts +58 -58
- package/dist/src/realtime/TransportManager.d.ts +50 -50
- package/dist/src/realtime/WebSocketConnection.d.ts +127 -127
- package/dist/src/realtime/polling/PacketReceiver.d.ts +38 -38
- package/dist/src/register.d.ts +1 -1
- package/dist/test/compound_write.test.d.ts +17 -17
- package/dist/test/connection.test.d.ts +17 -17
- package/dist/test/deno.test.d.ts +17 -17
- package/dist/test/exp/integration.test.d.ts +17 -17
- package/dist/test/helpers/EventAccumulator.d.ts +35 -35
- package/dist/test/helpers/syncpoint-util.d.ts +29 -29
- package/dist/test/helpers/util.d.ts +34 -34
- package/dist/test/node.test.d.ts +17 -17
- package/dist/test/parser.test.d.ts +17 -17
- package/dist/test/path.test.d.ts +17 -17
- package/dist/test/pushid.test.d.ts +17 -17
- package/dist/test/queryconstraint.test.d.ts +17 -17
- package/dist/test/repoinfo.test.d.ts +17 -17
- package/dist/test/sortedmap.test.d.ts +17 -17
- package/dist/test/sparsesnapshottree.test.d.ts +17 -17
- package/dist/test/syncpoint.test.d.ts +17 -17
- package/dist/test/transport.test.d.ts +17 -17
- package/dist/test/websocketconnection.test.d.ts +17 -17
- package/package.json +8 -8
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2017 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
import { Index } from '../../snap/indexes/Index';
|
|
18
|
-
import { Node } from '../../snap/Node';
|
|
19
|
-
import { Path } from '../../util/Path';
|
|
20
|
-
import { ChildChangeAccumulator } from '../ChildChangeAccumulator';
|
|
21
|
-
import { CompleteChildSource } from '../CompleteChildSource';
|
|
22
|
-
import { NodeFilter } from './NodeFilter';
|
|
23
|
-
/**
|
|
24
|
-
* Doesn't really filter nodes but applies an index to the node and keeps track of any changes
|
|
25
|
-
*/
|
|
26
|
-
export declare class IndexedFilter implements NodeFilter {
|
|
27
|
-
private readonly index_;
|
|
28
|
-
constructor(index_: Index);
|
|
29
|
-
updateChild(snap: Node, key: string, newChild: Node, affectedPath: Path, source: CompleteChildSource, optChangeAccumulator: ChildChangeAccumulator | null): Node;
|
|
30
|
-
updateFullNode(oldSnap: Node, newSnap: Node, optChangeAccumulator: ChildChangeAccumulator | null): Node;
|
|
31
|
-
updatePriority(oldSnap: Node, newPriority: Node): Node;
|
|
32
|
-
filtersNodes(): boolean;
|
|
33
|
-
getIndexedFilter(): IndexedFilter;
|
|
34
|
-
getIndex(): Index;
|
|
35
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2017 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { Index } from '../../snap/indexes/Index';
|
|
18
|
+
import { Node } from '../../snap/Node';
|
|
19
|
+
import { Path } from '../../util/Path';
|
|
20
|
+
import { ChildChangeAccumulator } from '../ChildChangeAccumulator';
|
|
21
|
+
import { CompleteChildSource } from '../CompleteChildSource';
|
|
22
|
+
import { NodeFilter } from './NodeFilter';
|
|
23
|
+
/**
|
|
24
|
+
* Doesn't really filter nodes but applies an index to the node and keeps track of any changes
|
|
25
|
+
*/
|
|
26
|
+
export declare class IndexedFilter implements NodeFilter {
|
|
27
|
+
private readonly index_;
|
|
28
|
+
constructor(index_: Index);
|
|
29
|
+
updateChild(snap: Node, key: string, newChild: Node, affectedPath: Path, source: CompleteChildSource, optChangeAccumulator: ChildChangeAccumulator | null): Node;
|
|
30
|
+
updateFullNode(oldSnap: Node, newSnap: Node, optChangeAccumulator: ChildChangeAccumulator | null): Node;
|
|
31
|
+
updatePriority(oldSnap: Node, newPriority: Node): Node;
|
|
32
|
+
filtersNodes(): boolean;
|
|
33
|
+
getIndexedFilter(): IndexedFilter;
|
|
34
|
+
getIndex(): Index;
|
|
35
|
+
}
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2017 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
import { Index } from '../../snap/indexes/Index';
|
|
18
|
-
import { Node } from '../../snap/Node';
|
|
19
|
-
import { Path } from '../../util/Path';
|
|
20
|
-
import { ChildChangeAccumulator } from '../ChildChangeAccumulator';
|
|
21
|
-
import { CompleteChildSource } from '../CompleteChildSource';
|
|
22
|
-
import { QueryParams } from '../QueryParams';
|
|
23
|
-
import { IndexedFilter } from './IndexedFilter';
|
|
24
|
-
import { NodeFilter } from './NodeFilter';
|
|
25
|
-
/**
|
|
26
|
-
* Applies a limit and a range to a node and uses RangedFilter to do the heavy lifting where possible
|
|
27
|
-
*/
|
|
28
|
-
export declare class LimitedFilter implements NodeFilter {
|
|
29
|
-
private readonly rangedFilter_;
|
|
30
|
-
private readonly index_;
|
|
31
|
-
private readonly limit_;
|
|
32
|
-
private readonly reverse_;
|
|
33
|
-
private readonly startIsInclusive_;
|
|
34
|
-
private readonly endIsInclusive_;
|
|
35
|
-
constructor(params: QueryParams);
|
|
36
|
-
updateChild(snap: Node, key: string, newChild: Node, affectedPath: Path, source: CompleteChildSource, optChangeAccumulator: ChildChangeAccumulator | null): Node;
|
|
37
|
-
updateFullNode(oldSnap: Node, newSnap: Node, optChangeAccumulator: ChildChangeAccumulator | null): Node;
|
|
38
|
-
updatePriority(oldSnap: Node, newPriority: Node): Node;
|
|
39
|
-
filtersNodes(): boolean;
|
|
40
|
-
getIndexedFilter(): IndexedFilter;
|
|
41
|
-
getIndex(): Index;
|
|
42
|
-
private fullLimitUpdateChild_;
|
|
43
|
-
private withinDirectionalStart;
|
|
44
|
-
private withinDirectionalEnd;
|
|
45
|
-
private withinStartPost;
|
|
46
|
-
private withinEndPost;
|
|
47
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2017 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { Index } from '../../snap/indexes/Index';
|
|
18
|
+
import { Node } from '../../snap/Node';
|
|
19
|
+
import { Path } from '../../util/Path';
|
|
20
|
+
import { ChildChangeAccumulator } from '../ChildChangeAccumulator';
|
|
21
|
+
import { CompleteChildSource } from '../CompleteChildSource';
|
|
22
|
+
import { QueryParams } from '../QueryParams';
|
|
23
|
+
import { IndexedFilter } from './IndexedFilter';
|
|
24
|
+
import { NodeFilter } from './NodeFilter';
|
|
25
|
+
/**
|
|
26
|
+
* Applies a limit and a range to a node and uses RangedFilter to do the heavy lifting where possible
|
|
27
|
+
*/
|
|
28
|
+
export declare class LimitedFilter implements NodeFilter {
|
|
29
|
+
private readonly rangedFilter_;
|
|
30
|
+
private readonly index_;
|
|
31
|
+
private readonly limit_;
|
|
32
|
+
private readonly reverse_;
|
|
33
|
+
private readonly startIsInclusive_;
|
|
34
|
+
private readonly endIsInclusive_;
|
|
35
|
+
constructor(params: QueryParams);
|
|
36
|
+
updateChild(snap: Node, key: string, newChild: Node, affectedPath: Path, source: CompleteChildSource, optChangeAccumulator: ChildChangeAccumulator | null): Node;
|
|
37
|
+
updateFullNode(oldSnap: Node, newSnap: Node, optChangeAccumulator: ChildChangeAccumulator | null): Node;
|
|
38
|
+
updatePriority(oldSnap: Node, newPriority: Node): Node;
|
|
39
|
+
filtersNodes(): boolean;
|
|
40
|
+
getIndexedFilter(): IndexedFilter;
|
|
41
|
+
getIndex(): Index;
|
|
42
|
+
private fullLimitUpdateChild_;
|
|
43
|
+
private withinDirectionalStart;
|
|
44
|
+
private withinDirectionalEnd;
|
|
45
|
+
private withinStartPost;
|
|
46
|
+
private withinEndPost;
|
|
47
|
+
}
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2017 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
import { Index } from '../../snap/indexes/Index';
|
|
18
|
-
import { Node } from '../../snap/Node';
|
|
19
|
-
import { Path } from '../../util/Path';
|
|
20
|
-
import { ChildChangeAccumulator } from '../ChildChangeAccumulator';
|
|
21
|
-
import { CompleteChildSource } from '../CompleteChildSource';
|
|
22
|
-
/**
|
|
23
|
-
* NodeFilter is used to update nodes and complete children of nodes while applying queries on the fly and keeping
|
|
24
|
-
* track of any child changes. This class does not track value changes as value changes depend on more
|
|
25
|
-
* than just the node itself. Different kind of queries require different kind of implementations of this interface.
|
|
26
|
-
* @interface
|
|
27
|
-
*/
|
|
28
|
-
export interface NodeFilter {
|
|
29
|
-
/**
|
|
30
|
-
* Update a single complete child in the snap. If the child equals the old child in the snap, this is a no-op.
|
|
31
|
-
* The method expects an indexed snap.
|
|
32
|
-
*/
|
|
33
|
-
updateChild(snap: Node, key: string, newChild: Node, affectedPath: Path, source: CompleteChildSource, optChangeAccumulator: ChildChangeAccumulator | null): Node;
|
|
34
|
-
/**
|
|
35
|
-
* Update a node in full and output any resulting change from this complete update.
|
|
36
|
-
*/
|
|
37
|
-
updateFullNode(oldSnap: Node, newSnap: Node, optChangeAccumulator: ChildChangeAccumulator | null): Node;
|
|
38
|
-
/**
|
|
39
|
-
* Update the priority of the root node
|
|
40
|
-
*/
|
|
41
|
-
updatePriority(oldSnap: Node, newPriority: Node): Node;
|
|
42
|
-
/**
|
|
43
|
-
* Returns true if children might be filtered due to query criteria
|
|
44
|
-
*/
|
|
45
|
-
filtersNodes(): boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Returns the index filter that this filter uses to get a NodeFilter that doesn't filter any children.
|
|
48
|
-
*/
|
|
49
|
-
getIndexedFilter(): NodeFilter;
|
|
50
|
-
/**
|
|
51
|
-
* Returns the index that this filter uses
|
|
52
|
-
*/
|
|
53
|
-
getIndex(): Index;
|
|
54
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2017 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { Index } from '../../snap/indexes/Index';
|
|
18
|
+
import { Node } from '../../snap/Node';
|
|
19
|
+
import { Path } from '../../util/Path';
|
|
20
|
+
import { ChildChangeAccumulator } from '../ChildChangeAccumulator';
|
|
21
|
+
import { CompleteChildSource } from '../CompleteChildSource';
|
|
22
|
+
/**
|
|
23
|
+
* NodeFilter is used to update nodes and complete children of nodes while applying queries on the fly and keeping
|
|
24
|
+
* track of any child changes. This class does not track value changes as value changes depend on more
|
|
25
|
+
* than just the node itself. Different kind of queries require different kind of implementations of this interface.
|
|
26
|
+
* @interface
|
|
27
|
+
*/
|
|
28
|
+
export interface NodeFilter {
|
|
29
|
+
/**
|
|
30
|
+
* Update a single complete child in the snap. If the child equals the old child in the snap, this is a no-op.
|
|
31
|
+
* The method expects an indexed snap.
|
|
32
|
+
*/
|
|
33
|
+
updateChild(snap: Node, key: string, newChild: Node, affectedPath: Path, source: CompleteChildSource, optChangeAccumulator: ChildChangeAccumulator | null): Node;
|
|
34
|
+
/**
|
|
35
|
+
* Update a node in full and output any resulting change from this complete update.
|
|
36
|
+
*/
|
|
37
|
+
updateFullNode(oldSnap: Node, newSnap: Node, optChangeAccumulator: ChildChangeAccumulator | null): Node;
|
|
38
|
+
/**
|
|
39
|
+
* Update the priority of the root node
|
|
40
|
+
*/
|
|
41
|
+
updatePriority(oldSnap: Node, newPriority: Node): Node;
|
|
42
|
+
/**
|
|
43
|
+
* Returns true if children might be filtered due to query criteria
|
|
44
|
+
*/
|
|
45
|
+
filtersNodes(): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Returns the index filter that this filter uses to get a NodeFilter that doesn't filter any children.
|
|
48
|
+
*/
|
|
49
|
+
getIndexedFilter(): NodeFilter;
|
|
50
|
+
/**
|
|
51
|
+
* Returns the index that this filter uses
|
|
52
|
+
*/
|
|
53
|
+
getIndex(): Index;
|
|
54
|
+
}
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2017 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
import { NamedNode, Node } from '../../../core/snap/Node';
|
|
18
|
-
import { Index } from '../../snap/indexes/Index';
|
|
19
|
-
import { Path } from '../../util/Path';
|
|
20
|
-
import { ChildChangeAccumulator } from '../ChildChangeAccumulator';
|
|
21
|
-
import { CompleteChildSource } from '../CompleteChildSource';
|
|
22
|
-
import { QueryParams } from '../QueryParams';
|
|
23
|
-
import { IndexedFilter } from './IndexedFilter';
|
|
24
|
-
import { NodeFilter } from './NodeFilter';
|
|
25
|
-
/**
|
|
26
|
-
* Filters nodes by range and uses an IndexFilter to track any changes after filtering the node
|
|
27
|
-
*/
|
|
28
|
-
export declare class RangedFilter implements NodeFilter {
|
|
29
|
-
private indexedFilter_;
|
|
30
|
-
private index_;
|
|
31
|
-
private startPost_;
|
|
32
|
-
private endPost_;
|
|
33
|
-
private startIsInclusive_;
|
|
34
|
-
private endIsInclusive_;
|
|
35
|
-
constructor(params: QueryParams);
|
|
36
|
-
getStartPost(): NamedNode;
|
|
37
|
-
getEndPost(): NamedNode;
|
|
38
|
-
matches(node: NamedNode): boolean;
|
|
39
|
-
updateChild(snap: Node, key: string, newChild: Node, affectedPath: Path, source: CompleteChildSource, optChangeAccumulator: ChildChangeAccumulator | null): Node;
|
|
40
|
-
updateFullNode(oldSnap: Node, newSnap: Node, optChangeAccumulator: ChildChangeAccumulator | null): Node;
|
|
41
|
-
updatePriority(oldSnap: Node, newPriority: Node): Node;
|
|
42
|
-
filtersNodes(): boolean;
|
|
43
|
-
getIndexedFilter(): IndexedFilter;
|
|
44
|
-
getIndex(): Index;
|
|
45
|
-
private static getStartPost_;
|
|
46
|
-
private static getEndPost_;
|
|
47
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2017 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { NamedNode, Node } from '../../../core/snap/Node';
|
|
18
|
+
import { Index } from '../../snap/indexes/Index';
|
|
19
|
+
import { Path } from '../../util/Path';
|
|
20
|
+
import { ChildChangeAccumulator } from '../ChildChangeAccumulator';
|
|
21
|
+
import { CompleteChildSource } from '../CompleteChildSource';
|
|
22
|
+
import { QueryParams } from '../QueryParams';
|
|
23
|
+
import { IndexedFilter } from './IndexedFilter';
|
|
24
|
+
import { NodeFilter } from './NodeFilter';
|
|
25
|
+
/**
|
|
26
|
+
* Filters nodes by range and uses an IndexFilter to track any changes after filtering the node
|
|
27
|
+
*/
|
|
28
|
+
export declare class RangedFilter implements NodeFilter {
|
|
29
|
+
private indexedFilter_;
|
|
30
|
+
private index_;
|
|
31
|
+
private startPost_;
|
|
32
|
+
private endPost_;
|
|
33
|
+
private startIsInclusive_;
|
|
34
|
+
private endIsInclusive_;
|
|
35
|
+
constructor(params: QueryParams);
|
|
36
|
+
getStartPost(): NamedNode;
|
|
37
|
+
getEndPost(): NamedNode;
|
|
38
|
+
matches(node: NamedNode): boolean;
|
|
39
|
+
updateChild(snap: Node, key: string, newChild: Node, affectedPath: Path, source: CompleteChildSource, optChangeAccumulator: ChildChangeAccumulator | null): Node;
|
|
40
|
+
updateFullNode(oldSnap: Node, newSnap: Node, optChangeAccumulator: ChildChangeAccumulator | null): Node;
|
|
41
|
+
updatePriority(oldSnap: Node, newPriority: Node): Node;
|
|
42
|
+
filtersNodes(): boolean;
|
|
43
|
+
getIndexedFilter(): IndexedFilter;
|
|
44
|
+
getIndex(): Index;
|
|
45
|
+
private static getStartPost_;
|
|
46
|
+
private static getEndPost_;
|
|
47
|
+
}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Firebase Realtime Database
|
|
3
|
-
*
|
|
4
|
-
* @packageDocumentation
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* @license
|
|
8
|
-
* Copyright 2020 Google LLC
|
|
9
|
-
*
|
|
10
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
* you may not use this file except in compliance with the License.
|
|
12
|
-
* You may obtain a copy of the License at
|
|
13
|
-
*
|
|
14
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
*
|
|
16
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
* See the License for the specific language governing permissions and
|
|
20
|
-
* limitations under the License.
|
|
21
|
-
*/
|
|
22
|
-
import { Database } from './api/Database';
|
|
23
|
-
export * from './api';
|
|
24
|
-
declare module '@firebase/component' {
|
|
25
|
-
interface NameServiceMapping {
|
|
26
|
-
'database': Database;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Firebase Realtime Database
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @license
|
|
8
|
+
* Copyright 2020 Google LLC
|
|
9
|
+
*
|
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
* you may not use this file except in compliance with the License.
|
|
12
|
+
* You may obtain a copy of the License at
|
|
13
|
+
*
|
|
14
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
*
|
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
* See the License for the specific language governing permissions and
|
|
20
|
+
* limitations under the License.
|
|
21
|
+
*/
|
|
22
|
+
import { Database } from './api/Database';
|
|
23
|
+
export * from './api';
|
|
24
|
+
declare module '@firebase/component' {
|
|
25
|
+
interface NameServiceMapping {
|
|
26
|
+
'database': Database;
|
|
27
|
+
}
|
|
28
|
+
}
|
package/dist/src/index.node.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
export * from './api';
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
export * from './api';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
export * from './api.standalone';
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
export * from './api.standalone';
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2023 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
import { FirebaseAppCheckInternal } from '@firebase/app-check-interop-types';
|
|
18
|
-
import { FirebaseApp } from '@firebase/app-types';
|
|
19
|
-
import { FirebaseAuthInternal } from '@firebase/auth-interop-types';
|
|
20
|
-
import { Database } from '../api.standalone';
|
|
21
|
-
/**
|
|
22
|
-
* Used by console to create a database based on the app,
|
|
23
|
-
* passed database URL and a custom auth implementation.
|
|
24
|
-
* @internal
|
|
25
|
-
* @param app - A valid FirebaseApp-like object
|
|
26
|
-
* @param url - A valid Firebase databaseURL
|
|
27
|
-
* @param version - custom version e.g. firebase-admin version
|
|
28
|
-
* @param customAppCheckImpl - custom app check implementation
|
|
29
|
-
* @param customAuthImpl - custom auth implementation
|
|
30
|
-
*/
|
|
31
|
-
export declare function _initStandalone({ app, url, version, customAuthImpl, customAppCheckImpl, nodeAdmin }: {
|
|
32
|
-
app: FirebaseApp;
|
|
33
|
-
url: string;
|
|
34
|
-
version: string;
|
|
35
|
-
customAuthImpl: FirebaseAuthInternal;
|
|
36
|
-
customAppCheckImpl?: FirebaseAppCheckInternal;
|
|
37
|
-
nodeAdmin?: boolean;
|
|
38
|
-
}): Database;
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { FirebaseAppCheckInternal } from '@firebase/app-check-interop-types';
|
|
18
|
+
import { FirebaseApp } from '@firebase/app-types';
|
|
19
|
+
import { FirebaseAuthInternal } from '@firebase/auth-interop-types';
|
|
20
|
+
import { Database } from '../api.standalone';
|
|
21
|
+
/**
|
|
22
|
+
* Used by console to create a database based on the app,
|
|
23
|
+
* passed database URL and a custom auth implementation.
|
|
24
|
+
* @internal
|
|
25
|
+
* @param app - A valid FirebaseApp-like object
|
|
26
|
+
* @param url - A valid Firebase databaseURL
|
|
27
|
+
* @param version - custom version e.g. firebase-admin version
|
|
28
|
+
* @param customAppCheckImpl - custom app check implementation
|
|
29
|
+
* @param customAuthImpl - custom auth implementation
|
|
30
|
+
*/
|
|
31
|
+
export declare function _initStandalone({ app, url, version, customAuthImpl, customAppCheckImpl, nodeAdmin }: {
|
|
32
|
+
app: FirebaseApp;
|
|
33
|
+
url: string;
|
|
34
|
+
version: string;
|
|
35
|
+
customAuthImpl: FirebaseAuthInternal;
|
|
36
|
+
customAppCheckImpl?: FirebaseAppCheckInternal;
|
|
37
|
+
nodeAdmin?: boolean;
|
|
38
|
+
}): Database;
|