@doolehealth/service-lib 0.0.4 → 0.0.6

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.
Files changed (90) hide show
  1. package/README.md +112 -13
  2. package/esm2022/lib/configuration.mjs +1 -1
  3. package/esm2022/lib/models/notifications/notification-options.mjs +192 -0
  4. package/esm2022/lib/models/shared-care-plan.mjs +223 -0
  5. package/esm2022/lib/models/user.mjs +1 -1
  6. package/esm2022/lib/service-lib.component.mjs +5 -5
  7. package/esm2022/lib/service-lib.module.mjs +4 -4
  8. package/esm2022/lib/services/analytics.service.mjs +20 -11
  9. package/esm2022/lib/services/api-endpoints.service.mjs +22 -6
  10. package/esm2022/lib/services/authentication.service.mjs +74 -52
  11. package/esm2022/lib/services/change-endpoints.service.mjs +46 -22
  12. package/esm2022/lib/services/date.service.mjs +106 -45
  13. package/esm2022/lib/services/doole.service.mjs +658 -221
  14. package/esm2022/lib/services/encryption.service.mjs +3 -3
  15. package/esm2022/lib/services/error.service.mjs +3 -3
  16. package/esm2022/lib/services/events.service.mjs +5 -5
  17. package/esm2022/lib/services/firebase/auth/firebase-auth.service.mjs +154 -0
  18. package/esm2022/lib/services/firebase/auth/firebase-profile.model.mjs +7 -0
  19. package/esm2022/lib/services/health.service.mjs +303 -0
  20. package/esm2022/lib/services/highcharts.service.mjs +37 -67
  21. package/esm2022/lib/services/http.service.mjs +14 -14
  22. package/esm2022/lib/services/language.model.mjs +3 -0
  23. package/esm2022/lib/services/language.service.mjs +6 -6
  24. package/esm2022/lib/services/loading.service.mjs +3 -3
  25. package/esm2022/lib/services/logging.service.mjs +4 -4
  26. package/esm2022/lib/services/navigation.service.mjs +108 -9
  27. package/esm2022/lib/services/network.service.mjs +7 -7
  28. package/esm2022/lib/services/notification.service.mjs +10 -96
  29. package/esm2022/lib/services/opentok.service.mjs +10 -7
  30. package/esm2022/lib/services/permission.service.mjs +94 -0
  31. package/esm2022/lib/services/roles.service.mjs +9 -8
  32. package/esm2022/lib/services/shared-care-plan/shared-care-plan.service.mjs +103 -0
  33. package/esm2022/lib/services/storage.service.mjs +3 -3
  34. package/esm2022/lib/services/token.service.mjs +7 -7
  35. package/esm2022/lib/utils/chatParameters.mjs +17 -0
  36. package/esm2022/lib/utils/data-store.mjs +62 -0
  37. package/esm2022/lib/utils/query-string-parameters.mjs +11 -0
  38. package/esm2022/lib/utils/url-builder.mjs +15 -0
  39. package/esm2022/public-api.mjs +8 -9
  40. package/fesm2022/doolehealth-service-lib.mjs +2055 -1228
  41. package/fesm2022/doolehealth-service-lib.mjs.map +1 -1
  42. package/lib/configuration.d.ts +4 -2
  43. package/lib/{util → models/notifications}/notification-options.d.ts +0 -32
  44. package/lib/models/shared-care-plan.d.ts +206 -0
  45. package/lib/models/user.d.ts +2 -0
  46. package/lib/service-lib.component.d.ts +1 -1
  47. package/lib/services/analytics.service.d.ts +6 -3
  48. package/lib/services/api-endpoints.service.d.ts +3 -0
  49. package/lib/services/authentication.service.d.ts +27 -25
  50. package/lib/services/change-endpoints.service.d.ts +1 -0
  51. package/lib/services/date.service.d.ts +15 -8
  52. package/lib/services/doole.service.d.ts +64 -23
  53. package/lib/services/{auth → firebase/auth}/firebase-auth.service.d.ts +1 -1
  54. package/lib/services/{auth → firebase/auth}/firebase-profile.model.d.ts +1 -1
  55. package/lib/services/health.service.d.ts +49 -0
  56. package/lib/services/highcharts.service.d.ts +1 -2
  57. package/lib/services/http.service.d.ts +1 -1
  58. package/lib/services/language.service.d.ts +1 -1
  59. package/lib/services/navigation.service.d.ts +6 -1
  60. package/lib/services/notification.service.d.ts +2 -7
  61. package/lib/services/permission.service.d.ts +33 -0
  62. package/lib/services/roles.service.d.ts +3 -2
  63. package/lib/services/shared-care-plan/shared-care-plan.service.d.ts +20 -0
  64. package/lib/{util → utils}/data-store.d.ts +3 -1
  65. package/package.json +2 -15
  66. package/public-api.d.ts +7 -8
  67. package/esm2022/lib/services/auth/firebase-auth.service.mjs +0 -155
  68. package/esm2022/lib/services/auth/firebase-profile.model.mjs +0 -7
  69. package/esm2022/lib/services/pusher/pusher-alarm.service.mjs +0 -39
  70. package/esm2022/lib/services/pusher/pusher-challenge-notifications.service.mjs +0 -110
  71. package/esm2022/lib/services/pusher/pusher-connection.service.mjs +0 -73
  72. package/esm2022/lib/services/pusher/pusher-message.service.mjs +0 -27
  73. package/esm2022/lib/services/pusher/pusher-notification.service.mjs +0 -116
  74. package/esm2022/lib/util/chatParameters.mjs +0 -17
  75. package/esm2022/lib/util/data-store.mjs +0 -54
  76. package/esm2022/lib/util/environment.mjs +0 -29
  77. package/esm2022/lib/util/language.model.mjs +0 -3
  78. package/esm2022/lib/util/notification-options.mjs +0 -245
  79. package/esm2022/lib/util/query-string-parameters.mjs +0 -11
  80. package/esm2022/lib/util/url-builder.mjs +0 -15
  81. package/lib/services/pusher/pusher-alarm.service.d.ts +0 -16
  82. package/lib/services/pusher/pusher-challenge-notifications.service.d.ts +0 -40
  83. package/lib/services/pusher/pusher-connection.service.d.ts +0 -24
  84. package/lib/services/pusher/pusher-message.service.d.ts +0 -13
  85. package/lib/services/pusher/pusher-notification.service.d.ts +0 -32
  86. package/lib/util/environment.d.ts +0 -18
  87. /package/lib/{util → services}/language.model.d.ts +0 -0
  88. /package/lib/{util → utils}/chatParameters.d.ts +0 -0
  89. /package/lib/{util → utils}/query-string-parameters.d.ts +0 -0
  90. /package/lib/{util → utils}/url-builder.d.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  import { FileTransfer } from '@awesome-cordova-plugins/file-transfer/ngx';
2
- import { ApiEndpointsService } from '../services/api-endpoints.service';
2
+ import { ApiEndpointsService } from './api-endpoints.service';
3
3
  import { Events } from './events.service';
4
4
  import { HttpService } from './http.service';
5
5
  import { Observable } from 'rxjs';
@@ -8,8 +8,9 @@ import { File } from '@awesome-cordova-plugins/file/ngx';
8
8
  import { HealthCard } from '../models/user';
9
9
  import { Router } from '@angular/router';
10
10
  import { HttpParams } from '@angular/common/http';
11
- import { ShellChatModel } from '../util/chatParameters';
12
- import { AuthenticationService } from '../services/authentication.service';
11
+ import { ShellChatModel } from '../utils/chatParameters';
12
+ import { AuthenticationService } from './authentication.service';
13
+ import { TranslateService } from '@ngx-translate/core';
13
14
  import * as i0 from "@angular/core";
14
15
  export declare class DooleService {
15
16
  private authService;
@@ -21,20 +22,23 @@ export declare class DooleService {
21
22
  private platform;
22
23
  router: Router;
23
24
  alertController: AlertController;
25
+ translate: TranslateService;
24
26
  pushNotification: any;
25
- constructor(authService: AuthenticationService, transfer: FileTransfer, file: File, http: HttpService, api: ApiEndpointsService, events: Events, platform: Platform, router: Router, alertController: AlertController);
27
+ constructor(authService: AuthenticationService, transfer: FileTransfer, file: File, http: HttpService, api: ApiEndpointsService, events: Events, platform: Platform, router: Router, alertController: AlertController, translate: TranslateService);
26
28
  selectedDate: Date;
27
29
  uploadFile(image: string, id?: string): Promise<unknown>;
28
30
  postAPIAddMedia(params: Object): Observable<any>;
29
31
  uploadFileToModel(image: string, name: string, params: any): Promise<unknown>;
30
32
  uploadMessageImage(idMessageHeader: any, idUserTo: any, message: any, fileUrl: any, id_usuari_amiq: any): Promise<unknown>;
31
33
  b64toBlob(b64Data: any, contentType?: string, sliceSize?: number): Blob;
34
+ download(url: any): void;
32
35
  downloadFile(url: any, destination: any): Observable<any>;
33
36
  deleteFile(id: any): Observable<any>;
34
37
  showAlert(message: string): Promise<HTMLIonAlertElement>;
35
38
  showAlertAndReturn(header: string, message: string, isDismiss?: boolean, route?: string): Promise<void>;
36
39
  presentAlert(message: any, button?: string): Promise<void>;
37
40
  getFamilyUnitID(): HttpParams;
41
+ getAPILegalAndPolicy(): Observable<any>;
38
42
  getAPILegalInformation(): Observable<any>;
39
43
  postAPILegalConfirmation(params: Object): Observable<any>;
40
44
  postAPIRejectLegalConfirmation(params: Object): Observable<any>;
@@ -46,6 +50,8 @@ export declare class DooleService {
46
50
  getAPIgoals(): Observable<any>;
47
51
  getAPIvideocall(id: string): Observable<any>;
48
52
  postAPIPendingConnect(): Observable<any>;
53
+ updateAPIImageuser(params: Object): Observable<any>;
54
+ deleteAPIImageuser(): Observable<any>;
49
55
  getAPIinformationSummary(params: Object): Observable<any>;
50
56
  getAPIinformationSummaryOld(params: Object): Observable<any>;
51
57
  getAPIuserProfile(): Observable<any>;
@@ -75,38 +81,50 @@ export declare class DooleService {
75
81
  getAPIaboutUs(): Observable<any>;
76
82
  getAPIappointmentAgenda(): Observable<any>;
77
83
  getAPIdiagnosticTests(): Observable<any>;
84
+ getAPIdiagnosticTestsLast(): Observable<any>;
78
85
  getAPIdiagnosticTestTypesAvailable(): Observable<any>;
79
86
  getAPIdiagnosticTestID(id: Object): Observable<any>;
80
87
  postAPIdiagnosticTest(params: Object): Observable<any>;
81
88
  putAPIdiagnosticTest(id: any, params: any): Observable<any>;
82
89
  deleteAPIdiagnosticTest(id: any): Observable<any>;
83
90
  getAPIfilteredDiagnosticTest(params: any): Observable<any>;
91
+ getAPIformPending(params: any): Observable<any>;
92
+ getAPISharedcareFormList(patient: any): Observable<any>;
84
93
  getAPIformLists(): Observable<any>;
94
+ getAPIFormJSON(form: any, params?: any): Observable<any>;
95
+ postAPIFormJSON(form: any, params: any): Observable<any>;
96
+ postAPIFormFill(params: any): Observable<any>;
85
97
  getAPIelementsList(filter?: any): Observable<any>;
86
98
  /** get elements with query by parameter date */
87
99
  getAPIelementsListByDate(params: any): Observable<any>;
100
+ getAPIelementsByGroup(filter?: any): Observable<any>;
88
101
  postAPIaddElement(id: any, params: Object): Observable<any>;
89
102
  getAPIgraphicsElement(id: Object, query: any): Observable<any>;
90
103
  getAPIelementID(id: Object, params?: any): Observable<any>;
91
104
  getAPIelementAvailableID(id: Object): Observable<any>;
92
105
  getAPIcategory(): Observable<any>;
93
106
  getAPIelementGroupID(id: Object, filter?: any): Observable<any>;
94
- searchAPIelementGroup(params: any): Observable<any>;
107
+ searchAPIelementGroup(params?: any): Observable<any>;
108
+ getAPIelementGroup(params?: any): Observable<any>;
95
109
  /** get diets with query by parameter date */
96
- getAPIlistDietsByDate(params: Object): Observable<any>;
110
+ getAPIlistDietsByDate(params?: Object): Observable<any>;
111
+ getAPIListRecipe(params: any): Observable<any>;
97
112
  getAPIdietsByDate(params: any): Observable<any>;
113
+ getAPIFormsByDate(params: any): Observable<any>;
98
114
  getAPIdetailDiets(id: any): Observable<any>;
99
115
  getAPIdetailRecipe(id: any): Observable<any>;
116
+ getAPIlistTestimonials(params: any): Observable<any>;
117
+ getAPIdetailTestimonial(id: any, params: any): Observable<any>;
100
118
  /** get advices **/
101
119
  getAPIlistAdvices(params: any): Observable<any>;
102
120
  /** get news **/
103
- getAPIlistNews(): Observable<any>;
121
+ getAPIlistNews(params: any): Observable<any>;
104
122
  getAPIdetailNew(id: any): Observable<any>;
105
- getAPISearchNews(query: any): Observable<any>;
106
- getAPIAppLatestVersion(version: any, platform: any): Observable<any>;
107
- getAPISearchAdvices(query: any): Observable<any>;
108
123
  getAPIdetailAdvices(id: any): Observable<any>;
124
+ getAPISearchNews(query: any, params: any): Observable<any>;
125
+ getAPISearchAdvices(query: any): Observable<any>;
109
126
  getAPIdrugsList(query: any): Observable<any>;
127
+ getAPIdrugsListInteraction(query: any): Observable<any>;
110
128
  getAPIdrugIntakeByDate(params: Object): Observable<any>;
111
129
  getAPImedicationList(query: any): Observable<any>;
112
130
  getAPIdirectionsList(): Observable<any>;
@@ -121,6 +139,17 @@ export declare class DooleService {
121
139
  putAPImedicationPlan(id: any, params: Object): Observable<any>;
122
140
  deleteAPImedicationPlan(id: Object): Observable<any>;
123
141
  getAPImedicationPlan(id: any): Observable<any>;
142
+ getAPImedicationPlans(params?: any): Observable<any>;
143
+ getAPImedicationAlls(): Observable<any>;
144
+ getAPIPendingMedicationPlans(params?: any): Observable<any>;
145
+ getAPIFrequenciesMedicationPlansHPC(params?: any): Observable<any>;
146
+ getAPIDrugUnits(id: any, search?: any): Observable<any>;
147
+ getAPIDiagnostic(params: any): Observable<any>;
148
+ getAPICenterAllergies(search?: any): Observable<any>;
149
+ getAPIAllergies(): Observable<any>;
150
+ postAPIAllergies(params: Object): Observable<any>;
151
+ putAPIAllergy(id: any, params: Object): Observable<any>;
152
+ deleteAPIAllergy(id: Object): Observable<any>;
124
153
  getAPIgames(): Observable<any>;
125
154
  /** get games with query by parameter date */
126
155
  getAPIgamesByDate(from_date: any, to_date: any): Observable<any>;
@@ -143,27 +172,39 @@ export declare class DooleService {
143
172
  deleteAPIReminder(id: any): Observable<any>;
144
173
  updateAPIReminder(id: any, params: Object): Observable<any>;
145
174
  updateAPIuser(params: Object): Observable<any>;
146
- updateAPIImageuser(params: Object): Observable<any>;
147
- deleteAPIImageuser(): Observable<any>;
148
175
  postAPIContentStatus(params: Object): Observable<any>;
149
- getAPIpatients(): Observable<any>;
150
- getAPILevelInfo(challengeId: any, levelId: any, params?: any): Observable<any>;
151
- getAPIChallenge(challengeId: any, params?: any): Observable<any>;
152
- getAPIChallenges(params?: any): Observable<any>;
153
- getAPImessage(id: any, params: any): Observable<any>;
154
- getAPIFormJSON(form: any, params?: any): Observable<any>;
155
- postAPIFormJSON(form: any, params: any): Observable<any>;
156
- postAPIFormFill(params: any): Observable<any>;
176
+ postAPIuserRegister(params: Object): Observable<any>;
177
+ getAPITypeDocument(): Observable<any>;
178
+ getAPImessage(id: any, params?: any): Observable<any>;
179
+ getAPIEvents(params: any): Observable<any>;
180
+ postAPImedicalProcedures(params?: Object): Observable<any>;
181
+ getAPImedicalProcedures2(params?: any): Observable<any>;
182
+ postAPINextMedicalProcedure(params?: Object): Observable<any>;
183
+ getAPImedicalProcedures(params: any): Observable<any>;
184
+ getAPIpreexistingConditions(params?: any): Observable<any>;
185
+ getAPIpreexistingConditionsType(): Observable<any>;
157
186
  getAPINotificationsCount(): Observable<any>;
158
187
  getAPINotifications(params?: any): Observable<any>;
188
+ getAPIUserImage(): Observable<any>;
159
189
  postAPINotificationRead(id: any): Observable<any>;
160
190
  get(endpt: any): Observable<any>;
161
191
  post(endpt: any, items: any): Observable<any>;
162
192
  setPushNotification(pushNotification: any): void;
163
193
  getPushNotification(): any;
164
- getAPIUserImage(): Observable<any>;
165
- getAPIFormsByDate(params: any): Observable<any>;
166
- postAPImedicalProcedures(params?: Object): Observable<any>;
194
+ getAPIExerciseDetail(id: any, params?: any): Observable<any>;
195
+ getAPIExercisesByDate(from_date?: any, to_date?: any): Observable<any>;
196
+ getAPIExercises(): Observable<any>;
197
+ getAPIChallenge(challengeId: any, params?: any): Observable<any>;
198
+ getAPIChallenges(params?: any): Observable<any>;
199
+ getAPIChallenges2(): Observable<any>;
200
+ getAPIAppLatestVersion(version: any, platform: any): Observable<any>;
201
+ getAPIpatients(): Observable<any>;
202
+ getAPI_SCP_goals(): Observable<any>;
203
+ getAPI_prescribedApps_ByDate(from_date?: any, to_date?: any): Observable<any>;
204
+ getAPIallowedDepartments(): Observable<any>;
205
+ getAPIdetailDepartments(id: any): Observable<any>;
206
+ getAPIAnswers(id: any): Observable<any>;
207
+ getAPIDayPhrase(): Observable<any>;
167
208
  static ɵfac: i0.ɵɵFactoryDeclaration<DooleService, never>;
168
209
  static ɵprov: i0.ɵɵInjectableDeclaration<DooleService>;
169
210
  }
@@ -1,10 +1,10 @@
1
1
  import { AngularFireAuth } from '@angular/fire/compat/auth';
2
2
  import { Observable, Subject } from 'rxjs';
3
+ import { DataStore } from '../../../utils/data-store';
3
4
  import { FirebaseProfileModel } from './firebase-profile.model';
4
5
  import { Platform } from '@ionic/angular';
5
6
  import firebase from "firebase/compat/app";
6
7
  import { User } from 'firebase/auth';
7
- import { DataStore } from '../../util/data-store';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class FirebaseAuthService {
10
10
  angularFire: AngularFireAuth;
@@ -1,4 +1,4 @@
1
- import { ShellModel } from '../../util/data-store';
1
+ import { ShellModel } from '../../../utils/data-store';
2
2
  export declare class FirebaseProfileModel extends ShellModel {
3
3
  image: string;
4
4
  name: string;
@@ -0,0 +1,49 @@
1
+ import { TranslateService } from '@ngx-translate/core';
2
+ import { LanguageService } from './language.service';
3
+ import { Router } from '@angular/router';
4
+ import { Configuracion } from '../configuration';
5
+ import { Platform } from '@ionic/angular';
6
+ import { DooleService } from './doole.service';
7
+ import { AuthenticationService } from './authentication.service';
8
+ import { AlertController } from '@ionic/angular';
9
+ import { Device } from '@awesome-cordova-plugins/device/ngx';
10
+ import * as i0 from "@angular/core";
11
+ export declare class HealthService {
12
+ private device;
13
+ platform: Platform;
14
+ private dooleService;
15
+ router: Router;
16
+ private translate;
17
+ languageService: LanguageService;
18
+ private constants;
19
+ authService: AuthenticationService;
20
+ private alertController;
21
+ private dataTypes;
22
+ enableHealthConnectSettings: boolean;
23
+ loadingData: boolean;
24
+ isHealthConnect: boolean;
25
+ hideButtonHealthConnect: boolean;
26
+ constructor(device: Device, platform: Platform, dooleService: DooleService, router: Router, translate: TranslateService, languageService: LanguageService, constants: Configuracion, authService: AuthenticationService, alertController: AlertController);
27
+ btnDowloadHealthConnect(): void;
28
+ setHealthConnect(): void;
29
+ downloadHealthConnect(): void;
30
+ downloadGoogleFit(): void;
31
+ setPrivacyPolicy(): void;
32
+ openHealthServices(): void;
33
+ connect(comesFromSettings?: boolean): void;
34
+ retrieveData(): void;
35
+ readDataFromApp(days: any): void;
36
+ readData(startDate: Date, endDate: Date): Promise<void>;
37
+ queryAggregatedHealthData(config: any): Promise<any>;
38
+ queryHealthData(config: any): Promise<any>;
39
+ readWeightData(startDate: Date, endDate: Date): void;
40
+ readBloodGlucose(startDate: Date, endDate: Date): void;
41
+ readSteps(startDate: Date, endDate: Date): void;
42
+ readDistance(startDate: Date, endDate: Date): void;
43
+ readHeartRate(startDate: Date, endDate: Date): void;
44
+ postHealth(type: string, data: any): Promise<void>;
45
+ presentAlertConfirm(error?: any): Promise<void>;
46
+ getErrorMessage(e?: any): string;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<HealthService, never>;
48
+ static ɵprov: i0.ɵɵInjectableDeclaration<HealthService>;
49
+ }
@@ -37,7 +37,7 @@ export declare class HighchartsService {
37
37
  setLocale(): string;
38
38
  setPointWidth(interval: any): number;
39
39
  setScrollMinWidth(interval: any): void;
40
- addTooltip(interval: string): void;
40
+ addTooltip(interval: any): void;
41
41
  getWeekday(): string[];
42
42
  setSeries(name: any, data: any, pointWidth?: any, lineWidth?: any, color?: any, colorKey?: any, colorByPoint?: any): void;
43
43
  setXAxis(type: any, categories: any, maxRange?: any): void;
@@ -49,7 +49,6 @@ export declare class HighchartsService {
49
49
  groupByDate: string;
50
50
  tooltip: string;
51
51
  };
52
- returnShortDate(): string;
53
52
  formatSelectedDate2(d: any, format: any): string;
54
53
  formatSelectedDate(d: any): Date;
55
54
  titleCase(word: any): any;
@@ -1,6 +1,6 @@
1
1
  import { HttpHeaders, HttpClient, HttpParams, HttpBackend } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
- import { AuthenticationService } from '../services/authentication.service';
3
+ import { AuthenticationService } from './authentication.service';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class HttpService {
6
6
  private http;
@@ -1,5 +1,5 @@
1
1
  import { TranslateService } from '@ngx-translate/core';
2
- import { LanguageModel } from '../util/language.model';
2
+ import { LanguageModel } from './language.model';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class LanguageService {
5
5
  translate: TranslateService;
@@ -1,13 +1,18 @@
1
+ import { NgZone } from '@angular/core';
1
2
  import { Router } from '@angular/router';
2
3
  import { Location } from "@angular/common";
4
+ import { Platform } from '@ionic/angular';
3
5
  import * as i0 from "@angular/core";
4
6
  export declare class NavigationService {
5
7
  private router;
6
8
  private location;
9
+ private _zone;
10
+ private platform;
7
11
  private history;
8
- constructor(router: Router, location: Location);
12
+ constructor(router: Router, location: Location, _zone: NgZone, platform: Platform);
9
13
  back(): void;
10
14
  close(modalCtrl?: any): Promise<void>;
15
+ redirecPushNotification(data: any, notification?: any): void;
11
16
  static ɵfac: i0.ɵɵFactoryDeclaration<NavigationService, never>;
12
17
  static ɵprov: i0.ɵɵInjectableDeclaration<NavigationService>;
13
18
  }
@@ -1,8 +1,7 @@
1
1
  import { NgZone } from '@angular/core';
2
2
  import { MatSnackBar } from '@angular/material/snack-bar';
3
- import { AlertController, Platform, ToastController } from '@ionic/angular';
3
+ import { AlertController, ToastController } from '@ionic/angular';
4
4
  import { TranslateService } from '@ngx-translate/core';
5
- import { Router } from '@angular/router';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class NotificationService {
8
7
  snackBar: MatSnackBar;
@@ -10,16 +9,12 @@ export declare class NotificationService {
10
9
  alertCtrl: AlertController;
11
10
  private translate;
12
11
  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);
12
+ constructor(snackBar: MatSnackBar, zone: NgZone, alertCtrl: AlertController, translate: TranslateService, toastController: ToastController);
17
13
  showSuccess(message: string): void;
18
14
  showError(error: string): void;
19
15
  displayToastSuccessful(): void;
20
16
  displayToastPusher(message: any): void;
21
17
  confirmAllNotification(message: any): Promise<void>;
22
- redirecPushNotification(data: any, notification?: any): void;
23
18
  static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
24
19
  static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
25
20
  }
@@ -0,0 +1,33 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class PermissionService {
3
+ canViewGoals: boolean;
4
+ canManageGoals: boolean;
5
+ canViewForms: boolean;
6
+ canViewAnswerForms: boolean;
7
+ canViewExercises: boolean;
8
+ canViewDiets: boolean;
9
+ canViewRecipes: boolean;
10
+ canViewGames: boolean;
11
+ canViewMonitoring: boolean;
12
+ canManageMonitoring: boolean;
13
+ canViewAdvices: boolean;
14
+ canViewMedicalProcedures: boolean;
15
+ canViewNews: boolean;
16
+ canViewTestimonials: boolean;
17
+ canViewMedicalTests: boolean;
18
+ canManageMedicalTests: boolean;
19
+ canViewMedication: boolean;
20
+ canManageMedication: boolean;
21
+ canViewMedicationPlans: boolean;
22
+ canViewEvents: boolean;
23
+ canManageEvents: boolean;
24
+ canAccessVideocall: boolean;
25
+ canManageMessages: boolean;
26
+ canSeeCenters: boolean;
27
+ colorCargiver: boolean;
28
+ constructor();
29
+ setPermissions(permissions: any): void;
30
+ resetPermissions(): void;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<PermissionService, never>;
32
+ static ɵprov: i0.ɵɵInjectableDeclaration<PermissionService>;
33
+ }
@@ -13,7 +13,8 @@ export declare class ComponentsApp {
13
13
  chat: boolean;
14
14
  doc_diagnostic: boolean;
15
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);
16
+ medication: boolean;
17
+ 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, medication: boolean);
17
18
  }
18
19
  export declare class RolesService {
19
20
  component: ComponentsApp;
@@ -21,7 +22,7 @@ export declare class RolesService {
21
22
  userType: any;
22
23
  constructor();
23
24
  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
+ 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, medication: boolean): void;
25
26
  setProfessional(professional: any): void;
26
27
  static ɵfac: i0.ɵɵFactoryDeclaration<RolesService, never>;
27
28
  static ɵprov: i0.ɵɵInjectableDeclaration<RolesService>;
@@ -0,0 +1,20 @@
1
+ import { Observable } from 'rxjs';
2
+ import { ApiEndpointsService } from '../api-endpoints.service';
3
+ import { HttpService } from '../http.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SharedCarePlanService {
6
+ private http;
7
+ private api;
8
+ constructor(http: HttpService, api: ApiEndpointsService);
9
+ getAPI_SCP_goals(): Observable<any>;
10
+ getAPI_SCP_procedures(): Observable<any>;
11
+ getAPI_SCP_prescribedApp(): Observable<any>;
12
+ getAPI_SCP_StatusContent(): Observable<any>;
13
+ getAPIExercises(params?: any): Observable<any>;
14
+ get_APi_ACP_monitoring(): Observable<any>;
15
+ get_APi_ACP_forms(): Observable<any>;
16
+ get_APi_ACP_medication(): Observable<any>;
17
+ post_API_ACP_declined_acepted(model: any, model_id: any, type: any, coments?: any): Observable<any>;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<SharedCarePlanService, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<SharedCarePlanService>;
20
+ }
@@ -1,12 +1,14 @@
1
1
  import { Observable } from 'rxjs';
2
+ import { Environment } from '../configuration';
2
3
  export declare class ShellModel {
3
4
  isShell: boolean;
4
5
  }
5
6
  export declare class DataStore<T> {
7
+ private environment;
6
8
  private shellModel;
7
9
  private networkDelay;
8
10
  private timeline;
9
- constructor(shellModel: T);
11
+ constructor(environment: Environment, shellModel: T);
10
12
  static AppendShell<T>(dataObservable: Observable<T>, shellModel: T, networkDelay?: number): Observable<T & ShellModel>;
11
13
  load(dataSourceObservable: Observable<T>, networkDelay?: number): void;
12
14
  get state(): Observable<T & ShellModel>;
package/package.json CHANGED
@@ -1,22 +1,9 @@
1
1
  {
2
2
  "name": "@doolehealth/service-lib",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "peerDependencies": {
5
- "@ionic/angular": "^8.2.0",
6
5
  "@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"
6
+ "@angular/core": "^17.3.0"
20
7
  },
21
8
  "dependencies": {
22
9
  "tslib": "^2.3.0"
package/public-api.d.ts CHANGED
@@ -21,11 +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/services/auth/firebase-auth.service';
30
- export * from './lib/util/chatParameters';
31
- export * from './lib/util/data-store';
24
+ export * from './lib/services/shared-care-plan/shared-care-plan.service';
25
+ export * from './lib/services/error.service';
26
+ export * from './lib/services/health.service';
27
+ export * from './lib/services/navigation.service';
28
+ export * from './lib/services/permission.service';
29
+ export * from './lib/utils/data-store';
30
+ export * from './lib/services/firebase/auth/firebase-auth.service';