@dereekb/firebase 7.1.0 → 7.4.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 (34) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/package.json +6 -6
  3. package/src/lib/common/auth/auth.context.d.ts +15 -3
  4. package/src/lib/common/firestore/collection/collection.d.ts +8 -8
  5. package/src/lib/common/firestore/collection/collection.js +2 -8
  6. package/src/lib/common/firestore/collection/collection.js.map +1 -1
  7. package/src/lib/common/firestore/collection/collection.key.d.ts +53 -0
  8. package/src/lib/common/firestore/collection/collection.key.js +3 -0
  9. package/src/lib/common/firestore/collection/collection.key.js.map +1 -0
  10. package/src/lib/common/firestore/collection/index.d.ts +1 -0
  11. package/src/lib/common/firestore/collection/index.js +1 -0
  12. package/src/lib/common/firestore/collection/index.js.map +1 -1
  13. package/src/lib/common/firestore/query/constraint.d.ts +1 -2
  14. package/src/lib/common/firestore/snapshot/snapshot.field.d.ts +74 -1
  15. package/src/lib/common/firestore/snapshot/snapshot.field.js +83 -1
  16. package/src/lib/common/firestore/snapshot/snapshot.field.js.map +1 -1
  17. package/src/lib/common/firestore/snapshot/snapshot.js.map +1 -1
  18. package/src/lib/common/model/context.d.ts +0 -6
  19. package/src/lib/common/model/permission/permission.service.d.ts +45 -2
  20. package/src/lib/common/model/permission/permission.service.js +55 -15
  21. package/src/lib/common/model/permission/permission.service.js.map +1 -1
  22. package/test/CHANGELOG.md +17 -0
  23. package/test/package.json +8 -8
  24. package/test/src/lib/common/firestore.mock.item.d.ts +23 -27
  25. package/test/src/lib/common/firestore.mock.item.fixture.d.ts +2 -2
  26. package/test/src/lib/common/firestore.mock.item.fixture.js +4 -4
  27. package/test/src/lib/common/firestore.mock.item.js +27 -31
  28. package/test/src/lib/common/firestore.mock.item.js.map +1 -1
  29. package/test/src/lib/common/firestore.mock.item.query.d.ts +1 -1
  30. package/test/src/lib/common/firestore.mock.item.query.js +3 -3
  31. package/test/src/lib/common/firestore.mock.item.service.d.ts +6 -6
  32. package/test/src/lib/common/firestore.mock.item.service.js +6 -6
  33. package/test/src/lib/common/firestore.mock.item.service.js.map +1 -1
  34. package/test/src/lib/common/test.driver.query.js +4 -4
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.firebaseModelPermissionService = exports.FirebaseModelPermissionServiceInstance = void 0;
3
+ exports.grantModelRolesIfFunction = exports.grantModelRolesOnlyIfFunction = exports.isAdminInFirebaseModelContext = exports.grantModelRolesIfAdminFunction = exports.grantModelRolesIfAdmin = exports.grantFullAccessIfAdmin = exports.firebaseModelPermissionService = exports.FirebaseModelPermissionServiceInstance = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const model_1 = require("@dereekb/model");
6
+ const util_1 = require("@dereekb/util");
6
7
  /**
7
8
  * Abstract AbstractModelPermissionService implementation for FirebaseModelsPermissionService.
8
9
  */
@@ -22,20 +23,6 @@ class FirebaseModelPermissionServiceInstance extends model_1.AbstractModelPermis
22
23
  return model;
23
24
  });
24
25
  }
25
- getRoleMapForOutput(output, context, model) {
26
- const _super = Object.create(null, {
27
- getRoleMapForOutput: { get: () => super.getRoleMapForOutput }
28
- });
29
- var _a, _b;
30
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
31
- if (context.adminGetsAllowAllRoles && ((_b = (_a = context.auth) === null || _a === void 0 ? void 0 : _a.isAdmin) === null || _b === void 0 ? void 0 : _b.call(_a))) {
32
- return (0, model_1.fullAccessGrantedModelRoles)(context, output);
33
- }
34
- else {
35
- return _super.getRoleMapForOutput.call(this, output, context, model);
36
- }
37
- });
38
- }
39
26
  isUsableOutputForRoles(output) {
40
27
  return output.exists;
41
28
  }
@@ -45,4 +32,57 @@ function firebaseModelPermissionService(delegate) {
45
32
  return new FirebaseModelPermissionServiceInstance(delegate);
46
33
  }
47
34
  exports.firebaseModelPermissionService = firebaseModelPermissionService;
35
+ // MARK: Utility
36
+ exports.grantFullAccessIfAdmin = grantModelRolesIfAdminFunction(model_1.fullAccessRoleMap);
37
+ function grantModelRolesIfAdmin(context, rolesToGrantToAdmin, otherwise) {
38
+ return grantModelRolesIfAdminFunction(rolesToGrantToAdmin)(context, otherwise);
39
+ }
40
+ exports.grantModelRolesIfAdmin = grantModelRolesIfAdmin;
41
+ /**
42
+ * Convenience function that checks the input context if the user is an admin or not and grants pre-set admin roles if they are.
43
+ *
44
+ * @param context
45
+ * @param rolesToGrantToAdmin
46
+ * @param otherwise
47
+ * @returns
48
+ */
49
+ function grantModelRolesIfAdminFunction(rolesToGrantToAdmin) {
50
+ return grantModelRolesIfFunction(exports.isAdminInFirebaseModelContext, rolesToGrantToAdmin);
51
+ }
52
+ exports.grantModelRolesIfAdminFunction = grantModelRolesIfAdminFunction;
53
+ /**
54
+ * DecisionFunction for a FirebaseModelContext that checks if the current user is an admin.
55
+ *
56
+ * @param context
57
+ * @returns
58
+ */
59
+ const isAdminInFirebaseModelContext = (context) => { var _a, _b; return (_b = (_a = context.auth) === null || _a === void 0 ? void 0 : _a.isAdmin()) !== null && _b !== void 0 ? _b : false; };
60
+ exports.isAdminInFirebaseModelContext = isAdminInFirebaseModelContext;
61
+ /**
62
+ * Creates a GrantRolesOnlyIfFunction
63
+ *
64
+ * @param grantIf
65
+ * @param grantedRoles
66
+ * @returns
67
+ */
68
+ function grantModelRolesOnlyIfFunction(grantIf, grantedRoles) {
69
+ const fn = grantModelRolesIfFunction(grantIf, grantedRoles);
70
+ return (context) => fn(context);
71
+ }
72
+ exports.grantModelRolesOnlyIfFunction = grantModelRolesOnlyIfFunction;
73
+ /**
74
+ * Creates a GrantRolesIfFunction.
75
+ *
76
+ * @param grantIf
77
+ * @param grantedRoles
78
+ * @returns
79
+ */
80
+ function grantModelRolesIfFunction(grantIf, grantedRoles) {
81
+ return (context, otherwise = model_1.noAccessRoleMap) => {
82
+ const decision = grantIf(context);
83
+ const results = decision ? (0, util_1.getValueFromGetter)(grantedRoles) : otherwise();
84
+ return results;
85
+ };
86
+ }
87
+ exports.grantModelRolesIfFunction = grantModelRolesIfFunction;
48
88
  //# sourceMappingURL=permission.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"permission.service.js","sourceRoot":"","sources":["../../../../../../../../packages/firebase/src/lib/common/model/permission/permission.service.ts"],"names":[],"mappings":";;;;AACA,0CAA4M;AAY5M;;GAEG;AACH,MAAa,sCAA4J,SAAQ,sCAA6E;IAC5P,YAAqB,QAA+D;QAClF,KAAK,CAAC,QAAQ,CAAC,CAAC;QADG,aAAQ,GAAR,QAAQ,CAAuD;IAEpF,CAAC;IAED,eAAe,CAAC,MAA4C,EAAE,OAAU,EAAE,KAAQ;QAChF,OAAO,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IAC/D,CAAC;IAEe,cAAc,CAAC,QAAW;;YACxC,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC;YAC/C,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;YAE7B,MAAM,KAAK,GAAgD,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;YAC9G,OAAO,KAAK,CAAC;QACf,CAAC;KAAA;IAEwB,mBAAmB,CAAC,MAA4C,EAAE,OAAU,EAAE,KAAQ;;;;;;YAC7G,IAAI,OAAO,CAAC,sBAAsB,KAAI,MAAA,MAAA,OAAO,CAAC,IAAI,0CAAE,OAAO,kDAAI,CAAA,EAAE;gBAC/D,OAAO,IAAA,mCAA2B,EAAC,OAAO,EAAE,MAAM,CAAC,CAAC;aACrD;iBAAM;gBACL,OAAO,OAAM,mBAAmB,YAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE;aAC1D;;KACF;IAEkB,sBAAsB,CAAC,MAA4C;QACpF,OAAO,MAAM,CAAC,MAAM,CAAC;IACvB,CAAC;CACF;AA5BD,wFA4BC;AAED,SAAgB,8BAA8B,CAAsH,QAA+D;IACjO,OAAO,IAAI,sCAAsC,CAAC,QAAQ,CAAC,CAAC;AAC9D,CAAC;AAFD,wEAEC"}
1
+ {"version":3,"file":"permission.service.js","sourceRoot":"","sources":["../../../../../../../../packages/firebase/src/lib/common/model/permission/permission.service.ts"],"names":[],"mappings":";;;;AACA,0CAAmN;AACnN,wCAAmH;AAWnH;;GAEG;AACH,MAAa,sCAA4J,SAAQ,sCAA6E;IAC5P,YAAqB,QAA+D;QAClF,KAAK,CAAC,QAAQ,CAAC,CAAC;QADG,aAAQ,GAAR,QAAQ,CAAuD;IAEpF,CAAC;IAED,eAAe,CAAC,MAA4C,EAAE,OAAU,EAAE,KAAQ;QAChF,OAAO,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IAC/D,CAAC;IAEe,cAAc,CAAC,QAAW;;YACxC,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC;YAC/C,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;YAE7B,MAAM,KAAK,GAAgD,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;YAC9G,OAAO,KAAK,CAAC;QACf,CAAC;KAAA;IAEkB,sBAAsB,CAAC,MAA4C;QACpF,OAAO,MAAM,CAAC,MAAM,CAAC;IACvB,CAAC;CACF;AApBD,wFAoBC;AAED,SAAgB,8BAA8B,CAAsH,QAA+D;IACjO,OAAO,IAAI,sCAAsC,CAAC,QAAQ,CAAC,CAAC;AAC9D,CAAC;AAFD,wEAEC;AAQD,gBAAgB;AACH,QAAA,sBAAsB,GAAgC,8BAA8B,CAAC,yBAAiB,CAAC,CAAC;AAErH,SAAgB,sBAAsB,CAA4B,OAA6B,EAAE,mBAAqD,EAAE,SAAmC;IACzL,OAAO,8BAA8B,CAAC,mBAAmB,CAAC,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;AACjF,CAAC;AAFD,wDAEC;AAED;;;;;;;GAOG;AACH,SAAgB,8BAA8B,CAA4B,mBAAqD;IAC7H,OAAO,yBAAyB,CAAC,qCAA6B,EAAE,mBAAmB,CAAC,CAAC;AACvF,CAAC;AAFD,wEAEC;AAED;;;;;GAKG;AACI,MAAM,6BAA6B,GAA2C,CAAC,OAA6B,EAAE,EAAE,eAAC,OAAA,MAAA,MAAA,OAAO,CAAC,IAAI,0CAAE,OAAO,EAAE,mCAAI,KAAK,CAAA,EAAA,CAAC;AAA5I,QAAA,6BAA6B,iCAA+G;AAQzJ;;;;;;GAMG;AACH,SAAgB,6BAA6B,CAA4D,OAA4B,EAAE,YAA8C;IACnL,MAAM,EAAE,GAAG,yBAAyB,CAAO,OAAO,EAAE,YAAY,CAAC,CAAC;IAClE,OAAO,CAAC,OAAU,EAAE,EAAE,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC;AACrC,CAAC;AAHD,sEAGC;AAQD;;;;;;GAMG;AACH,SAAgB,yBAAyB,CAA4D,OAA4B,EAAE,YAA8C;IAC/K,OAAO,CAAC,OAAU,EAAE,YAAuC,uBAAe,EAAE,EAAE;QAC5E,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;QAClC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAA,yBAAkB,EAAC,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;QAC1E,OAAO,OAAO,CAAC;IACjB,CAAC,CAAC;AACJ,CAAC;AAND,8DAMC"}
package/test/CHANGELOG.md CHANGED
@@ -2,6 +2,23 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ # [7.4.0](https://github.com/dereekb/dbx-components/compare/v7.3.0-dev...v7.4.0) (2022-06-08)
6
+
7
+
8
+
9
+ # [7.3.0](https://github.com/dereekb/dbx-components/compare/v7.2.0-dev...v7.3.0) (2022-06-08)
10
+
11
+
12
+
13
+ # [7.2.0](https://github.com/dereekb/dbx-components/compare/v7.1.0-dev...v7.2.0) (2022-06-06)
14
+
15
+
16
+ ### Features
17
+
18
+ * firestoreModeIdentity can now accept a collection name ([1e0646e](https://github.com/dereekb/dbx-components/commit/1e0646e598a0834d8b4c3d264bb5ee42626e9fc7))
19
+
20
+
21
+
5
22
  # [7.1.0](https://github.com/dereekb/dbx-components/compare/v7.0.1-dev...v7.1.0) (2022-06-06)
6
23
 
7
24
 
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.4.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.4.0",
9
+ "@dereekb/util": "7.4.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.4.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.4.0",
18
18
  "ms": "^3.0.0-canary.1",
19
- "@dereekb/date": "7.1.0",
19
+ "@dereekb/model": "7.4.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.4.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.1.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,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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,IAAA,iCAAsB,EAAC,iBAAiB,EAAE,KAAK,CAAC,CAAC;AAcxF;;GAEG;AACH,MAAa,uBAAwB,SAAQ,oCAAmE;IAC9G,IAAI,aAAa;QACf,OAAO,+BAAuB,CAAC;IACjC,CAAC;CACF;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AE,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