@rolatech/angular-services 20.0.2-beta.1 → 20.0.2-beta.3

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.
@@ -1870,6 +1870,9 @@ class PropertyService extends BaseService {
1870
1870
  withCredentials: true,
1871
1871
  });
1872
1872
  }
1873
+ getHighlights(id) {
1874
+ return this.http.get(`${this.actionUrl}/${id}/highlights`, { withCredentials: false });
1875
+ }
1873
1876
  findFeatures(id) {
1874
1877
  return this.http.get(`${this.actionUrl}/${id}/features`, { withCredentials: false });
1875
1878
  }
@@ -1882,18 +1885,23 @@ class PropertyService extends BaseService {
1882
1885
  updateAgent(id, data) {
1883
1886
  return this.http.post(`${this.actionUrl}/${id}/agents`, data, { withCredentials: true });
1884
1887
  }
1885
- // Video tour
1886
- getVideoTour(id) {
1887
- return this.http.get(`${this.actionUrl}/${id}/video-tour`, { withCredentials: true });
1888
+ // Videos
1889
+ getVideos(id) {
1890
+ return this.http.get(`${this.actionUrl}/${id}/videos`, { withCredentials: true });
1888
1891
  }
1889
- addVideoTour(id, data) {
1890
- return this.http.post(`${this.actionUrl}/${id}/video-tour`, data, { withCredentials: true });
1892
+ addVideo(id, data) {
1893
+ return this.http.post(`${this.actionUrl}/${id}/videos`, data, { withCredentials: true });
1891
1894
  }
1892
- updateVideoTour(id, data) {
1893
- return this.http.put(`${this.actionUrl}/${id}/video-tour`, data, { withCredentials: true });
1895
+ updateVideo(id, videoId, data) {
1896
+ return this.http.put(`${this.actionUrl}/${id}/videos/${videoId}`, data, { withCredentials: true });
1894
1897
  }
1895
- deleteVideoTour(id, videoTourId) {
1896
- return this.http.delete(`${this.actionUrl}/${id}/video-tour/${videoTourId}`, { withCredentials: true });
1898
+ deleteVideo(id, videoId) {
1899
+ return this.http.delete(`${this.actionUrl}/${id}/videos/${videoId}`, { withCredentials: true });
1900
+ }
1901
+ uploadVideoThumbnail(videoId, data) {
1902
+ return this.http.post(`${this.actionUrl}/videos/${videoId}/thumbnail`, data, {
1903
+ withCredentials: true,
1904
+ });
1897
1905
  }
1898
1906
  // Tenants
1899
1907
  findTenants(options) {
@@ -1912,34 +1920,47 @@ class PropertyService extends BaseService {
1912
1920
  return this.http.delete(`${this.actionUrl}/tenants/${id}`, { withCredentials: true });
1913
1921
  }
1914
1922
  //COS
1915
- uploadVideoTourInit(propertyId, data) {
1916
- return this.http.post(`${this.actionUrl}/${propertyId}/video-tour/init`, data, {
1923
+ uploadVideosInit(propertyId, data) {
1924
+ return this.http.post(`${this.actionUrl}/${propertyId}/videos/init`, data, {
1917
1925
  withCredentials: true,
1918
1926
  });
1919
1927
  }
1920
- uploadVideoTourPartsToProperty(propertyId, data) {
1921
- return this.http.post(`${this.actionUrl}/${propertyId}/video-tour/parts`, data, {
1928
+ uploadVideosPartsToProperty(propertyId, data) {
1929
+ return this.http.post(`${this.actionUrl}/${propertyId}/videos/parts`, data, {
1922
1930
  withCredentials: true,
1923
1931
  });
1924
1932
  }
1925
- completePartUpload(propertyId, data) {
1926
- return this.http.put(`${this.actionUrl}/${propertyId}/video-tour/parts`, data, {
1933
+ completePartUpload(videoId, data) {
1934
+ return this.http.put(`${this.actionUrl}/videos/${videoId}/parts`, data, {
1927
1935
  withCredentials: true,
1928
1936
  });
1929
1937
  }
1930
1938
  uploadVideoToProperty(propertyId, data) {
1931
- return this.http.post(`${this.actionUrl}/${propertyId}/video-tour`, data, {
1939
+ return this.http.post(`${this.actionUrl}/${propertyId}/videos`, data, {
1932
1940
  withCredentials: true,
1933
1941
  });
1934
1942
  }
1935
1943
  deletePropertyVideo(propertyId, videoId) {
1936
- return this.http.delete(`${this.actionUrl}/${propertyId}/video-tour/${videoId}`, { withCredentials: true });
1944
+ return this.http.delete(`${this.actionUrl}/${propertyId}/videos/${videoId}`, { withCredentials: true });
1937
1945
  }
1938
1946
  uploadPropertyVideoThumbnail(videoId, data) {
1939
- return this.http.post(`${this.actionUrl}/video-tour/${videoId}/thumbnail`, data, {
1947
+ return this.http.post(`${this.actionUrl}/videos/${videoId}/thumbnail`, data, {
1940
1948
  withCredentials: true,
1941
1949
  });
1942
1950
  }
1951
+ // epc
1952
+ getEpc(id) {
1953
+ return this.http.get(`${this.actionUrl}/${id}/epc`, { withCredentials: false });
1954
+ }
1955
+ addEpc(id, data) {
1956
+ return this.http.post(`${this.actionUrl}/${id}/epc`, data, { withCredentials: true });
1957
+ }
1958
+ updateEpc(id, data) {
1959
+ return this.http.put(`${this.actionUrl}/${id}/epc`, data, { withCredentials: true });
1960
+ }
1961
+ deleteEpc(id) {
1962
+ return this.http.delete(`${this.actionUrl}/${id}/epc`, { withCredentials: true });
1963
+ }
1943
1964
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: PropertyService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
1944
1965
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: PropertyService, providedIn: 'root' });
1945
1966
  }
@@ -2347,18 +2368,18 @@ class OfferingService extends BaseService {
2347
2368
  updateLocation(id, data) {
2348
2369
  return this.http.post(`${this.actionUrl}/${id}/location`, data, { withCredentials: true });
2349
2370
  }
2350
- // Video tour
2351
- getVideoTour(id) {
2352
- return this.http.get(`${this.actionUrl}/${id}/video-tour`, { withCredentials: true });
2371
+ // Videos
2372
+ getVideos(id) {
2373
+ return this.http.get(`${this.actionUrl}/${id}/videos`, { withCredentials: true });
2353
2374
  }
2354
- addVideoTour(id, data) {
2355
- return this.http.post(`${this.actionUrl}/${id}/video-tour`, data, { withCredentials: true });
2375
+ addVideo(id, data) {
2376
+ return this.http.post(`${this.actionUrl}/${id}/videos`, data, { withCredentials: true });
2356
2377
  }
2357
- updateVideoTour(id, data) {
2358
- return this.http.put(`${this.actionUrl}/${id}/video-tour`, data, { withCredentials: true });
2378
+ updateVideo(id, data) {
2379
+ return this.http.put(`${this.actionUrl}/${id}/videos`, data, { withCredentials: true });
2359
2380
  }
2360
- deleteVideoTour(id, videoTourId, y) {
2361
- return this.http.delete(`${this.actionUrl}/${id}/video-tour/${videoTourId}`, { withCredentials: true });
2381
+ deleteVideo(id, videoId, y) {
2382
+ return this.http.delete(`${this.actionUrl}/${id}/videos/${videoId}`, { withCredentials: true });
2362
2383
  }
2363
2384
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: OfferingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
2364
2385
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: OfferingService, providedIn: 'root' });
@@ -2986,6 +3007,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImpor
2986
3007
  args: [{ providedIn: 'root' }]
2987
3008
  }] });
2988
3009
 
3010
+ class PropertySearchService extends BaseService {
3011
+ init() {
3012
+ this.endpoint = 'properties/search';
3013
+ super.init();
3014
+ }
3015
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: PropertySearchService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
3016
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: PropertySearchService, providedIn: 'root' });
3017
+ }
3018
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: PropertySearchService, decorators: [{
3019
+ type: Injectable,
3020
+ args: [{
3021
+ providedIn: 'root',
3022
+ }]
3023
+ }] });
3024
+
2989
3025
  class LoadingInterceptor {
2990
3026
  loadingService;
2991
3027
  activeRequests = 0;
@@ -3080,5 +3116,5 @@ function provideAngularServices() {
3080
3116
  * Generated bundle index. Do not edit.
3081
3117
  */
3082
3118
 
3083
- export { AmenityService, BackButtonDirective, BaseService, BookingService, BreadcrumbService, CartEventType, CartService, CategoryService, ConversationInitService, ConversationService, DialogComponent, DialogService, FacilityService, FeatureService, FulfillmentService, HideFooterDirective, InventoryService, LayoutService, LoadingInterceptor, LoadingService, MediaService, MembershipService, NavigationService, NotificationService, NotificationStore, NotificationTemplateService, OfferingService, OrderPayoutService, OrderService, PaymentService, PostService, ProductCategoryService, ProductService, PropertyService, ResourceCategoryService, ResourceService, SERVICE_DIRECTIVES, SidenavService, SnackBarService, SupportService, ThemeService, TitleService, provideAngularServices };
3119
+ export { AmenityService, BackButtonDirective, BaseService, BookingService, BreadcrumbService, CartEventType, CartService, CategoryService, ConversationInitService, ConversationService, DialogComponent, DialogService, FacilityService, FeatureService, FulfillmentService, HideFooterDirective, InventoryService, LayoutService, LoadingInterceptor, LoadingService, MediaService, MembershipService, NavigationService, NotificationService, NotificationStore, NotificationTemplateService, OfferingService, OrderPayoutService, OrderService, PaymentService, PostService, ProductCategoryService, ProductService, PropertySearchService, PropertyService, ResourceCategoryService, ResourceService, SERVICE_DIRECTIVES, SidenavService, SnackBarService, SupportService, ThemeService, TitleService, provideAngularServices };
3084
3120
  //# sourceMappingURL=rolatech-angular-services.mjs.map