@dereekb/firebase-server 9.23.6 → 9.23.8
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 +8 -0
- package/mailgun/package.json +10 -10
- package/package.json +8 -8
- package/test/package.json +11 -11
- package/test/src/lib/firebase/firebase.admin.collection.d.ts +7 -1
- package/test/src/lib/firebase/firebase.admin.collection.js +13 -0
- package/test/src/lib/firebase/firebase.admin.collection.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [9.23.8](https://github.com/dereekb/dbx-components/compare/v9.23.7-dev...v9.23.8) (2023-04-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [9.23.7](https://github.com/dereekb/dbx-components/compare/v9.23.6-dev...v9.23.7) (2023-04-10)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## [9.23.6](https://github.com/dereekb/dbx-components/compare/v9.23.5-dev...v9.23.6) (2023-04-09)
|
|
6
14
|
|
|
7
15
|
|
package/mailgun/package.json
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase-server/mailgun",
|
|
3
|
-
"version": "9.23.
|
|
3
|
+
"version": "9.23.8",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
7
7
|
"dependencies": {},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@dereekb/nestjs/mailgun": "9.23.
|
|
9
|
+
"@dereekb/nestjs/mailgun": "9.23.8",
|
|
10
10
|
"@nestjs/common": "^9.0.0",
|
|
11
11
|
"mailgun.js": "^8.0.0",
|
|
12
12
|
"form-data": "4.0.0",
|
|
13
|
-
"@dereekb/util": "9.23.
|
|
13
|
+
"@dereekb/util": "9.23.8",
|
|
14
14
|
"lodash.isequal": "^4.5.0",
|
|
15
15
|
"make-error": "^1.3.0",
|
|
16
16
|
"class-validator": "^0.13.2",
|
|
17
17
|
"ts-essentials": "^9.1.2",
|
|
18
18
|
"extra-set": "^2.2.11",
|
|
19
|
-
"@dereekb/nestjs": "9.23.
|
|
19
|
+
"@dereekb/nestjs": "9.23.8",
|
|
20
20
|
"@nestjs/config": "^2.0.1",
|
|
21
|
-
"@dereekb/firebase-server": "9.23.
|
|
21
|
+
"@dereekb/firebase-server": "9.23.8",
|
|
22
22
|
"jsonwebtoken": "^9.0.0",
|
|
23
|
-
"@dereekb/firebase": "9.23.
|
|
23
|
+
"@dereekb/firebase": "9.23.8",
|
|
24
24
|
"rxjs": "^7.5.0",
|
|
25
25
|
"firebase": "^9.9.2",
|
|
26
26
|
"class-transformer": "^0.5.1",
|
|
27
|
-
"@dereekb/rxjs": "9.23.
|
|
27
|
+
"@dereekb/rxjs": "9.23.8",
|
|
28
28
|
"ms": "^3.0.0-canary.1",
|
|
29
|
-
"@dereekb/model": "9.23.
|
|
30
|
-
"@dereekb/date": "9.23.
|
|
29
|
+
"@dereekb/model": "9.23.8",
|
|
30
|
+
"@dereekb/date": "9.23.8",
|
|
31
31
|
"date-fns": "^2.29.0",
|
|
32
32
|
"date-fns-tz": "^1.3.0",
|
|
33
33
|
"rrule": "git+https://git@github.com/dereekb/rrule#2b13b1ea881059ba2ecfec380e12ef244ef54570",
|
|
34
34
|
"@vvo/tzdb": "^6.0.0",
|
|
35
35
|
"firebase-functions": "^4.0.0",
|
|
36
36
|
"firebase-admin": "^11.4.1",
|
|
37
|
-
"@dereekb/dbx-core": "9.23.
|
|
37
|
+
"@dereekb/dbx-core": "9.23.8",
|
|
38
38
|
"tslib": "^2.0.0",
|
|
39
39
|
"@angular/common": "^14.2.0",
|
|
40
40
|
"@angular/core": "^14.2.0",
|
package/package.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase-server",
|
|
3
|
-
"version": "9.23.
|
|
3
|
+
"version": "9.23.8",
|
|
4
4
|
"devDependencies": {
|
|
5
5
|
"firebase-functions-test": "2.0.2"
|
|
6
6
|
},
|
|
7
7
|
"peerDependencies": {
|
|
8
8
|
"jsonwebtoken": "^8.0.0",
|
|
9
|
-
"@dereekb/firebase": "9.23.
|
|
9
|
+
"@dereekb/firebase": "9.23.8",
|
|
10
10
|
"rxjs": "^7.5.0",
|
|
11
11
|
"firebase": "^9.9.2",
|
|
12
|
-
"@dereekb/util": "9.23.
|
|
12
|
+
"@dereekb/util": "9.23.8",
|
|
13
13
|
"lodash.isequal": "^4.5.0",
|
|
14
14
|
"make-error": "^1.3.0",
|
|
15
15
|
"class-validator": "^0.13.2",
|
|
16
16
|
"ts-essentials": "^9.1.2",
|
|
17
17
|
"extra-set": "^2.2.11",
|
|
18
18
|
"class-transformer": "^0.5.1",
|
|
19
|
-
"@dereekb/rxjs": "9.23.
|
|
19
|
+
"@dereekb/rxjs": "9.23.8",
|
|
20
20
|
"ms": "^3.0.0-canary.1",
|
|
21
|
-
"@dereekb/model": "9.23.
|
|
22
|
-
"@dereekb/date": "9.23.
|
|
21
|
+
"@dereekb/model": "9.23.8",
|
|
22
|
+
"@dereekb/date": "9.23.8",
|
|
23
23
|
"date-fns": "^2.29.0",
|
|
24
24
|
"date-fns-tz": "^1.3.0",
|
|
25
25
|
"rrule": "git+https://git@github.com/dereekb/rrule#2b13b1ea881059ba2ecfec380e12ef244ef54570",
|
|
26
26
|
"@vvo/tzdb": "^6.0.0",
|
|
27
27
|
"firebase-functions": "^4.0.0",
|
|
28
28
|
"firebase-admin": "^11.4.1",
|
|
29
|
-
"@dereekb/dbx-core": "9.23.
|
|
29
|
+
"@dereekb/dbx-core": "9.23.8",
|
|
30
30
|
"tslib": "^2.0.0",
|
|
31
31
|
"@angular/common": "^14.2.0",
|
|
32
32
|
"@angular/core": "^14.2.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@nestjs/common": "^9.0.0",
|
|
43
43
|
"@nestjs/core": "^9.0.0",
|
|
44
44
|
"@nestjs/platform-express": "^9.0.0",
|
|
45
|
-
"@dereekb/nestjs": "9.23.
|
|
45
|
+
"@dereekb/nestjs": "9.23.8",
|
|
46
46
|
"@nestjs/config": "^2.0.1"
|
|
47
47
|
},
|
|
48
48
|
"exports": {
|
package/test/package.json
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase-server/test",
|
|
3
|
-
"version": "9.23.
|
|
3
|
+
"version": "9.23.8",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
7
7
|
"dependencies": {},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@dereekb/firebase": "9.23.
|
|
9
|
+
"@dereekb/firebase": "9.23.8",
|
|
10
10
|
"rxjs": "^7.5.0",
|
|
11
11
|
"firebase": "^9.9.2",
|
|
12
|
-
"@dereekb/util": "9.23.
|
|
12
|
+
"@dereekb/util": "9.23.8",
|
|
13
13
|
"lodash.isequal": "^4.5.0",
|
|
14
14
|
"make-error": "^1.3.0",
|
|
15
15
|
"class-validator": "^0.13.2",
|
|
16
16
|
"ts-essentials": "^9.1.2",
|
|
17
17
|
"extra-set": "^2.2.11",
|
|
18
18
|
"class-transformer": "^0.5.1",
|
|
19
|
-
"@dereekb/rxjs": "9.23.
|
|
19
|
+
"@dereekb/rxjs": "9.23.8",
|
|
20
20
|
"ms": "^3.0.0-canary.1",
|
|
21
|
-
"@dereekb/model": "9.23.
|
|
22
|
-
"@dereekb/date": "9.23.
|
|
21
|
+
"@dereekb/model": "9.23.8",
|
|
22
|
+
"@dereekb/date": "9.23.8",
|
|
23
23
|
"date-fns": "^2.29.0",
|
|
24
24
|
"date-fns-tz": "^1.3.0",
|
|
25
25
|
"rrule": "git+https://git@github.com/dereekb/rrule#2b13b1ea881059ba2ecfec380e12ef244ef54570",
|
|
26
26
|
"@vvo/tzdb": "^6.0.0",
|
|
27
|
-
"@dereekb/util/test": "9.23.
|
|
27
|
+
"@dereekb/util/test": "9.23.8",
|
|
28
28
|
"firebase-admin": "^11.4.1",
|
|
29
29
|
"jsonwebtoken": "^9.0.0",
|
|
30
30
|
"firebase-functions": "^4.0.0",
|
|
31
31
|
"@nestjs/common": "^9.0.0",
|
|
32
32
|
"@google-cloud/firestore": "^6.3.0",
|
|
33
|
-
"@dereekb/firebase/test": "9.23.
|
|
34
|
-
"@dereekb/firebase-server": "9.23.
|
|
35
|
-
"@dereekb/dbx-core": "9.23.
|
|
33
|
+
"@dereekb/firebase/test": "9.23.8",
|
|
34
|
+
"@dereekb/firebase-server": "9.23.8",
|
|
35
|
+
"@dereekb/dbx-core": "9.23.8",
|
|
36
36
|
"tslib": "^2.0.0",
|
|
37
37
|
"@angular/common": "^14.2.0",
|
|
38
38
|
"@angular/core": "^14.2.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@angular/router": "^14.2.0",
|
|
47
47
|
"@nestjs/core": "^9.0.0",
|
|
48
48
|
"@nestjs/platform-express": "^9.0.0",
|
|
49
|
-
"@dereekb/nestjs": "9.23.
|
|
49
|
+
"@dereekb/nestjs": "9.23.8",
|
|
50
50
|
"@nestjs/config": "^2.0.1"
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FirestoreDocument, DocumentReference, FirestoreModelId, FirestoreModelKey, FirestoreCollectionLike } from '@dereekb/firebase';
|
|
1
|
+
import { FirestoreDocument, DocumentReference, FirestoreModelId, FirestoreModelKey, FirestoreCollectionLike, FlatFirestoreModelKey, TwoWayFlatFirestoreModelKey } from '@dereekb/firebase';
|
|
2
2
|
import { AsyncGetterOrValue, PromiseOrValue } from '@dereekb/util';
|
|
3
3
|
import { JestTestContextFixture, AbstractChildJestTestContextFixture } from '@dereekb/util/test';
|
|
4
4
|
import { FirebaseAdminTestContext } from './firebase.admin';
|
|
@@ -8,12 +8,16 @@ import { FirebaseAdminTestContext } from './firebase.admin';
|
|
|
8
8
|
export interface ModelTestContext<T, D extends FirestoreDocument<T> = FirestoreDocument<T>> {
|
|
9
9
|
get documentId(): FirestoreModelId;
|
|
10
10
|
get documentKey(): FirestoreModelKey;
|
|
11
|
+
get documentFlatKey(): FlatFirestoreModelKey;
|
|
12
|
+
get documentTwoWayFlatKey(): TwoWayFlatFirestoreModelKey;
|
|
11
13
|
get documentRef(): DocumentReference<T>;
|
|
12
14
|
get document(): D;
|
|
13
15
|
}
|
|
14
16
|
export declare class ModelTestContextFixture<T, D extends FirestoreDocument<T> = FirestoreDocument<T>, PI extends FirebaseAdminTestContext = FirebaseAdminTestContext, PF extends JestTestContextFixture<PI> = JestTestContextFixture<PI>, I extends ModelTestContextInstance<T, D, PI> = ModelTestContextInstance<T, D, PI>> extends AbstractChildJestTestContextFixture<I, PF> implements ModelTestContext<T, D> {
|
|
15
17
|
get documentId(): FirestoreModelId;
|
|
16
18
|
get documentKey(): FirestoreModelKey;
|
|
19
|
+
get documentFlatKey(): FlatFirestoreModelKey;
|
|
20
|
+
get documentTwoWayFlatKey(): TwoWayFlatFirestoreModelKey;
|
|
17
21
|
get documentRef(): DocumentReference<T>;
|
|
18
22
|
get document(): D;
|
|
19
23
|
}
|
|
@@ -24,6 +28,8 @@ export declare class ModelTestContextInstance<T, D extends FirestoreDocument<T>
|
|
|
24
28
|
constructor(collection: FirestoreCollectionLike<T, D>, ref: DocumentReference<T>, testContext: PI);
|
|
25
29
|
get documentId(): FirestoreModelId;
|
|
26
30
|
get documentKey(): FirestoreModelKey;
|
|
31
|
+
get documentFlatKey(): FlatFirestoreModelKey;
|
|
32
|
+
get documentTwoWayFlatKey(): TwoWayFlatFirestoreModelKey;
|
|
27
33
|
get documentRef(): DocumentReference<T>;
|
|
28
34
|
get document(): D;
|
|
29
35
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.modelTestContextFactory = exports.ModelTestContextInstance = exports.ModelTestContextFixture = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const firebase_1 = require("@dereekb/firebase");
|
|
5
6
|
const util_1 = require("@dereekb/util");
|
|
6
7
|
const test_1 = require("@dereekb/util/test");
|
|
7
8
|
class ModelTestContextFixture extends test_1.AbstractChildJestTestContextFixture {
|
|
@@ -12,6 +13,12 @@ class ModelTestContextFixture extends test_1.AbstractChildJestTestContextFixture
|
|
|
12
13
|
get documentKey() {
|
|
13
14
|
return this.instance.documentKey;
|
|
14
15
|
}
|
|
16
|
+
get documentFlatKey() {
|
|
17
|
+
return this.instance.documentFlatKey;
|
|
18
|
+
}
|
|
19
|
+
get documentTwoWayFlatKey() {
|
|
20
|
+
return this.instance.documentTwoWayFlatKey;
|
|
21
|
+
}
|
|
15
22
|
get documentRef() {
|
|
16
23
|
return this.instance.documentRef;
|
|
17
24
|
}
|
|
@@ -32,6 +39,12 @@ class ModelTestContextInstance {
|
|
|
32
39
|
get documentKey() {
|
|
33
40
|
return this.ref.path;
|
|
34
41
|
}
|
|
42
|
+
get documentFlatKey() {
|
|
43
|
+
return (0, firebase_1.flatFirestoreModelKey)(this.documentKey);
|
|
44
|
+
}
|
|
45
|
+
get documentTwoWayFlatKey() {
|
|
46
|
+
return (0, firebase_1.twoWayFlatFirestoreModelKey)(this.documentKey);
|
|
47
|
+
}
|
|
35
48
|
get documentRef() {
|
|
36
49
|
return this.ref;
|
|
37
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firebase.admin.collection.js","sourceRoot":"","sources":["../../../../../../../packages/firebase-server/test/src/lib/firebase/firebase.admin.collection.ts"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"firebase.admin.collection.js","sourceRoot":"","sources":["../../../../../../../packages/firebase-server/test/src/lib/fireb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