@rolatech/angular-services 20.2.9-beta.4 → 20.2.9-beta.5
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.
|
@@ -1529,6 +1529,12 @@ class PropertyService extends BaseService {
|
|
|
1529
1529
|
withCredentials: true,
|
|
1530
1530
|
});
|
|
1531
1531
|
}
|
|
1532
|
+
byAgent(options) {
|
|
1533
|
+
return this.http.get(`${this.actionUrl}/by/agent`, {
|
|
1534
|
+
params: options,
|
|
1535
|
+
withCredentials: true,
|
|
1536
|
+
});
|
|
1537
|
+
}
|
|
1532
1538
|
findByIds(ids) {
|
|
1533
1539
|
const params = { ids: ids.join(',') };
|
|
1534
1540
|
return this.http.get(`${this.actionUrl}/by`, {
|
|
@@ -1714,6 +1720,7 @@ class PropertyService extends BaseService {
|
|
|
1714
1720
|
withCredentials: true,
|
|
1715
1721
|
});
|
|
1716
1722
|
}
|
|
1723
|
+
// viewings
|
|
1717
1724
|
findUpcomingViewings(options) {
|
|
1718
1725
|
return this.http.get(`${this.actionUrl}/viewings/upcoming`, {
|
|
1719
1726
|
params: options,
|
|
@@ -2917,11 +2924,6 @@ class PropertySearchService extends BaseService {
|
|
|
2917
2924
|
this.endpoint = 'properties';
|
|
2918
2925
|
super.init();
|
|
2919
2926
|
}
|
|
2920
|
-
search1(options) {
|
|
2921
|
-
return this.http.get(`${this.actionUrl}/search`, {
|
|
2922
|
-
params: options,
|
|
2923
|
-
});
|
|
2924
|
-
}
|
|
2925
2927
|
search(rawParams) {
|
|
2926
2928
|
const params = this.stripUndefined(rawParams);
|
|
2927
2929
|
// Decide route: empty filter → DB list; else → Elasticsearch-backed search
|