@dereekb/firebase 8.1.1 → 8.1.2
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/CHANGELOG.md +4 -0
- package/package.json +5 -5
- package/src/lib/common/firestore/accessor/document.d.ts +11 -10
- package/src/lib/common/firestore/accessor/document.js +5 -2
- package/src/lib/common/firestore/accessor/document.js.map +1 -1
- package/src/lib/common/firestore/accessor/document.utility.d.ts +1 -1
- package/src/lib/common/firestore/collection/collection.d.ts +72 -10
- package/src/lib/common/firestore/collection/collection.js +57 -8
- package/src/lib/common/firestore/collection/collection.js.map +1 -1
- package/test/CHANGELOG.md +4 -0
- package/test/package.json +7 -7
- package/test/src/lib/common/firestore.mock.item.d.ts +7 -7
- package/test/src/lib/common/firestore.mock.item.js +7 -7
- package/test/src/lib/common/firestore.mock.item.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [8.1.2](https://github.com/dereekb/dbx-components/compare/v8.1.1-dev...v8.1.2) (2022-06-19)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [8.1.1](https://github.com/dereekb/dbx-components/compare/v8.1.0-dev...v8.1.1) (2022-06-18)
|
|
6
10
|
|
|
7
11
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.2",
|
|
4
4
|
"devDependencies": {
|
|
5
5
|
"@firebase/rules-unit-testing": "^2.0.0"
|
|
6
6
|
},
|
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
"rxfire": "^6.0.3",
|
|
24
24
|
"rxjs": "^7.0.0",
|
|
25
25
|
"firebase": "^9.8.0",
|
|
26
|
-
"@dereekb/util": "8.1.
|
|
26
|
+
"@dereekb/util": "8.1.2",
|
|
27
27
|
"make-error": "^1.3.0",
|
|
28
28
|
"ts-essentials": "^9.1.2",
|
|
29
29
|
"extra-set": "^2.2.11",
|
|
30
|
-
"@dereekb/rxjs": "8.1.
|
|
30
|
+
"@dereekb/rxjs": "8.1.2",
|
|
31
31
|
"ms": "^3.0.0-canary.1",
|
|
32
|
-
"@dereekb/model": "8.1.
|
|
32
|
+
"@dereekb/model": "8.1.2",
|
|
33
33
|
"class-transformer": "^0.5.1",
|
|
34
34
|
"class-validator": "^0.13.2",
|
|
35
|
-
"@dereekb/date": "8.1.
|
|
35
|
+
"@dereekb/date": "8.1.2",
|
|
36
36
|
"date-fns": "^2.28.0",
|
|
37
37
|
"date-fns-tz": "^1.3.0",
|
|
38
38
|
"rrule": "2.7.0",
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { FirestoreAccessorDriverRef } from '../driver/accessor';
|
|
3
|
-
import { FirestoreModelId, FirestoreModelIdRef, FirestoreModelKey, FirestoreModelKeyRef
|
|
3
|
+
import { FirestoreCollectionNameRef, FirestoreModelId, FirestoreModelIdentityCollectionName, FirestoreModelIdentityModelType, FirestoreModelIdentityRef, FirestoreModelIdRef, FirestoreModelKey, FirestoreModelKeyRef } from './../collection/collection';
|
|
4
4
|
import { DocumentReference, CollectionReference, Transaction, WriteBatch, DocumentSnapshot, SnapshotOptions, WriteResult } from '../types';
|
|
5
5
|
import { FirestoreDocumentDataAccessor } from './accessor';
|
|
6
6
|
import { CollectionReferenceRef, DocumentReferenceRef, FirestoreContextReference, FirestoreDataConverterRef } from '../reference';
|
|
7
7
|
import { FirestoreDocumentContext } from './context';
|
|
8
8
|
import { Maybe } from '@dereekb/util';
|
|
9
|
-
import {
|
|
9
|
+
import { FirestoreModelTypeRef, FirestoreModelIdentity, FirestoreModelTypeModelIdentityRef } from '../collection/collection';
|
|
10
10
|
import { InterceptAccessorFactoryFunction } from './accessor.wrap';
|
|
11
|
-
export interface FirestoreDocument<T,
|
|
11
|
+
export interface FirestoreDocument<T, I extends FirestoreModelIdentity = FirestoreModelIdentity> extends DocumentReferenceRef<T>, CollectionReferenceRef<T>, FirestoreModelIdentityRef<I>, FirestoreModelTypeRef<FirestoreModelIdentityModelType<I>>, FirestoreCollectionNameRef<FirestoreModelIdentityCollectionName<I>>, FirestoreModelKeyRef, FirestoreModelIdRef {
|
|
12
12
|
readonly accessor: FirestoreDocumentDataAccessor<T>;
|
|
13
13
|
readonly id: string;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* Abstract FirestoreDocument implementation that extends a FirestoreDocumentDataAccessor.
|
|
17
17
|
*/
|
|
18
|
-
export declare abstract class AbstractFirestoreDocument<T, D extends AbstractFirestoreDocument<T, any,
|
|
18
|
+
export declare abstract class AbstractFirestoreDocument<T, D extends AbstractFirestoreDocument<T, any, I>, I extends FirestoreModelIdentity = FirestoreModelIdentity> implements FirestoreDocument<T>, LimitedFirestoreDocumentAccessorRef<T, D>, CollectionReferenceRef<T> {
|
|
19
19
|
readonly accessor: FirestoreDocumentDataAccessor<T>;
|
|
20
20
|
readonly documentAccessor: LimitedFirestoreDocumentAccessor<T, D>;
|
|
21
21
|
readonly stream$: Observable<DocumentSnapshot<T>>;
|
|
22
22
|
readonly data$: Observable<T>;
|
|
23
23
|
constructor(accessor: FirestoreDocumentDataAccessor<T>, documentAccessor: LimitedFirestoreDocumentAccessor<T, D>);
|
|
24
|
-
abstract get modelIdentity():
|
|
25
|
-
get modelType():
|
|
24
|
+
abstract get modelIdentity(): I;
|
|
25
|
+
get modelType(): FirestoreModelIdentityModelType<I>;
|
|
26
|
+
get collectionName(): FirestoreModelIdentityCollectionName<I>;
|
|
26
27
|
get id(): FirestoreModelId;
|
|
27
28
|
get key(): FirestoreModelKey;
|
|
28
29
|
get documentRef(): DocumentReference<T>;
|
|
@@ -41,7 +42,7 @@ export interface LimitedFirestoreDocumentAccessorRef<T, D extends FirestoreDocum
|
|
|
41
42
|
readonly documentAccessor: A;
|
|
42
43
|
}
|
|
43
44
|
export declare type FirestoreDocumentAccessorRef<T, D extends FirestoreDocument<T> = FirestoreDocument<T>> = LimitedFirestoreDocumentAccessorRef<T, D, FirestoreDocumentAccessor<T, D>>;
|
|
44
|
-
export interface LimitedFirestoreDocumentAccessor<T, D extends FirestoreDocument<T> = FirestoreDocument<T>> extends
|
|
45
|
+
export interface LimitedFirestoreDocumentAccessor<T, D extends FirestoreDocument<T> = FirestoreDocument<T>> extends FirestoreModelTypeModelIdentityRef, FirestoreAccessorDriverRef {
|
|
45
46
|
readonly databaseContext: FirestoreDocumentContext<T>;
|
|
46
47
|
/**
|
|
47
48
|
* Loads a document from the datastore.
|
|
@@ -110,7 +111,7 @@ export interface LimitedFirestoreDocumentAccessorFactory<T, D extends FirestoreD
|
|
|
110
111
|
/**
|
|
111
112
|
* FirestoreDocumentAccessor configuration.
|
|
112
113
|
*/
|
|
113
|
-
export interface LimitedFirestoreDocumentAccessorFactoryConfig<T, D extends FirestoreDocument<T> = FirestoreDocument<T>> extends FirestoreDataConverterRef<T>,
|
|
114
|
+
export interface LimitedFirestoreDocumentAccessorFactoryConfig<T, D extends FirestoreDocument<T> = FirestoreDocument<T>> extends FirestoreDataConverterRef<T>, FirestoreModelTypeModelIdentityRef, FirestoreContextReference, FirestoreAccessorDriverRef {
|
|
114
115
|
/**
|
|
115
116
|
* Optional InterceptAccessorFactoryFunction to intercept/return a modified accessor factory.
|
|
116
117
|
*/
|
|
@@ -159,10 +160,10 @@ export interface FirestoreDocumentAccessorContextExtension<T, D extends Firestor
|
|
|
159
160
|
}
|
|
160
161
|
export declare function firestoreDocumentAccessorContextExtension<T, D extends FirestoreDocument<T> = FirestoreDocument<T>>({ documentAccessor, firestoreAccessorDriver }: FirestoreDocumentAccessorContextExtensionConfig<T, D>): FirestoreDocumentAccessorContextExtension<T, D>;
|
|
161
162
|
export declare function firestoreDocumentAccessorContextExtension<T, D extends FirestoreDocument<T> = FirestoreDocument<T>>({ documentAccessor, firestoreAccessorDriver }: LimitedFirestoreDocumentAccessorContextExtensionConfig<T, D>): LimitedFirestoreDocumentAccessorContextExtension<T, D>;
|
|
162
|
-
export interface FirestoreDocumentWithParent<P, T> extends FirestoreDocument<T> {
|
|
163
|
+
export interface FirestoreDocumentWithParent<P, T, I extends FirestoreModelIdentity = FirestoreModelIdentity> extends FirestoreDocument<T, I> {
|
|
163
164
|
readonly parent: DocumentReference<P>;
|
|
164
165
|
}
|
|
165
|
-
export declare abstract class AbstractFirestoreDocumentWithParent<P, T, D extends AbstractFirestoreDocument<T, any
|
|
166
|
+
export declare abstract class AbstractFirestoreDocumentWithParent<P, T, D extends AbstractFirestoreDocument<T, any, I>, I extends FirestoreModelIdentity = FirestoreModelIdentity> extends AbstractFirestoreDocument<T, D, I> implements FirestoreDocumentWithParent<P, T> {
|
|
166
167
|
get parent(): DocumentReference<P>;
|
|
167
168
|
constructor(accessor: FirestoreDocumentDataAccessor<T>, documentAccessor: LimitedFirestoreDocumentAccessor<T, D>);
|
|
168
169
|
}
|
|
@@ -18,6 +18,9 @@ class AbstractFirestoreDocument {
|
|
|
18
18
|
get modelType() {
|
|
19
19
|
return this.modelIdentity.modelType;
|
|
20
20
|
}
|
|
21
|
+
get collectionName() {
|
|
22
|
+
return this.modelIdentity.collectionName;
|
|
23
|
+
}
|
|
21
24
|
get id() {
|
|
22
25
|
return this.documentRef.id;
|
|
23
26
|
}
|
|
@@ -49,7 +52,7 @@ class AbstractFirestoreDocument {
|
|
|
49
52
|
exports.AbstractFirestoreDocument = AbstractFirestoreDocument;
|
|
50
53
|
function limitedFirestoreDocumentAccessorFactory(config) {
|
|
51
54
|
const { firestoreContext, firestoreAccessorDriver, makeDocument, accessorFactory: interceptAccessorFactory, converter, modelIdentity } = config;
|
|
52
|
-
const expectedCollectionName = firestoreAccessorDriver.fuzzedPathForPath ? firestoreAccessorDriver.fuzzedPathForPath(modelIdentity.
|
|
55
|
+
const expectedCollectionName = firestoreAccessorDriver.fuzzedPathForPath ? firestoreAccessorDriver.fuzzedPathForPath(modelIdentity.collectionName) : modelIdentity.collectionName;
|
|
53
56
|
return (context) => {
|
|
54
57
|
const databaseContext = context !== null && context !== void 0 ? context : config.firestoreAccessorDriver.defaultContextFactory();
|
|
55
58
|
const dataAccessorFactory = interceptAccessorFactory ? interceptAccessorFactory(databaseContext.accessorFactory) : databaseContext.accessorFactory;
|
|
@@ -64,7 +67,7 @@ function limitedFirestoreDocumentAccessorFactory(config) {
|
|
|
64
67
|
var _a;
|
|
65
68
|
const ref = firestoreAccessorDriver.docAtPath(firestoreContext.firestore, fullPath);
|
|
66
69
|
if (((_a = ref.parent) === null || _a === void 0 ? void 0 : _a.id) !== expectedCollectionName) {
|
|
67
|
-
throw new Error(`unexpected key/path "${fullPath}" for expected type "${modelIdentity.
|
|
70
|
+
throw new Error(`unexpected key/path "${fullPath}" for expected type "${modelIdentity.collectionName}"/"${modelIdentity.modelType}".`);
|
|
68
71
|
}
|
|
69
72
|
return ref.withConverter(converter);
|
|
70
73
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.js","sourceRoot":"","sources":["../../../../../../../../packages/firebase/src/lib/common/firestore/accessor/document.ts"],"names":[],"mappings":";AAAA,mDAAmD;AACnD,0GAA0G;;;AAM1G,yCAAkH;AAGlH,wCAA6C;AAS7C;;GAEG;AACH,MAAsB,yBAAyB;IAI7C,YAAqB,QAA0C,EAAW,gBAAwD;QAA7G,aAAQ,GAAR,QAAQ,CAAkC;QAAW,qBAAgB,GAAhB,gBAAgB,CAAwC;QAHzH,YAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;QACjC,UAAK,GAAkB,IAAA,iCAAsB,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAEgE,CAAC;IAItI,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"document.js","sourceR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ACpC,CAAC;CACF;AARD,kFAQC;AAcD,SAAgB,+BAA+B,CAA2D,MAAmD;IAC3J,MAAM,EAAE,oBAAoB,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;IAE/D,OAAO;QACL,YAAY;YACV,OAAO,SAAS,CAAC,gBAAgB,EAAE,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;QACpE,CAAC;QACD,0BAA0B,CAAC,WAA+B;YACxD,OAAO,SAAS,CAAC,8BAA8B,CAAC,WAAW,CAAC,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;QAC7F,CAAC;QACD,yBAAyB,CAAC,UAA6B;YACrD,OAAO,SAAS,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;QAC3F,CAAC;KACF,CAAC;AACJ,CAAC;AAdD,0EAcC"}
|
|
@@ -57,4 +57,4 @@ export declare function useDocumentSnapshot<T, D extends FirestoreDocument<T>, O
|
|
|
57
57
|
/**
|
|
58
58
|
* MappedUseAsyncFunction to load snapshot data from the input document and use it.
|
|
59
59
|
*/
|
|
60
|
-
export declare const useDocumentSnapshotData: import("@dereekb/util").MappedUseAsyncFunction<FirestoreDocument<unknown, string
|
|
60
|
+
export declare const useDocumentSnapshotData: import("@dereekb/util").MappedUseAsyncFunction<FirestoreDocument<unknown, import("..").FirestoreModelIdentity<string, string>>, unknown>;
|
|
@@ -4,7 +4,7 @@ import { FirestoreItemPageIterationBaseConfig, FirestoreItemPageIterationFactory
|
|
|
4
4
|
import { FirestoreQueryFactory } from '../query/query';
|
|
5
5
|
import { FirestoreDrivers } from '../driver/driver';
|
|
6
6
|
import { FirestoreCollectionQueryFactory } from './collection.query';
|
|
7
|
-
import { ModelKey, ModelTypeString } from '@dereekb/util';
|
|
7
|
+
import { ArrayOrValue, ModelKey, ModelTypeString } from '@dereekb/util';
|
|
8
8
|
/**
|
|
9
9
|
* The camelCase model name/type.
|
|
10
10
|
*/
|
|
@@ -21,14 +21,23 @@ export declare type FirestoreModelIdentityType = 'root' | 'nested';
|
|
|
21
21
|
/**
|
|
22
22
|
* A firestore model's identity
|
|
23
23
|
*/
|
|
24
|
-
export declare type FirestoreModelIdentity<M extends FirestoreModelType = FirestoreModelType, C extends FirestoreCollectionName = FirestoreCollectionName> = FirestoreModelTypeRef<M> & {
|
|
24
|
+
export declare type FirestoreModelIdentity<M extends FirestoreModelType = FirestoreModelType, C extends FirestoreCollectionName = FirestoreCollectionName> = FirestoreModelTypeRef<M> & FirestoreCollectionNameRef<C> & {
|
|
25
25
|
readonly type: FirestoreModelIdentityType;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated use collectionName instead.
|
|
28
|
+
*
|
|
29
|
+
* Will be removed in the future.
|
|
30
|
+
*/
|
|
26
31
|
readonly collection: C;
|
|
27
32
|
/**
|
|
28
33
|
* @deprecated use modelType instead.
|
|
34
|
+
*
|
|
35
|
+
* Will be removed in the future.
|
|
29
36
|
*/
|
|
30
37
|
readonly model: M;
|
|
31
38
|
};
|
|
39
|
+
export declare type FirestoreModelIdentityModelType<I> = I extends FirestoreModelIdentity<infer M> ? M : never;
|
|
40
|
+
export declare type FirestoreModelIdentityCollectionName<I> = I extends FirestoreModelIdentity<infer M, infer C> ? C : never;
|
|
32
41
|
/**
|
|
33
42
|
* A root-level FirestoreModelIdentity
|
|
34
43
|
*/
|
|
@@ -58,7 +67,7 @@ export declare function firestoreModelIdentity<P extends FirestoreModelIdentity<
|
|
|
58
67
|
export declare function firestoreModelIdentity<M extends FirestoreModelType, C extends FirestoreCollectionName = FirestoreCollectionName>(modelName: M, collectionName: C): RootFirestoreModelIdentity<M, C>;
|
|
59
68
|
export declare function firestoreModelIdentity<P extends FirestoreModelIdentity<string, string>, M extends FirestoreModelType, C extends FirestoreCollectionName = FirestoreCollectionName>(parent: P, modelName: M, collectionName: C): FirestoreModelIdentityWithParent<P, M, C>;
|
|
60
69
|
/**
|
|
61
|
-
* Reference to a
|
|
70
|
+
* Reference to a FirestoreModelType
|
|
62
71
|
*/
|
|
63
72
|
export interface FirestoreModelTypeRef<M extends FirestoreModelType = FirestoreModelType> {
|
|
64
73
|
/**
|
|
@@ -76,20 +85,29 @@ export declare function firestoreModelType(modelTypeInput: FirestoreModelType |
|
|
|
76
85
|
/**
|
|
77
86
|
* Reference to a FirestoreCollectionName
|
|
78
87
|
*/
|
|
79
|
-
export interface FirestoreCollectionNameRef {
|
|
88
|
+
export interface FirestoreCollectionNameRef<C extends FirestoreCollectionName = FirestoreCollectionName> {
|
|
80
89
|
/**
|
|
81
90
|
* Returns the FirestoreCollectionName for this context.
|
|
82
91
|
*/
|
|
83
|
-
readonly collectionName:
|
|
92
|
+
readonly collectionName: C;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Reference to a FirestoreModelIdentity via the FirestoreModelType and FirestoreCollectionName
|
|
96
|
+
*/
|
|
97
|
+
export interface FirestoreModelTypeModelIdentityRef<M extends FirestoreModelType = FirestoreModelType, C extends FirestoreCollectionName = FirestoreCollectionName> {
|
|
98
|
+
/**
|
|
99
|
+
* Returns the FirestoreModelIdentity for this context.
|
|
100
|
+
*/
|
|
101
|
+
readonly modelIdentity: FirestoreModelIdentity<M, C>;
|
|
84
102
|
}
|
|
85
103
|
/**
|
|
86
104
|
* Reference to a FirestoreModelIdentity
|
|
87
105
|
*/
|
|
88
|
-
export interface FirestoreModelIdentityRef<
|
|
106
|
+
export interface FirestoreModelIdentityRef<I extends FirestoreModelIdentity> {
|
|
89
107
|
/**
|
|
90
108
|
* Returns the FirestoreModelIdentity for this context.
|
|
91
109
|
*/
|
|
92
|
-
readonly modelIdentity:
|
|
110
|
+
readonly modelIdentity: I;
|
|
93
111
|
}
|
|
94
112
|
/**
|
|
95
113
|
* The model's id within a collection.
|
|
@@ -118,15 +136,54 @@ export interface FirestoreModelIdRef {
|
|
|
118
136
|
* collection/12345/subcollection/67890
|
|
119
137
|
*/
|
|
120
138
|
export declare type FirestoreModelKey = ModelKey;
|
|
121
|
-
export declare type FirestoreIdentityModelKey<I extends RootFirestoreModelIdentity, K extends FirestoreModelId = FirestoreModelId> = I extends RootFirestoreModelIdentity<infer M, infer C> ? `${C}/${K}` : never;
|
|
122
139
|
/**
|
|
123
|
-
*
|
|
140
|
+
* A part of a FirestoreModelKey.
|
|
141
|
+
*/
|
|
142
|
+
export declare type FirestoreModelKeyPart<C extends FirestoreCollectionName = FirestoreCollectionName, K extends FirestoreModelId = FirestoreModelId> = `${C}/${K}`;
|
|
143
|
+
/**
|
|
144
|
+
* One part of a FirestoreModelKe
|
|
145
|
+
*/
|
|
146
|
+
export declare type FirestoreCollectionModelKeyPart<N extends FirestoreCollectionNameRef = FirestoreCollectionNameRef, K extends FirestoreModelId = FirestoreModelId> = N extends FirestoreCollectionNameRef<infer C> ? FirestoreModelKeyPart<C, K> : never;
|
|
147
|
+
export declare type FirestoreCollectionModelKey<N extends FirestoreCollectionNameRef = FirestoreCollectionNameRef, K extends FirestoreModelId = FirestoreModelId> = FirestoreCollectionModelKeyPart<N, K>;
|
|
148
|
+
/**
|
|
149
|
+
* Creates a firestoreModelKeyPart
|
|
124
150
|
*
|
|
125
151
|
* @param identity
|
|
126
152
|
* @param id
|
|
127
153
|
* @returns
|
|
128
154
|
*/
|
|
129
|
-
export declare function
|
|
155
|
+
export declare function firestoreModelKeyPart<N extends FirestoreCollectionNameRef, K extends FirestoreModelId = FirestoreModelId>(identity: N, id: K): FirestoreCollectionModelKeyPart<N, K>;
|
|
156
|
+
/**
|
|
157
|
+
* Creates a firestoreModelKey for RootFirestoreModelIdentity values.
|
|
158
|
+
*
|
|
159
|
+
* @param identity
|
|
160
|
+
* @param id
|
|
161
|
+
* @returns
|
|
162
|
+
*/
|
|
163
|
+
export declare const firestoreModelKey: <I extends RootFirestoreModelIdentity<string, string>, K extends string = string>(identity: I, id: K) => FirestoreCollectionModelKeyPart<I, K>;
|
|
164
|
+
/**
|
|
165
|
+
* Creates an array of FirestoreCollectionModelKey values from the input ids.
|
|
166
|
+
*
|
|
167
|
+
* @param identity
|
|
168
|
+
* @param ids
|
|
169
|
+
* @returns
|
|
170
|
+
*/
|
|
171
|
+
export declare function firestoreModelKeys<I extends RootFirestoreModelIdentity, K extends FirestoreModelId = FirestoreModelId>(identity: I, ids: K[]): FirestoreCollectionModelKey<I, K>[];
|
|
172
|
+
/**
|
|
173
|
+
* Joins together a number of FirestoreModelKeyPart values.
|
|
174
|
+
*
|
|
175
|
+
* @param parts
|
|
176
|
+
* @returns
|
|
177
|
+
*/
|
|
178
|
+
export declare function firestoreModelKeyPath(...parts: FirestoreModelKeyPart[]): FirestoreModelKey;
|
|
179
|
+
/**
|
|
180
|
+
* Creates a number of child paths from the parent path.
|
|
181
|
+
*
|
|
182
|
+
* @param parent
|
|
183
|
+
* @param children
|
|
184
|
+
* @returns
|
|
185
|
+
*/
|
|
186
|
+
export declare function childFirestoreModelKeyPath(parent: FirestoreModelKeyPart, children: ArrayOrValue<FirestoreModelKeyPart>): FirestoreModelKey[];
|
|
130
187
|
/**
|
|
131
188
|
* Reference to a FirestoreModelKey
|
|
132
189
|
*/
|
|
@@ -166,10 +223,15 @@ export interface FirestoreCollectionRef<T, D extends FirestoreDocument<T> = Fire
|
|
|
166
223
|
export declare function makeFirestoreCollection<T, D extends FirestoreDocument<T>>(inputConfig: FirestoreCollectionConfig<T, D>): FirestoreCollection<T, D>;
|
|
167
224
|
/**
|
|
168
225
|
* Alternative name for FirestoreModelType.
|
|
226
|
+
*
|
|
227
|
+
* @deprecated replaced by FirestoreModelType
|
|
169
228
|
*/
|
|
170
229
|
export declare type FirestoreModelName = FirestoreModelType;
|
|
171
230
|
/**
|
|
172
231
|
* @deprecated replaced by FirestoreModelTypeRef
|
|
173
232
|
*/
|
|
174
233
|
export declare type FirestoreModelNameRef<M extends FirestoreModelType = FirestoreModelType> = FirestoreModelTypeRef<M>;
|
|
234
|
+
/**
|
|
235
|
+
* @deprecated replaced by FirestoreModelTypes
|
|
236
|
+
*/
|
|
175
237
|
export declare type FirestoreModelNames<I extends FirestoreModelIdentity> = FirestoreModelTypes<I>;
|
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeFirestoreCollection = exports.firestoreModelKey = exports.firestoreModelType = exports.firestoreModelIdentity = void 0;
|
|
3
|
+
exports.makeFirestoreCollection = exports.childFirestoreModelKeyPath = exports.firestoreModelKeyPath = exports.firestoreModelKeys = exports.firestoreModelKey = exports.firestoreModelKeyPart = exports.firestoreModelType = exports.firestoreModelIdentity = void 0;
|
|
4
4
|
const document_1 = require("../accessor/document");
|
|
5
5
|
const iterator_1 = require("../query/iterator");
|
|
6
6
|
const query_1 = require("../query/query");
|
|
7
7
|
const collection_query_1 = require("./collection.query");
|
|
8
|
-
function firestoreModelIdentity(parentOrModelName, collectionNameOrModelName,
|
|
8
|
+
function firestoreModelIdentity(parentOrModelName, collectionNameOrModelName, inputCollectionName) {
|
|
9
9
|
var _a, _b;
|
|
10
10
|
if (typeof parentOrModelName === 'object') {
|
|
11
|
+
const collectionName = (_a = inputCollectionName) !== null && _a !== void 0 ? _a : collectionNameOrModelName.toLowerCase();
|
|
11
12
|
return {
|
|
12
13
|
type: 'nested',
|
|
13
14
|
parent: parentOrModelName,
|
|
14
|
-
|
|
15
|
+
collectionName,
|
|
16
|
+
collection: collectionName,
|
|
15
17
|
model: collectionNameOrModelName,
|
|
16
18
|
modelType: collectionNameOrModelName
|
|
17
19
|
};
|
|
18
20
|
}
|
|
19
21
|
else {
|
|
22
|
+
const collectionName = (_b = collectionNameOrModelName) !== null && _b !== void 0 ? _b : parentOrModelName.toLowerCase();
|
|
20
23
|
return {
|
|
21
24
|
type: 'root',
|
|
22
|
-
|
|
25
|
+
collectionName,
|
|
26
|
+
collection: collectionName,
|
|
23
27
|
model: parentOrModelName,
|
|
24
28
|
modelType: parentOrModelName
|
|
25
29
|
};
|
|
@@ -41,16 +45,61 @@ function firestoreModelType(modelTypeInput) {
|
|
|
41
45
|
}
|
|
42
46
|
exports.firestoreModelType = firestoreModelType;
|
|
43
47
|
/**
|
|
44
|
-
* Creates a
|
|
48
|
+
* Creates a firestoreModelKeyPart
|
|
45
49
|
*
|
|
46
50
|
* @param identity
|
|
47
51
|
* @param id
|
|
48
52
|
* @returns
|
|
49
53
|
*/
|
|
50
|
-
function
|
|
51
|
-
return `${identity.
|
|
54
|
+
function firestoreModelKeyPart(identity, id) {
|
|
55
|
+
return `${identity.collectionName}/${id}`;
|
|
52
56
|
}
|
|
53
|
-
exports.
|
|
57
|
+
exports.firestoreModelKeyPart = firestoreModelKeyPart;
|
|
58
|
+
/**
|
|
59
|
+
* Creates a firestoreModelKey for RootFirestoreModelIdentity values.
|
|
60
|
+
*
|
|
61
|
+
* @param identity
|
|
62
|
+
* @param id
|
|
63
|
+
* @returns
|
|
64
|
+
*/
|
|
65
|
+
exports.firestoreModelKey = firestoreModelKeyPart;
|
|
66
|
+
/**
|
|
67
|
+
* Creates an array of FirestoreCollectionModelKey values from the input ids.
|
|
68
|
+
*
|
|
69
|
+
* @param identity
|
|
70
|
+
* @param ids
|
|
71
|
+
* @returns
|
|
72
|
+
*/
|
|
73
|
+
function firestoreModelKeys(identity, ids) {
|
|
74
|
+
return ids.map((x) => (0, exports.firestoreModelKey)(identity, x));
|
|
75
|
+
}
|
|
76
|
+
exports.firestoreModelKeys = firestoreModelKeys;
|
|
77
|
+
/**
|
|
78
|
+
* Joins together a number of FirestoreModelKeyPart values.
|
|
79
|
+
*
|
|
80
|
+
* @param parts
|
|
81
|
+
* @returns
|
|
82
|
+
*/
|
|
83
|
+
function firestoreModelKeyPath(...parts) {
|
|
84
|
+
return parts.join('/');
|
|
85
|
+
}
|
|
86
|
+
exports.firestoreModelKeyPath = firestoreModelKeyPath;
|
|
87
|
+
/**
|
|
88
|
+
* Creates a number of child paths from the parent path.
|
|
89
|
+
*
|
|
90
|
+
* @param parent
|
|
91
|
+
* @param children
|
|
92
|
+
* @returns
|
|
93
|
+
*/
|
|
94
|
+
function childFirestoreModelKeyPath(parent, children) {
|
|
95
|
+
if (Array.isArray(children)) {
|
|
96
|
+
return children.map((childPath) => `${parent}/${childPath}`);
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
return [`${parent}/${children}`];
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.childFirestoreModelKeyPath = childFirestoreModelKeyPath;
|
|
54
103
|
/**
|
|
55
104
|
* Creates a new FirestoreCollection from the input config.
|
|
56
105
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection.js","sourceRoot":"","sources":["../../../../../../../../packages/firebase/src/lib/common/firestore/collection/collection.ts"],"names":[],"mappings":";;;AACA,mDAc8B;AAC9B,gDAA0L;AAC1L,0CAA8E;AAE9E,yDAAsG;
|
|
1
|
+
{"version":3,"file":"collection.js","sourceRoot":"","sources":["../../../../../../../../packages/firebase/src/lib/common/firestore/collection/collection.ts"],"names":[],"mappings":";;;AACA,mDAc8B;AAC9B,gDAA0L;AAC1L,0CAA8E;AAE9E,yDAAsG;AA0EtG,SAAgB,sBAAsB,CAA8I,iBAAwB,EAAE,yBAAiC,EAAE,mBAAuB;;IACtQ,IAAI,OAAO,iBAAiB,KAAK,QAAQ,EAAE;QACzC,MAAM,cAAc,GAAG,MAAC,mBAAyB,mCAAM,yBAA+B,CAAC,WAAW,EAAQ,CAAC;QAC3G,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,iBAAsB;YAC9B,cAAc;YACd,UAAU,EAAE,cAAc;YAC1B,KAAK,EAAE,yBAA8B;YACrC,SAAS,EAAE,yBAA8B;SAC1C,CAAC;KACH;SAAM;QACL,MAAM,cAAc,GAAG,MAAC,yBAA+B,mCAAK,iBAAiB,CAAC,WAAW,EAAQ,CAAC;QAClG,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,cAAc;YACd,UAAU,EAAE,cAAc;YAC1B,KAAK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,EAAE,CAAC,CAAC;KAClC;AACH,CAAC;AAND,gEAMC;AAgDD;;GAEG;AACH,SAAgB,uBAAuB,CAAoC,WAA4C;IACrH,MAAM,MAAM,GAAG,WAAyE,CAAC;IAEzF,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,GAAG,MAAM,CAAC;IACxE,MAAwD,CAAC,SAAS,GAAG,UAAU,CAAC;IAEjF,MAAM,kBAAkB,GAAiD,IAAA,4CAAiC,EAAC,MAAM,CAAC,CAAC;IACnH,MAAM,gBAAgB,GAAmD,IAAA,2CAAgC,EAAC,MAAM,CAAC,CAAC;IAClH,MAAM,YAAY,GAA6B,IAAA,6BAAqB,EAAC,MAAM,CAAC,CAAC;IAE7E,MAAM,yBAAyB,GAAG,IAAA,oDAAyC,EAAC,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,CAAC,CAAC;IAC3H,MAAM,EAAE,aAAa,EAAE,GAAG,IAAA,kDAA+B,EAAC,YAAY,EAAE,yBAAyB,CAAC,CAAC;IACnG,MAAM,EAAE,KAAK,EAAE,GAAG,YAAY,CAAC;IAE/B,qCACE,MAAM;QACN,UAAU,EACV,SAAS,EAAE,UAAU,EACrB,gBAAgB,IACb,yBAAyB,KAC5B,kBAAkB;QAClB,KAAK;QACL,aAAa,IACb;AACJ,CAAC;AAxBD,0DAwBC"}
|
package/test/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [8.1.2](https://github.com/dereekb/dbx-components/compare/v8.1.1-dev...v8.1.2) (2022-06-19)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [8.1.1](https://github.com/dereekb/dbx-components/compare/v8.1.0-dev...v8.1.1) (2022-06-18)
|
|
6
10
|
|
|
7
11
|
|
package/test/package.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase/test",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.2",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"typings": "./src/index.d.ts",
|
|
6
6
|
"dependencies": {},
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@dereekb/util/test": "8.1.
|
|
9
|
-
"@dereekb/util": "8.1.
|
|
8
|
+
"@dereekb/util/test": "8.1.2",
|
|
9
|
+
"@dereekb/util": "8.1.2",
|
|
10
10
|
"make-error": "^1.3.0",
|
|
11
11
|
"ts-essentials": "^9.1.2",
|
|
12
12
|
"extra-set": "^2.2.11",
|
|
13
|
-
"@dereekb/firebase": "8.1.
|
|
13
|
+
"@dereekb/firebase": "8.1.2",
|
|
14
14
|
"rxfire": "^6.0.3",
|
|
15
15
|
"rxjs": "^7.0.0",
|
|
16
16
|
"firebase": "^9.8.0",
|
|
17
|
-
"@dereekb/rxjs": "8.1.
|
|
17
|
+
"@dereekb/rxjs": "8.1.2",
|
|
18
18
|
"ms": "^3.0.0-canary.1",
|
|
19
|
-
"@dereekb/model": "8.1.
|
|
19
|
+
"@dereekb/model": "8.1.2",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|
|
22
|
-
"@dereekb/date": "8.1.
|
|
22
|
+
"@dereekb/date": "8.1.2",
|
|
23
23
|
"date-fns": "^2.28.0",
|
|
24
24
|
"date-fns-tz": "^1.3.0",
|
|
25
25
|
"rrule": "2.7.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Maybe } from '@dereekb/util';
|
|
2
|
-
import { CollectionReference, FirestoreCollection, FirestoreContext, AbstractFirestoreDocument, SingleItemFirestoreCollection, FirestoreCollectionWithParent, AbstractFirestoreDocumentWithParent, ExpectedFirestoreModelData, FirestoreModelData, CollectionGroup, FirestoreCollectionGroup,
|
|
2
|
+
import { CollectionReference, FirestoreCollection, FirestoreContext, AbstractFirestoreDocument, SingleItemFirestoreCollection, FirestoreCollectionWithParent, AbstractFirestoreDocumentWithParent, ExpectedFirestoreModelData, FirestoreModelData, CollectionGroup, FirestoreCollectionGroup, UserRelated, UserRelatedById } from '@dereekb/firebase';
|
|
3
3
|
import { GrantedReadRole } from '@dereekb/model';
|
|
4
4
|
export declare type MockItemTypes = typeof mockItemIdentity | typeof mockItemPrivateIdentity | typeof mockItemUserIdentity | typeof mockItemSubItemIdentity | typeof mockItemSubItemDeepIdentity;
|
|
5
5
|
export declare const mockItemIdentity: import("@dereekb/firebase").RootFirestoreModelIdentity<"mockItem", "mi">;
|
|
@@ -14,7 +14,7 @@ export interface MockItem {
|
|
|
14
14
|
test: boolean;
|
|
15
15
|
}
|
|
16
16
|
export declare type MockItemRoles = GrantedReadRole | 'admin';
|
|
17
|
-
export declare class MockItemDocument extends AbstractFirestoreDocument<MockItem, MockItemDocument> {
|
|
17
|
+
export declare class MockItemDocument extends AbstractFirestoreDocument<MockItem, MockItemDocument, typeof mockItemIdentity> {
|
|
18
18
|
get modelIdentity(): import("@dereekb/firebase").RootFirestoreModelIdentity<"mockItem", "mi">;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
@@ -61,7 +61,7 @@ export declare type MockItemPrivateRoles = GrantedReadRole | 'admin';
|
|
|
61
61
|
/**
|
|
62
62
|
* FirestoreDocument for MockItem
|
|
63
63
|
*/
|
|
64
|
-
export declare class MockItemPrivateDocument extends AbstractFirestoreDocument<MockItemPrivate, MockItemPrivateDocument> {
|
|
64
|
+
export declare class MockItemPrivateDocument extends AbstractFirestoreDocument<MockItemPrivate, MockItemPrivateDocument, typeof mockItemPrivateIdentity> {
|
|
65
65
|
get modelIdentity(): import("@dereekb/firebase").FirestoreModelIdentityWithParent<import("@dereekb/firebase").RootFirestoreModelIdentity<"mockItem", "mi">, "mockItemPrivate", "mip">;
|
|
66
66
|
}
|
|
67
67
|
export declare type MockItemPrivateData = FirestoreModelData<MockItemPrivate, {}>;
|
|
@@ -102,7 +102,7 @@ export declare type MockItemUserRoles = GrantedReadRole | 'admin';
|
|
|
102
102
|
/**
|
|
103
103
|
* FirestoreDocument for MockItem
|
|
104
104
|
*/
|
|
105
|
-
export declare class MockItemUserDocument extends AbstractFirestoreDocument<MockItemUser, MockItemUserDocument> {
|
|
105
|
+
export declare class MockItemUserDocument extends AbstractFirestoreDocument<MockItemUser, MockItemUserDocument, typeof mockItemUserIdentity> {
|
|
106
106
|
get modelIdentity(): import("@dereekb/firebase").FirestoreModelIdentityWithParent<import("@dereekb/firebase").RootFirestoreModelIdentity<"mockItem", "mi">, "mockItemUser", "miu">;
|
|
107
107
|
}
|
|
108
108
|
export declare type MockItemUserData = FirestoreModelData<MockItemUser, {}>;
|
|
@@ -148,8 +148,8 @@ export declare type MockItemSubItemRoles = GrantedReadRole | 'admin';
|
|
|
148
148
|
/**
|
|
149
149
|
* FirestoreDocument for MockItem
|
|
150
150
|
*/
|
|
151
|
-
export declare class MockItemSubItemDocument extends AbstractFirestoreDocumentWithParent<MockItem, MockItemSubItem, MockItemSubItemDocument> {
|
|
152
|
-
get modelIdentity():
|
|
151
|
+
export declare class MockItemSubItemDocument extends AbstractFirestoreDocumentWithParent<MockItem, MockItemSubItem, MockItemSubItemDocument, typeof mockItemSubItemIdentity> {
|
|
152
|
+
get modelIdentity(): import("@dereekb/firebase").FirestoreModelIdentityWithParent<import("@dereekb/firebase").RootFirestoreModelIdentity<"mockItem", "mi">, "mockItemSub", "misi">;
|
|
153
153
|
}
|
|
154
154
|
export declare type MockItemSubItemData = ExpectedFirestoreModelData<MockItemSubItem>;
|
|
155
155
|
/**
|
|
@@ -176,7 +176,7 @@ export declare type MockItemSubItemDeepRoles = GrantedReadRole | 'admin';
|
|
|
176
176
|
/**
|
|
177
177
|
* FirestoreDocument for MockSubItem
|
|
178
178
|
*/
|
|
179
|
-
export declare class MockItemSubItemDeepDocument extends AbstractFirestoreDocumentWithParent<MockItemSubItem, MockItemSubItemDeep, MockItemSubItemDeepDocument> {
|
|
179
|
+
export declare class MockItemSubItemDeepDocument extends AbstractFirestoreDocumentWithParent<MockItemSubItem, MockItemSubItemDeep, MockItemSubItemDeepDocument, typeof mockItemSubItemDeepIdentity> {
|
|
180
180
|
get modelIdentity(): import("@dereekb/firebase").FirestoreModelIdentityWithParent<import("@dereekb/firebase").FirestoreModelIdentityWithParent<import("@dereekb/firebase").RootFirestoreModelIdentity<"mockItem", "mi">, "mockItemSub", "misi">, "mockItemSubItemDeep", "misid">;
|
|
181
181
|
}
|
|
182
182
|
export declare type MockItemSubItemDeepData = ExpectedFirestoreModelData<MockItemSubItemDeep>;
|
|
@@ -27,7 +27,7 @@ exports.mockItemConverter = (0, firebase_1.snapshotConverterFunctions)({
|
|
|
27
27
|
* @returns
|
|
28
28
|
*/
|
|
29
29
|
function mockItemCollectionReference(context) {
|
|
30
|
-
return context.collection(exports.mockItemIdentity.
|
|
30
|
+
return context.collection(exports.mockItemIdentity.collectionName);
|
|
31
31
|
}
|
|
32
32
|
exports.mockItemCollectionReference = mockItemCollectionReference;
|
|
33
33
|
function mockItemFirestoreCollection(firestoreContext) {
|
|
@@ -71,7 +71,7 @@ exports.mockItemPrivateConverter = (0, firebase_1.snapshotConverterFunctions)({
|
|
|
71
71
|
*/
|
|
72
72
|
function mockItemPrivateCollectionReferenceFactory(context) {
|
|
73
73
|
return (parent) => {
|
|
74
|
-
return context.subcollection(parent.documentRef, exports.mockItemPrivateIdentity.
|
|
74
|
+
return context.subcollection(parent.documentRef, exports.mockItemPrivateIdentity.collectionName);
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
exports.mockItemPrivateCollectionReferenceFactory = mockItemPrivateCollectionReferenceFactory;
|
|
@@ -92,7 +92,7 @@ function mockItemPrivateFirestoreCollection(firestoreContext) {
|
|
|
92
92
|
}
|
|
93
93
|
exports.mockItemPrivateFirestoreCollection = mockItemPrivateFirestoreCollection;
|
|
94
94
|
function mockItemPrivateCollectionReference(context) {
|
|
95
|
-
return context.collectionGroup(exports.mockItemPrivateIdentity.
|
|
95
|
+
return context.collectionGroup(exports.mockItemPrivateIdentity.collectionName);
|
|
96
96
|
}
|
|
97
97
|
exports.mockItemPrivateCollectionReference = mockItemPrivateCollectionReference;
|
|
98
98
|
function mockItemPrivateFirestoreCollectionGroup(firestoreContext) {
|
|
@@ -197,7 +197,7 @@ exports.mockItemSubItemConverter = (0, firebase_1.snapshotConverterFunctions)({
|
|
|
197
197
|
});
|
|
198
198
|
function mockItemSubItemCollectionReferenceFactory(context) {
|
|
199
199
|
return (parent) => {
|
|
200
|
-
return context.subcollection(parent.documentRef, exports.mockItemSubItemIdentity.
|
|
200
|
+
return context.subcollection(parent.documentRef, exports.mockItemSubItemIdentity.collectionName);
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
203
|
exports.mockItemSubItemCollectionReferenceFactory = mockItemSubItemCollectionReferenceFactory;
|
|
@@ -217,7 +217,7 @@ function mockItemSubItemFirestoreCollection(firestoreContext) {
|
|
|
217
217
|
}
|
|
218
218
|
exports.mockItemSubItemFirestoreCollection = mockItemSubItemFirestoreCollection;
|
|
219
219
|
function mockItemSubItemCollectionReference(context) {
|
|
220
|
-
return context.collectionGroup(exports.mockItemSubItemIdentity.
|
|
220
|
+
return context.collectionGroup(exports.mockItemSubItemIdentity.collectionName);
|
|
221
221
|
}
|
|
222
222
|
exports.mockItemSubItemCollectionReference = mockItemSubItemCollectionReference;
|
|
223
223
|
function mockItemSubItemFirestoreCollectionGroup(firestoreContext) {
|
|
@@ -252,7 +252,7 @@ exports.mockItemSubItemDeepConverter = (0, firebase_1.snapshotConverterFunctions
|
|
|
252
252
|
});
|
|
253
253
|
function mockItemSubItemDeepCollectionReferenceFactory(context) {
|
|
254
254
|
return (parent) => {
|
|
255
|
-
return context.subcollection(parent.documentRef, exports.mockItemSubItemDeepIdentity.
|
|
255
|
+
return context.subcollection(parent.documentRef, exports.mockItemSubItemDeepIdentity.collectionName);
|
|
256
256
|
};
|
|
257
257
|
}
|
|
258
258
|
exports.mockItemSubItemDeepCollectionReferenceFactory = mockItemSubItemDeepCollectionReferenceFactory;
|
|
@@ -272,7 +272,7 @@ function mockItemSubItemDeepFirestoreCollection(firestoreContext) {
|
|
|
272
272
|
}
|
|
273
273
|
exports.mockItemSubItemDeepFirestoreCollection = mockItemSubItemDeepFirestoreCollection;
|
|
274
274
|
function mockItemSubItemDeepCollectionReference(context) {
|
|
275
|
-
return context.collectionGroup(exports.mockItemSubItemDeepIdentity.
|
|
275
|
+
return context.collectionGroup(exports.mockItemSubItemDeepIdentity.collectionName);
|
|
276
276
|
}
|
|
277
277
|
exports.mockItemSubItemDeepCollectionReference = mockItemSubItemDeepCollectionReference;
|
|
278
278
|
function mockItemSubItemDeepFirestoreCollectionGroup(firestoreContext) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firestore.mock.item.js","sourceRoot":"","sources":["../../../../../../../packages/firebase/test/src/lib/common/firestore.mock.item.ts"],"names":[],"mappings":";;;AAAA,wCAA6D;AAC7D,gDAyB2B;AAM3B,kBAAkB;AACL,QAAA,gBAAgB,GAAG,IAAA,iCAAsB,EAAC,UAAU,EAAE,IAAI,CAAC,CAAC;AAgBzE,MAAa,gBAAiB,SAAQ,
|
|
1
|
+
{"version":3,"file":"firestore.mock.item.js","sourceRoot":"","sources":["../../../../../../../packages/firebase/test/src/lib/common/firestore.mock.item.ts"],"names":[],"mappings":";;;AAAA,wCAA6D;AAC7D,gDAyB2B;AAM3B,kBAAkB;AACL,QAAA,gBAAgB,GAAG,IAAA,iCAAsB,EAAC,UAAU,EAAE,IAAI,CAAC,CAAC;AAgBzE,MAAa,gBAAiB,SAAQ,oCAA8E;IAClH,IAAI,aAAa;QACf,OAAO,wBAAgB,CAAC;IAC1B,CAAC;CACF;AAJD,4CAIC;AAiBD;;GAEG;AACU,QAAA,iBAAiB,GAAG,IAAA,qCAA0B,EAAyB;IAClF,MAAM,EAAE;QACN,KAAK,EAAE,IAAA,kCAAuB,GAAE;QAChC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