@doolehealth/service-lib 0.0.2 → 0.0.3
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/esm2022/lib/services/auth/firebase-auth.service.mjs +155 -0
- package/esm2022/lib/services/auth/firebase-profile.model.mjs +7 -0
- package/esm2022/lib/services/date.service.mjs +8 -1
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/doolehealth-service-lib.mjs +162 -4
- package/fesm2022/doolehealth-service-lib.mjs.map +1 -1
- package/lib/services/auth/firebase-auth.service.d.ts +31 -0
- package/lib/services/auth/firebase-profile.model.d.ts +11 -0
- package/lib/services/date.service.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AngularFireAuth } from '@angular/fire/compat/auth';
|
|
2
|
+
import { Observable, Subject } from 'rxjs';
|
|
3
|
+
import { FirebaseProfileModel } from './firebase-profile.model';
|
|
4
|
+
import { Platform } from '@ionic/angular';
|
|
5
|
+
import firebase from "firebase/compat/app";
|
|
6
|
+
import { User } from 'firebase/auth';
|
|
7
|
+
import { DataStore } from '../../util/data-store';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class FirebaseAuthService {
|
|
10
|
+
angularFire: AngularFireAuth;
|
|
11
|
+
platform: Platform;
|
|
12
|
+
private platformId;
|
|
13
|
+
currentUser: User;
|
|
14
|
+
userProviderAdditionalInfo: any;
|
|
15
|
+
profileDataStore: DataStore<FirebaseProfileModel>;
|
|
16
|
+
redirectResult: Subject<any>;
|
|
17
|
+
constructor(angularFire: AngularFireAuth, platform: Platform, platformId: object);
|
|
18
|
+
getRedirectResult(): Observable<any>;
|
|
19
|
+
getPhotoURL(signInProviderId: string, photoURL: string): string;
|
|
20
|
+
signOut(): Observable<any>;
|
|
21
|
+
signInWithEmail(email: string, password: string): Promise<firebase.auth.UserCredential>;
|
|
22
|
+
signUpWithEmail(email: string, password: string): Promise<firebase.auth.UserCredential>;
|
|
23
|
+
socialSignIn(providerName: string, scopes?: Array<string>): Observable<any>;
|
|
24
|
+
signInWithGoogle(): Observable<any>;
|
|
25
|
+
signInWithTwitter(): Observable<any>;
|
|
26
|
+
getProfileDataSource(): Observable<FirebaseProfileModel>;
|
|
27
|
+
private setUserModelForProfile;
|
|
28
|
+
getProfileStore(dataSource: Observable<FirebaseProfileModel>): DataStore<FirebaseProfileModel>;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FirebaseAuthService, never>;
|
|
30
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FirebaseAuthService>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ShellModel } from '../../util/data-store';
|
|
2
|
+
export declare class FirebaseProfileModel extends ShellModel {
|
|
3
|
+
image: string;
|
|
4
|
+
name: string;
|
|
5
|
+
role: string;
|
|
6
|
+
description: string;
|
|
7
|
+
email: string;
|
|
8
|
+
provider: string;
|
|
9
|
+
phoneNumber: string;
|
|
10
|
+
constructor();
|
|
11
|
+
}
|
|
@@ -52,6 +52,7 @@ export declare class DateService {
|
|
|
52
52
|
getCalendarDayTime(epoch: number): string;
|
|
53
53
|
formatEpoch(epoch: any): string;
|
|
54
54
|
getToday(): string;
|
|
55
|
+
getTomorrow(): string;
|
|
55
56
|
getCurrentTime(): string;
|
|
56
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateService, never>;
|
|
57
58
|
static ɵprov: i0.ɵɵInjectableDeclaration<DateService>;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -26,5 +26,6 @@ export * from './lib/services/pusher/pusher-challenge-notifications.service';
|
|
|
26
26
|
export * from './lib/services/pusher/pusher-connection.service';
|
|
27
27
|
export * from './lib/services/pusher/pusher-message.service';
|
|
28
28
|
export * from './lib/services/pusher/pusher-notification.service';
|
|
29
|
+
export * from './lib/services/auth/firebase-auth.service';
|
|
29
30
|
export * from './lib/util/chatParameters';
|
|
30
31
|
export * from './lib/util/data-store';
|