@doolehealth/service-lib 0.0.1
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/README.md +24 -0
- package/esm2022/doolehealth-service-lib.mjs +5 -0
- package/esm2022/lib/configuration.mjs +5 -0
- package/esm2022/lib/models/user.mjs +2 -0
- package/esm2022/lib/service-lib.component.mjs +19 -0
- package/esm2022/lib/service-lib.module.mjs +33 -0
- package/esm2022/lib/services/analytics.service.mjs +73 -0
- package/esm2022/lib/services/api-endpoints.service.mjs +51 -0
- package/esm2022/lib/services/authentication.service.mjs +400 -0
- package/esm2022/lib/services/change-endpoints.service.mjs +90 -0
- package/esm2022/lib/services/date.service.mjs +419 -0
- package/esm2022/lib/services/doole.service.mjs +1299 -0
- package/esm2022/lib/services/encryption.service.mjs +31 -0
- package/esm2022/lib/services/error.service.mjs +49 -0
- package/esm2022/lib/services/events.service.mjs +63 -0
- package/esm2022/lib/services/highcharts.service.mjs +621 -0
- package/esm2022/lib/services/http.service.mjs +124 -0
- package/esm2022/lib/services/language.service.mjs +38 -0
- package/esm2022/lib/services/loading.service.mjs +45 -0
- package/esm2022/lib/services/logging.service.mjs +28 -0
- package/esm2022/lib/services/navigation.service.mjs +41 -0
- package/esm2022/lib/services/network.service.mjs +42 -0
- package/esm2022/lib/services/notification.service.mjs +202 -0
- package/esm2022/lib/services/opentok.service.mjs +25 -0
- package/esm2022/lib/services/roles.service.mjs +44 -0
- package/esm2022/lib/services/storage.service.mjs +37 -0
- package/esm2022/lib/services/token.service.mjs +59 -0
- package/esm2022/lib/util/chatParameters.mjs +17 -0
- package/esm2022/lib/util/data-store.mjs +54 -0
- package/esm2022/lib/util/environment.mjs +29 -0
- package/esm2022/lib/util/language.model.mjs +3 -0
- package/esm2022/lib/util/notification-options.mjs +245 -0
- package/esm2022/lib/util/query-string-parameters.mjs +11 -0
- package/esm2022/lib/util/url-builder.mjs +15 -0
- package/esm2022/public-api.mjs +30 -0
- package/fesm2022/doolehealth-service-lib.mjs +4025 -0
- package/fesm2022/doolehealth-service-lib.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/configuration.d.ts +46 -0
- package/lib/models/user.d.ts +133 -0
- package/lib/service-lib.component.d.ts +5 -0
- package/lib/service-lib.module.d.ts +13 -0
- package/lib/services/analytics.service.d.ts +17 -0
- package/lib/services/api-endpoints.service.d.ts +13 -0
- package/lib/services/authentication.service.d.ts +102 -0
- package/lib/services/change-endpoints.service.d.ts +38 -0
- package/lib/services/date.service.d.ts +58 -0
- package/lib/services/doole.service.d.ts +169 -0
- package/lib/services/encryption.service.d.ts +9 -0
- package/lib/services/error.service.d.ts +11 -0
- package/lib/services/events.service.d.ts +32 -0
- package/lib/services/highcharts.service.d.ts +69 -0
- package/lib/services/http.service.d.ts +28 -0
- package/lib/services/language.service.d.ts +15 -0
- package/lib/services/loading.service.d.ts +22 -0
- package/lib/services/logging.service.d.ts +9 -0
- package/lib/services/navigation.service.d.ts +13 -0
- package/lib/services/network.service.d.ts +14 -0
- package/lib/services/notification.service.d.ts +25 -0
- package/lib/services/opentok.service.d.ts +17 -0
- package/lib/services/roles.service.d.ts +28 -0
- package/lib/services/storage.service.d.ts +10 -0
- package/lib/services/token.service.d.ts +16 -0
- package/lib/util/chatParameters.d.ts +25 -0
- package/lib/util/data-store.d.ts +13 -0
- package/lib/util/environment.d.ts +18 -0
- package/lib/util/language.model.d.ts +4 -0
- package/lib/util/notification-options.d.ts +145 -0
- package/lib/util/query-string-parameters.d.ts +6 -0
- package/lib/util/url-builder.d.ts +9 -0
- package/package.json +38 -0
- package/public-api.d.ts +23 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { LanguageService } from './language.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface serie {
|
|
4
|
+
name: string;
|
|
5
|
+
type?: string;
|
|
6
|
+
colorKey?: string;
|
|
7
|
+
pointWidth?: number;
|
|
8
|
+
colorByPoint?: boolean;
|
|
9
|
+
color?: string;
|
|
10
|
+
data: Array<any>;
|
|
11
|
+
lineWidth?: number;
|
|
12
|
+
marker?: {
|
|
13
|
+
radius: number;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export declare class HighchartsService {
|
|
17
|
+
private languageService;
|
|
18
|
+
weekdaysES: string[];
|
|
19
|
+
weekdaysCA: string[];
|
|
20
|
+
title: string;
|
|
21
|
+
graphData: any[];
|
|
22
|
+
ranges: any;
|
|
23
|
+
units: string;
|
|
24
|
+
series: any[];
|
|
25
|
+
xAxis: any;
|
|
26
|
+
yAxis: any;
|
|
27
|
+
minY: any;
|
|
28
|
+
maxY: any;
|
|
29
|
+
graphBaseOn: string;
|
|
30
|
+
pointWidth: number;
|
|
31
|
+
withTooltip: boolean;
|
|
32
|
+
extraTooltip: any;
|
|
33
|
+
scrollMinWidth: number;
|
|
34
|
+
constructor(languageService: LanguageService);
|
|
35
|
+
setTitle(title: any): void;
|
|
36
|
+
setUnits(units: any): void;
|
|
37
|
+
setLocale(): string;
|
|
38
|
+
setPointWidth(interval: any): number;
|
|
39
|
+
setScrollMinWidth(interval: any): void;
|
|
40
|
+
addTooltip(interval: string): void;
|
|
41
|
+
getWeekday(): string[];
|
|
42
|
+
setSeries(name: any, data: any, pointWidth?: any, lineWidth?: any, color?: any, colorKey?: any, colorByPoint?: any): void;
|
|
43
|
+
setXAxis(type: any, categories: any, maxRange?: any): void;
|
|
44
|
+
setYAxis(minY: any, maxY: any, ranges: any, text: any): void;
|
|
45
|
+
setMinY(valuesA: any, valuesB: any): any;
|
|
46
|
+
setMaxY(valuesA: any, valuesB: any): any;
|
|
47
|
+
getOptionsChart(graphBaseOn: any): any;
|
|
48
|
+
groupByCategory(interval: any, element: any): {
|
|
49
|
+
groupByDate: string;
|
|
50
|
+
tooltip: string;
|
|
51
|
+
};
|
|
52
|
+
returnShortDate(): string;
|
|
53
|
+
formatSelectedDate2(d: any, format: any): string;
|
|
54
|
+
formatSelectedDate(d: any): Date;
|
|
55
|
+
titleCase(word: any): any;
|
|
56
|
+
getGroupedData(json: any, interval: any, withoToltip?: boolean): any;
|
|
57
|
+
getRanges(element: any, min: any, max: any): {
|
|
58
|
+
name: any;
|
|
59
|
+
description: any;
|
|
60
|
+
value: any[];
|
|
61
|
+
normalValue: any[];
|
|
62
|
+
outRangeValue: any[];
|
|
63
|
+
dangerValue: any[];
|
|
64
|
+
};
|
|
65
|
+
getMaxRange(rangeMax: any, max: any): any;
|
|
66
|
+
setHighchartsOptions(json: any, params: any): void;
|
|
67
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HighchartsService, never>;
|
|
68
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HighchartsService>;
|
|
69
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { HttpHeaders, HttpClient, HttpParams, HttpBackend } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { AuthenticationService } from '../services/authentication.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class HttpService {
|
|
6
|
+
private http;
|
|
7
|
+
private httpBackend;
|
|
8
|
+
private authService;
|
|
9
|
+
private httpWithoutInterceptor;
|
|
10
|
+
constructor(http: HttpClient, httpBackend: HttpBackend, authService: AuthenticationService);
|
|
11
|
+
private formatErrors;
|
|
12
|
+
get(path: string, params?: HttpParams): Observable<any>;
|
|
13
|
+
put(path: string, body?: Object, options?: Object): Observable<any>;
|
|
14
|
+
postform(path: string, body?: Object, options?: Object): Observable<any>;
|
|
15
|
+
post(path: string, body?: Object, options?: Object, formData?: any): Observable<any>;
|
|
16
|
+
postForm(path: string, body?: Object, options?: Object, formData?: any): Observable<any>;
|
|
17
|
+
delete(path: any): Observable<any>;
|
|
18
|
+
_get(path: string, params?: HttpParams): Observable<any>;
|
|
19
|
+
_put(path: string, body?: Object): Observable<any>;
|
|
20
|
+
_post(path: string, body?: Object, options?: Object): Observable<any>;
|
|
21
|
+
_delete(path: any): Observable<any>;
|
|
22
|
+
setHttpParams(body: any): HttpParams;
|
|
23
|
+
setHttpOptions(options: any, formData?: any): {
|
|
24
|
+
headers: HttpHeaders;
|
|
25
|
+
};
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HttpService, never>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HttpService>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
+
import { LanguageModel } from '../util/language.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class LanguageService {
|
|
5
|
+
translate: TranslateService;
|
|
6
|
+
languages: Array<LanguageModel>;
|
|
7
|
+
constructor(translate: TranslateService);
|
|
8
|
+
getLanguages(): LanguageModel[];
|
|
9
|
+
changeLanguage(langCode: string): void;
|
|
10
|
+
getCurrent(): string;
|
|
11
|
+
getLanguageAPI(): string;
|
|
12
|
+
setLenguageLocalstorage(language: any): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LanguageService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LanguageService>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BehaviorSubject } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LoadingService {
|
|
4
|
+
loadingSub: BehaviorSubject<boolean>;
|
|
5
|
+
/**
|
|
6
|
+
* Contains in-progress loading requests
|
|
7
|
+
*/
|
|
8
|
+
loadingMap: Map<string, boolean>;
|
|
9
|
+
constructor();
|
|
10
|
+
/**
|
|
11
|
+
* Sets the loadingSub property value based on the following:
|
|
12
|
+
* - If loading is true, add the provided url to the loadingMap with a true value, set loadingSub value to true
|
|
13
|
+
* - If loading is false, remove the loadingMap entry and only when the map is empty will we set loadingSub to false
|
|
14
|
+
* This pattern ensures if there are multiple requests awaiting completion, we don't set loading to false before
|
|
15
|
+
* other requests have completed. At the moment, this function is only called from the @link{HttpRequestInterceptor}
|
|
16
|
+
* @param loading {boolean}
|
|
17
|
+
* @param url {string}
|
|
18
|
+
*/
|
|
19
|
+
setLoading(loading: boolean, url: string): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingService, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LoadingService>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Platform } from '@ionic/angular';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LoggingService {
|
|
4
|
+
private platform;
|
|
5
|
+
constructor(platform: Platform);
|
|
6
|
+
logError(message: any): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoggingService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LoggingService>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
|
+
import { Location } from "@angular/common";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NavigationService {
|
|
5
|
+
private router;
|
|
6
|
+
private location;
|
|
7
|
+
private history;
|
|
8
|
+
constructor(router: Router, location: Location);
|
|
9
|
+
back(): void;
|
|
10
|
+
close(modalCtrl?: any): Promise<void>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NavigationService>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Network } from '@awesome-cordova-plugins/network/ngx';
|
|
2
|
+
import { Platform } from '@ionic/angular';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NetworkService {
|
|
6
|
+
network: Network;
|
|
7
|
+
platform: Platform;
|
|
8
|
+
private online$;
|
|
9
|
+
constructor(network: Network, platform: Platform);
|
|
10
|
+
getNetworkType(): string;
|
|
11
|
+
getNetworkStatus(): Observable<boolean>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NetworkService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NetworkService>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { NgZone } from '@angular/core';
|
|
2
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
3
|
+
import { AlertController, Platform, ToastController } from '@ionic/angular';
|
|
4
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
5
|
+
import { Router } from '@angular/router';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class NotificationService {
|
|
8
|
+
snackBar: MatSnackBar;
|
|
9
|
+
private zone;
|
|
10
|
+
alertCtrl: AlertController;
|
|
11
|
+
private translate;
|
|
12
|
+
private toastController;
|
|
13
|
+
private _zone;
|
|
14
|
+
private platform;
|
|
15
|
+
private router;
|
|
16
|
+
constructor(snackBar: MatSnackBar, zone: NgZone, alertCtrl: AlertController, translate: TranslateService, toastController: ToastController, _zone: NgZone, platform: Platform, router: Router);
|
|
17
|
+
showSuccess(message: string): void;
|
|
18
|
+
showError(error: string): void;
|
|
19
|
+
displayToastSuccessful(): void;
|
|
20
|
+
displayToastPusher(message: any): void;
|
|
21
|
+
confirmAllNotification(message: any): Promise<void>;
|
|
22
|
+
redirecPushNotification(data: any, notification?: any): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class OpentokService {
|
|
3
|
+
agendaId$: string;
|
|
4
|
+
token$: string;
|
|
5
|
+
sessionId$: string;
|
|
6
|
+
apiKey$: string;
|
|
7
|
+
private callEventSubject;
|
|
8
|
+
callEvent$: import("rxjs").Observable<ICallEvent>;
|
|
9
|
+
constructor();
|
|
10
|
+
emitCallEvent(data: ICallEvent): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OpentokService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OpentokService>;
|
|
13
|
+
}
|
|
14
|
+
interface ICallEvent {
|
|
15
|
+
type: 'hangup';
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ComponentsApp {
|
|
3
|
+
goal: boolean;
|
|
4
|
+
advices: boolean;
|
|
5
|
+
news: boolean;
|
|
6
|
+
agenda: boolean;
|
|
7
|
+
reminder: boolean;
|
|
8
|
+
diet: boolean;
|
|
9
|
+
drug: boolean;
|
|
10
|
+
game: boolean;
|
|
11
|
+
element: boolean;
|
|
12
|
+
form: boolean;
|
|
13
|
+
chat: boolean;
|
|
14
|
+
doc_diagnostic: boolean;
|
|
15
|
+
contacta: boolean;
|
|
16
|
+
constructor(goal: boolean, advices: boolean, news: boolean, agenda: boolean, reminder: boolean, diet: boolean, drug: boolean, game: boolean, element: boolean, form: boolean, chat: boolean, doc_diagnostic: boolean, contacta: boolean);
|
|
17
|
+
}
|
|
18
|
+
export declare class RolesService {
|
|
19
|
+
component: ComponentsApp;
|
|
20
|
+
isProfessional: boolean;
|
|
21
|
+
userType: any;
|
|
22
|
+
constructor();
|
|
23
|
+
activatedAllComponents(enable: boolean): void;
|
|
24
|
+
customAllComponents(goal: boolean, advices: boolean, news: boolean, agenda: boolean, reminder: boolean, diet: boolean, drug: boolean, game: boolean, element: boolean, form: boolean, chat: boolean, doc_diagnostic: boolean, contacta: boolean): void;
|
|
25
|
+
setProfessional(professional: any): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RolesService, never>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RolesService>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class StorageService {
|
|
3
|
+
constructor();
|
|
4
|
+
saveFirstTimeLoad(val: any): void;
|
|
5
|
+
saveFirstTimeLoad2(val: any): void;
|
|
6
|
+
isFirstTimeLoad(): Promise<any>;
|
|
7
|
+
isFirstTimeLoad2(): Promise<any>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StorageService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StorageService>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EncryptionService } from './encryption.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TokenService {
|
|
4
|
+
private encryptionService;
|
|
5
|
+
private token;
|
|
6
|
+
private deviceTokens;
|
|
7
|
+
constructor(encryptionService: EncryptionService);
|
|
8
|
+
hasToken(): boolean;
|
|
9
|
+
getAuthToken(): any;
|
|
10
|
+
setAuthToken(token: any): void;
|
|
11
|
+
removeAuthToken(): void;
|
|
12
|
+
saveAllTokenDevices(token: any): void;
|
|
13
|
+
getAllTokenDevices(): any[];
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TokenService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TokenService>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ShellModel } from "./data-store";
|
|
2
|
+
export declare class ShellRecipientModel extends ShellModel {
|
|
3
|
+
id: string;
|
|
4
|
+
image: string;
|
|
5
|
+
name: string;
|
|
6
|
+
constructor();
|
|
7
|
+
}
|
|
8
|
+
export declare class ShellMessageModel extends ShellModel {
|
|
9
|
+
content: string;
|
|
10
|
+
created_at: string;
|
|
11
|
+
deleted_at: string;
|
|
12
|
+
file: string;
|
|
13
|
+
id: number;
|
|
14
|
+
message_header_id: number;
|
|
15
|
+
mime: string;
|
|
16
|
+
temporaryUrl: string;
|
|
17
|
+
updated_at: string;
|
|
18
|
+
user_id: number;
|
|
19
|
+
recipients: ShellRecipientModel[];
|
|
20
|
+
constructor();
|
|
21
|
+
}
|
|
22
|
+
export declare class ShellChatModel extends ShellModel {
|
|
23
|
+
messages: ShellMessageModel[];
|
|
24
|
+
constructor();
|
|
25
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export declare class ShellModel {
|
|
3
|
+
isShell: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare class DataStore<T> {
|
|
6
|
+
private shellModel;
|
|
7
|
+
private networkDelay;
|
|
8
|
+
private timeline;
|
|
9
|
+
constructor(shellModel: T);
|
|
10
|
+
static AppendShell<T>(dataObservable: Observable<T>, shellModel: T, networkDelay?: number): Observable<T & ShellModel>;
|
|
11
|
+
load(dataSourceObservable: Observable<T>, networkDelay?: number): void;
|
|
12
|
+
get state(): Observable<T & ShellModel>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const environment: {
|
|
2
|
+
production: boolean;
|
|
3
|
+
appShellConfig: {
|
|
4
|
+
debug: boolean;
|
|
5
|
+
networkDelay: number;
|
|
6
|
+
};
|
|
7
|
+
firebase: {
|
|
8
|
+
apiKey: string;
|
|
9
|
+
authDomain: string;
|
|
10
|
+
databaseURL: string;
|
|
11
|
+
projectId: string;
|
|
12
|
+
storageBucket: string;
|
|
13
|
+
messagingSenderId: string;
|
|
14
|
+
appId: string;
|
|
15
|
+
measurementId: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
import 'zone.js';
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
export interface notificationOpt {
|
|
2
|
+
translate?: string;
|
|
3
|
+
name?: string;
|
|
4
|
+
type?: string;
|
|
5
|
+
item_expanded?: boolean;
|
|
6
|
+
mail?: any;
|
|
7
|
+
app?: any;
|
|
8
|
+
on_mail?: boolean;
|
|
9
|
+
on_app?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare enum NotificationsType {
|
|
12
|
+
ADVICES = "advices",
|
|
13
|
+
AGENDA = "agenda",
|
|
14
|
+
COMMUNICATIONS = "communications",
|
|
15
|
+
DIETS = "diets",
|
|
16
|
+
EXERCISES = "exercises",
|
|
17
|
+
FORMS = "forms",
|
|
18
|
+
GAMES = "games",
|
|
19
|
+
GOALS = "goals",
|
|
20
|
+
MEDICATIONS = "medication_plans",
|
|
21
|
+
MESSAGES = "messages",
|
|
22
|
+
NEWS = "news",
|
|
23
|
+
OFFERS = "offers",
|
|
24
|
+
PROMOTE_CONTENT = "promote-content",
|
|
25
|
+
PROCEDURES = "medical_procedures",
|
|
26
|
+
REMINDERS = "reminder",
|
|
27
|
+
MONITORING = "monitoring",
|
|
28
|
+
INFORMED_CONSENT = "informed_consent",
|
|
29
|
+
LIFE_STILE_HABITS = "life_style_habits",
|
|
30
|
+
SHARED_CARE_PLAN = "shared_care_plan",
|
|
31
|
+
AddButtonMedicalTest = "add_document",
|
|
32
|
+
TESTIMONIALS = "testimonials",
|
|
33
|
+
AddButtonTodayDrug = "drugs-detail",
|
|
34
|
+
AddButtonHealthCharts = "activity-goal"
|
|
35
|
+
}
|
|
36
|
+
export declare enum NotificationsTypeBO {
|
|
37
|
+
ADVICES = "App\\Advice",
|
|
38
|
+
AGENDA = "App\\Agenda",
|
|
39
|
+
CHALLENGE_LEVEL = "App\\LevelAccomplishment",
|
|
40
|
+
DIAGNOSTIC_TEST = "App\\DiagnosticTest",
|
|
41
|
+
DIETS = "App\\Diet",
|
|
42
|
+
DRUG = "App\\DrugIntake",
|
|
43
|
+
EXERCISES = "App\\Exercise",
|
|
44
|
+
FORMS = "App\\FormAnswer",
|
|
45
|
+
GAMES = "App\\Game",
|
|
46
|
+
GAME_PLAY = "App\\GamePlay",
|
|
47
|
+
MEDICAL_PROCEDURE = "App\\MedicalProcedure",
|
|
48
|
+
MEDICATIONS = "App\\MedicationPlan",
|
|
49
|
+
MESSAGES = "App\\Message",
|
|
50
|
+
NEWS = "App\\News",
|
|
51
|
+
PROGRAMABLE_PLAY = "App\\ProgramablePlay",
|
|
52
|
+
REMINDERS = "App\\Reminder",
|
|
53
|
+
REMINDERS_EXECUTION = "App\\ReminderExecution",
|
|
54
|
+
SHARED_CARE_PLAN = "App\\ShareCarePlan"
|
|
55
|
+
}
|
|
56
|
+
export declare enum NOTIFICATIONS_TYPE_BO {
|
|
57
|
+
AGENDA = "App\\Notifications\\AgendaCreated",
|
|
58
|
+
APPOINTMENTS_VISIT = "App\\Notifications\\VisitOnlineNotification",
|
|
59
|
+
ADVICES = "App\\Notifications\\AdviceCreated",
|
|
60
|
+
CHALLENGE_LEVEL = "App\\Notifications\\LevelAccomplishmentCompletedNotification",
|
|
61
|
+
DIETS = "App\\Notifications\\DietCreated",
|
|
62
|
+
DRUG = "App\\Notifications\\DrugIntakeTime",
|
|
63
|
+
EXERCISES = "App\\Notifications\\ExerciseCreated",
|
|
64
|
+
EXERCISES_PLAY = "App\\Notifications\\ExercisePlaySchedule",
|
|
65
|
+
FORMS = "App\\Notifications\\FormAnswerSchedule",
|
|
66
|
+
GAMES = "App\\Notifications\\GamePlaySchedule",
|
|
67
|
+
MESSAGES = "App\\Notifications\\MessageNotification",
|
|
68
|
+
NEWS = "App\\Notifications\\NewsNotification",
|
|
69
|
+
REMINDERS = "App\\Notifications\\ReminderTime",
|
|
70
|
+
SHARED_CARE_PLAN = "App\\Notifications\\SharedCarePlanAddContentNotification"
|
|
71
|
+
}
|
|
72
|
+
export declare enum NotificationsTypeColor {
|
|
73
|
+
ADVICES = "#2356f9",
|
|
74
|
+
AGENDA = "#6950ce",
|
|
75
|
+
CHALLENGE_LEVEL = "#BDC3C7",
|
|
76
|
+
DIAGNOSTIC_TEST = "#1A8E92",
|
|
77
|
+
DIETS = "#E67E22",
|
|
78
|
+
DRUG = "#5AC445",
|
|
79
|
+
EXERCISES = "#f53d3d",
|
|
80
|
+
FORMS = "#2356f9",
|
|
81
|
+
GAMES = "#9B59B6",
|
|
82
|
+
GAME_PLAY = "#9B59B6",
|
|
83
|
+
MEDICAL_PROCEDURE = "#EC7579",
|
|
84
|
+
MEDICATIONS = "#25CAD0",
|
|
85
|
+
MESSAGES = "#25CAD0",
|
|
86
|
+
NEWS = "#2356f9",
|
|
87
|
+
PROGRAMABLE_PLAY = "#7F8C8D",
|
|
88
|
+
REMINDERS = "#6950ce",
|
|
89
|
+
REMINDERS_EXECUTION = "#6950ce",
|
|
90
|
+
SHARED_CARE_PLAN = "#BA0186"
|
|
91
|
+
}
|
|
92
|
+
export declare class NotificationOptions {
|
|
93
|
+
readonly agenda: any;
|
|
94
|
+
readonly reminder: any;
|
|
95
|
+
readonly diets: any;
|
|
96
|
+
readonly medication: any;
|
|
97
|
+
readonly goals: any;
|
|
98
|
+
readonly advices: any;
|
|
99
|
+
readonly forms: any;
|
|
100
|
+
readonly messages: any;
|
|
101
|
+
readonly news: any;
|
|
102
|
+
readonly games: any;
|
|
103
|
+
readonly exercises: any;
|
|
104
|
+
private list_options;
|
|
105
|
+
private options;
|
|
106
|
+
constructor();
|
|
107
|
+
setAllNotifications(): void;
|
|
108
|
+
getListOptions(): notificationOpt[];
|
|
109
|
+
setTranslate(opt: any): "" | "setting.subtitle_communications" | "setting.subtitle_appointment" | "setting.subtitle_reminders" | "setting.subtitle_diets" | "setting.subtitle_medication" | "setting.subtitle_goals" | "setting.subtitle_advices" | "setting.subtitle_release" | "setting.subtitle_procedure" | "setting.subtitle_offers" | "setting.subtitle_form" | "setting.subtitle_messages" | "setting.subtitle_games" | "setting.subtitle_exercises";
|
|
110
|
+
setAppMailField(list: any, json: any): any;
|
|
111
|
+
isOnApp(opt: any, json: any): boolean;
|
|
112
|
+
isOnMail(opt: any, json: any): boolean;
|
|
113
|
+
}
|
|
114
|
+
export declare enum ContentTypePath {
|
|
115
|
+
Advices = "/advices",
|
|
116
|
+
AdvicesDetail = "/advices-detail",
|
|
117
|
+
Agenda = "/agenda",
|
|
118
|
+
AgendaAppointment = "/agenda/list-appointment",
|
|
119
|
+
AgendaDetail = "/agenda/detail",
|
|
120
|
+
Challenges = "/profile/challenges",
|
|
121
|
+
ChallengesDetail = "/home/health-path/detail",
|
|
122
|
+
Diets = "/journal",
|
|
123
|
+
DietsDetail = "/journal/diets-detail",
|
|
124
|
+
Exercises = "/exercices",
|
|
125
|
+
ExercisesDetail = "/exercices/exercices-detail",
|
|
126
|
+
Forms = "/tracking",
|
|
127
|
+
FormDetail = "/tracking/form",
|
|
128
|
+
Games = "/journal",// '/games'
|
|
129
|
+
GamesDetail = "/journal/games-detail",
|
|
130
|
+
Goals = "/profile/goals",
|
|
131
|
+
Home = "/home",
|
|
132
|
+
MedicalProcedure = "/procedures",
|
|
133
|
+
MedicalTest = "/document-detail",
|
|
134
|
+
Medication = "/jounal/",
|
|
135
|
+
MedicationDetail = "/drugs-detail",// Medication Plan
|
|
136
|
+
Message = "/contact/chat/conversation",
|
|
137
|
+
Monitoring = "/activity-goal",
|
|
138
|
+
News = "/news",
|
|
139
|
+
NewsDetail = "/new-detail",
|
|
140
|
+
ReminderDetail = "/agenda/reminder/",
|
|
141
|
+
Tracking = "/tracking",
|
|
142
|
+
InformedConsent = "/informed-consent",
|
|
143
|
+
MedicalDirectory = "/medical-directory",
|
|
144
|
+
Bookings = "/bookings"
|
|
145
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { QueryStringParameters } from './query-string-parameters';
|
|
2
|
+
export declare class UrlBuilder {
|
|
3
|
+
private baseUrl;
|
|
4
|
+
private action;
|
|
5
|
+
url: string;
|
|
6
|
+
queryString: QueryStringParameters;
|
|
7
|
+
constructor(baseUrl: string, action: string, queryString?: QueryStringParameters);
|
|
8
|
+
toString(): string;
|
|
9
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@doolehealth/service-lib",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@ionic/angular": "^8.2.0",
|
|
6
|
+
"@angular/common": "^17.3.0",
|
|
7
|
+
"@angular/core": "^17.3.0",
|
|
8
|
+
"@angular/fire": "^18.0.1",
|
|
9
|
+
"@awesome-cordova-plugins/file": "^6.7.0",
|
|
10
|
+
"@awesome-cordova-plugins/file-transfer": "^6.7.0",
|
|
11
|
+
"@capacitor-community/firebase-analytics": "^6.0.0",
|
|
12
|
+
"@capacitor/preferences": "^6.0.0",
|
|
13
|
+
"@doole/videocall-notications-plugins": "github:DooleHealth/videocall-notications-plugins#1.0.3",
|
|
14
|
+
"@ngx-translate/core": "^15.0.0",
|
|
15
|
+
"crypto-js": "^4.2.0",
|
|
16
|
+
"highcharts": "^11.4.3",
|
|
17
|
+
"moment": "^2.30.1",
|
|
18
|
+
"@angular/material": "^18.0.0",
|
|
19
|
+
"@awesome-cordova-plugins/network": "^6.7.0"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"tslib": "^2.3.0"
|
|
23
|
+
},
|
|
24
|
+
"sideEffects": false,
|
|
25
|
+
"module": "fesm2022/doolehealth-service-lib.mjs",
|
|
26
|
+
"typings": "index.d.ts",
|
|
27
|
+
"exports": {
|
|
28
|
+
"./package.json": {
|
|
29
|
+
"default": "./package.json"
|
|
30
|
+
},
|
|
31
|
+
".": {
|
|
32
|
+
"types": "./index.d.ts",
|
|
33
|
+
"esm2022": "./esm2022/doolehealth-service-lib.mjs",
|
|
34
|
+
"esm": "./esm2022/doolehealth-service-lib.mjs",
|
|
35
|
+
"default": "./fesm2022/doolehealth-service-lib.mjs"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from './lib/service-lib.component';
|
|
2
|
+
export * from './lib/service-lib.module';
|
|
3
|
+
export * from './lib/services/api-endpoints.service';
|
|
4
|
+
export * from './lib/services/authentication.service';
|
|
5
|
+
export * from './lib/services/change-endpoints.service';
|
|
6
|
+
export * from './lib/services/encryption.service';
|
|
7
|
+
export * from './lib/services/token.service';
|
|
8
|
+
export * from './lib/services/doole.service';
|
|
9
|
+
export * from './lib/services/navigation.service';
|
|
10
|
+
export * from './lib/services/language.service';
|
|
11
|
+
export * from './lib/services/http.service';
|
|
12
|
+
export * from './lib/services/date.service';
|
|
13
|
+
export * from './lib/services/highcharts.service';
|
|
14
|
+
export * from './lib/services/roles.service';
|
|
15
|
+
export * from './lib/services/storage.service';
|
|
16
|
+
export * from './lib/services/notification.service';
|
|
17
|
+
export * from './lib/services/network.service';
|
|
18
|
+
export * from './lib/services/loading.service';
|
|
19
|
+
export * from './lib/services/logging.service';
|
|
20
|
+
export * from './lib/services/error.service';
|
|
21
|
+
export * from './lib/services/events.service';
|
|
22
|
+
export * from './lib/services/opentok.service';
|
|
23
|
+
export * from './lib/services/analytics.service';
|