@dereekb/dbx-firebase 8.12.6 → 8.12.7
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/esm2020/lib/model/store/store.document.crud.mjs +15 -2
- package/fesm2015/dereekb-dbx-firebase.mjs +14 -1
- package/fesm2015/dereekb-dbx-firebase.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-firebase.mjs +14 -1
- package/fesm2020/dereekb-dbx-firebase.mjs.map +1 -1
- package/lib/model/store/store.document.crud.d.ts +25 -9
- package/package.json +6 -6
|
@@ -2703,14 +2703,27 @@ function firebaseDocumentStoreCreateFunction(store, fn) {
|
|
|
2703
2703
|
return result;
|
|
2704
2704
|
})));
|
|
2705
2705
|
}
|
|
2706
|
+
// MARK: Update
|
|
2707
|
+
/**
|
|
2708
|
+
* Creates a DbxFirebaseDocumentStoreFunction for update.
|
|
2709
|
+
*
|
|
2710
|
+
* The store's current key is always injected into the params of the request.
|
|
2711
|
+
*
|
|
2712
|
+
* @param store
|
|
2713
|
+
* @param fn
|
|
2714
|
+
* @returns
|
|
2715
|
+
*/
|
|
2706
2716
|
function firebaseDocumentStoreUpdateFunction(store, fn) {
|
|
2707
2717
|
return (params) => loadingStateFromObs(store.key$.pipe(first(), switchMap((key) => fn({
|
|
2708
2718
|
...params,
|
|
2709
2719
|
key // inject key into the parameters.
|
|
2710
2720
|
}))));
|
|
2711
2721
|
}
|
|
2722
|
+
// MARK: Delete
|
|
2712
2723
|
/**
|
|
2713
|
-
*
|
|
2724
|
+
* Creates a DbxFirebaseDocumentStoreFunction for delete.
|
|
2725
|
+
*
|
|
2726
|
+
* The store's current key is always injected into the params of the request.
|
|
2714
2727
|
*
|
|
2715
2728
|
* @param store
|
|
2716
2729
|
* @param fn
|