@doolehealth/service-lib 0.0.1 → 0.0.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/esm2022/lib/services/pusher/pusher-alarm.service.mjs +39 -0
- package/esm2022/lib/services/pusher/pusher-challenge-notifications.service.mjs +110 -0
- package/esm2022/lib/services/pusher/pusher-connection.service.mjs +73 -0
- package/esm2022/lib/services/pusher/pusher-message.service.mjs +27 -0
- package/esm2022/lib/services/pusher/pusher-notification.service.mjs +116 -0
- package/esm2022/public-api.mjs +8 -1
- package/fesm2022/doolehealth-service-lib.mjs +457 -26
- package/fesm2022/doolehealth-service-lib.mjs.map +1 -1
- package/lib/services/pusher/pusher-alarm.service.d.ts +16 -0
- package/lib/services/pusher/pusher-challenge-notifications.service.d.ts +40 -0
- package/lib/services/pusher/pusher-connection.service.d.ts +24 -0
- package/lib/services/pusher/pusher-message.service.d.ts +13 -0
- package/lib/services/pusher/pusher-notification.service.d.ts +32 -0
- package/package.json +1 -1
- package/public-api.d.ts +7 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { NotificationService } from '../notification.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PusherAlarmService {
|
|
4
|
+
private notification;
|
|
5
|
+
idUser: string;
|
|
6
|
+
nameChanel: string;
|
|
7
|
+
channel: any;
|
|
8
|
+
pusher: any;
|
|
9
|
+
constructor(notification: NotificationService);
|
|
10
|
+
subscribeChannel(pusherService: any, idUser: string): void;
|
|
11
|
+
init(): void;
|
|
12
|
+
unsubscribeChannel(pusherService: any): void;
|
|
13
|
+
unsubscribePusher(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PusherAlarmService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PusherAlarmService>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AlertController } from '@ionic/angular';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface challengeNotification {
|
|
5
|
+
"user": {
|
|
6
|
+
"id": string;
|
|
7
|
+
"name": string;
|
|
8
|
+
};
|
|
9
|
+
"levelDetail": {
|
|
10
|
+
"id": string;
|
|
11
|
+
"name": string;
|
|
12
|
+
};
|
|
13
|
+
"coin": {
|
|
14
|
+
"id": string;
|
|
15
|
+
"name": string;
|
|
16
|
+
"icon": string;
|
|
17
|
+
};
|
|
18
|
+
"message": string;
|
|
19
|
+
"action": string;
|
|
20
|
+
"isChallengeCompleted": boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare class PusherChallengeNotificationsService {
|
|
23
|
+
private alertController;
|
|
24
|
+
translate: TranslateService;
|
|
25
|
+
idUser: string;
|
|
26
|
+
nameChanel: string;
|
|
27
|
+
channel: any;
|
|
28
|
+
handlerMessage: string;
|
|
29
|
+
roleMessage: string;
|
|
30
|
+
isModalShowing: boolean;
|
|
31
|
+
pendingNotification: any;
|
|
32
|
+
pusher: any;
|
|
33
|
+
constructor(alertController: AlertController, translate: TranslateService);
|
|
34
|
+
subscribeChannel(pusherService: any, idUser: string): void;
|
|
35
|
+
unsubscribePusher(): void;
|
|
36
|
+
init(): void;
|
|
37
|
+
presentChallengeNotification(notification: any): Promise<void>;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PusherChallengeNotificationsService, never>;
|
|
39
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PusherChallengeNotificationsService>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ChangeEndpointsService } from '../change-endpoints.service';
|
|
2
|
+
import { PusherAlarmService } from './pusher-alarm.service';
|
|
3
|
+
import { PusherNotificationService } from './pusher-notification.service';
|
|
4
|
+
import { PusherChallengeNotificationsService } from './pusher-challenge-notifications.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class PusherConnectionService {
|
|
7
|
+
private endpoints;
|
|
8
|
+
private pusherNotification;
|
|
9
|
+
private pusherAlarm;
|
|
10
|
+
private pusherChallenge;
|
|
11
|
+
pusher: any;
|
|
12
|
+
constructor(endpoints: ChangeEndpointsService, pusherNotification: PusherNotificationService, pusherAlarm: PusherAlarmService, pusherChallenge: PusherChallengeNotificationsService);
|
|
13
|
+
subscribePusher(token: any, idUser: string): void;
|
|
14
|
+
setPusher(token: any): void;
|
|
15
|
+
/**
|
|
16
|
+
* setChannel
|
|
17
|
+
*/
|
|
18
|
+
setChannel(nameChanel: any): any;
|
|
19
|
+
isConnectedPusher(): boolean;
|
|
20
|
+
isNullPusher(): boolean;
|
|
21
|
+
unsubscribePusher(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PusherConnectionService, never>;
|
|
23
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PusherConnectionService>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PusherConnectionService } from './pusher-connection.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PusherMessageService {
|
|
4
|
+
private pusherConnection;
|
|
5
|
+
nameChanel: string;
|
|
6
|
+
pusher: any;
|
|
7
|
+
channel: any;
|
|
8
|
+
constructor(pusherConnection: PusherConnectionService);
|
|
9
|
+
init(idChannel: String): any;
|
|
10
|
+
unsubscribePusher(idChannel: any): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PusherMessageService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PusherMessageService>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { NgZone } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { AlertController, ModalController } from '@ionic/angular';
|
|
4
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
5
|
+
import { AuthenticationService } from '../authentication.service';
|
|
6
|
+
import { PusherChallengeNotificationsService } from './pusher-challenge-notifications.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class PusherNotificationService {
|
|
9
|
+
private alertController;
|
|
10
|
+
private authService;
|
|
11
|
+
translate: TranslateService;
|
|
12
|
+
private router;
|
|
13
|
+
private modalCtrl;
|
|
14
|
+
private pusherChallenge;
|
|
15
|
+
private _zone;
|
|
16
|
+
readonly NAME_BIND = "Illuminate\\Notifications\\Events\\BroadcastNotificationCreated";
|
|
17
|
+
idUser: string;
|
|
18
|
+
nameChanel: string;
|
|
19
|
+
channel: any;
|
|
20
|
+
handlerMessage: string;
|
|
21
|
+
roleMessage: string;
|
|
22
|
+
pusher: any;
|
|
23
|
+
constructor(alertController: AlertController, authService: AuthenticationService, translate: TranslateService, router: Router, modalCtrl: ModalController, pusherChallenge: PusherChallengeNotificationsService, _zone: NgZone);
|
|
24
|
+
subscribeChannel(pusherService: any, idUser: string): void;
|
|
25
|
+
unsubscribePusher(): void;
|
|
26
|
+
init(): any;
|
|
27
|
+
presentPromoteNotification(data: any): Promise<void>;
|
|
28
|
+
getNotificationMessage(data: any): any[];
|
|
29
|
+
openModal(data: any, pageComponent: any): Promise<void>;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PusherNotificationService, never>;
|
|
31
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PusherNotificationService>;
|
|
32
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -21,3 +21,10 @@ export * from './lib/services/error.service';
|
|
|
21
21
|
export * from './lib/services/events.service';
|
|
22
22
|
export * from './lib/services/opentok.service';
|
|
23
23
|
export * from './lib/services/analytics.service';
|
|
24
|
+
export * from './lib/services/pusher/pusher-alarm.service';
|
|
25
|
+
export * from './lib/services/pusher/pusher-challenge-notifications.service';
|
|
26
|
+
export * from './lib/services/pusher/pusher-connection.service';
|
|
27
|
+
export * from './lib/services/pusher/pusher-message.service';
|
|
28
|
+
export * from './lib/services/pusher/pusher-notification.service';
|
|
29
|
+
export * from './lib/util/chatParameters';
|
|
30
|
+
export * from './lib/util/data-store';
|