@umituz/react-native-firebase 1.13.122 → 1.13.124
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-firebase",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.124",
|
|
4
4
|
"description": "Unified Firebase package for React Native apps - Auth and Firestore services using Firebase JS SDK (no native modules).",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -3,60 +3,26 @@
|
|
|
3
3
|
* Provides common patterns for Firestore operations with error handling
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
export { getFirestore } from "../infrastructure/config/FirestoreClient";
|
|
7
|
+
export type { Firestore } from "../infrastructure/config/FirestoreClient";
|
|
8
|
+
|
|
9
|
+
// Re-export result utilities
|
|
10
|
+
export {
|
|
9
11
|
createErrorResult,
|
|
10
12
|
createSuccessResult,
|
|
13
|
+
isSuccess,
|
|
14
|
+
isError,
|
|
11
15
|
type FirestoreResult,
|
|
12
16
|
type NoDbResult,
|
|
13
17
|
NO_DB_ERROR,
|
|
14
18
|
} from "./result/result.util";
|
|
15
|
-
import {
|
|
16
|
-
withFirestore as withFirestoreOp,
|
|
17
|
-
withFirestoreVoid as withFirestoreVoidOp,
|
|
18
|
-
withFirestoreBool as withFirestoreBoolOp,
|
|
19
|
-
} from "./operation/operation-executor.util";
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Get Firestore instance with null check
|
|
23
|
-
*/
|
|
24
|
-
export function getDb(): Firestore | null {
|
|
25
|
-
return getFirestore();
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Execute a Firestore operation with automatic null check
|
|
30
|
-
* Returns error result if db is not available
|
|
31
|
-
*/
|
|
32
|
-
export async function withFirestore<T>(
|
|
33
|
-
operation: (db: Firestore) => Promise<FirestoreResult<T>>,
|
|
34
|
-
): Promise<FirestoreResult<T>> {
|
|
35
|
-
return withFirestoreOp(operation);
|
|
36
|
-
}
|
|
37
19
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return withFirestoreVoidOp(operation);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Execute a Firestore operation that returns boolean
|
|
49
|
-
*/
|
|
50
|
-
export async function withFirestoreBool(
|
|
51
|
-
operation: (db: Firestore) => Promise<boolean>,
|
|
52
|
-
): Promise<boolean> {
|
|
53
|
-
return withFirestoreBoolOp(operation);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// Re-export result utilities
|
|
57
|
-
export { createErrorResult, createSuccessResult, type FirestoreResult, type NoDbResult, NO_DB_ERROR };
|
|
58
|
-
export { isSuccess, isError } from "./result/result.util";
|
|
20
|
+
// Re-export operation utilities
|
|
21
|
+
export {
|
|
22
|
+
withFirestore,
|
|
23
|
+
withFirestoreVoid,
|
|
24
|
+
withFirestoreBool,
|
|
25
|
+
} from "./operation/operation-executor.util";
|
|
59
26
|
|
|
60
27
|
// Re-export transaction utilities
|
|
61
28
|
export { runTransaction, serverTimestamp } from "./transaction/transaction.util";
|
|
62
|
-
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deduplication Utilities
|
|
3
|
-
* Utilities for query deduplication
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
export { TimerManager } from './timer-manager.util';
|
|
7
|
-
export type { TimerManagerOptions } from './timer-manager.util';
|
|
8
|
-
|
|
9
|
-
export { generateQueryKey, createQueryKey } from './query-key-generator.util';
|
|
10
|
-
export type { QueryKey } from './query-key-generator.util';
|
|
11
|
-
|
|
12
|
-
export { PendingQueryManager } from './pending-query-manager.util';
|
|
13
|
-
export type { PendingQuery } from './pending-query-manager.util';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Mapper Utilities
|
|
3
|
-
* Utilities for document mapping and enrichment
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
export { mapDocuments, filterNull, extractDocumentData } from './base-mapper.util';
|
|
7
|
-
export { mapWithEnrichment, mapWithBatchEnrichment } from './enrichment-mapper.util';
|
|
8
|
-
export { mapWithMultipleEnrichments } from './multi-enrichment-mapper.util';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Query Utilities
|
|
3
|
-
* Utilities for building Firestore queries
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
export { applyFieldFilter, createInFilter, createEqualFilter, createFieldFilter } from './filters.util';
|
|
7
|
-
export type { FieldFilter } from './filters.util';
|
|
8
|
-
|
|
9
|
-
export { applyDateRange, applySort, applyCursor, applyLimit } from './modifiers.util';
|
|
10
|
-
export type { SortOptions, DateRangeOptions } from './modifiers.util';
|