@dereekb/dbx-firebase 8.7.3 → 8.7.6
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.subcollection.document.mjs +40 -1
- package/fesm2015/dereekb-dbx-firebase.mjs +40 -1
- package/fesm2015/dereekb-dbx-firebase.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-firebase.mjs +40 -1
- package/fesm2020/dereekb-dbx-firebase.mjs.map +1 -1
- package/lib/model/store/store.subcollection.document.d.ts +32 -4
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { FirestoreDocument, FirestoreCollectionWithParentFactory, FirestoreCollection } from '@dereekb/firebase';
|
|
1
|
+
import { Observable, Subscription } from 'rxjs';
|
|
2
|
+
import { FirestoreDocument, FirestoreCollectionWithParentFactory, FirestoreCollection, DocumentReference } from '@dereekb/firebase';
|
|
3
3
|
import { Maybe } from '@dereekb/util';
|
|
4
4
|
import { AbstractDbxFirebaseDocumentStore, DbxFirebaseDocumentStore, DbxFirebaseDocumentStoreContextState } from './store.document';
|
|
5
5
|
import { DbxFirebaseComponentStoreWithParentSetParentStoreEffectFunction, DbxFirebaseComponentStoreWithParent, DbxFirebaseComponentStoreWithParentContextState, DbxFirebaseComponentStoreWithParentSetParentEffectFunction } from './store.subcollection.rxjs';
|
|
@@ -22,11 +22,39 @@ export declare class AbstractDbxFirebaseDocumentWithParentStore<T, PT, D extends
|
|
|
22
22
|
/**
|
|
23
23
|
* Sets the collection factory function to use.
|
|
24
24
|
*/
|
|
25
|
-
readonly setCollectionFactory: (observableOrValue: FirestoreCollectionWithParentFactory<T, PT, D, PD, import("@dereekb/firebase").FirestoreCollectionWithParent<T, PT, D, PD>> | Observable<FirestoreCollectionWithParentFactory<T, PT, D, PD, import("@dereekb/firebase").FirestoreCollectionWithParent<T, PT, D, PD>>>) =>
|
|
25
|
+
readonly setCollectionFactory: (observableOrValue: FirestoreCollectionWithParentFactory<T, PT, D, PD, import("@dereekb/firebase").FirestoreCollectionWithParent<T, PT, D, PD>> | Observable<FirestoreCollectionWithParentFactory<T, PT, D, PD, import("@dereekb/firebase").FirestoreCollectionWithParent<T, PT, D, PD>>>) => Subscription;
|
|
26
26
|
/**
|
|
27
27
|
* Sets the parent on the current state.
|
|
28
28
|
*/
|
|
29
|
-
readonly _setParentDocument: (() => void) | ((observableOrValue: Maybe<PD> | Observable<Maybe<PD>>) =>
|
|
29
|
+
readonly _setParentDocument: (() => void) | ((observableOrValue: Maybe<PD> | Observable<Maybe<PD>>) => Subscription) | (PD extends void ? () => void : (observableOrValue: Maybe<PD> | Observable<Maybe<PD>>) => Subscription);
|
|
30
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxFirebaseDocumentWithParentStore<any, any, any, any, any>, never>;
|
|
31
31
|
static ɵprov: i0.ɵɵInjectableDeclaration<AbstractDbxFirebaseDocumentWithParentStore<any, any, any, any, any>>;
|
|
32
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* AbstractDbxFirebaseDocumentWithParentStore extension for use with SingleItemFirestoreCollection.
|
|
35
|
+
*/
|
|
36
|
+
export declare class AbstractSingleItemDbxFirebaseDocument<T, PT, D extends FirestoreDocument<T> = FirestoreDocument<T>, PD extends FirestoreDocument<PT> = FirestoreDocument<PT>, C extends DbxFirebaseDocumentWithParentStoreContextState<T, PT, D, PD> = DbxFirebaseDocumentWithParentStoreContextState<T, PT, D, PD>> extends AbstractDbxFirebaseDocumentWithParentStore<T, PT, D, PD, C> {
|
|
37
|
+
/**
|
|
38
|
+
* Sets the SingleItemFirestoreCollection to use.
|
|
39
|
+
*/
|
|
40
|
+
readonly setFirestoreCollection: (() => void) | ((observableOrValue: Maybe<FirestoreCollection<T, D>> | Observable<Maybe<FirestoreCollection<T, D>>>) => Subscription);
|
|
41
|
+
/**
|
|
42
|
+
* Does nothing on a AbstractSingleItemDbxFirebaseDocument.
|
|
43
|
+
*
|
|
44
|
+
* Ref is set with the FirestoreCollection
|
|
45
|
+
*/
|
|
46
|
+
readonly setId: (observableOrValue: Maybe<string> | Observable<Maybe<string>>) => Subscription;
|
|
47
|
+
/**
|
|
48
|
+
* Does nothing on a AbstractSingleItemDbxFirebaseDocument.
|
|
49
|
+
*
|
|
50
|
+
* Ref is set with the FirestoreCollection
|
|
51
|
+
*/
|
|
52
|
+
readonly setKey: (observableOrValue: Maybe<string> | Observable<Maybe<string>>) => Subscription;
|
|
53
|
+
/**
|
|
54
|
+
* Does nothing on a AbstractSingleItemDbxFirebaseDocument.
|
|
55
|
+
*
|
|
56
|
+
* Ref is set with the FirestoreCollection
|
|
57
|
+
*/
|
|
58
|
+
readonly setRef: (observableOrValue: Maybe<DocumentReference<T>> | Observable<Maybe<DocumentReference<T>>>) => Subscription;
|
|
59
|
+
readonly clearRefs: () => void;
|
|
60
|
+
}
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-firebase",
|
|
3
|
-
"version": "8.7.
|
|
3
|
+
"version": "8.7.6",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^13.0.0",
|
|
6
6
|
"@angular/core": "^13.0.0",
|
|
7
|
-
"@dereekb/util": "8.7.
|
|
7
|
+
"@dereekb/util": "8.7.6",
|
|
8
8
|
"firebase": "^9.8.0",
|
|
9
9
|
"rxjs": "^7.0.0",
|
|
10
10
|
"@angular/fire": "^7.4.1",
|
|
11
|
-
"@dereekb/firebase": "8.7.
|
|
12
|
-
"@dereekb/dbx-core": "8.7.
|
|
11
|
+
"@dereekb/firebase": "8.7.6",
|
|
12
|
+
"@dereekb/dbx-core": "8.7.6",
|
|
13
13
|
"@angular/material": "^13.0.0",
|
|
14
|
-
"@dereekb/dbx-web": "8.7.
|
|
15
|
-
"@dereekb/dbx-form": "8.7.
|
|
14
|
+
"@dereekb/dbx-web": "8.7.6",
|
|
15
|
+
"@dereekb/dbx-form": "8.7.6"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"tslib": "^2.3.0"
|