@doolehealth/service-lib 1.0.1 → 1.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.
|
@@ -1743,7 +1743,8 @@ class DooleService {
|
|
|
1743
1743
|
let path = `diet/${id}`;
|
|
1744
1744
|
const endpoint = this.api.getEndpoint(path);
|
|
1745
1745
|
let httpParams = new HttpParams()
|
|
1746
|
-
.set('interactions', 1)
|
|
1746
|
+
.set('interactions', 1)
|
|
1747
|
+
.set('tags', 1);
|
|
1747
1748
|
return this.http.get(endpoint, httpParams).pipe(map((res) => {
|
|
1748
1749
|
//////console.log(`[DooleService] getAPIdetailDiets(${path}) res: `, res);
|
|
1749
1750
|
return res;
|
|
@@ -1752,7 +1753,8 @@ class DooleService {
|
|
|
1752
1753
|
getAPIdetailRecipe(id) {
|
|
1753
1754
|
let path = `diet/receipt/${id}`;
|
|
1754
1755
|
let httpParams = new HttpParams()
|
|
1755
|
-
.set('interactions', 1)
|
|
1756
|
+
.set('interactions', 1)
|
|
1757
|
+
.set('tags', 1);
|
|
1756
1758
|
const endpoint = this.api.getEndpoint(path);
|
|
1757
1759
|
return this.http.get(endpoint, httpParams).pipe(map((res) => {
|
|
1758
1760
|
//////console.log(`[DooleService] getAPIdetailRecipe(${path}) res: `, res);
|
|
@@ -1814,6 +1816,7 @@ class DooleService {
|
|
|
1814
1816
|
let path = `user/new/${id}`;
|
|
1815
1817
|
const endpoint = this.api.getEndpoint(path);
|
|
1816
1818
|
let httpParams = new HttpParams()
|
|
1819
|
+
.set('tags', 1)
|
|
1817
1820
|
.set('interactions', 1);
|
|
1818
1821
|
return this.http.get(endpoint, httpParams).pipe(map((res) => {
|
|
1819
1822
|
//////console.log(`[DooleService] getAPIdetailNew(${path}) res: `, res);
|
|
@@ -1824,6 +1827,7 @@ class DooleService {
|
|
|
1824
1827
|
let path = `advice/${id}`;
|
|
1825
1828
|
const endpoint = this.api.getEndpoint(path);
|
|
1826
1829
|
let httpParams = new HttpParams()
|
|
1830
|
+
.set('tags', 1)
|
|
1827
1831
|
.set('interactions', 1);
|
|
1828
1832
|
return this.http.get(endpoint, httpParams).pipe(map((res) => {
|
|
1829
1833
|
return res;
|
|
@@ -2449,14 +2453,20 @@ class DooleService {
|
|
|
2449
2453
|
getAPIExerciseDetail(id, params) {
|
|
2450
2454
|
let path = `user/exercise/${id}`;
|
|
2451
2455
|
let httpParams = new HttpParams();
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
+
if (params?.programable_play) {
|
|
2457
|
+
httpParams = httpParams.append('programable_play', params.programable_play);
|
|
2458
|
+
}
|
|
2459
|
+
if (params?.challenge_id) {
|
|
2460
|
+
httpParams = httpParams.append('challenge_id', params.challenge_id);
|
|
2461
|
+
}
|
|
2462
|
+
if (params?.programable_id) {
|
|
2463
|
+
httpParams = httpParams.append('programable_id', params.programable_id);
|
|
2464
|
+
}
|
|
2465
|
+
// Agregar correctamente los parámetros
|
|
2456
2466
|
httpParams = httpParams.set('interactions', '1');
|
|
2467
|
+
httpParams = httpParams.set('tags', '1');
|
|
2457
2468
|
const endpoint = this.api.getEndpoint(path);
|
|
2458
2469
|
return this.http.get(endpoint, httpParams).pipe(map((res) => {
|
|
2459
|
-
////console.log(`[DooleService] getAPIExercises(${path}) res: `, res);
|
|
2460
2470
|
return res;
|
|
2461
2471
|
}));
|
|
2462
2472
|
}
|