@dereekb/firebase 7.0.1 → 7.3.0

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.
Files changed (57) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/package.json +6 -6
  3. package/src/lib/client/firestore/driver.query.js +1 -0
  4. package/src/lib/client/firestore/driver.query.js.map +1 -1
  5. package/src/lib/common/firestore/accessor/accessor.d.ts +1 -0
  6. package/src/lib/common/firestore/accessor/accessor.js.map +1 -1
  7. package/src/lib/common/firestore/accessor/accessor.wrap.d.ts +23 -0
  8. package/src/lib/common/firestore/accessor/accessor.wrap.js +43 -0
  9. package/src/lib/common/firestore/accessor/accessor.wrap.js.map +1 -0
  10. package/src/lib/common/firestore/accessor/accessor.wrap.modify.d.ts +56 -0
  11. package/src/lib/common/firestore/accessor/accessor.wrap.modify.js +95 -0
  12. package/src/lib/common/firestore/accessor/accessor.wrap.modify.js.map +1 -0
  13. package/src/lib/common/firestore/accessor/document.d.ts +31 -11
  14. package/src/lib/common/firestore/accessor/document.js +16 -11
  15. package/src/lib/common/firestore/accessor/document.js.map +1 -1
  16. package/src/lib/common/firestore/accessor/document.utility.d.ts +4 -0
  17. package/src/lib/common/firestore/accessor/document.utility.js +3 -1
  18. package/src/lib/common/firestore/accessor/document.utility.js.map +1 -1
  19. package/src/lib/common/firestore/accessor/index.d.ts +2 -0
  20. package/src/lib/common/firestore/accessor/index.js +2 -0
  21. package/src/lib/common/firestore/accessor/index.js.map +1 -1
  22. package/src/lib/common/firestore/collection/collection.d.ts +8 -8
  23. package/src/lib/common/firestore/collection/collection.js +2 -8
  24. package/src/lib/common/firestore/collection/collection.js.map +1 -1
  25. package/src/lib/common/firestore/collection/collection.key.d.ts +53 -0
  26. package/src/lib/common/firestore/collection/collection.key.js +3 -0
  27. package/src/lib/common/firestore/collection/collection.key.js.map +1 -0
  28. package/src/lib/common/firestore/collection/index.d.ts +1 -0
  29. package/src/lib/common/firestore/collection/index.js +1 -0
  30. package/src/lib/common/firestore/collection/index.js.map +1 -1
  31. package/src/lib/common/firestore/query/constraint.d.ts +4 -0
  32. package/src/lib/common/firestore/query/constraint.js +8 -2
  33. package/src/lib/common/firestore/query/constraint.js.map +1 -1
  34. package/src/lib/common/firestore/snapshot/snapshot.d.ts +7 -4
  35. package/src/lib/common/firestore/snapshot/snapshot.field.d.ts +115 -5
  36. package/src/lib/common/firestore/snapshot/snapshot.field.js +147 -2
  37. package/src/lib/common/firestore/snapshot/snapshot.field.js.map +1 -1
  38. package/src/lib/common/firestore/snapshot/snapshot.js +2 -1
  39. package/src/lib/common/firestore/snapshot/snapshot.js.map +1 -1
  40. package/src/lib/common/firestore/types.d.ts +2 -2
  41. package/test/CHANGELOG.md +24 -0
  42. package/test/package.json +8 -8
  43. package/test/src/lib/common/firestore.mock.item.d.ts +66 -26
  44. package/test/src/lib/common/firestore.mock.item.fixture.d.ts +4 -2
  45. package/test/src/lib/common/firestore.mock.item.fixture.js +10 -4
  46. package/test/src/lib/common/firestore.mock.item.fixture.js.map +1 -1
  47. package/test/src/lib/common/firestore.mock.item.js +91 -29
  48. package/test/src/lib/common/firestore.mock.item.js.map +1 -1
  49. package/test/src/lib/common/firestore.mock.item.query.d.ts +1 -1
  50. package/test/src/lib/common/firestore.mock.item.query.js +3 -3
  51. package/test/src/lib/common/firestore.mock.item.service.d.ts +11 -6
  52. package/test/src/lib/common/firestore.mock.item.service.js +18 -6
  53. package/test/src/lib/common/firestore.mock.item.service.js.map +1 -1
  54. package/test/src/lib/common/test.driver.accessor.js +32 -7
  55. package/test/src/lib/common/test.driver.accessor.js.map +1 -1
  56. package/test/src/lib/common/test.driver.query.js +72 -3
  57. package/test/src/lib/common/test.driver.query.js.map +1 -1
package/test/CHANGELOG.md CHANGED
@@ -2,6 +2,30 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ # [7.3.0](https://github.com/dereekb/dbx-components/compare/v7.2.0-dev...v7.3.0) (2022-06-08)
6
+
7
+
8
+
9
+ # [7.2.0](https://github.com/dereekb/dbx-components/compare/v7.1.0-dev...v7.2.0) (2022-06-06)
10
+
11
+
12
+ ### Features
13
+
14
+ * firestoreModeIdentity can now accept a collection name ([1e0646e](https://github.com/dereekb/dbx-components/commit/1e0646e598a0834d8b4c3d264bb5ee42626e9fc7))
15
+
16
+
17
+
18
+ # [7.1.0](https://github.com/dereekb/dbx-components/compare/v7.0.1-dev...v7.1.0) (2022-06-06)
19
+
20
+
21
+ ### Features
22
+
23
+ * added interceptAccessorFactory() ([9833539](https://github.com/dereekb/dbx-components/commit/98335398eaa6a3ee363bdf64a440d5438bbefb24))
24
+ * added loadDocumentForId() to FirestoreDocumentAccessor ([3728145](https://github.com/dereekb/dbx-components/commit/372814540064ff4b40be032d57ddda12a8698d53))
25
+ * added whereDocumentId() ([7f5f5b8](https://github.com/dereekb/dbx-components/commit/7f5f5b8a56b2e0ad2e43308cfd87b4f8b8503c59))
26
+
27
+
28
+
5
29
  ## [7.0.1](https://github.com/dereekb/dbx-components/compare/v7.0.0-dev...v7.0.1) (2022-06-05)
6
30
 
7
31
 
package/test/package.json CHANGED
@@ -1,28 +1,28 @@
1
1
  {
2
2
  "name": "@dereekb/firebase/test",
3
- "version": "7.0.1",
3
+ "version": "7.3.0",
4
4
  "main": "./src/index.js",
5
5
  "typings": "./src/index.d.ts",
6
6
  "dependencies": {},
7
7
  "peerDependencies": {
8
- "@dereekb/util/test": "7.0.1",
9
- "@dereekb/util": "7.0.1",
8
+ "@dereekb/util/test": "7.3.0",
9
+ "@dereekb/util": "7.3.0",
10
10
  "make-error": "^1.3.0",
11
11
  "ts-essentials": "^9.1.2",
12
12
  "extra-set": "^2.2.11",
13
- "@dereekb/firebase": "7.0.1",
13
+ "@dereekb/firebase": "7.3.0",
14
14
  "rxjs": "^7.0.0",
15
15
  "rxfire": "^6.0.3",
16
16
  "firebase": "^9.8.0",
17
- "@dereekb/rxjs": "7.0.1",
17
+ "@dereekb/rxjs": "7.3.0",
18
18
  "ms": "^3.0.0-canary.1",
19
- "@dereekb/date": "7.0.1",
19
+ "@dereekb/model": "7.3.0",
20
20
  "class-transformer": "^0.5.1",
21
- "date-fns": "^2.28.0",
22
21
  "class-validator": "^0.13.2",
22
+ "@dereekb/date": "7.3.0",
23
+ "date-fns": "^2.28.0",
23
24
  "date-fns-tz": "^1.3.0",
24
25
  "rrule": "git+https://git@github.com/dereekb/rrule.git#17adf5708d6567b4d01a3a8afd106261421ea492",
25
- "@dereekb/model": "7.0.1",
26
26
  "tslib": "^2.0.0"
27
27
  }
28
28
  }
@@ -1,8 +1,8 @@
1
1
  import { Maybe } from '@dereekb/util';
2
- import { CollectionReference, FirestoreCollection, FirestoreContext, AbstractFirestoreDocument, SingleItemFirestoreCollection, FirestoreCollectionWithParent, AbstractFirestoreDocumentWithParent, ExpectedFirestoreModelData, FirestoreModelData, CollectionGroup, FirestoreCollectionGroup, FirestoreModelIdentity } from '@dereekb/firebase';
2
+ import { CollectionReference, FirestoreCollection, FirestoreContext, AbstractFirestoreDocument, SingleItemFirestoreCollection, FirestoreCollectionWithParent, AbstractFirestoreDocumentWithParent, ExpectedFirestoreModelData, FirestoreModelData, CollectionGroup, FirestoreCollectionGroup, FirestoreModelIdentity, UserRelated, UserRelatedById } from '@dereekb/firebase';
3
3
  import { GrantedReadRole } from '@dereekb/model';
4
- export declare type MockItemTypes = typeof mockItemIdentity | typeof mockItemPrivateIdentity | typeof mockItemSubItemIdentity | typeof mockItemDeepSubItemIdentity;
5
- export declare const mockItemIdentity: FirestoreModelIdentity<"mockItem">;
4
+ export declare type MockItemTypes = typeof mockItemIdentity | typeof mockItemPrivateIdentity | typeof mockItemUserIdentity | typeof mockItemSubItemIdentity | typeof mockItemSubItemDeepIdentity;
5
+ export declare const mockItemIdentity: FirestoreModelIdentity<"mockItem", "mi">;
6
6
  /**
7
7
  * Converted data for a test item in our firestore collection.
8
8
  */
@@ -15,7 +15,7 @@ export interface MockItem {
15
15
  }
16
16
  export declare type MockItemRoles = GrantedReadRole | 'admin';
17
17
  export declare class MockItemDocument extends AbstractFirestoreDocument<MockItem, MockItemDocument> {
18
- get modelIdentity(): FirestoreModelIdentity<"mockItem">;
18
+ get modelIdentity(): FirestoreModelIdentity<"mockItem", "mi">;
19
19
  }
20
20
  /**
21
21
  * MockItem as it is stored into the database.
@@ -46,7 +46,7 @@ export declare const mockItemConverter: import("@dereekb/firebase").SnapshotConv
46
46
  export declare function mockItemCollectionReference(context: FirestoreContext): CollectionReference<MockItem>;
47
47
  export declare type MockItemFirestoreCollection = FirestoreCollection<MockItem, MockItemDocument>;
48
48
  export declare function mockItemFirestoreCollection(firestoreContext: FirestoreContext): MockItemFirestoreCollection;
49
- export declare const mockItemPrivateIdentity: FirestoreModelIdentity<"mockItemPrivate">;
49
+ export declare const mockItemPrivateIdentity: FirestoreModelIdentity<"mockItemPrivate", "mip">;
50
50
  /**
51
51
  * Private data for each MockItem.
52
52
  *
@@ -61,13 +61,9 @@ export declare type MockItemPrivateRoles = GrantedReadRole | 'admin';
61
61
  * FirestoreDocument for MockItem
62
62
  */
63
63
  export declare class MockItemPrivateDocument extends AbstractFirestoreDocument<MockItemPrivate, MockItemPrivateDocument> {
64
- get modelIdentity(): FirestoreModelIdentity<"mockItemPrivate">;
64
+ get modelIdentity(): FirestoreModelIdentity<"mockItemPrivate", "mip">;
65
65
  }
66
66
  export declare type MockItemPrivateData = FirestoreModelData<MockItemPrivate, {}>;
67
- /**
68
- * Firestore collection path name.
69
- */
70
- export declare const mockItemPrivateCollectionName = "mockitemprivate";
71
67
  export declare const mockItemPrivateIdentifier = "0";
72
68
  /**
73
69
  * Used to build a FirestoreDataConverter. Fields are configured via configuration. See the SnapshotConverterFunctions for more info.
@@ -92,7 +88,51 @@ export declare function mockItemPrivateFirestoreCollection(firestoreContext: Fir
92
88
  export declare function mockItemPrivateCollectionReference(context: FirestoreContext): CollectionGroup<MockItemPrivate>;
93
89
  export declare type MockItemPrivateFirestoreCollectionGroup = FirestoreCollectionGroup<MockItemPrivate, MockItemPrivateDocument>;
94
90
  export declare function mockItemPrivateFirestoreCollectionGroup(firestoreContext: FirestoreContext): MockItemPrivateFirestoreCollectionGroup;
95
- export declare const mockItemSubItemIdentity: FirestoreModelIdentity<"mockItemSub">;
91
+ export declare const mockItemUserIdentity: FirestoreModelIdentity<"mockItemUser", "miu">;
92
+ /**
93
+ * An item associated per user to this item.
94
+ */
95
+ export interface MockItemUser extends UserRelated, UserRelatedById {
96
+ name: string;
97
+ }
98
+ export declare type MockItemUserRoles = GrantedReadRole | 'admin';
99
+ /**
100
+ * FirestoreDocument for MockItem
101
+ */
102
+ export declare class MockItemUserDocument extends AbstractFirestoreDocument<MockItemUser, MockItemUserDocument> {
103
+ get modelIdentity(): FirestoreModelIdentity<"mockItemUser", "miu">;
104
+ }
105
+ export declare type MockItemUserData = FirestoreModelData<MockItemUser, {}>;
106
+ /**
107
+ * Firestore collection path name.
108
+ */
109
+ export declare const mockItemUserCollectionName = "mockItemUser";
110
+ export declare const mockItemUserIdentifier = "0";
111
+ /**
112
+ * Used to build a FirestoreDataConverter. Fields are configured via configuration. See the SnapshotConverterFunctions for more info.
113
+ */
114
+ export declare const mockItemUserConverter: import("@dereekb/firebase").SnapshotConverterFunctions<{
115
+ name: string;
116
+ uid: string;
117
+ }, Partial<import("@dereekb/util").ReplaceType<{
118
+ name: string;
119
+ uid: string;
120
+ }, import("@dereekb/util").MaybeMap<object>, any>>>;
121
+ /**
122
+ * Used to build a mockItemCollection from a firestore instance with a converter setup.
123
+ *
124
+ * @param firestore
125
+ * @returns
126
+ */
127
+ export declare function mockItemUserCollectionReferenceFactory(context: FirestoreContext): (parent: MockItemDocument) => CollectionReference<MockItemUser>;
128
+ export declare const mockItemUserAccessorFactory: import("@dereekb/firebase").InterceptAccessorFactoryFunction<MockItemUser, import("@dereekb/firebase").DocumentData>;
129
+ export declare type MockItemUserFirestoreCollection = FirestoreCollectionWithParent<MockItemUser, MockItem, MockItemUserDocument>;
130
+ export declare type MockItemUserFirestoreCollectionFactory = (parent: MockItemDocument) => MockItemUserFirestoreCollection;
131
+ export declare function mockItemUserFirestoreCollection(firestoreContext: FirestoreContext): MockItemUserFirestoreCollectionFactory;
132
+ export declare function mockItemUserCollectionReference(context: FirestoreContext): CollectionGroup<MockItemUser>;
133
+ export declare type MockItemUserFirestoreCollectionGroup = FirestoreCollectionGroup<MockItemUser, MockItemUserDocument>;
134
+ export declare function mockItemUserFirestoreCollectionGroup(firestoreContext: FirestoreContext): MockItemUserFirestoreCollectionGroup;
135
+ export declare const mockItemSubItemIdentity: FirestoreModelIdentity<"mockItemSub", "misi">;
96
136
  /**
97
137
  * Data for a sub item in our firestore collection.
98
138
  *
@@ -120,31 +160,31 @@ export declare function mockItemSubItemFirestoreCollection(firestoreContext: Fir
120
160
  export declare function mockItemSubItemCollectionReference(context: FirestoreContext): CollectionGroup<MockItemSubItem>;
121
161
  export declare type MockItemSubItemFirestoreCollectionGroup = FirestoreCollectionGroup<MockItemSubItem, MockItemSubItemDocument>;
122
162
  export declare function mockItemSubItemFirestoreCollectionGroup(firestoreContext: FirestoreContext): MockItemSubItemFirestoreCollectionGroup;
123
- export declare const mockItemDeepSubItemIdentity: FirestoreModelIdentity<"mockItemDeepSub">;
163
+ export declare const mockItemSubItemDeepIdentity: FirestoreModelIdentity<"mockItemSubItemDeep", "misid">;
124
164
  /**
125
165
  * Data for a sub item in our firestore collection.
126
166
  *
127
- * There may be an unlimited number of MockItemDeepSubItems for a MockSubItem.
167
+ * There may be an unlimited number of MockItemSubItemDeeps for a MockSubItem.
128
168
  */
129
- export interface MockItemDeepSubItem {
169
+ export interface MockItemSubItemDeep {
130
170
  value?: Maybe<number>;
131
171
  }
132
- export declare type MockItemDeepSubItemRoles = GrantedReadRole | 'admin';
172
+ export declare type MockItemSubItemDeepRoles = GrantedReadRole | 'admin';
133
173
  /**
134
174
  * FirestoreDocument for MockSubItem
135
175
  */
136
- export declare class MockItemDeepSubItemDocument extends AbstractFirestoreDocumentWithParent<MockItemSubItem, MockItemDeepSubItem, MockItemDeepSubItemDocument> {
137
- get modelIdentity(): FirestoreModelIdentity<"mockItemDeepSub">;
176
+ export declare class MockItemSubItemDeepDocument extends AbstractFirestoreDocumentWithParent<MockItemSubItem, MockItemSubItemDeep, MockItemSubItemDeepDocument> {
177
+ get modelIdentity(): FirestoreModelIdentity<"mockItemSubItemDeep", "misid">;
138
178
  }
139
- export declare type MockItemDeepSubItemData = ExpectedFirestoreModelData<MockItemDeepSubItem>;
179
+ export declare type MockItemSubItemDeepData = ExpectedFirestoreModelData<MockItemSubItemDeep>;
140
180
  /**
141
181
  * Used to build a FirestoreDataConverter. Fields are configured via configuration. See the SnapshotConverterFunctions for more info.
142
182
  */
143
- export declare const mockItemDeepSubItemConverter: import("@dereekb/firebase").SnapshotConverterFunctions<MockItemDeepSubItem, import("@dereekb/util").ReplaceType<MockItemDeepSubItem, object, any>>;
144
- export declare function mockItemDeepSubItemCollectionReferenceFactory(context: FirestoreContext): (parent: MockItemSubItemDocument) => CollectionReference<MockItemDeepSubItem>;
145
- export declare type MockItemDeepSubItemFirestoreCollection = FirestoreCollectionWithParent<MockItemDeepSubItem, MockItemSubItem, MockItemDeepSubItemDocument, MockItemSubItemDocument>;
146
- export declare type MockItemDeepSubItemFirestoreCollectionFactory = (parent: MockItemSubItemDocument) => MockItemDeepSubItemFirestoreCollection;
147
- export declare function mockItemDeepSubItemFirestoreCollection(firestoreContext: FirestoreContext): MockItemDeepSubItemFirestoreCollectionFactory;
148
- export declare function mockItemDeepSubItemCollectionReference(context: FirestoreContext): CollectionGroup<MockItemDeepSubItem>;
149
- export declare type MockItemDeepSubItemFirestoreCollectionGroup = FirestoreCollectionGroup<MockItemDeepSubItem, MockItemDeepSubItemDocument>;
150
- export declare function mockItemDeepSubItemFirestoreCollectionGroup(firestoreContext: FirestoreContext): MockItemDeepSubItemFirestoreCollectionGroup;
183
+ export declare const mockItemSubItemDeepConverter: import("@dereekb/firebase").SnapshotConverterFunctions<MockItemSubItemDeep, import("@dereekb/util").ReplaceType<MockItemSubItemDeep, object, any>>;
184
+ export declare function mockItemSubItemDeepCollectionReferenceFactory(context: FirestoreContext): (parent: MockItemSubItemDocument) => CollectionReference<MockItemSubItemDeep>;
185
+ export declare type MockItemSubItemDeepFirestoreCollection = FirestoreCollectionWithParent<MockItemSubItemDeep, MockItemSubItem, MockItemSubItemDeepDocument, MockItemSubItemDocument>;
186
+ export declare type MockItemSubItemDeepFirestoreCollectionFactory = (parent: MockItemSubItemDocument) => MockItemSubItemDeepFirestoreCollection;
187
+ export declare function mockItemSubItemDeepFirestoreCollection(firestoreContext: FirestoreContext): MockItemSubItemDeepFirestoreCollectionFactory;
188
+ export declare function mockItemSubItemDeepCollectionReference(context: FirestoreContext): CollectionGroup<MockItemSubItemDeep>;
189
+ export declare type MockItemSubItemDeepFirestoreCollectionGroup = FirestoreCollectionGroup<MockItemSubItemDeep, MockItemSubItemDeepDocument>;
190
+ export declare function mockItemSubItemDeepFirestoreCollectionGroup(firestoreContext: FirestoreContext): MockItemSubItemDeepFirestoreCollectionGroup;
@@ -10,8 +10,10 @@ export declare class MockItemCollectionFixtureInstance {
10
10
  get mockItemPrivateCollection(): import("./firestore.mock.item").MockItemPrivateFirestoreCollectionFactory;
11
11
  get mockItemSubItemCollection(): import("./firestore.mock.item").MockItemSubItemFirestoreCollectionFactory;
12
12
  get mockItemSubItemCollectionGroup(): import("./firestore.mock.item").MockItemSubItemFirestoreCollectionGroup;
13
- get mockItemDeepSubItemCollection(): import("./firestore.mock.item").MockItemDeepSubItemFirestoreCollectionFactory;
14
- get mockItemDeepSubItemCollectionGroup(): import("./firestore.mock.item").MockItemDeepSubItemFirestoreCollectionGroup;
13
+ get mockItemUserCollection(): import("./firestore.mock.item").MockItemUserFirestoreCollectionFactory;
14
+ get mockItemUserCollectionGroup(): import("./firestore.mock.item").MockItemUserFirestoreCollectionGroup;
15
+ get mockItemSubItemDeepCollection(): import("./firestore.mock.item").MockItemSubItemDeepFirestoreCollectionFactory;
16
+ get mockItemSubItemDeepCollectionGroup(): import("./firestore.mock.item").MockItemSubItemDeepFirestoreCollectionGroup;
15
17
  constructor(fixture: MockItemCollectionFixture);
16
18
  }
17
19
  /**
@@ -24,11 +24,17 @@ class MockItemCollectionFixtureInstance {
24
24
  get mockItemSubItemCollectionGroup() {
25
25
  return this.collections.mockItemSubItemCollectionGroup;
26
26
  }
27
- get mockItemDeepSubItemCollection() {
28
- return this.collections.mockItemDeepSubItemCollectionFactory;
27
+ get mockItemUserCollection() {
28
+ return this.collections.mockItemUserCollectionFactory;
29
29
  }
30
- get mockItemDeepSubItemCollectionGroup() {
31
- return this.collections.mockItemDeepSubItemCollectionGroup;
30
+ get mockItemUserCollectionGroup() {
31
+ return this.collections.mockItemUserCollectionGroup;
32
+ }
33
+ get mockItemSubItemDeepCollection() {
34
+ return this.collections.mockItemSubItemDeepCollectionFactory;
35
+ }
36
+ get mockItemSubItemDeepCollectionGroup() {
37
+ return this.collections.mockItemSubItemDeepCollectionGroup;
32
38
  }
33
39
  }
34
40
  exports.MockItemCollectionFixtureInstance = MockItemCollectionFixtureInstance;
@@ -1 +1 @@
1
- {"version":3,"file":"firestore.mock.item.fixture.js","sourceRoot":"","sources":["../../../../../../../packages/firebase/test/src/lib/common/firestore.mock.item.fixture.ts"],"names":[],"mappings":";;;AACA,6CAAkJ;AAGlJ,+EAAwE;AAExE,kCAAkC;AAClC,MAAa,iCAAiC;IA8B5C,YAAqB,OAAkC;QAAlC,YAAO,GAAP,OAAO,CAA2B;QA7B9C,gBAAW,GAAG,IAAA,qDAAuB,EAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IA6BlB,CAAC;IA3B3D,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,mBAAmB,CAAC,UAAU,CAAC;IAC7C,CAAC;IACD,IAAI,mBAAmB;QACrB,OAAO,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC;IAC7C,CAAC;IAED,IAAI,yBAAyB;QAC3B,OAAO,IAAI,CAAC,WAAW,CAAC,gCAAgC,CAAC;IAC3D,CAAC;IAED,IAAI,yBAAyB;QAC3B,OAAO,IAAI,CAAC,WAAW,CAAC,gCAAgC,CAAC;IAC3D,CAAC;IAED,IAAI,8BAA8B;QAChC,OAAO,IAAI,CAAC,WAAW,CAAC,8BAA8B,CAAC;IACzD,CAAC;IAED,IAAI,6BAA6B;QAC/B,OAAO,IAAI,CAAC,WAAW,CAAC,oCAAoC,CAAC;IAC/D,CAAC;IAED,IAAI,kCAAkC;QACpC,OAAO,IAAI,CAAC,WAAW,CAAC,kCAAkC,CAAC;IAC7D,CAAC;CAGF;AA/BD,8EA+BC;AAED;;GAEG;AACH,MAAa,yBAA0B,SAAQ,yCAAkG;CAAG;AAApJ,8DAAoJ;AAIpJ,SAAgB,uBAAuB,CAAC,MAAgD;IACtF,OAAO,IAAA,yCAAkC,EAAC;QACxC,WAAW,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,yBAAyB,CAAC,OAAO,CAAC;QAChE,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,iCAAiC,CAAC,IAAI,CAAC;QACnE,gBAAgB,EAAE,CAAC,QAA2C,EAAE,EAAE;YAChE,qDAAqD;QACvD,CAAC;QACD,sEAAsE;KACvE,CAAC,CAAC;AACL,CAAC;AATD,0DASC"}
1
+ {"version":3,"file":"firestore.mock.item.fixture.js","sourceRoot":"","sources":["../../../../../../../packages/firebase/test/src/lib/common/firestore.mock.item.fixture.ts"],"names":[],"mappings":";;;AACA,6CAAkJ;AAGlJ,+EAAwE;AAExE,kCAAkC;AAClC,MAAa,iCAAiC;IAsC5C,YAAqB,OAAkC;QAAlC,YAAO,GAAP,OAAO,CAA2B;QArC9C,gBAAW,GAAG,IAAA,qDAAuB,EAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAqClB,CAAC;IAn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
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.mockItemDeepSubItemFirestoreCollectionGroup = exports.mockItemDeepSubItemCollectionReference = exports.mockItemDeepSubItemFirestoreCollection = exports.mockItemDeepSubItemCollectionReferenceFactory = exports.mockItemDeepSubItemConverter = exports.MockItemDeepSubItemDocument = exports.mockItemDeepSubItemIdentity = exports.mockItemSubItemFirestoreCollectionGroup = exports.mockItemSubItemCollectionReference = exports.mockItemSubItemFirestoreCollection = exports.mockItemSubItemCollectionReferenceFactory = exports.mockItemSubItemConverter = exports.MockItemSubItemDocument = exports.mockItemSubItemIdentity = exports.mockItemPrivateFirestoreCollectionGroup = exports.mockItemPrivateCollectionReference = exports.mockItemPrivateFirestoreCollection = exports.mockItemPrivateCollectionReferenceFactory = exports.mockItemPrivateConverter = exports.mockItemPrivateIdentifier = exports.mockItemPrivateCollectionName = exports.MockItemPrivateDocument = exports.mockItemPrivateIdentity = exports.mockItemFirestoreCollection = exports.mockItemCollectionReference = exports.mockItemConverter = exports.MockItemDocument = exports.mockItemIdentity = void 0;
3
+ exports.mockItemSubItemDeepFirestoreCollectionGroup = exports.mockItemSubItemDeepCollectionReference = exports.mockItemSubItemDeepFirestoreCollection = exports.mockItemSubItemDeepCollectionReferenceFactory = exports.mockItemSubItemDeepConverter = exports.MockItemSubItemDeepDocument = exports.mockItemSubItemDeepIdentity = exports.mockItemSubItemFirestoreCollectionGroup = exports.mockItemSubItemCollectionReference = exports.mockItemSubItemFirestoreCollection = exports.mockItemSubItemCollectionReferenceFactory = exports.mockItemSubItemConverter = exports.MockItemSubItemDocument = exports.mockItemSubItemIdentity = exports.mockItemUserFirestoreCollectionGroup = exports.mockItemUserCollectionReference = exports.mockItemUserFirestoreCollection = exports.mockItemUserAccessorFactory = exports.mockItemUserCollectionReferenceFactory = exports.mockItemUserConverter = exports.mockItemUserIdentifier = exports.mockItemUserCollectionName = exports.MockItemUserDocument = exports.mockItemUserIdentity = exports.mockItemPrivateFirestoreCollectionGroup = exports.mockItemPrivateCollectionReference = exports.mockItemPrivateFirestoreCollection = exports.mockItemPrivateCollectionReferenceFactory = exports.mockItemPrivateConverter = exports.mockItemPrivateIdentifier = exports.MockItemPrivateDocument = exports.mockItemPrivateIdentity = exports.mockItemFirestoreCollection = exports.mockItemCollectionReference = exports.mockItemConverter = exports.MockItemDocument = exports.mockItemIdentity = void 0;
4
4
  const util_1 = require("@dereekb/util");
5
5
  const firebase_1 = require("@dereekb/firebase");
6
6
  // MARK: Mock Item
7
- exports.mockItemIdentity = (0, firebase_1.firestoreModelIdentity)('mockItem');
7
+ exports.mockItemIdentity = (0, firebase_1.firestoreModelIdentity)('mockItem', 'mi');
8
8
  class MockItemDocument extends firebase_1.AbstractFirestoreDocument {
9
9
  get modelIdentity() {
10
10
  return exports.mockItemIdentity;
@@ -40,7 +40,7 @@ function mockItemFirestoreCollection(firestoreContext) {
40
40
  }
41
41
  exports.mockItemFirestoreCollection = mockItemFirestoreCollection;
42
42
  // MARK: MockItemPrivate
43
- exports.mockItemPrivateIdentity = (0, firebase_1.firestoreModelIdentity)('mockItemPrivate');
43
+ exports.mockItemPrivateIdentity = (0, firebase_1.firestoreModelIdentity)('mockItemPrivate', 'mip');
44
44
  /**
45
45
  * FirestoreDocument for MockItem
46
46
  */
@@ -50,10 +50,6 @@ class MockItemPrivateDocument extends firebase_1.AbstractFirestoreDocument {
50
50
  }
51
51
  }
52
52
  exports.MockItemPrivateDocument = MockItemPrivateDocument;
53
- /**
54
- * Firestore collection path name.
55
- */
56
- exports.mockItemPrivateCollectionName = 'mockitemprivate';
57
53
  exports.mockItemPrivateIdentifier = '0';
58
54
  /**
59
55
  * Used to build a FirestoreDataConverter. Fields are configured via configuration. See the SnapshotConverterFunctions for more info.
@@ -72,7 +68,7 @@ exports.mockItemPrivateConverter = (0, firebase_1.snapshotConverterFunctions)({
72
68
  */
73
69
  function mockItemPrivateCollectionReferenceFactory(context) {
74
70
  return (parent) => {
75
- return context.subcollection(parent.documentRef, exports.mockItemPrivateCollectionName).withConverter(exports.mockItemPrivateConverter);
71
+ return context.subcollection(parent.documentRef, exports.mockItemPrivateIdentity.collection).withConverter(exports.mockItemPrivateConverter);
76
72
  };
77
73
  }
78
74
  exports.mockItemPrivateCollectionReferenceFactory = mockItemPrivateCollectionReferenceFactory;
@@ -91,7 +87,7 @@ function mockItemPrivateFirestoreCollection(firestoreContext) {
91
87
  }
92
88
  exports.mockItemPrivateFirestoreCollection = mockItemPrivateFirestoreCollection;
93
89
  function mockItemPrivateCollectionReference(context) {
94
- return context.collectionGroup(exports.mockItemPrivateCollectionName).withConverter(exports.mockItemPrivateConverter);
90
+ return context.collectionGroup(exports.mockItemPrivateIdentity.collection).withConverter(exports.mockItemPrivateConverter);
95
91
  }
96
92
  exports.mockItemPrivateCollectionReference = mockItemPrivateCollectionReference;
97
93
  function mockItemPrivateFirestoreCollectionGroup(firestoreContext) {
@@ -103,8 +99,74 @@ function mockItemPrivateFirestoreCollectionGroup(firestoreContext) {
103
99
  });
104
100
  }
105
101
  exports.mockItemPrivateFirestoreCollectionGroup = mockItemPrivateFirestoreCollectionGroup;
102
+ // MARK: MockItemUser
103
+ exports.mockItemUserIdentity = (0, firebase_1.firestoreModelIdentity)('mockItemUser', 'miu');
104
+ /**
105
+ * FirestoreDocument for MockItem
106
+ */
107
+ class MockItemUserDocument extends firebase_1.AbstractFirestoreDocument {
108
+ get modelIdentity() {
109
+ return exports.mockItemUserIdentity;
110
+ }
111
+ }
112
+ exports.MockItemUserDocument = MockItemUserDocument;
113
+ /**
114
+ * Firestore collection path name.
115
+ */
116
+ exports.mockItemUserCollectionName = 'mockItemUser';
117
+ exports.mockItemUserIdentifier = '0';
118
+ /**
119
+ * Used to build a FirestoreDataConverter. Fields are configured via configuration. See the SnapshotConverterFunctions for more info.
120
+ */
121
+ exports.mockItemUserConverter = (0, firebase_1.snapshotConverterFunctions)({
122
+ fieldConversions: (0, util_1.modelFieldConversions)({
123
+ uid: (0, firebase_1.firestoreUID)(),
124
+ name: (0, firebase_1.firestoreString)()
125
+ })
126
+ });
127
+ /**
128
+ * Used to build a mockItemCollection from a firestore instance with a converter setup.
129
+ *
130
+ * @param firestore
131
+ * @returns
132
+ */
133
+ function mockItemUserCollectionReferenceFactory(context) {
134
+ return (parent) => {
135
+ return context.subcollection(parent.documentRef, exports.mockItemUserCollectionName).withConverter(exports.mockItemUserConverter);
136
+ };
137
+ }
138
+ exports.mockItemUserCollectionReferenceFactory = mockItemUserCollectionReferenceFactory;
139
+ exports.mockItemUserAccessorFactory = (0, firebase_1.copyUserRelatedDataAccessorFactoryFunction)();
140
+ function mockItemUserFirestoreCollection(firestoreContext) {
141
+ const factory = mockItemUserCollectionReferenceFactory(firestoreContext);
142
+ return (parent) => {
143
+ return firestoreContext.firestoreCollectionWithParent({
144
+ itemsPerPage: 50,
145
+ collection: factory(parent),
146
+ accessorFactory: exports.mockItemUserAccessorFactory,
147
+ makeDocument: (a, d) => new MockItemUserDocument(a, d),
148
+ firestoreContext,
149
+ parent
150
+ });
151
+ };
152
+ }
153
+ exports.mockItemUserFirestoreCollection = mockItemUserFirestoreCollection;
154
+ function mockItemUserCollectionReference(context) {
155
+ return context.collectionGroup(exports.mockItemUserCollectionName).withConverter(exports.mockItemUserConverter);
156
+ }
157
+ exports.mockItemUserCollectionReference = mockItemUserCollectionReference;
158
+ function mockItemUserFirestoreCollectionGroup(firestoreContext) {
159
+ return firestoreContext.firestoreCollectionGroup({
160
+ itemsPerPage: 50,
161
+ queryLike: mockItemUserCollectionReference(firestoreContext),
162
+ accessorFactory: exports.mockItemUserAccessorFactory,
163
+ makeDocument: (accessor, documentAccessor) => new MockItemUserDocument(accessor, documentAccessor),
164
+ firestoreContext
165
+ });
166
+ }
167
+ exports.mockItemUserFirestoreCollectionGroup = mockItemUserFirestoreCollectionGroup;
106
168
  // MARK: MockItemSubItem
107
- exports.mockItemSubItemIdentity = (0, firebase_1.firestoreModelIdentity)('mockItemSub');
169
+ exports.mockItemSubItemIdentity = (0, firebase_1.firestoreModelIdentity)('mockItemSub', 'misi');
108
170
  /**
109
171
  * FirestoreDocument for MockItem
110
172
  */
@@ -155,54 +217,54 @@ function mockItemSubItemFirestoreCollectionGroup(firestoreContext) {
155
217
  }
156
218
  exports.mockItemSubItemFirestoreCollectionGroup = mockItemSubItemFirestoreCollectionGroup;
157
219
  // MARK: Sub-Sub Item
158
- exports.mockItemDeepSubItemIdentity = (0, firebase_1.firestoreModelIdentity)('mockItemDeepSub');
220
+ exports.mockItemSubItemDeepIdentity = (0, firebase_1.firestoreModelIdentity)('mockItemSubItemDeep', 'misid');
159
221
  /**
160
222
  * FirestoreDocument for MockSubItem
161
223
  */
162
- class MockItemDeepSubItemDocument extends firebase_1.AbstractFirestoreDocumentWithParent {
224
+ class MockItemSubItemDeepDocument extends firebase_1.AbstractFirestoreDocumentWithParent {
163
225
  get modelIdentity() {
164
- return exports.mockItemDeepSubItemIdentity;
226
+ return exports.mockItemSubItemDeepIdentity;
165
227
  }
166
228
  }
167
- exports.MockItemDeepSubItemDocument = MockItemDeepSubItemDocument;
229
+ exports.MockItemSubItemDeepDocument = MockItemSubItemDeepDocument;
168
230
  /**
169
231
  * Used to build a FirestoreDataConverter. Fields are configured via configuration. See the SnapshotConverterFunctions for more info.
170
232
  */
171
- exports.mockItemDeepSubItemConverter = (0, firebase_1.snapshotConverterFunctions)({
233
+ exports.mockItemSubItemDeepConverter = (0, firebase_1.snapshotConverterFunctions)({
172
234
  fields: {
173
235
  value: (0, firebase_1.optionalFirestoreNumber)()
174
236
  }
175
237
  });
176
- function mockItemDeepSubItemCollectionReferenceFactory(context) {
238
+ function mockItemSubItemDeepCollectionReferenceFactory(context) {
177
239
  return (parent) => {
178
- return context.subcollection(parent.documentRef, exports.mockItemDeepSubItemIdentity.collection).withConverter(exports.mockItemDeepSubItemConverter);
240
+ return context.subcollection(parent.documentRef, exports.mockItemSubItemDeepIdentity.collection).withConverter(exports.mockItemSubItemDeepConverter);
179
241
  };
180
242
  }
181
- exports.mockItemDeepSubItemCollectionReferenceFactory = mockItemDeepSubItemCollectionReferenceFactory;
182
- function mockItemDeepSubItemFirestoreCollection(firestoreContext) {
183
- const factory = mockItemDeepSubItemCollectionReferenceFactory(firestoreContext);
243
+ exports.mockItemSubItemDeepCollectionReferenceFactory = mockItemSubItemDeepCollectionReferenceFactory;
244
+ function mockItemSubItemDeepFirestoreCollection(firestoreContext) {
245
+ const factory = mockItemSubItemDeepCollectionReferenceFactory(firestoreContext);
184
246
  return (parent) => {
185
247
  return firestoreContext.firestoreCollectionWithParent({
186
248
  itemsPerPage: 50,
187
249
  collection: factory(parent),
188
- makeDocument: (a, d) => new MockItemDeepSubItemDocument(a, d),
250
+ makeDocument: (a, d) => new MockItemSubItemDeepDocument(a, d),
189
251
  firestoreContext,
190
252
  parent
191
253
  });
192
254
  };
193
255
  }
194
- exports.mockItemDeepSubItemFirestoreCollection = mockItemDeepSubItemFirestoreCollection;
195
- function mockItemDeepSubItemCollectionReference(context) {
196
- return context.collectionGroup(exports.mockItemDeepSubItemIdentity.collection).withConverter(exports.mockItemDeepSubItemConverter);
256
+ exports.mockItemSubItemDeepFirestoreCollection = mockItemSubItemDeepFirestoreCollection;
257
+ function mockItemSubItemDeepCollectionReference(context) {
258
+ return context.collectionGroup(exports.mockItemSubItemDeepIdentity.collection).withConverter(exports.mockItemSubItemDeepConverter);
197
259
  }
198
- exports.mockItemDeepSubItemCollectionReference = mockItemDeepSubItemCollectionReference;
199
- function mockItemDeepSubItemFirestoreCollectionGroup(firestoreContext) {
260
+ exports.mockItemSubItemDeepCollectionReference = mockItemSubItemDeepCollectionReference;
261
+ function mockItemSubItemDeepFirestoreCollectionGroup(firestoreContext) {
200
262
  return firestoreContext.firestoreCollectionGroup({
201
263
  itemsPerPage: 50,
202
- queryLike: mockItemDeepSubItemCollectionReference(firestoreContext),
203
- makeDocument: (accessor, documentAccessor) => new MockItemDeepSubItemDocument(accessor, documentAccessor),
264
+ queryLike: mockItemSubItemDeepCollectionReference(firestoreContext),
265
+ makeDocument: (accessor, documentAccessor) => new MockItemSubItemDeepDocument(accessor, documentAccessor),
204
266
  firestoreContext
205
267
  });
206
268
  }
207
- exports.mockItemDeepSubItemFirestoreCollectionGroup = mockItemDeepSubItemFirestoreCollectionGroup;
269
+ exports.mockItemSubItemDeepFirestoreCollectionGroup = mockItemSubItemDeepFirestoreCollectionGroup;
208
270
  //# sourceMappingURL=firestore.mock.item.js.map
@@ -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,gDAAud;AAMvd,kBAAkB;AACL,QAAA,gBAAgB,GAAG,IAAA,iCAAsB,EAAC,UAAU,CAAC,CAAC;AAgBnE,MAAa,gBAAiB,SAAQ,oCAAqD;IACzF,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,IAAI,EAAE,IAAA,2BAAgB,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;KAC1C;CACF,CAAC,CAAC;AAEH;;;;;GAKG;AACH,SAAgB,2BAA2B,CAAC,OAAyB;IACnE,OAAO,OAAO,CAAC,UAAU,CAAC,wBAAgB,CAAC,UAAU,CAAC,CAAC,aAAa,CAAW,yBAAiB,CAAC,CAAC;AACpG,CAAC;AAFD,kEAEC;AAID,SAAgB,2BAA2B,CAAC,gBAAkC;IAC5E,OAAO,gBAAgB,CAAC,mBAAmB,CAAC;QAC1C,YAAY,EAAE,EAAE;QAChB,UAAU,EAAE,2BAA2B,CAAC,gBAAgB,CAAC;QACzD,YAAY,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,IAAI,gBAAgB,CAAC,CAAC,E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ACzC,OAAO,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,WAAW,EAAE,mCAA2B,CAAC,UAAU,CAAC,CAAC,aAAa,CAAsB,oCAA4B,CAAC,CAAC;IAC5J,CAAC,CAAC;AACJ,CAAC;AAJD,sGAIC;AAKD,SAAgB,sCAAsC,CAAC,gBAAkC;IACvF,MAAM,OAAO,GAAG,6CAA6C,CAAC,gBAAgB,CAAC,CAAC;IAEhF,OAAO,CAAC,MAA+B,EAAE,EAAE;QACzC,OAAO,gBAAgB,CAAC,6BAA6B,CAAC;YACpD,YAAY,EAAE,EAAE;YAChB,UAAU,EAAE,OAAO,CAAC,MAAM,CAAC;YAC3B,YAAY,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,IAAI,2BAA2B,CAAC,CAAC,EAAE,CAAC,CAAC;YAC7D,gBAAgB;YAChB,MAAM;SACP,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAZD,wFAYC;AAED,SAAgB,sCAAsC,CAAC,OAAyB;IAC9E,OAAO,OAAO,CAAC,eAAe,CAAC,mCAA2B,CAAC,UAAU,CAAC,CAAC,aAAa,CAAsB,oCAA4B,CAAC,CAAC;AAC1I,CAAC;AAFD,wFAEC;AAID,SAAgB,2CAA2C,CAAC,gBAAkC;IAC5F,OAAO,gBAAgB,CAAC,wBAAwB,CAAC;QAC/C,YAAY,EAAE,EAAE;QAChB,SAAS,EAAE,sCAAsC,CAAC,gBAAgB,CAAC;QACnE,YAAY,EAAE,CAAC,QAAQ,EAAE,gBAAgB,EAAE,EAAE,CAAC,IAAI,2BAA2B,CAAC,QAAQ,EAAE,gBAAgB,CAAC;QACzG,gBAAgB;KACjB,CAAC,CAAC;AACL,CAAC;AAPD,kGAOC"}
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,gDAwB2B;AAM3B,kB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@@ export declare function mockItemWithTestValue(test: boolean): FirestoreQueryCons
19
19
  * @param parent
20
20
  * @returns
21
21
  */
22
- export declare function allChildMockItemDeepSubItemsWithinMockItem(mockItem: DocumentReference<MockItem>): FirestoreQueryConstraint[];
22
+ export declare function allChildMockItemSubItemDeepsWithinMockItem(mockItem: DocumentReference<MockItem>): FirestoreQueryConstraint[];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.allChildMockItemDeepSubItemsWithinMockItem = exports.mockItemWithTestValue = exports.mockItemWithValue = void 0;
3
+ exports.allChildMockItemSubItemDeepsWithinMockItem = exports.mockItemWithTestValue = exports.mockItemWithValue = void 0;
4
4
  const firebase_1 = require("@dereekb/firebase");
5
5
  function mockItemWithValue(value) {
6
6
  return (0, firebase_1.where)('value', '==', value);
@@ -27,8 +27,8 @@ exports.mockItemWithTestValue = mockItemWithTestValue;
27
27
  * @param parent
28
28
  * @returns
29
29
  */
30
- function allChildMockItemDeepSubItemsWithinMockItem(mockItem) {
30
+ function allChildMockItemSubItemDeepsWithinMockItem(mockItem) {
31
31
  return (0, firebase_1.allChildDocumentsUnderParent)(mockItem);
32
32
  }
33
- exports.allChildMockItemDeepSubItemsWithinMockItem = allChildMockItemDeepSubItemsWithinMockItem;
33
+ exports.allChildMockItemSubItemDeepsWithinMockItem = allChildMockItemSubItemDeepsWithinMockItem;
34
34
  //# sourceMappingURL=firestore.mock.item.query.js.map
@@ -1,20 +1,23 @@
1
- import { MockItem, MockItemDeepSubItem, MockItemDeepSubItemDocument, MockItemDeepSubItemFirestoreCollectionFactory, MockItemDeepSubItemFirestoreCollectionGroup, MockItemDeepSubItemRoles, MockItemDocument, MockItemFirestoreCollection, MockItemPrivate, MockItemPrivateDocument, MockItemPrivateFirestoreCollectionFactory, MockItemPrivateFirestoreCollectionGroup, MockItemPrivateRoles, MockItemRoles, MockItemSubItem, MockItemSubItemDocument, MockItemSubItemFirestoreCollectionFactory, MockItemSubItemFirestoreCollectionGroup, MockItemSubItemRoles, MockItemTypes } from './firestore.mock.item';
1
+ import { MockItem, MockItemSubItemDeep, MockItemSubItemDeepDocument, MockItemSubItemDeepFirestoreCollectionFactory, MockItemSubItemDeepFirestoreCollectionGroup, MockItemSubItemDeepRoles, MockItemDocument, MockItemFirestoreCollection, MockItemPrivate, MockItemPrivateDocument, MockItemPrivateFirestoreCollectionFactory, MockItemPrivateFirestoreCollectionGroup, MockItemPrivateRoles, MockItemRoles, MockItemSubItem, MockItemSubItemDocument, MockItemSubItemFirestoreCollectionFactory, MockItemSubItemFirestoreCollectionGroup, MockItemSubItemRoles, MockItemTypes, MockItemUser, MockItemUserDocument, MockItemUserFirestoreCollectionFactory, MockItemUserFirestoreCollectionGroup, MockItemUserRoles } from './firestore.mock.item';
2
2
  import { FirebaseAppModelContext, FirestoreContext } from '@dereekb/firebase';
3
3
  import { GrantedRoleMap } from '@dereekb/model';
4
4
  export declare abstract class MockItemCollections {
5
5
  abstract readonly mockItemCollection: MockItemFirestoreCollection;
6
6
  abstract readonly mockItemPrivateCollectionFactory: MockItemPrivateFirestoreCollectionFactory;
7
7
  abstract readonly mockItemPrivateCollectionGroup: MockItemPrivateFirestoreCollectionGroup;
8
+ abstract readonly mockItemUserCollectionFactory: MockItemUserFirestoreCollectionFactory;
9
+ abstract readonly mockItemUserCollectionGroup: MockItemUserFirestoreCollectionGroup;
8
10
  abstract readonly mockItemSubItemCollectionFactory: MockItemSubItemFirestoreCollectionFactory;
9
11
  abstract readonly mockItemSubItemCollectionGroup: MockItemSubItemFirestoreCollectionGroup;
10
- abstract readonly mockItemDeepSubItemCollectionFactory: MockItemDeepSubItemFirestoreCollectionFactory;
11
- abstract readonly mockItemDeepSubItemCollectionGroup: MockItemDeepSubItemFirestoreCollectionGroup;
12
+ abstract readonly mockItemSubItemDeepCollectionFactory: MockItemSubItemDeepFirestoreCollectionFactory;
13
+ abstract readonly mockItemSubItemDeepCollectionGroup: MockItemSubItemDeepFirestoreCollectionGroup;
12
14
  }
13
15
  export declare function makeMockItemCollections(firestoreContext: FirestoreContext): MockItemCollections;
14
16
  export declare const mockItemFirebaseModelServiceFactory: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItem, MockItemDocument, MockItemRoles>;
15
17
  export declare const mockItemPrivateFirebaseModelServiceFactory: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemPrivate, MockItemPrivateDocument, MockItemPrivateRoles>;
18
+ export declare const mockItemUserFirebaseModelServiceFactory: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemUser, MockItemUserDocument, MockItemUserRoles>;
16
19
  export declare const mockItemSubItemFirebaseModelServiceFactory: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemSubItem, MockItemSubItemDocument, MockItemSubItemRoles>;
17
- export declare const mockItemDeepSubItemFirebaseModelServiceFactory: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemDeepSubItem, MockItemDeepSubItemDocument, MockItemDeepSubItemRoles>;
20
+ export declare const mockItemSubItemDeepFirebaseModelServiceFactory: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemSubItemDeep, MockItemSubItemDeepDocument, MockItemSubItemDeepRoles>;
18
21
  export declare type MockModelTypes = MockItemTypes;
19
22
  export declare type MockFirebaseContextAppContext = MockItemCollections;
20
23
  export declare type MockFirebaseBaseContext = FirebaseAppModelContext<MockFirebaseContextAppContext> & {
@@ -26,14 +29,16 @@ export declare type MockFirebaseBaseContext = FirebaseAppModelContext<MockFireba
26
29
  export declare const MOCK_FIREBASE_MODEL_SERVICE_FACTORIES: {
27
30
  mockItem: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItem, MockItemDocument, MockItemRoles>;
28
31
  mockItemPrivate: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemPrivate, MockItemPrivateDocument, MockItemPrivateRoles>;
32
+ mockItemUser: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemUser, MockItemUserDocument, MockItemUserRoles>;
29
33
  mockItemSub: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemSubItem, MockItemSubItemDocument, MockItemSubItemRoles>;
30
- mockItemDeepSub: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemDeepSubItem, MockItemDeepSubItemDocument, MockItemDeepSubItemRoles>;
34
+ mockItemSubItemDeep: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemSubItemDeep, MockItemSubItemDeepDocument, MockItemSubItemDeepRoles>;
31
35
  };
32
36
  export declare const mockFirebaseModelServices: import("@dereekb/firebase").FirebaseModelsService<{
33
37
  mockItem: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItem, MockItemDocument, MockItemRoles>;
34
38
  mockItemPrivate: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemPrivate, MockItemPrivateDocument, MockItemPrivateRoles>;
39
+ mockItemUser: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemUser, MockItemUserDocument, MockItemUserRoles>;
35
40
  mockItemSub: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemSubItem, MockItemSubItemDocument, MockItemSubItemRoles>;
36
- mockItemDeepSub: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemDeepSubItem, MockItemDeepSubItemDocument, MockItemDeepSubItemRoles>;
41
+ mockItemSubItemDeep: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemSubItemDeep, MockItemSubItemDeepDocument, MockItemSubItemDeepRoles>;
37
42
  }, MockFirebaseContext>;
38
43
  export declare type MockFirebaseContext = MockFirebaseBaseContext & {
39
44
  service?: typeof mockFirebaseModelServices;