@doolehealth/service-lib 0.0.7 → 0.0.8
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/date.service.mjs +55 -6
- package/esm2022/lib/services/doole.service.mjs +9 -1
- package/esm2022/lib/services/highcharts.service.mjs +7 -4
- package/esm2022/lib/services/navigation.service.mjs +5 -3
- package/fesm2022/doolehealth-service-lib.mjs +85 -24
- package/fesm2022/doolehealth-service-lib.mjs.map +1 -1
- package/lib/services/date.service.d.ts +6 -2
- package/lib/services/doole.service.d.ts +1 -0
- package/lib/services/highcharts.service.d.ts +4 -1
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ export declare class DateService {
|
|
|
15
15
|
formatSelectedDate(date: any): string;
|
|
16
16
|
getformatSelectedDate(): string;
|
|
17
17
|
getFormatSelectedDate2(): string;
|
|
18
|
-
getLocale(): "
|
|
18
|
+
getLocale(): "ca-ES" | "en-US" | "es-ES" | "pt" | "sv-SE" | "no-NO";
|
|
19
19
|
getStartingDayWeek(): string;
|
|
20
20
|
getStartingDayMonth(): string;
|
|
21
21
|
'dd/MM/y': any;
|
|
@@ -44,6 +44,7 @@ export declare class DateService {
|
|
|
44
44
|
formatDate(date?: any): string;
|
|
45
45
|
getFormatTime(date: any): string;
|
|
46
46
|
getDateMonDay(date: any): string;
|
|
47
|
+
convertLocalizedDateToEnglish(dateString: string): string;
|
|
47
48
|
transformDateyyyyMMdd(date: any): string;
|
|
48
49
|
ddMMyyyy(date: any): string;
|
|
49
50
|
highchartsDatesFornmat(): {};
|
|
@@ -54,13 +55,16 @@ export declare class DateService {
|
|
|
54
55
|
getTimeFormat(): string;
|
|
55
56
|
getTimeFormat2(): string;
|
|
56
57
|
isToday(mDate: Date): boolean;
|
|
57
|
-
transformDate(date: any, format: any): string;
|
|
58
|
+
transformDate(date: any, format: any, locale?: any): string;
|
|
58
59
|
getCalendarDay(epoch: number): string;
|
|
59
60
|
getCalendarDay2(epoch: number): string;
|
|
60
61
|
getCalendarDayTime(epoch: number): string;
|
|
61
62
|
formatEpoch(epoch: any): string;
|
|
62
63
|
getToday(): string;
|
|
63
64
|
getCurrentTime(): string;
|
|
65
|
+
yyyyMMddHHmm1(date?: any): string;
|
|
66
|
+
yyyyMMddHHmmss(date?: any): string;
|
|
67
|
+
formatDateHour(d: any): Date;
|
|
64
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateService, never>;
|
|
65
69
|
static ɵprov: i0.ɵɵInjectableDeclaration<DateService>;
|
|
66
70
|
}
|
|
@@ -195,6 +195,7 @@ export declare class DooleService {
|
|
|
195
195
|
getAPIExercisesByDate(from_date?: any, to_date?: any): Observable<any>;
|
|
196
196
|
getAPIExercises(): Observable<any>;
|
|
197
197
|
getAPIChallenge(challengeId: any, params?: any): Observable<any>;
|
|
198
|
+
postCompletedExercice(params?: Object): Observable<any>;
|
|
198
199
|
getAPIChallenges(params?: any): Observable<any>;
|
|
199
200
|
getAPIChallenges2(): Observable<any>;
|
|
200
201
|
getAPIAppLatestVersion(version: any, platform: any): Observable<any>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LanguageService } from './language.service';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export interface serie {
|
|
4
5
|
name: string;
|
|
@@ -15,8 +16,10 @@ export interface serie {
|
|
|
15
16
|
}
|
|
16
17
|
export declare class HighchartsService {
|
|
17
18
|
private languageService;
|
|
19
|
+
private translate;
|
|
18
20
|
weekdaysES: string[];
|
|
19
21
|
weekdaysCA: string[];
|
|
22
|
+
weeksDay: any[];
|
|
20
23
|
title: string;
|
|
21
24
|
graphData: any[];
|
|
22
25
|
ranges: any;
|
|
@@ -31,7 +34,7 @@ export declare class HighchartsService {
|
|
|
31
34
|
withTooltip: boolean;
|
|
32
35
|
extraTooltip: any;
|
|
33
36
|
scrollMinWidth: number;
|
|
34
|
-
constructor(languageService: LanguageService);
|
|
37
|
+
constructor(languageService: LanguageService, translate: TranslateService);
|
|
35
38
|
setTitle(title: any): void;
|
|
36
39
|
setUnits(units: any): void;
|
|
37
40
|
setLocale(): string;
|