@rolatech/angular-services 20.0.0-beta.5 → 20.0.0-beta.7
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.
|
@@ -1851,6 +1851,9 @@ class PropertyService extends BaseService {
|
|
|
1851
1851
|
updateLocation(id, data) {
|
|
1852
1852
|
return this.http.post(`${this.actionUrl}/${id}/location`, data, { withCredentials: true });
|
|
1853
1853
|
}
|
|
1854
|
+
updateAgent(id, data) {
|
|
1855
|
+
return this.http.post(`${this.actionUrl}/${id}/agents`, data, { withCredentials: true });
|
|
1856
|
+
}
|
|
1854
1857
|
// Video tour
|
|
1855
1858
|
getVideoTour(id) {
|
|
1856
1859
|
return this.http.get(`${this.actionUrl}/${id}/video-tour`, { withCredentials: true });
|
|
@@ -1861,9 +1864,25 @@ class PropertyService extends BaseService {
|
|
|
1861
1864
|
updateVideoTour(id, data) {
|
|
1862
1865
|
return this.http.put(`${this.actionUrl}/${id}/video-tour`, data, { withCredentials: true });
|
|
1863
1866
|
}
|
|
1864
|
-
deleteVideoTour(id, videoTourId
|
|
1867
|
+
deleteVideoTour(id, videoTourId) {
|
|
1865
1868
|
return this.http.delete(`${this.actionUrl}/${id}/video-tour/${videoTourId}`, { withCredentials: true });
|
|
1866
1869
|
}
|
|
1870
|
+
// Tenants
|
|
1871
|
+
findTenants(options) {
|
|
1872
|
+
return this.http.get(`${this.actionUrl}/tenants`, { withCredentials: true, params: options, });
|
|
1873
|
+
}
|
|
1874
|
+
getTenant(id) {
|
|
1875
|
+
return this.http.get(`${this.actionUrl}/tenants/${id}`, { withCredentials: true });
|
|
1876
|
+
}
|
|
1877
|
+
createTenant(data) {
|
|
1878
|
+
return this.http.post(`${this.actionUrl}/tenants`, data, { withCredentials: true });
|
|
1879
|
+
}
|
|
1880
|
+
updateTenant(id, data) {
|
|
1881
|
+
return this.http.put(`${this.actionUrl}/tenants/${id}`, data, { withCredentials: true });
|
|
1882
|
+
}
|
|
1883
|
+
deleteTenant(id) {
|
|
1884
|
+
return this.http.delete(`${this.actionUrl}/tenants/${id}`, { withCredentials: true });
|
|
1885
|
+
}
|
|
1867
1886
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: PropertyService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
1868
1887
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: PropertyService, providedIn: 'root' });
|
|
1869
1888
|
}
|