@intuitionrobotics/firebase 0.42.65 → 0.42.67
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/app-backend/firestore/FirestoreV2Collection.d.ts +1 -1
- package/app-backend/firestore/FirestoreV2Collection.js +3 -3
- package/app-backend/firestore/FirestoreV2Collection.js.map +1 -1
- package/app-backend/firestore/FirestoreWrapper.js +1 -1
- package/app-backend/firestore/FirestoreWrapper.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,4 +4,4 @@ import { Query } from "firebase-admin/lib/firestore";
|
|
|
4
4
|
export declare type FirestoreV2Collection<Type extends object> = CollectionReference<Type> & {
|
|
5
5
|
buildQuery: (query?: FirestoreQuery<Type>) => Query<Type>;
|
|
6
6
|
};
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const enhanceCollection: <Type extends object>(collection: CollectionReference<Type>) => FirestoreV2Collection<Type>;
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.
|
|
20
|
+
exports.enhanceCollection = void 0;
|
|
21
21
|
const FirestoreInterface_1 = require("./FirestoreInterface");
|
|
22
|
-
const
|
|
22
|
+
const enhanceCollection = (collection) => {
|
|
23
23
|
const collectionRef = collection;
|
|
24
24
|
collectionRef.buildQuery = (ourQuery) => {
|
|
25
25
|
return FirestoreInterface_1.FirestoreInterface.buildQuery(collection, ourQuery);
|
|
26
26
|
};
|
|
27
27
|
return collectionRef;
|
|
28
28
|
};
|
|
29
|
-
exports.
|
|
29
|
+
exports.enhanceCollection = enhanceCollection;
|
|
30
30
|
//# sourceMappingURL=FirestoreV2Collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FirestoreV2Collection.js","sourceRoot":"","sources":["../../../src/main/app-backend/firestore/FirestoreV2Collection.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAGH,6DAAwD;AAQjD,MAAM,
|
|
1
|
+
{"version":3,"file":"FirestoreV2Collection.js","sourceRoot":"","sources":["../../../src/main/app-backend/firestore/FirestoreV2Collection.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAGH,6DAAwD;AAQjD,MAAM,iBAAiB,GAAG,CAAsB,UAAqC,EAA+B,EAAE;IACzH,MAAM,aAAa,GAAG,UAAyC,CAAC;IAChE,aAAa,CAAC,UAAU,GAAG,CAAC,QAA+B,EAAe,EAAE;QACxE,OAAO,uCAAkB,CAAC,UAAU,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IAC/D,CAAC,CAAC;IAEF,OAAO,aAAa,CAAC;AACzB,CAAC,CAAC;AAPW,QAAA,iBAAiB,qBAO5B"}
|
|
@@ -31,7 +31,7 @@ class FirestoreWrapper extends FirebaseBaseWrapper_1.FirebaseBaseWrapper {
|
|
|
31
31
|
const collection = this.collectionsV2[name];
|
|
32
32
|
if (collection)
|
|
33
33
|
return collection;
|
|
34
|
-
const enchanceCollection1 = FirestoreV2Collection_1.
|
|
34
|
+
const enchanceCollection1 = FirestoreV2Collection_1.enhanceCollection(this.firestore.collection(name));
|
|
35
35
|
return this.collectionsV2[name] = enchanceCollection1;
|
|
36
36
|
}
|
|
37
37
|
getSdkInstance() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FirestoreWrapper.js","sourceRoot":"","sources":["../../../src/main/app-backend/firestore/FirestoreWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA0D;AAI1D,qEAAgE;AAChE,wDAA2E;AAC3E,
|
|
1
|
+
{"version":3,"file":"FirestoreWrapper.js","sourceRoot":"","sources":["../../../src/main/app-backend/firestore/FirestoreWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA0D;AAI1D,qEAAgE;AAChE,wDAA2E;AAC3E,mEAAiF;AAGjF,MAAa,gBACT,SAA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