@dereekb/firebase 9.14.0 → 9.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md 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.14.2](https://github.com/dereekb/dbx-components/compare/v9.14.1-dev...v9.14.2) (2022-11-09)
6
+
7
+
8
+
9
+ ## [9.14.1](https://github.com/dereekb/dbx-components/compare/v9.14.0-dev...v9.14.1) (2022-11-09)
10
+
11
+
12
+
5
13
  # [9.14.0](https://github.com/dereekb/dbx-components/compare/v9.13.0-dev...v9.14.0) (2022-11-09)
6
14
 
7
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/firebase",
3
- "version": "9.14.0",
3
+ "version": "9.14.2",
4
4
  "devDependencies": {
5
5
  "@firebase/rules-unit-testing": "^2.0.0"
6
6
  },
@@ -22,17 +22,17 @@
22
22
  "peerDependencies": {
23
23
  "rxjs": "^7.5.0",
24
24
  "firebase": "^9.9.2",
25
- "@dereekb/util": "9.14.0",
25
+ "@dereekb/util": "9.14.2",
26
26
  "lodash.isequal": "^4.5.0",
27
27
  "make-error": "^1.3.0",
28
28
  "class-validator": "^0.13.2",
29
29
  "ts-essentials": "^9.1.2",
30
30
  "extra-set": "^2.2.11",
31
31
  "class-transformer": "^0.5.1",
32
- "@dereekb/rxjs": "9.14.0",
32
+ "@dereekb/rxjs": "9.14.2",
33
33
  "ms": "^3.0.0-canary.1",
34
- "@dereekb/model": "9.14.0",
35
- "@dereekb/date": "9.14.0",
34
+ "@dereekb/model": "9.14.2",
35
+ "@dereekb/date": "9.14.2",
36
36
  "date-fns": "^2.29.0",
37
37
  "date-fns-tz": "^1.3.0",
38
38
  "rrule": "git+https://git@github.com/dereekb/rrule#2b13b1ea881059ba2ecfec380e12ef244ef54570",
@@ -1,19 +1,41 @@
1
- import { Maybe, PhoneNumber } from '@dereekb/util';
1
+ import { ISO8601DateString, Maybe, PasswordString, PhoneNumber, WebsiteUrl } from '@dereekb/util';
2
2
  /**
3
3
  * Firebase User Identifier (UID)
4
4
  */
5
5
  export declare type FirebaseAuthUserId = string;
6
+ export interface FirebaseAuthUserIdRef {
7
+ uid: FirebaseAuthUserId;
8
+ }
6
9
  /**
7
10
  * Firebase Auth Token interface
8
11
  */
9
- export declare type FirebaseAuthToken = {
12
+ export interface FirebaseAuthToken {
10
13
  email?: Maybe<string>;
11
14
  emailVerified?: Maybe<boolean>;
12
15
  phoneNumber?: Maybe<PhoneNumber>;
13
- };
16
+ }
17
+ export interface FirebaseAuthDetails extends FirebaseAuthToken, FirebaseAuthUserIdRef {
18
+ disabled?: Maybe<boolean>;
19
+ displayName?: Maybe<string>;
20
+ photoURL?: Maybe<WebsiteUrl>;
21
+ }
14
22
  /**
15
23
  * A string key used to test for ownership of a particular set of objects.
16
24
  *
17
25
  * For instance, a database model (or its parent) may have an ownership key associated with it that is compared with the user's current claims.
18
26
  */
19
27
  export declare type FirebaseAuthOwnershipKey = string;
28
+ /**
29
+ * Password used for completing setup.
30
+ */
31
+ export declare type FirebaseAuthSetupPassword = PasswordString;
32
+ export interface FirebaseAuthNewUserClaimsData {
33
+ /**
34
+ * Setup password
35
+ */
36
+ readonly setupPassword: FirebaseAuthSetupPassword;
37
+ /**
38
+ * Last setup communication time.
39
+ */
40
+ readonly setupCommunicationAt: ISO8601DateString;
41
+ }
@@ -59,5 +59,5 @@ export declare function copyDocumentIdForUserRelatedModifierFunction<T extends U
59
59
  * @returns
60
60
  */
61
61
  export declare function copyUserRelatedDataModifierConfig<T extends UserRelated>(): ModifyBeforeSetConfig<T>;
62
- export declare const COPY_USER_RELATED_DATA_ACCESSOR_FACTORY_FUNCTION: import("@dereekb/util").CachedFactoryWithInput<InterceptAccessorFactoryFunction<UserRelated, DocumentData>, unknown>;
62
+ export declare const COPY_USER_RELATED_DATA_ACCESSOR_FACTORY_FUNCTION: import("@dereekb/util").CachedFactoryWithInput<InterceptAccessorFactoryFunction<import("../..").FirebaseAuthUserIdRef, DocumentData>, unknown>;
63
63
  export declare function copyUserRelatedDataAccessorFactoryFunction<T extends UserRelated, D = DocumentData>(): InterceptAccessorFactoryFunction<T, D>;
@@ -1,10 +1,8 @@
1
- import { FirebaseAuthUserId } from '../common/auth/auth';
1
+ import { FirebaseAuthUserIdRef } from '../common/auth/auth';
2
2
  /**
3
3
  * The model is related to a user with the model's uid.
4
4
  */
5
- export interface UserRelated {
6
- uid: FirebaseAuthUserId;
7
- }
5
+ export declare type UserRelated = FirebaseAuthUserIdRef;
8
6
  /**
9
7
  * The model is related to a user by the model's own identifier.
10
8
  */
package/test/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.14.2](https://github.com/dereekb/dbx-components/compare/v9.14.1-dev...v9.14.2) (2022-11-09)
6
+
7
+
8
+
9
+ ## [9.14.1](https://github.com/dereekb/dbx-components/compare/v9.14.0-dev...v9.14.1) (2022-11-09)
10
+
11
+
12
+
5
13
  # [9.14.0](https://github.com/dereekb/dbx-components/compare/v9.13.0-dev...v9.14.0) (2022-11-09)
6
14
 
7
15
 
package/test/package.json CHANGED
@@ -1,26 +1,26 @@
1
1
  {
2
2
  "name": "@dereekb/firebase/test",
3
- "version": "9.14.0",
3
+ "version": "9.14.2",
4
4
  "type": "commonjs",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./src/index.d.ts",
7
7
  "dependencies": {},
8
8
  "peerDependencies": {
9
- "@dereekb/util/test": "9.14.0",
10
- "@dereekb/util": "9.14.0",
9
+ "@dereekb/util/test": "9.14.2",
10
+ "@dereekb/util": "9.14.2",
11
11
  "lodash.isequal": "^4.5.0",
12
12
  "make-error": "^1.3.0",
13
13
  "class-validator": "^0.13.2",
14
14
  "ts-essentials": "^9.1.2",
15
15
  "extra-set": "^2.2.11",
16
- "@dereekb/firebase": "9.14.0",
16
+ "@dereekb/firebase": "9.14.2",
17
17
  "rxjs": "^7.5.0",
18
18
  "firebase": "^9.9.2",
19
19
  "class-transformer": "^0.5.1",
20
- "@dereekb/rxjs": "9.14.0",
20
+ "@dereekb/rxjs": "9.14.2",
21
21
  "ms": "^3.0.0-canary.1",
22
- "@dereekb/model": "9.14.0",
23
- "@dereekb/date": "9.14.0",
22
+ "@dereekb/model": "9.14.2",
23
+ "@dereekb/date": "9.14.2",
24
24
  "date-fns": "^2.29.0",
25
25
  "date-fns-tz": "^1.3.0",
26
26
  "rrule": "git+https://git@github.com/dereekb/rrule#2b13b1ea881059ba2ecfec380e12ef244ef54570",