@dereekb/firebase 7.1.0 → 7.2.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ # [7.2.0](https://github.com/dereekb/dbx-components/compare/v7.1.0-dev...v7.2.0) (2022-06-06)
6
+
7
+
8
+ ### Features
9
+
10
+ * firestoreModeIdentity can now accept a collection name ([1e0646e](https://github.com/dereekb/dbx-components/commit/1e0646e598a0834d8b4c3d264bb5ee42626e9fc7))
11
+
12
+
13
+
5
14
  # [7.1.0](https://github.com/dereekb/dbx-components/compare/v7.0.1-dev...v7.1.0) (2022-06-06)
6
15
 
7
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/firebase",
3
- "version": "7.1.0",
3
+ "version": "7.2.0",
4
4
  "devDependencies": {
5
5
  "@firebase/rules-unit-testing": "^2.0.0"
6
6
  },
@@ -22,19 +22,19 @@
22
22
  "rxjs": "^7.0.0",
23
23
  "rxfire": "^6.0.3",
24
24
  "firebase": "^9.8.0",
25
- "@dereekb/util": "7.1.0",
25
+ "@dereekb/util": "7.2.0",
26
26
  "make-error": "^1.3.0",
27
27
  "ts-essentials": "^9.1.2",
28
28
  "extra-set": "^2.2.11",
29
- "@dereekb/rxjs": "7.1.0",
29
+ "@dereekb/rxjs": "7.2.0",
30
30
  "ms": "^3.0.0-canary.1",
31
- "@dereekb/date": "7.1.0",
31
+ "@dereekb/date": "7.2.0",
32
32
  "class-transformer": "^0.5.1",
33
33
  "date-fns": "^2.28.0",
34
34
  "class-validator": "^0.13.2",
35
35
  "date-fns-tz": "^1.3.0",
36
36
  "rrule": "git+https://git@github.com/dereekb/rrule.git#17adf5708d6567b4d01a3a8afd106261421ea492",
37
- "@dereekb/model": "7.1.0",
37
+ "@dereekb/model": "7.2.0",
38
38
  "tslib": "^2.0.0"
39
39
  }
40
40
  }
@@ -17,18 +17,17 @@ export declare type FirestoreModelName = ModelTypeString;
17
17
  * Each collection name in the app should be unique, as usage of CollectionGroups would cause collections with the same name to be returned.
18
18
  */
19
19
  export declare type FirestoreCollectionName = string;
20
- /**
21
- * FirestoreCollectionName derived from a FirestoreModelName
22
- */
23
- export declare type FirestoreModelCollectionName<M extends FirestoreModelName> = `${Lowercase<M>}`;
24
20
  /**
25
21
  * A firestore model's identity
26
22
  */
27
- export declare type FirestoreModelIdentity<M extends FirestoreModelName = FirestoreModelName> = {
23
+ export declare type FirestoreModelIdentity<M extends FirestoreModelName = FirestoreModelName, C extends FirestoreCollectionName = FirestoreCollectionName> = {
28
24
  readonly model: M;
29
- readonly collection: FirestoreModelCollectionName<M>;
25
+ readonly collection: C;
30
26
  };
31
- export declare type FirestoreCollectionNames<I extends FirestoreModelIdentity> = I extends FirestoreModelIdentity<infer M> ? FirestoreModelCollectionName<M> : never;
27
+ /**
28
+ * A default collection name derived from the model name.
29
+ */
30
+ export declare type FirestoreModelDefaultCollectionName<M extends FirestoreModelName> = `${Lowercase<M>}`;
32
31
  export declare type FirestoreModelNames<I extends FirestoreModelIdentity> = I extends FirestoreModelIdentity<infer M> ? M : never;
33
32
  /**
34
33
  * Creates a FirestoreModelIdentity value.
@@ -36,7 +35,8 @@ export declare type FirestoreModelNames<I extends FirestoreModelIdentity> = I ex
36
35
  * @param modelName
37
36
  * @returns
38
37
  */
39
- export declare function firestoreModelIdentity<M extends FirestoreModelName>(modelName: M): FirestoreModelIdentity<M>;
38
+ export declare function firestoreModelIdentity<M extends FirestoreModelName>(modelName: M): FirestoreModelIdentity<M, FirestoreModelDefaultCollectionName<M>>;
39
+ export declare function firestoreModelIdentity<M extends FirestoreModelName, C extends FirestoreCollectionName = FirestoreCollectionName>(modelName: M, collectionName: C): FirestoreModelIdentity<M, C>;
40
40
  /**
41
41
  * Reference to a FirestoreCollectionName
42
42
  */
@@ -5,15 +5,9 @@ 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
- /**
9
- * Creates a FirestoreModelIdentity value.
10
- *
11
- * @param modelName
12
- * @returns
13
- */
14
- function firestoreModelIdentity(modelName) {
8
+ function firestoreModelIdentity(modelName, collectionName) {
15
9
  return {
16
- collection: modelName.toLowerCase(),
10
+ collection: collectionName !== null && collectionName !== void 0 ? collectionName : modelName.toLowerCase(),
17
11
  model: modelName
18
12
  };
19
13
  }
@@ -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;AAiCtG;;;;;GAKG;AACH,SAAgB,sBAAsB,CAA+B,SAAY;IAC/E,OAAO;QACL,UAAU,EAAE,SAAS,CAAC,WAAW,EAAqC;QACtE,KAAK,EAAE,SAAS;KACjB,CAAC;AACJ,CAAC;AALD,wDAKC;AA6GD;;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"}
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;AAwCtG,SAAgB,sBAAsB,CAA4F,SAAY,EAAE,cAAkB;IAChK,OAAO;QACL,UAAU,EAAE,cAAc,aAAd,cAAc,cAAd,cAAc,GAAK,SAAS,CAAC,WAAW,EAAQ;QAC5D,KAAK,EAAE,SAAS;KACjB,CAAC;AACJ,CAAC;AALD,wDAKC;AA6GD;;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,15 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ # [7.2.0](https://github.com/dereekb/dbx-components/compare/v7.1.0-dev...v7.2.0) (2022-06-06)
6
+
7
+
8
+ ### Features
9
+
10
+ * firestoreModeIdentity can now accept a collection name ([1e0646e](https://github.com/dereekb/dbx-components/commit/1e0646e598a0834d8b4c3d264bb5ee42626e9fc7))
11
+
12
+
13
+
5
14
  # [7.1.0](https://github.com/dereekb/dbx-components/compare/v7.0.1-dev...v7.1.0) (2022-06-06)
6
15
 
7
16
 
package/test/package.json CHANGED
@@ -1,28 +1,28 @@
1
1
  {
2
2
  "name": "@dereekb/firebase/test",
3
- "version": "7.1.0",
3
+ "version": "7.2.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.1.0",
9
- "@dereekb/util": "7.1.0",
8
+ "@dereekb/util/test": "7.2.0",
9
+ "@dereekb/util": "7.2.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.1.0",
13
+ "@dereekb/firebase": "7.2.0",
14
14
  "rxjs": "^7.0.0",
15
15
  "rxfire": "^6.0.3",
16
16
  "firebase": "^9.8.0",
17
- "@dereekb/rxjs": "7.1.0",
17
+ "@dereekb/rxjs": "7.2.0",
18
18
  "ms": "^3.0.0-canary.1",
19
- "@dereekb/date": "7.1.0",
19
+ "@dereekb/date": "7.2.0",
20
20
  "class-transformer": "^0.5.1",
21
21
  "date-fns": "^2.28.0",
22
22
  "class-validator": "^0.13.2",
23
23
  "date-fns-tz": "^1.3.0",
24
24
  "rrule": "git+https://git@github.com/dereekb/rrule.git#17adf5708d6567b4d01a3a8afd106261421ea492",
25
- "@dereekb/model": "7.1.0",
25
+ "@dereekb/model": "7.2.0",
26
26
  "tslib": "^2.0.0"
27
27
  }
28
28
  }
@@ -1,8 +1,8 @@
1
1
  import { Maybe } from '@dereekb/util';
2
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 mockItemUserIdentity | 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,7 @@ 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 mockItemUserIdentity: FirestoreModelIdentity<"mockItemUser">;
91
+ export declare const mockItemUserIdentity: FirestoreModelIdentity<"mockItemUser", "miu">;
96
92
  /**
97
93
  * An item associated per user to this item.
98
94
  */
@@ -104,7 +100,7 @@ export declare type MockItemUserRoles = GrantedReadRole | 'admin';
104
100
  * FirestoreDocument for MockItem
105
101
  */
106
102
  export declare class MockItemUserDocument extends AbstractFirestoreDocument<MockItemUser, MockItemUserDocument> {
107
- get modelIdentity(): FirestoreModelIdentity<"mockItemUser">;
103
+ get modelIdentity(): FirestoreModelIdentity<"mockItemUser", "miu">;
108
104
  }
109
105
  export declare type MockItemUserData = FirestoreModelData<MockItemUser, {}>;
110
106
  /**
@@ -136,7 +132,7 @@ export declare function mockItemUserFirestoreCollection(firestoreContext: Firest
136
132
  export declare function mockItemUserCollectionReference(context: FirestoreContext): CollectionGroup<MockItemUser>;
137
133
  export declare type MockItemUserFirestoreCollectionGroup = FirestoreCollectionGroup<MockItemUser, MockItemUserDocument>;
138
134
  export declare function mockItemUserFirestoreCollectionGroup(firestoreContext: FirestoreContext): MockItemUserFirestoreCollectionGroup;
139
- export declare const mockItemSubItemIdentity: FirestoreModelIdentity<"mockItemSub">;
135
+ export declare const mockItemSubItemIdentity: FirestoreModelIdentity<"mockItemSub", "misi">;
140
136
  /**
141
137
  * Data for a sub item in our firestore collection.
142
138
  *
@@ -164,31 +160,31 @@ export declare function mockItemSubItemFirestoreCollection(firestoreContext: Fir
164
160
  export declare function mockItemSubItemCollectionReference(context: FirestoreContext): CollectionGroup<MockItemSubItem>;
165
161
  export declare type MockItemSubItemFirestoreCollectionGroup = FirestoreCollectionGroup<MockItemSubItem, MockItemSubItemDocument>;
166
162
  export declare function mockItemSubItemFirestoreCollectionGroup(firestoreContext: FirestoreContext): MockItemSubItemFirestoreCollectionGroup;
167
- export declare const mockItemDeepSubItemIdentity: FirestoreModelIdentity<"mockItemDeepSub">;
163
+ export declare const mockItemSubItemDeepIdentity: FirestoreModelIdentity<"mockItemSubItemDeep", "misid">;
168
164
  /**
169
165
  * Data for a sub item in our firestore collection.
170
166
  *
171
- * There may be an unlimited number of MockItemDeepSubItems for a MockSubItem.
167
+ * There may be an unlimited number of MockItemSubItemDeeps for a MockSubItem.
172
168
  */
173
- export interface MockItemDeepSubItem {
169
+ export interface MockItemSubItemDeep {
174
170
  value?: Maybe<number>;
175
171
  }
176
- export declare type MockItemDeepSubItemRoles = GrantedReadRole | 'admin';
172
+ export declare type MockItemSubItemDeepRoles = GrantedReadRole | 'admin';
177
173
  /**
178
174
  * FirestoreDocument for MockSubItem
179
175
  */
180
- export declare class MockItemDeepSubItemDocument extends AbstractFirestoreDocumentWithParent<MockItemSubItem, MockItemDeepSubItem, MockItemDeepSubItemDocument> {
181
- get modelIdentity(): FirestoreModelIdentity<"mockItemDeepSub">;
176
+ export declare class MockItemSubItemDeepDocument extends AbstractFirestoreDocumentWithParent<MockItemSubItem, MockItemSubItemDeep, MockItemSubItemDeepDocument> {
177
+ get modelIdentity(): FirestoreModelIdentity<"mockItemSubItemDeep", "misid">;
182
178
  }
183
- export declare type MockItemDeepSubItemData = ExpectedFirestoreModelData<MockItemDeepSubItem>;
179
+ export declare type MockItemSubItemDeepData = ExpectedFirestoreModelData<MockItemSubItemDeep>;
184
180
  /**
185
181
  * Used to build a FirestoreDataConverter. Fields are configured via configuration. See the SnapshotConverterFunctions for more info.
186
182
  */
187
- export declare const mockItemDeepSubItemConverter: import("@dereekb/firebase").SnapshotConverterFunctions<MockItemDeepSubItem, import("@dereekb/util").ReplaceType<MockItemDeepSubItem, object, any>>;
188
- export declare function mockItemDeepSubItemCollectionReferenceFactory(context: FirestoreContext): (parent: MockItemSubItemDocument) => CollectionReference<MockItemDeepSubItem>;
189
- export declare type MockItemDeepSubItemFirestoreCollection = FirestoreCollectionWithParent<MockItemDeepSubItem, MockItemSubItem, MockItemDeepSubItemDocument, MockItemSubItemDocument>;
190
- export declare type MockItemDeepSubItemFirestoreCollectionFactory = (parent: MockItemSubItemDocument) => MockItemDeepSubItemFirestoreCollection;
191
- export declare function mockItemDeepSubItemFirestoreCollection(firestoreContext: FirestoreContext): MockItemDeepSubItemFirestoreCollectionFactory;
192
- export declare function mockItemDeepSubItemCollectionReference(context: FirestoreContext): CollectionGroup<MockItemDeepSubItem>;
193
- export declare type MockItemDeepSubItemFirestoreCollectionGroup = FirestoreCollectionGroup<MockItemDeepSubItem, MockItemDeepSubItemDocument>;
194
- 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;
@@ -12,8 +12,8 @@ export declare class MockItemCollectionFixtureInstance {
12
12
  get mockItemSubItemCollectionGroup(): import("./firestore.mock.item").MockItemSubItemFirestoreCollectionGroup;
13
13
  get mockItemUserCollection(): import("./firestore.mock.item").MockItemUserFirestoreCollectionFactory;
14
14
  get mockItemUserCollectionGroup(): import("./firestore.mock.item").MockItemUserFirestoreCollectionGroup;
15
- get mockItemDeepSubItemCollection(): import("./firestore.mock.item").MockItemDeepSubItemFirestoreCollectionFactory;
16
- get mockItemDeepSubItemCollectionGroup(): import("./firestore.mock.item").MockItemDeepSubItemFirestoreCollectionGroup;
15
+ get mockItemSubItemDeepCollection(): import("./firestore.mock.item").MockItemSubItemDeepFirestoreCollectionFactory;
16
+ get mockItemSubItemDeepCollectionGroup(): import("./firestore.mock.item").MockItemSubItemDeepFirestoreCollectionGroup;
17
17
  constructor(fixture: MockItemCollectionFixture);
18
18
  }
19
19
  /**
@@ -30,11 +30,11 @@ class MockItemCollectionFixtureInstance {
30
30
  get mockItemUserCollectionGroup() {
31
31
  return this.collections.mockItemUserCollectionGroup;
32
32
  }
33
- get mockItemDeepSubItemCollection() {
34
- return this.collections.mockItemDeepSubItemCollectionFactory;
33
+ get mockItemSubItemDeepCollection() {
34
+ return this.collections.mockItemSubItemDeepCollectionFactory;
35
35
  }
36
- get mockItemDeepSubItemCollectionGroup() {
37
- return this.collections.mockItemDeepSubItemCollectionGroup;
36
+ get mockItemSubItemDeepCollectionGroup() {
37
+ return this.collections.mockItemSubItemDeepCollectionGroup;
38
38
  }
39
39
  }
40
40
  exports.MockItemCollectionFixtureInstance = MockItemCollectionFixtureInstance;
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  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.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.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) {
@@ -104,7 +100,7 @@ function mockItemPrivateFirestoreCollectionGroup(firestoreContext) {
104
100
  }
105
101
  exports.mockItemPrivateFirestoreCollectionGroup = mockItemPrivateFirestoreCollectionGroup;
106
102
  // MARK: MockItemUser
107
- exports.mockItemUserIdentity = (0, firebase_1.firestoreModelIdentity)('mockItemUser');
103
+ exports.mockItemUserIdentity = (0, firebase_1.firestoreModelIdentity)('mockItemUser', 'miu');
108
104
  /**
109
105
  * FirestoreDocument for MockItem
110
106
  */
@@ -124,7 +120,7 @@ exports.mockItemUserIdentifier = '0';
124
120
  */
125
121
  exports.mockItemUserConverter = (0, firebase_1.snapshotConverterFunctions)({
126
122
  fieldConversions: (0, util_1.modelFieldConversions)({
127
- uid: (0, firebase_1.firestoreString)(),
123
+ uid: (0, firebase_1.firestoreUID)(),
128
124
  name: (0, firebase_1.firestoreString)()
129
125
  })
130
126
  });
@@ -170,7 +166,7 @@ function mockItemUserFirestoreCollectionGroup(firestoreContext) {
170
166
  }
171
167
  exports.mockItemUserFirestoreCollectionGroup = mockItemUserFirestoreCollectionGroup;
172
168
  // MARK: MockItemSubItem
173
- exports.mockItemSubItemIdentity = (0, firebase_1.firestoreModelIdentity)('mockItemSub');
169
+ exports.mockItemSubItemIdentity = (0, firebase_1.firestoreModelIdentity)('mockItemSub', 'misi');
174
170
  /**
175
171
  * FirestoreDocument for MockItem
176
172
  */
@@ -221,54 +217,54 @@ function mockItemSubItemFirestoreCollectionGroup(firestoreContext) {
221
217
  }
222
218
  exports.mockItemSubItemFirestoreCollectionGroup = mockItemSubItemFirestoreCollectionGroup;
223
219
  // MARK: Sub-Sub Item
224
- exports.mockItemDeepSubItemIdentity = (0, firebase_1.firestoreModelIdentity)('mockItemDeepSub');
220
+ exports.mockItemSubItemDeepIdentity = (0, firebase_1.firestoreModelIdentity)('mockItemSubItemDeep', 'misid');
225
221
  /**
226
222
  * FirestoreDocument for MockSubItem
227
223
  */
228
- class MockItemDeepSubItemDocument extends firebase_1.AbstractFirestoreDocumentWithParent {
224
+ class MockItemSubItemDeepDocument extends firebase_1.AbstractFirestoreDocumentWithParent {
229
225
  get modelIdentity() {
230
- return exports.mockItemDeepSubItemIdentity;
226
+ return exports.mockItemSubItemDeepIdentity;
231
227
  }
232
228
  }
233
- exports.MockItemDeepSubItemDocument = MockItemDeepSubItemDocument;
229
+ exports.MockItemSubItemDeepDocument = MockItemSubItemDeepDocument;
234
230
  /**
235
231
  * Used to build a FirestoreDataConverter. Fields are configured via configuration. See the SnapshotConverterFunctions for more info.
236
232
  */
237
- exports.mockItemDeepSubItemConverter = (0, firebase_1.snapshotConverterFunctions)({
233
+ exports.mockItemSubItemDeepConverter = (0, firebase_1.snapshotConverterFunctions)({
238
234
  fields: {
239
235
  value: (0, firebase_1.optionalFirestoreNumber)()
240
236
  }
241
237
  });
242
- function mockItemDeepSubItemCollectionReferenceFactory(context) {
238
+ function mockItemSubItemDeepCollectionReferenceFactory(context) {
243
239
  return (parent) => {
244
- return context.subcollection(parent.documentRef, exports.mockItemDeepSubItemIdentity.collection).withConverter(exports.mockItemDeepSubItemConverter);
240
+ return context.subcollection(parent.documentRef, exports.mockItemSubItemDeepIdentity.collection).withConverter(exports.mockItemSubItemDeepConverter);
245
241
  };
246
242
  }
247
- exports.mockItemDeepSubItemCollectionReferenceFactory = mockItemDeepSubItemCollectionReferenceFactory;
248
- function mockItemDeepSubItemFirestoreCollection(firestoreContext) {
249
- const factory = mockItemDeepSubItemCollectionReferenceFactory(firestoreContext);
243
+ exports.mockItemSubItemDeepCollectionReferenceFactory = mockItemSubItemDeepCollectionReferenceFactory;
244
+ function mockItemSubItemDeepFirestoreCollection(firestoreContext) {
245
+ const factory = mockItemSubItemDeepCollectionReferenceFactory(firestoreContext);
250
246
  return (parent) => {
251
247
  return firestoreContext.firestoreCollectionWithParent({
252
248
  itemsPerPage: 50,
253
249
  collection: factory(parent),
254
- makeDocument: (a, d) => new MockItemDeepSubItemDocument(a, d),
250
+ makeDocument: (a, d) => new MockItemSubItemDeepDocument(a, d),
255
251
  firestoreContext,
256
252
  parent
257
253
  });
258
254
  };
259
255
  }
260
- exports.mockItemDeepSubItemFirestoreCollection = mockItemDeepSubItemFirestoreCollection;
261
- function mockItemDeepSubItemCollectionReference(context) {
262
- 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);
263
259
  }
264
- exports.mockItemDeepSubItemCollectionReference = mockItemDeepSubItemCollectionReference;
265
- function mockItemDeepSubItemFirestoreCollectionGroup(firestoreContext) {
260
+ exports.mockItemSubItemDeepCollectionReference = mockItemSubItemDeepCollectionReference;
261
+ function mockItemSubItemDeepFirestoreCollectionGroup(firestoreContext) {
266
262
  return firestoreContext.firestoreCollectionGroup({
267
263
  itemsPerPage: 50,
268
- queryLike: mockItemDeepSubItemCollectionReference(firestoreContext),
269
- makeDocument: (accessor, documentAccessor) => new MockItemDeepSubItemDocument(accessor, documentAccessor),
264
+ queryLike: mockItemSubItemDeepCollectionReference(firestoreContext),
265
+ makeDocument: (accessor, documentAccessor) => new MockItemSubItemDeepDocument(accessor, documentAccessor),
270
266
  firestoreContext
271
267
  });
272
268
  }
273
- exports.mockItemDeepSubItemFirestoreCollectionGroup = mockItemDeepSubItemFirestoreCollectionGroup;
269
+ exports.mockItemSubItemDeepFirestoreCollectionGroup = mockItemSubItemDeepFirestoreCollectionGroup;
274
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,gDAuB2B;AAM3B,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,EAAE,CAAC,CAAC;QAClD,gBAAgB;KACjB,CAAC,CAAC;AACL,CAAC;AAPD,kEAOC;AAED,wBAAwB;AACX,QAAA,uBAAuB,GAAG,IAAA,iCAAsB,EAAC,iBAAiB,CAAC,CAAC;AAcjF;;GAEG;AACH,MAAa,uBAAwB,SAAQ,oCAAmE;IAC9G,IAAI,aAAa;QAC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,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,kBAAkB;AACL,QAAA,gBAAgB,GAAG,IAAA,iCAAsB,EAAC,UAAU,EAAE,IAAI,CAAC,CAAC;AAgBzE,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,EAAE,CAAC,CAAC;QAClD,gBAAgB;KACjB,CAAC,CAAC;AACL,CAAC;AAPD,kEAOC;AAED,wBAAwB;AACX,QAAA,uBAAuB,GAAG,IA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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"}
@@ -19,4 +19,4 @@ 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,4 +1,4 @@
1
- import { MockItem, MockItemDeepSubItem, MockItemDeepSubItemDocument, MockItemDeepSubItemFirestoreCollectionFactory, MockItemDeepSubItemFirestoreCollectionGroup, MockItemDeepSubItemRoles, MockItemDocument, MockItemFirestoreCollection, MockItemPrivate, MockItemPrivateDocument, MockItemPrivateFirestoreCollectionFactory, MockItemPrivateFirestoreCollectionGroup, MockItemPrivateRoles, MockItemRoles, MockItemSubItem, MockItemSubItemDocument, MockItemSubItemFirestoreCollectionFactory, MockItemSubItemFirestoreCollectionGroup, MockItemSubItemRoles, MockItemTypes, MockItemUser, MockItemUserDocument, MockItemUserFirestoreCollectionFactory, MockItemUserFirestoreCollectionGroup, MockItemUserRoles } 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 {
@@ -9,15 +9,15 @@ export declare abstract class MockItemCollections {
9
9
  abstract readonly mockItemUserCollectionGroup: MockItemUserFirestoreCollectionGroup;
10
10
  abstract readonly mockItemSubItemCollectionFactory: MockItemSubItemFirestoreCollectionFactory;
11
11
  abstract readonly mockItemSubItemCollectionGroup: MockItemSubItemFirestoreCollectionGroup;
12
- abstract readonly mockItemDeepSubItemCollectionFactory: MockItemDeepSubItemFirestoreCollectionFactory;
13
- abstract readonly mockItemDeepSubItemCollectionGroup: MockItemDeepSubItemFirestoreCollectionGroup;
12
+ abstract readonly mockItemSubItemDeepCollectionFactory: MockItemSubItemDeepFirestoreCollectionFactory;
13
+ abstract readonly mockItemSubItemDeepCollectionGroup: MockItemSubItemDeepFirestoreCollectionGroup;
14
14
  }
15
15
  export declare function makeMockItemCollections(firestoreContext: FirestoreContext): MockItemCollections;
16
16
  export declare const mockItemFirebaseModelServiceFactory: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItem, MockItemDocument, MockItemRoles>;
17
17
  export declare const mockItemPrivateFirebaseModelServiceFactory: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemPrivate, MockItemPrivateDocument, MockItemPrivateRoles>;
18
18
  export declare const mockItemUserFirebaseModelServiceFactory: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemUser, MockItemUserDocument, MockItemUserRoles>;
19
19
  export declare const mockItemSubItemFirebaseModelServiceFactory: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemSubItem, MockItemSubItemDocument, MockItemSubItemRoles>;
20
- 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>;
21
21
  export declare type MockModelTypes = MockItemTypes;
22
22
  export declare type MockFirebaseContextAppContext = MockItemCollections;
23
23
  export declare type MockFirebaseBaseContext = FirebaseAppModelContext<MockFirebaseContextAppContext> & {
@@ -31,14 +31,14 @@ export declare const MOCK_FIREBASE_MODEL_SERVICE_FACTORIES: {
31
31
  mockItemPrivate: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemPrivate, MockItemPrivateDocument, MockItemPrivateRoles>;
32
32
  mockItemUser: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemUser, MockItemUserDocument, MockItemUserRoles>;
33
33
  mockItemSub: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemSubItem, MockItemSubItemDocument, MockItemSubItemRoles>;
34
- mockItemDeepSub: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemDeepSubItem, MockItemDeepSubItemDocument, MockItemDeepSubItemRoles>;
34
+ mockItemSubItemDeep: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemSubItemDeep, MockItemSubItemDeepDocument, MockItemSubItemDeepRoles>;
35
35
  };
36
36
  export declare const mockFirebaseModelServices: import("@dereekb/firebase").FirebaseModelsService<{
37
37
  mockItem: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItem, MockItemDocument, MockItemRoles>;
38
38
  mockItemPrivate: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemPrivate, MockItemPrivateDocument, MockItemPrivateRoles>;
39
39
  mockItemUser: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemUser, MockItemUserDocument, MockItemUserRoles>;
40
40
  mockItemSub: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemSubItem, MockItemSubItemDocument, MockItemSubItemRoles>;
41
- mockItemDeepSub: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemDeepSubItem, MockItemDeepSubItemDocument, MockItemDeepSubItemRoles>;
41
+ mockItemSubItemDeep: import("@dereekb/firebase").FirebaseModelServiceFactory<MockFirebaseContext, MockItemSubItemDeep, MockItemSubItemDeepDocument, MockItemSubItemDeepRoles>;
42
42
  }, MockFirebaseContext>;
43
43
  export declare type MockFirebaseContext = MockFirebaseBaseContext & {
44
44
  service?: typeof mockFirebaseModelServices;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.mockFirebaseModelServices = exports.MOCK_FIREBASE_MODEL_SERVICE_FACTORIES = exports.mockItemDeepSubItemFirebaseModelServiceFactory = exports.mockItemSubItemFirebaseModelServiceFactory = exports.mockItemUserFirebaseModelServiceFactory = exports.mockItemPrivateFirebaseModelServiceFactory = exports.mockItemFirebaseModelServiceFactory = exports.makeMockItemCollections = exports.MockItemCollections = void 0;
3
+ exports.mockFirebaseModelServices = exports.MOCK_FIREBASE_MODEL_SERVICE_FACTORIES = exports.mockItemSubItemDeepFirebaseModelServiceFactory = exports.mockItemSubItemFirebaseModelServiceFactory = exports.mockItemUserFirebaseModelServiceFactory = exports.mockItemPrivateFirebaseModelServiceFactory = exports.mockItemFirebaseModelServiceFactory = exports.makeMockItemCollections = exports.MockItemCollections = void 0;
4
4
  const firestore_mock_item_1 = require("./firestore.mock.item");
5
5
  const firebase_1 = require("@dereekb/firebase");
6
6
  // MARK: Collections
@@ -16,8 +16,8 @@ function makeMockItemCollections(firestoreContext) {
16
16
  mockItemUserCollectionGroup: (0, firestore_mock_item_1.mockItemUserFirestoreCollectionGroup)(firestoreContext),
17
17
  mockItemSubItemCollectionFactory: (0, firestore_mock_item_1.mockItemSubItemFirestoreCollection)(firestoreContext),
18
18
  mockItemSubItemCollectionGroup: (0, firestore_mock_item_1.mockItemSubItemFirestoreCollectionGroup)(firestoreContext),
19
- mockItemDeepSubItemCollectionFactory: (0, firestore_mock_item_1.mockItemDeepSubItemFirestoreCollection)(firestoreContext),
20
- mockItemDeepSubItemCollectionGroup: (0, firestore_mock_item_1.mockItemDeepSubItemFirestoreCollectionGroup)(firestoreContext)
19
+ mockItemSubItemDeepCollectionFactory: (0, firestore_mock_item_1.mockItemSubItemDeepFirestoreCollection)(firestoreContext),
20
+ mockItemSubItemDeepCollectionGroup: (0, firestore_mock_item_1.mockItemSubItemDeepFirestoreCollectionGroup)(firestoreContext)
21
21
  };
22
22
  }
23
23
  exports.makeMockItemCollections = makeMockItemCollections;
@@ -55,20 +55,20 @@ exports.mockItemSubItemFirebaseModelServiceFactory = (0, firebase_1.firebaseMode
55
55
  },
56
56
  getFirestoreCollection: (c) => c.app.mockItemSubItemCollectionGroup
57
57
  });
58
- exports.mockItemDeepSubItemFirebaseModelServiceFactory = (0, firebase_1.firebaseModelServiceFactory)({
58
+ exports.mockItemSubItemDeepFirebaseModelServiceFactory = (0, firebase_1.firebaseModelServiceFactory)({
59
59
  roleMapForModel: function (output, context, model) {
60
60
  var _a;
61
61
  const roles = (_a = context.rolesToReturn) !== null && _a !== void 0 ? _a : { read: true };
62
62
  return roles;
63
63
  },
64
- getFirestoreCollection: (c) => c.app.mockItemDeepSubItemCollectionGroup
64
+ getFirestoreCollection: (c) => c.app.mockItemSubItemDeepCollectionGroup
65
65
  });
66
66
  exports.MOCK_FIREBASE_MODEL_SERVICE_FACTORIES = {
67
67
  mockItem: exports.mockItemFirebaseModelServiceFactory,
68
68
  mockItemPrivate: exports.mockItemPrivateFirebaseModelServiceFactory,
69
69
  mockItemUser: exports.mockItemUserFirebaseModelServiceFactory,
70
70
  mockItemSub: exports.mockItemSubItemFirebaseModelServiceFactory,
71
- mockItemDeepSub: exports.mockItemDeepSubItemFirebaseModelServiceFactory
71
+ mockItemSubItemDeep: exports.mockItemSubItemDeepFirebaseModelServiceFactory
72
72
  };
73
73
  exports.mockFirebaseModelServices = (0, firebase_1.firebaseModelsService)(exports.MOCK_FIREBASE_MODEL_SERVICE_FACTORIES);
74
74
  //# sourceMappingURL=firestore.mock.item.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"firestore.mock.item.service.js","sourceRoot":"","sources":["../../../../../../../packages/firebase/test/src/lib/common/firestore.mock.item.service.ts"],"names":[],"mappings":";;;AAAA,+DAmC+B;AAC/B,gDAAkK;AAIlK,oBAAoB;AACpB,MAAsB,mBAAmB;CAUxC;AAVD,kDAUC;AA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AC3D,YAAY,EAAE,+CAAuC;IACrD,WAAW,EAAE,kDAA0C;IACvD,eAAe,EAAE,sDAA8C;CAChE,CAAC;AAEW,QAAA,yBAAyB,GAAG,IAAA,gCAAqB,EAAoF,6CAAqC,CAAC,CAAC"}
1
+ {"version":3,"file":"firestore.mock.item.service.js","sourceRoot":"","sources":["../../../../../../../packages/firebase/test/src/lib/common/firestore.mock.item.service.ts"],"names":[],"mappings":";;;AAAA,+DAmC+B;AAC/B,gDAAkK;AAIlK,oBAAoB;AACpB,MAAsB,mBAAmB;CAUxC;AAVD,kDAUC;AAED,SAAgB,uBAAuB,CAAC,gBAAkC;IACxE,OAAO;QACL,kBAAkB,EAAE,IAAA,iDAA2B,EAAC,gBAAgB,CAAC;QACjE,gCAAgC,EAAE,IAAA,wDAAkC,EAAC,gBAAgB,CAAC;QACtF,8BAA8B,EAAE,IAAA,6DAAuC,EAAC,gBAAgB,CAAC;QACzF,6BAA6B,EAAE,IAAA,qDAA+B,EAAC,gBAAgB,CAAC;QAChF,2BAA2B,EAAE,IAAA,0DAAoC,EAAC,gBAAgB,CAAC;QACnF,gCAAgC,EAAE,IAAA,wDAAkC,EAAC,gBAAgB,CAAC;QACtF,8BAA8B,EAAE,IAAA,6DAAuC,EAAC,gBAAgB,CAAC;QACzF,oCAAoC,EAAE,IAAA,4DAAsC,EAAC,gBAAgB,CAAC;QAC9F,kCAAkC,EAAE,IAAA,iEAA2C,EAAC,gBAAgB,CAAC;KAClG,CAAC;AACJ,CAAC;AAZD,0DAYC;AAED,eAAe;AACF,QAAA,mCAAmC,GAAG,IAAA,sCAA2B,EAAiE;IAC7I,eAAe,EAAE,UAAU,MAAkE,EAAE,OAA4B,EAAE,KAAuB;;QAClJ,MAAM,KAAK,GAAkC,MAAA,OAAO,CAAC,aAAa,mCAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QAErF,OAAO,KAAK,CAAC;IACf,CAAC;IACD,sBAAsB,EAAE,CAAC,CAAC,EAAE,EAAE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eAAe,EAAE,UAAU,MAAwF,EAAE,OAA4B,EAAE,KAAkC;;QACnL,MAAM,KAAK,GAA6C,MAAA,OAAO,CAAC,aAAa,mCAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QAChG,OAAO,KAAK,CAAC;IACf,CAAC;IACD,sBAAsB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,kCAAkC;CACxE,CAAC,CAAC;AAcU,QAAA,qCAAqC,GAAG;IACnD,QAAQ,EAAE,2CAAmC;IAC7C,eAAe,EAAE,kDAA0C;IAC3D,YAAY,EAAE,+CAAuC;IACrD,WAAW,EAAE,kDAA0C;IACvD,mBAAmB,EAAE,sDAA8C;CACpE,CAAC;AAEW,QAAA,yBAAyB,GAAG,IAAA,gCAAqB,EAAoF,6CAAqC,CAAC,CAAC"}
@@ -86,9 +86,9 @@ function describeQueryDriverTests(f) {
86
86
  let queryDeepSubItems;
87
87
  let allDeepSubItems;
88
88
  beforeEach(() => tslib_1.__awaiter(this, void 0, void 0, function* () {
89
- queryDeepSubItems = f.instance.mockItemDeepSubItemCollectionGroup.query;
89
+ queryDeepSubItems = f.instance.mockItemSubItemDeepCollectionGroup.query;
90
90
  deepSubItemParentA = allSubItems[0];
91
- const results = yield Promise.all(allSubItems.map((parent) => (0, firebase_1.makeDocuments)(f.instance.mockItemDeepSubItemCollection(parent).documentAccessor(), {
91
+ const results = yield Promise.all(allSubItems.map((parent) => (0, firebase_1.makeDocuments)(f.instance.mockItemSubItemDeepCollection(parent).documentAccessor(), {
92
92
  count: deepSubItemCountPerItem,
93
93
  init: (i) => {
94
94
  return {
@@ -100,7 +100,7 @@ function describeQueryDriverTests(f) {
100
100
  }));
101
101
  // tests querying for all nested items under a parent
102
102
  it('querying for only items belonging to mock item parentA', () => tslib_1.__awaiter(this, void 0, void 0, function* () {
103
- const result = yield queryDeepSubItems((0, firestore_mock_item_query_1.allChildMockItemDeepSubItemsWithinMockItem)(parentA.documentRef)).getDocs();
103
+ const result = yield queryDeepSubItems((0, firestore_mock_item_query_1.allChildMockItemSubItemDeepsWithinMockItem)(parentA.documentRef)).getDocs();
104
104
  expect(result.docs.length).toBe(totalDeepSubItemsPerMockItem);
105
105
  result.docs.forEach((x) => { var _a, _b, _c, _d; return expect((_d = (_c = (_b = (_a = x.ref.parent) === null || _a === void 0 ? void 0 : _a.parent) === null || _b === void 0 ? void 0 : _b.parent) === null || _c === void 0 ? void 0 : _c.parent) === null || _d === void 0 ? void 0 : _d.path).toBe(parentA.documentRef.path); });
106
106
  }));
@@ -131,7 +131,7 @@ function describeQueryDriverTests(f) {
131
131
  /*
132
132
  const results = await Promise.all(
133
133
  allSubItems.map((parent: MockItemSubItemDocument) =>
134
- makeDocuments(f.instance.mockItemDeepSubItemCollection(parent).documentAccessor(), {
134
+ makeDocuments(f.instance.mockItemSubItemDeepCollection(parent).documentAccessor(), {
135
135
  count: 1,
136
136
  newDocument: (x) => x.loadDocumentForId(targetId),
137
137
  init: (i) => {