@hyper-fetch/firebase-admin 6.0.1 โ†’ 7.0.1

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/.eslintrc.json CHANGED
@@ -1,6 +1,11 @@
1
1
  {
2
- "extends": ["../../.eslintrc.json"],
2
+ "extends": ["plugin:@nx/react", "../../.eslintrc.js"],
3
3
  "parserOptions": {
4
- "project": ["./tsconfig.json", "./__tests__/tsconfig.json"]
5
- }
4
+ "project": ["./tsconfig.json"]
5
+ },
6
+ "rules": {
7
+ "react/jsx-props-no-spreading": 0,
8
+ "react/require-default-props": 0
9
+ },
10
+ "ignorePatterns": ["dist/", "coverage/", "jest.config.ts", "/*.js"]
6
11
  }
package/README.md CHANGED
@@ -27,47 +27,95 @@
27
27
  </a>
28
28
  </p>
29
29
 
30
- ## About
30
+ ---
31
31
 
32
- **`Hyper Fetch Firebase Admin`** is adapter for Hyper Fetch. Take advantage of the powerful features and simplicity of
33
- the first class Firebase adapter for **browser and server**, simplifying the retrieval and manipulation of data. Benefit
34
- from the convenience and efficiency of Hyper Fetch for your Firebase-powered projects.
32
+ ## Description
35
33
 
36
- ## Key Features
34
+ `@hyper-fetch/firebase-admin` is the **official Firebase Admin SDK adapter** for
35
+ [Hyper Fetch](https://hyperfetch.bettertyped.com). It brings the same declarative, type-safe API you use on the client
36
+ to your server or cloud functions.
37
37
 
38
- ๐Ÿ”ฎ **Simple setup** - [Read more](https://hyperfetch.bettertyped.com/docs/guides/basic/setup)
38
+ ---
39
39
 
40
- ๐ŸŽฏ **Request cancellation** - [Read more](https://hyperfetch.bettertyped.com/docs/guides/advanced/cancellation)
40
+ :::tip Purpose
41
41
 
42
- โœจ **Window Focus/Blur Events** -
43
- [Read more](https://hyperfetch.bettertyped.com/docs/guides/react/core/window-focus-blur)
42
+ 1. **One API โ€“ everywhere** โ€“ share request definitions between the browser and Node.js environments.
43
+ 2. **First-class TypeScript** โ€“ strong typing for parameters, payloads and responses out of the box.
44
+ 3. **Queue & Retry** โ€“ leverage Hyper Fetch queueing on top of Firebase Admin SDK.
45
+ 4. **Unified tooling** โ€“ logging, events and interceptors identical on both sides.
46
+ 5. **Works with Firestore _and_ Realtime Database** โ€“ pick the storage that fits your use-case.
44
47
 
45
- ๐Ÿš€ **Queueing** - [Read more](https://hyperfetch.bettertyped.com/docs/guides/advanced/queueing)
48
+ :::
46
49
 
47
- ๐Ÿ’Ž **Automatic caching** - [Read more](https://hyperfetch.bettertyped.com/docs/documentation/core/cache)
50
+ ## Installation
48
51
 
49
- ๐Ÿช„ **Persistence** - [Read more](https://hyperfetch.bettertyped.com/docs/guides/advanced/persistence)
52
+ ```bash
53
+ npm install @hyper-fetch/core @hyper-fetch/firebase-admin firebase-admin
54
+ # or
55
+ yarn add @hyper-fetch/core @hyper-fetch/firebase-admin firebase-admin
56
+ ```
50
57
 
51
- ๐ŸŽŠ **SSR Support** - [Read more](https://hyperfetch.bettertyped.com/docs/documentation/getting-started/environment)
58
+ > `firebase-admin` is a peer dependency and must be installed separately.
52
59
 
53
- ๐Ÿ”‹ **Offline First** - [Read more](https://hyperfetch.bettertyped.com/docs/guides/advanced/offline)
60
+ ## Quick start
54
61
 
55
- ๐Ÿ“ก **Built-in adapter** - [Read more](https://hyperfetch.bettertyped.com/docs/documentation/core/adapter)
62
+ ### 1. Initialize Firebase Admin SDK
56
63
 
57
- ๐Ÿงช **Easy to test** - [Read more](https://hyperfetch.bettertyped.com/docs/documentation/getting-started/testing)
64
+ ```ts
65
+ import { initializeApp, applicationDefault } from "firebase-admin/app";
66
+ import { getFirestore } from "firebase-admin/firestore";
58
67
 
59
- ๐ŸŽŸ **Authentication** - [Read more](https://hyperfetch.bettertyped.com/docs/guides/basic/authentication)
68
+ initializeApp({
69
+ credential: applicationDefault(),
70
+ });
60
71
 
61
- ๐Ÿ’ก **Prefetching** - [Read more](https://hyperfetch.bettertyped.com/docs/guides/advanced/prefetching)
72
+ export const db = getFirestore();
73
+ ```
62
74
 
63
- ## Help me keep working on this project โค๏ธ
75
+ ### 2. Create Hyper Fetch client with the Firebase Admin adapter
64
76
 
65
- - [Become a Sponsor on GitHub](https://github.com/sponsors/prc5)
77
+ ```ts
78
+ import { createClient } from "@hyper-fetch/core";
79
+ import { FirebaseAdminAdapter } from "@hyper-fetch/firebase-admin";
80
+ import { db } from "./firebase";
66
81
 
67
- ## Sources
82
+ export const client = createClient({ url: "" }).setAdapter(FirebaseAdminAdapter(db));
83
+ ```
68
84
 
69
- - #### [Installation](https://hyperfetch.bettertyped.com/docs/documentation/getting-started/installation)
70
- - #### [Docs](https://hyperfetch.bettertyped.com/docs/react/overview)
71
- - #### [API](https://hyperfetch.bettertyped.com/api/)
72
- - #### [NPM](https://www.npmjs.com/package/@hyper-fetch/firebase)
73
- - #### [Guides](https://hyperfetch.bettertyped.com/guides/basic/setup)
85
+ ### 3. Server-side request example
86
+
87
+ ```ts
88
+ interface MessagePayload {
89
+ text: string;
90
+ }
91
+
92
+ export const addMessage = client.createRequest<{ payload: MessagePayload; response: null }>()({
93
+ endpoint: "/messages",
94
+ method: "addDoc",
95
+ });
96
+
97
+ await addMessage.send({ payload: { text: "Hello from the server!" } });
98
+ ```
99
+
100
+ ## Supported methods
101
+
102
+ | Firestore | Realtime Database |
103
+ | ------------------------ | ------------------ |
104
+ | `getDoc`, `getDocs` | `get` |
105
+ | `setDoc`, `addDoc` | `set`, `push` |
106
+ | `updateDoc`, `deleteDoc` | `update`, `remove` |
107
+
108
+ ## Resources
109
+
110
+ - [Documentation](https://hyperfetch.bettertyped.com)
111
+ - [API Reference](https://hyperfetch.bettertyped.com/api/modules/firebase-admin)
112
+ - [Guides](https://hyperfetch.bettertyped.com/docs/guides)
113
+ - [NPM](https://www.npmjs.com/package/@hyper-fetch/firebase-admin)
114
+
115
+ ## Contributing
116
+
117
+ We โค๏ธ contributions! Please read the [contributing guide](../../../CONTRIBUTING.md) and open an issue or pull request.
118
+
119
+ ---
120
+
121
+ Made with โ˜• by [BetterTyped](https://bettertyped.com)
package/dist/index.d.ts CHANGED
@@ -1,12 +1,10 @@
1
- import { AdapterType, RequestInstance } from '@hyper-fetch/core';
2
- import { DocumentReference, DocumentSnapshot, CollectionReference, Unsubscribe, QuerySnapshot } from 'firebase/firestore';
3
- import { SocketAdapterType } from '@hyper-fetch/sockets';
4
- import { WhereFilterOp, OrderByDirection, DocumentReference as DocumentReference$1, Query, DocumentSnapshot as DocumentSnapshot$1, Firestore } from 'firebase-admin/firestore';
1
+ import * as _hyper_fetch_core from '@hyper-fetch/core';
2
+ import { Adapter, Request, Client, getAdapterBindings } from '@hyper-fetch/core';
3
+ import { DocumentReference, CollectionReference, DocumentSnapshot, Unsubscribe, QuerySnapshot } from 'firebase/firestore';
4
+ import { SocketAdapter } from '@hyper-fetch/sockets';
5
+ import { WhereFilterOp, OrderByDirection, DocumentReference as DocumentReference$1, Query, DocumentSnapshot as DocumentSnapshot$1, QuerySnapshot as QuerySnapshot$1, DocumentData, Firestore, CollectionReference as CollectionReference$1 } from 'firebase-admin/firestore';
5
6
  import { DatabaseReference, DataSnapshot } from 'firebase/database';
6
- import { Reference, DataSnapshot as DataSnapshot$1, Database } from 'firebase-admin/database';
7
- import { Firestore as Firestore$1, DocumentReference as DocumentReference$2, CollectionReference as CollectionReference$1 } from 'firebase-admin/lib/firestore';
8
- import * as _firebase_database_types from '@firebase/database-types';
9
- import { Reference as Reference$1, Database as Database$1 } from 'firebase-admin/lib/database';
7
+ import { Reference, DataSnapshot as DataSnapshot$1, Database, Query as Query$1 } from 'firebase-admin/database';
10
8
 
11
9
  declare enum SharedQueryConstraints {
12
10
  START_AT = "startAt",
@@ -35,7 +33,7 @@ declare const $where: (fieldPath: string, opStr: WhereFilterOp, value: any) => {
35
33
  declare const $orderBy: (fieldPath: string, directionStr?: OrderByDirection) => {
36
34
  toString: () => string;
37
35
  type: FirestoreQueryConstraints.ORDER_BY;
38
- values: string[];
36
+ values: (string | undefined)[];
39
37
  };
40
38
  declare const $limit: (num: number) => {
41
39
  toString: () => string;
@@ -70,12 +68,12 @@ declare const $orderByChild: (path: string) => {
70
68
  declare const $orderByKey: () => {
71
69
  toString: () => string;
72
70
  type: RealtimeQueryConstraints.ORDER_BY_KEY;
73
- values: any[];
71
+ values: never[];
74
72
  };
75
73
  declare const $orderByValue: () => {
76
74
  toString: () => string;
77
75
  type: RealtimeQueryConstraints.ORDER_BY_VALUE;
78
- values: any[];
76
+ values: never[];
79
77
  };
80
78
  declare const $limitToFirst: (num: number) => {
81
79
  toString: () => string;
@@ -104,12 +102,12 @@ type ExtractConstraintType<T> = T extends {
104
102
  } ? ThisType : never;
105
103
  type PermittedConstraints<T, U> = ExtractConstraintType<T> extends U ? T : never;
106
104
 
107
- type FirestoreSocketAdapterType = SocketAdapterType<never, FirestoreOnSnapshotExtra, {
105
+ type FirestoreSocketAdapterType = SocketAdapter<never, FirestoreOnSnapshotExtra, {
108
106
  groupByChangeType?: boolean;
109
107
  } & FirestoreQueryParams>;
110
- type FirestoreAdapterType = AdapterType<Record<string, never>, "getDoc", FirestoreStatuses, FirestoreExtra, FirestoreQueryParams> | AdapterType<Record<string, never>, "getDocs", FirestoreStatuses, FirestoreGetDocsExtra, FirestoreQueryParams> | AdapterType<{
108
+ type FirestoreAdapterType = Adapter<Record<string, never>, "getDoc", FirestoreStatuses, FirestoreExtra, FirestoreQueryParams, FirestoreQueryParams> | Adapter<Record<string, never>, "getDocs", FirestoreStatuses, FirestoreGetDocsExtra, FirestoreQueryParams, FirestoreQueryParams> | Adapter<{
111
109
  merge: boolean;
112
- }, "setDoc", FirestoreStatuses, FirestoreRefOnlyExtra, Record<string, never>> | AdapterType<Record<string, never>, "updateDoc" | "addDoc" | "deleteDoc" | "setDoc", FirestoreStatuses, FirestoreRefOnlyExtra, Record<string, never>>;
110
+ }, "setDoc", FirestoreStatuses, FirestoreRefOnlyExtra, Record<string, never>, undefined> | Adapter<Record<string, never>, "updateDoc" | "addDoc" | "deleteDoc" | "setDoc", FirestoreStatuses, FirestoreRefOnlyExtra, Record<string, never>, undefined>;
113
111
  type FirestoreQueryParams = {
114
112
  constraints?: PermittedConstraints<FirestorePermittedMethods, FirestoreConstraintsUnion | SharedQueryConstraints>[];
115
113
  };
@@ -145,10 +143,10 @@ type FirestoreRefOnlyExtra = {
145
143
  };
146
144
  type FirestoreStatuses = "success" | "error" | "emptyResource";
147
145
 
148
- type RealtimeSocketAdapterType = SocketAdapterType<never, RealtimeDbOnValueMethodExtra, {
146
+ type RealtimeSocketAdapterType = SocketAdapter<never, RealtimeDbOnValueMethodExtra, {
149
147
  onlyOnce?: boolean;
150
148
  } & RealtimeDBQueryParams>;
151
- type RealtimeDbAdapterType = AdapterType<DefaultRealtimeDBAdapterOptions, "get", RealtimeDBStatuses, RealtimeDbGetMethodExtra, RealtimeDBQueryParams> | AdapterType<DefaultRealtimeDBAdapterOptions, "push", RealtimeDBStatuses, RealtimeDbPushMethodExtra, Record<string, never>> | AdapterType<DefaultRealtimeDBAdapterOptions, "set" | "update" | "remove", RealtimeDBStatuses, RealtimeDbDefaultExtra, Record<string, never>>;
149
+ type RealtimeDbAdapterType = Adapter<DefaultRealtimeDBAdapterOptions, "get", RealtimeDBStatuses, RealtimeDbGetMethodExtra, RealtimeDBQueryParams, RealtimeDBQueryParams> | Adapter<DefaultRealtimeDBAdapterOptions, "push", RealtimeDBStatuses, RealtimeDbPushMethodExtra, Record<string, never>, undefined> | Adapter<DefaultRealtimeDBAdapterOptions, "set" | "update" | "remove", RealtimeDBStatuses, RealtimeDbDefaultExtra, Record<string, never>, undefined>;
152
150
  type DefaultRealtimeDBAdapterOptions = {
153
151
  priority?: number;
154
152
  };
@@ -180,78 +178,94 @@ type RealtimeDBQueryParams = {
180
178
  constraints?: PermittedConstraints<RealtimePermittedMethods, RealtimeConstraintsUnion | SharedQueryConstraints>[];
181
179
  };
182
180
 
183
- type RealtimeAdminSocketAdapterType = SocketAdapterType<never, RealtimeAdminOnValueMethodExtra, {
181
+ type RealtimeAdminSocketAdapterType = SocketAdapter<any, RealtimeAdminOnValueMethodExtra, {
184
182
  onlyOnce?: boolean;
185
- } & RealtimeDBQueryParams, never>;
183
+ } & RealtimeDBQueryParams, any>;
186
184
  type RealtimeAdminOnValueMethodExtra = {
187
185
  ref: Reference;
188
186
  snapshot: DataSnapshot$1;
189
187
  status: RealtimeDBStatuses;
190
188
  };
191
189
 
192
- type FirestoreAdminSocketAdapterType = SocketAdapterType<never, FirestoreAdminOnSnapshotExtra, {
190
+ type FirestoreAdminSocketAdapterType = SocketAdapter<FirestoreAdminOnSnapshotExtra, undefined, {
193
191
  groupByChangeType?: boolean;
194
192
  } & FirestoreQueryParams>;
195
193
  type FirestoreAdminOnSnapshotExtra = {
196
194
  ref?: DocumentReference$1 | Query;
197
- snapshot?: DocumentSnapshot$1;
195
+ snapshot?: DocumentSnapshot$1 | QuerySnapshot$1;
198
196
  unsubscribe?: () => void;
199
- groupedResult?: {
200
- added: DocumentSnapshot$1[];
201
- modified: DocumentSnapshot$1[];
202
- removed: DocumentSnapshot$1[];
203
- };
197
+ groupedResult: {
198
+ added: DocumentData[];
199
+ modified: DocumentData[];
200
+ removed: DocumentData[];
201
+ } | null;
204
202
  };
205
203
 
206
204
  type FirebaseAdminDBTypes = Database | Firestore;
207
205
  type FirebaseAdminAdapterTypes<T> = T extends Database ? RealtimeDbAdapterType : FirestoreAdapterType;
208
206
  type FirebaseAdminSocketAdapterTypes<T> = T extends Firestore ? FirestoreAdminSocketAdapterType : RealtimeAdminSocketAdapterType;
207
+ type RealtimeDBRequestType = Request<any, any, RealtimeDBQueryParams, any, any, Client<any, Adapter<any, RealtimeDBMethodsUnion, any, any, any, any>>, any, any, any>;
208
+ type FirestoreRequestType = Request<any, any, FirestoreQueryParams, any, any, Client<any, Adapter<any, FirestoreMethodsUnion, any, any, any, any>>, any, any, any>;
209
+ type RequestType<T> = T extends Firestore ? FirestoreRequestType : RealtimeDBRequestType;
209
210
 
210
- declare const firebaseSocketsAdminAdapter: <T extends FirebaseAdminDBTypes>(database: T) => FirebaseAdminSocketAdapterTypes<T>;
211
+ declare const FirebaseSocketsAdminAdapter: <T extends FirebaseAdminDBTypes>(database: T) => FirebaseAdminSocketAdapterTypes<T>;
211
212
 
212
- declare const firebaseAdminAdapter: <T extends FirebaseAdminDBTypes>(database: T) => () => FirebaseAdminAdapterTypes<T>;
213
+ declare const FirebaseAdminAdapter: <T extends FirebaseAdminDBTypes>(database: T) => Adapter<Record<string, never>, "getDoc", FirestoreStatuses, FirestoreExtra, FirestoreQueryParams, FirestoreQueryParams, string, _hyper_fetch_core.DefaultMapperType, _hyper_fetch_core.DefaultMapperType, _hyper_fetch_core.DefaultMapperType, _hyper_fetch_core.DefaultMapperType> | Adapter<Record<string, never>, "getDocs", FirestoreStatuses, FirestoreGetDocsExtra, FirestoreQueryParams, FirestoreQueryParams, string, _hyper_fetch_core.DefaultMapperType, _hyper_fetch_core.DefaultMapperType, _hyper_fetch_core.DefaultMapperType, _hyper_fetch_core.DefaultMapperType> | Adapter<{
214
+ merge: boolean;
215
+ }, "setDoc", FirestoreStatuses, FirestoreRefOnlyExtra, Record<string, never>, undefined, string, _hyper_fetch_core.DefaultMapperType, _hyper_fetch_core.DefaultMapperType, _hyper_fetch_core.DefaultMapperType, _hyper_fetch_core.DefaultMapperType> | Adapter<Record<string, never>, "setDoc" | "updateDoc" | "addDoc" | "deleteDoc", FirestoreStatuses, FirestoreRefOnlyExtra, Record<string, never>, undefined, string, _hyper_fetch_core.DefaultMapperType, _hyper_fetch_core.DefaultMapperType, _hyper_fetch_core.DefaultMapperType, _hyper_fetch_core.DefaultMapperType>;
213
216
 
214
217
  declare const firestoreAdminSockets: (database: Firestore) => FirestoreAdminSocketAdapterType;
215
218
 
216
- declare const getFirestoreAdminMethods: <R extends RequestInstance>(request: R, database: Firestore, url: string, onSuccess: any, onError: any, resolve: any, events: {
217
- onRequestStart;
218
- onResponseEnd;
219
- onResponseStart;
220
- onRequestEnd;
221
- }) => (methodName: FirestoreMethodsUnion, data: {
219
+ type DataType = {
222
220
  constraints?: PermittedConstraints<FirestorePermittedMethods, FirestoreConstraintsUnion | SharedQueryConstraints>[];
223
- data?: any;
221
+ payload?: any;
224
222
  options?: Record<string, any>;
225
- }) => Promise<void>;
226
-
227
- declare const getOrderedResultFirestore: (snapshot: any) => any[];
228
- declare const getGroupedResultFirestore: (snapshot: any) => {
229
- added: any[];
230
- modified: any[];
231
- removed: any[];
232
223
  };
224
+ declare const getFirestoreAdminMethods: ({ database, url, onSuccess, onError, onResponseStart, onRequestStart, onRequestEnd, onResponseEnd, }: {
225
+ database: Firestore;
226
+ url: string;
227
+ onSuccess: Awaited<ReturnType<typeof getAdapterBindings>>["onSuccess"];
228
+ onError: Awaited<ReturnType<typeof getAdapterBindings>>["onError"];
229
+ onResponseStart: Awaited<ReturnType<typeof getAdapterBindings>>["onResponseStart"];
230
+ onRequestStart: Awaited<ReturnType<typeof getAdapterBindings>>["onRequestStart"];
231
+ onRequestEnd: Awaited<ReturnType<typeof getAdapterBindings>>["onRequestEnd"];
232
+ onResponseEnd: Awaited<ReturnType<typeof getAdapterBindings>>["onResponseEnd"];
233
+ }) => ((methodName: FirestoreMethodsUnion, data: DataType) => Promise<void>);
234
+
235
+ declare const getOrderedResultFirestore: (snapshot: QuerySnapshot$1) => (DocumentData & {
236
+ __key: string;
237
+ })[];
238
+ declare const getGroupedResultFirestore: (snapshot: QuerySnapshot$1) => {
239
+ added: DocumentData[];
240
+ modified: DocumentData[];
241
+ removed: DocumentData[];
242
+ } | null;
233
243
 
234
- declare const getRef: (db: Firestore$1, fullUrl: string) => DocumentReference$2<FirebaseFirestore.DocumentData> | CollectionReference$1<FirebaseFirestore.DocumentData>;
244
+ declare const getRef: (db: Firestore, fullUrl: string) => CollectionReference$1 | DocumentReference$1;
235
245
 
236
- declare const applyFireStoreAdminConstraint: (collectionRef: CollectionReference$1, { type, values }: FirestorePermittedMethods) => FirebaseFirestore.Query<FirebaseFirestore.DocumentData>;
237
- declare const applyFireStoreAdminConstraints: (collectionRef: CollectionReference$1, constraints: FirestorePermittedMethods[]) => FirebaseFirestore.Query<FirebaseFirestore.DocumentData>;
246
+ declare const applyFireStoreAdminConstraint: (collectionRef: Query, { type, values }: FirestorePermittedMethods) => Query<FirebaseFirestore.DocumentData>;
247
+ declare const applyFireStoreAdminConstraints: (collectionRef: Query, constraints: FirestorePermittedMethods[]) => Query<FirebaseFirestore.DocumentData>;
238
248
 
239
- declare const getOrderedResultRealtime: (snapshot: any) => any[];
249
+ declare const getOrderedResultRealtime: (snapshot: DataSnapshot$1) => any;
240
250
 
241
- declare const applyRealtimeAdminConstraint: (ref: Reference$1, { type, values }: RealtimePermittedMethods) => _firebase_database_types.Query;
242
- declare const applyRealtimeAdminConstraints: (ref: Reference$1, constraints: RealtimePermittedMethods[]) => _firebase_database_types.Query;
251
+ declare const applyRealtimeAdminConstraint: (ref: Query$1, { type, values }: RealtimePermittedMethods) => Query$1;
252
+ declare const applyRealtimeAdminConstraints: (ref: Query$1, constraints: RealtimePermittedMethods[]) => Query$1;
243
253
 
244
- declare const getRealtimeDbAdminMethods: <R extends RequestInstance>(request: R, database: Database, url: string, onSuccess: any, onError: any, resolve: any, events: {
245
- onRequestStart;
246
- onResponseEnd;
247
- onResponseStart;
248
- onRequestEnd;
249
- }) => (methodName: RealtimeDBMethodsUnion, data: {
254
+ declare const getRealtimeDbAdminMethods: ({ database, url, onSuccess, onError, onResponseStart, onRequestStart, onRequestEnd, onResponseEnd, }: {
255
+ database: Database;
256
+ url: string;
257
+ onSuccess: Awaited<ReturnType<typeof getAdapterBindings>>["onSuccess"];
258
+ onError: Awaited<ReturnType<typeof getAdapterBindings>>["onError"];
259
+ onResponseStart: Awaited<ReturnType<typeof getAdapterBindings>>["onResponseStart"];
260
+ onRequestStart: Awaited<ReturnType<typeof getAdapterBindings>>["onRequestStart"];
261
+ onRequestEnd: Awaited<ReturnType<typeof getAdapterBindings>>["onRequestEnd"];
262
+ onResponseEnd: Awaited<ReturnType<typeof getAdapterBindings>>["onResponseEnd"];
263
+ }) => ((methodName: RealtimeDBMethodsUnion, data: {
250
264
  constraints: PermittedConstraints<RealtimePermittedMethods, RealtimeConstraintsUnion | SharedQueryConstraints>[];
251
- data: any;
265
+ payload: any;
252
266
  options: Record<string, any>;
253
- }) => Promise<void>;
267
+ }) => Promise<void>);
254
268
 
255
- declare const realtimeSocketsAdmin: (database: Database$1) => RealtimeAdminSocketAdapterType;
269
+ declare const realtimeSocketsAdmin: (database: Database) => RealtimeAdminSocketAdapterType;
256
270
 
257
- export { $endAt, $endBefore, $equalTo, $limit, $limitToFirst, $limitToLast, $orderBy, $orderByChild, $orderByKey, $orderByValue, $startAfter, $startAt, $where, DefaultRealtimeDBAdapterOptions, FirebaseAdminAdapterTypes, FirebaseAdminDBTypes, FirebaseAdminSocketAdapterTypes, FirestoreAdapterType, FirestoreAdminOnSnapshotExtra, FirestoreAdminSocketAdapterType, FirestoreConstraintsUnion, FirestoreExtra, FirestoreGetDocsExtra, FirestoreMethods, FirestoreMethodsUnion, FirestoreOnSnapshotExtra, FirestorePermittedMethods, FirestoreQueryConstraints, FirestoreQueryParams, FirestoreRefOnlyExtra, FirestoreSocketAdapterType, FirestoreStatuses, PermittedConstraints, RealtimeAdminOnValueMethodExtra, RealtimeAdminSocketAdapterType, RealtimeConstraintsUnion, RealtimeDBMethods, RealtimeDBMethodsUnion, RealtimeDBQueryParams, RealtimeDBStatuses, RealtimeDbAdapterType, RealtimeDbDefaultExtra, RealtimeDbGetMethodExtra, RealtimeDbOnValueMethodExtra, RealtimeDbPushMethodExtra, RealtimePermittedMethods, RealtimeQueryConstraints, RealtimeSocketAdapterType, SharedQueryConstraints, applyFireStoreAdminConstraint, applyFireStoreAdminConstraints, applyRealtimeAdminConstraint, applyRealtimeAdminConstraints, firebaseAdminAdapter, firebaseSocketsAdminAdapter, firestoreAdminSockets, getFirestoreAdminMethods, getGroupedResultFirestore, getOrderedResultFirestore, getOrderedResultRealtime, getRealtimeDbAdminMethods, getRef, realtimeSocketsAdmin };
271
+ export { $endAt, $endBefore, $equalTo, $limit, $limitToFirst, $limitToLast, $orderBy, $orderByChild, $orderByKey, $orderByValue, $startAfter, $startAt, $where, type DefaultRealtimeDBAdapterOptions, FirebaseAdminAdapter, type FirebaseAdminAdapterTypes, type FirebaseAdminDBTypes, type FirebaseAdminSocketAdapterTypes, FirebaseSocketsAdminAdapter, type FirestoreAdapterType, type FirestoreAdminOnSnapshotExtra, type FirestoreAdminSocketAdapterType, type FirestoreConstraintsUnion, type FirestoreExtra, type FirestoreGetDocsExtra, FirestoreMethods, type FirestoreMethodsUnion, type FirestoreOnSnapshotExtra, type FirestorePermittedMethods, FirestoreQueryConstraints, type FirestoreQueryParams, type FirestoreRefOnlyExtra, type FirestoreRequestType, type FirestoreSocketAdapterType, type FirestoreStatuses, type PermittedConstraints, type RealtimeAdminOnValueMethodExtra, type RealtimeAdminSocketAdapterType, type RealtimeConstraintsUnion, RealtimeDBMethods, type RealtimeDBMethodsUnion, type RealtimeDBQueryParams, type RealtimeDBRequestType, type RealtimeDBStatuses, type RealtimeDbAdapterType, type RealtimeDbDefaultExtra, type RealtimeDbGetMethodExtra, type RealtimeDbOnValueMethodExtra, type RealtimeDbPushMethodExtra, type RealtimePermittedMethods, RealtimeQueryConstraints, type RealtimeSocketAdapterType, type RequestType, SharedQueryConstraints, applyFireStoreAdminConstraint, applyFireStoreAdminConstraints, applyRealtimeAdminConstraint, applyRealtimeAdminConstraints, firestoreAdminSockets, getFirestoreAdminMethods, getGroupedResultFirestore, getOrderedResultFirestore, getOrderedResultRealtime, getRealtimeDbAdminMethods, getRef, realtimeSocketsAdmin };